/* ==========================================================================
   COMPASS HOME RENOVATION INC. - STYLESHEET
   Clean White Aesthetic &bull; Refined Gold Accents &bull; Minimalist & Fast
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --primary-gold: #c89d4d;
  --primary-gold-hover: #b88b39;
  --gold-gradient: linear-gradient(135deg, #d8b471 0%, #b88b39 100%);
  --gold-light: #faf4e8;
  --gold-border: rgba(200, 157, 77, 0.28);

  /* Clean White Palette (No Dark Brown) */
  --bg-white: #ffffff;
  --bg-cream: #faf8f5;
  --bg-subtle: #f4f1eb;
  --bg-card: #ffffff;

  --text-dark: #1e1916;
  --text-secondary: #4a443f;
  --text-muted: #736c66;
  --border-light: #ebe6df;

  /* Typography */
  --font-serif: 'Cinzel', 'Playfair Display', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing & Layout */
  --container-max: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(30, 25, 22, 0.07);
  --shadow-lg: 0 16px 40px rgba(30, 25, 22, 0.1);
  --shadow-gold: 0 6px 20px rgba(200, 157, 77, 0.25);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   TOP BAR (Clean White / Light Gray)
   ========================================================================== */
.top-announcement {
  background-color: #faf8f5;
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.top-announcement .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text-secondary);
}

.top-badge span.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #27ae60;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px #27ae60;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-phone-link {
  color: var(--text-dark);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
}

.top-phone-link svg {
  color: var(--primary-gold);
}

.top-phone-link:hover {
  color: var(--primary-gold-hover);
}

/* ==========================================================================
   NAVIGATION (Clean White Header)
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

.brand-logo-link {
  display: flex;
  align-items: center;
}

.brand-logo-link img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-gradient);
  transition: width var(--transition-fast);
}

.nav-links a:hover {
  color: var(--primary-gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-header-call {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  color: var(--text-dark);
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-header-call:hover {
  border-color: var(--primary-gold);
  color: var(--primary-gold-hover);
  background: var(--gold-light);
}

.btn-estimate {
  background: var(--gold-gradient);
  color: #1a1310;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-normal);
}

.btn-estimate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 157, 77, 0.38);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  color: var(--text-dark);
  padding: 8px;
  font-size: 1.5rem;
}

/* ==========================================================================
   HERO SECTION (WHITE BACKGROUND, CLEAN & CONCISE INTRO)
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: var(--bg-white);
  padding: 70px 0 80px;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

/* Eyebrow as requested: * BATHROOM & KITCHEN REMODELING IN GREATER BOSTON */
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-gold-hover);
  background: var(--gold-light);
  border: 1px solid var(--gold-border);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

/* Headline as requested: Beautiful spaces. Built with care. */
.hero-title {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

/* Subtitle as requested */
.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero CTA Buttons */
.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-hero-primary {
  background: var(--gold-gradient);
  color: #1a1310;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 15px 32px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-gold);
  transition: var(--transition-normal);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(200, 157, 77, 0.4);
}

.btn-hero-secondary {
  background: #ffffff;
  color: var(--text-dark);
  border: 2px solid var(--border-light);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-fast);
}

.btn-hero-secondary:hover {
  border-color: var(--primary-gold);
  color: var(--primary-gold-hover);
  background: var(--gold-light);
}

.btn-hero-secondary svg {
  color: var(--primary-gold);
}

/* ==========================================================================
   SECTION COMMON HEADINGS (Clean White Style)
   ========================================================================== */
.section-padding {
  padding: 85px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-gold-hover);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  line-height: 1.3;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   SERVICES SECTION (ALL WHITE BACKGROUND, REFINED CARDS)
   ========================================================================== */
.services-section {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 36px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-gold);
}

.service-card-img-wrapper {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.service-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card-img-wrapper img {
  transform: scale(1.04);
}

.service-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  color: var(--primary-gold-hover);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gold-border);
}

.service-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  font-weight: 700;
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* General Services Pill Grid */
.general-services-pill-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.service-pill {
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-pill svg {
  color: var(--primary-gold);
  flex-shrink: 0;
}

.service-features-list {
  list-style: none;
  margin-bottom: 24px;
}

.service-features-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features-list li svg {
  color: var(--primary-gold);
  flex-shrink: 0;
}

.btn-service-learn {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  color: var(--text-dark);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-service-learn:hover {
  background: var(--gold-light);
  border-color: var(--primary-gold);
  color: var(--primary-gold-hover);
}

/* ==========================================================================
   ABOUT / "MEET THE OWNER" (CLEAN WHITE BACKGROUND, NO REPEATED CALL NOW)
   ========================================================================== */
.about-owner-section {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.owner-card-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
}

.owner-photo-side {
  position: relative;
  min-height: 440px;
  background-color: var(--bg-cream);
}

.owner-photo-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.owner-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(0, 0, 0, 0.6) 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.owner-photo-caption h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.owner-photo-caption p {
  font-size: 0.85rem;
  color: #f7eedc;
}

.owner-content-side {
  padding: 50px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.owner-eyebrow {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-gold-hover);
  margin-bottom: 10px;
}

.owner-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 24px;
}

.owner-quote-box {
  position: relative;
  margin-bottom: 24px;
}

.owner-quote-box svg.quote-icon {
  width: 34px;
  height: 34px;
  color: var(--primary-gold);
  opacity: 0.6;
  margin-bottom: 12px;
}

.owner-text-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 18px;
}

.owner-text-body {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.owner-signature-row {
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.owner-sig-info h5 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-dark);
  font-weight: 700;
}

.owner-sig-info p {
  font-size: 0.9rem;
  color: var(--primary-gold-hover);
  font-weight: 600;
}

/* ==========================================================================
   SLOGAN PRE-ESTIMATE BANNER (AS EXPLICITLY REQUESTED BY CLIENT)
   "O slogan pode deixar antes de onde ta la em baixo pra preencher e pedir um estimate"
   ========================================================================== */
.slogan-pre-estimate-wrap {
  text-align: center;
  padding: 50px 24px 20px;
  background-color: var(--bg-white);
}

.slogan-pre-estimate {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-gold-hover);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.slogan-pre-estimate::before,
.slogan-pre-estimate::after {
  content: '';
  height: 1.5px;
  width: 44px;
  background: var(--gold-gradient);
}

/* ==========================================================================
   ESTIMATE & CONTACT SECTION (ALL WHITE BACKGROUND, CLEAN CARDS)
   ========================================================================== */
.contact-estimate-section {
  background-color: var(--bg-white);
  padding: 40px 0 90px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.contact-info-side h2 {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 18px;
}

.contact-info-side p.contact-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 30px;
}

.contact-channel-card {
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition-fast);
}

.contact-channel-card:hover {
  border-color: var(--primary-gold);
  background: var(--gold-light);
}

.channel-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1310;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.channel-details h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.channel-details .channel-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}

.service-area-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.service-area-badge svg {
  color: var(--primary-gold);
}

/* Contact Form Card (Clean White) */
.estimate-form-card {
  background: #ffffff;
  color: var(--text-dark);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.estimate-form-card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-weight: 700;
}

.estimate-form-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  background-color: #ffffff;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(200, 157, 77, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 95px;
}

.btn-submit-form {
  width: 100%;
  background: var(--gold-gradient);
  color: #1a1310;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-gold);
  transition: var(--transition-normal);
}

.btn-submit-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 157, 77, 0.4);
}

/* ==========================================================================
   FOOTER (ALL WHITE / LIGHT PALETTE, NO DARK BROWN)
   ========================================================================== */
.main-footer {
  background-color: #faf8f5;
  color: var(--text-secondary);
  padding: 60px 0 26px;
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 18px;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
  font-weight: 700;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 26px;
  height: 2px;
  background: var(--primary-gold);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-gold-hover);
  padding-left: 3px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.footer-contact-item svg {
  color: var(--primary-gold);
  flex-shrink: 0;
}

.footer-contact-item strong {
  color: var(--text-dark);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   DEDICATED PORTFOLIO WINDOW / MODAL ("Tipo uma janela pra cada serviço")
   ========================================================================== */
.portfolio-window-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 14, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.portfolio-window-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.portfolio-window-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 980px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.portfolio-window-backdrop.active .portfolio-window-box {
  transform: translateY(0);
}

.portfolio-window-header {
  padding: 24px 30px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.portfolio-window-header h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-dark);
  font-weight: 700;
}

.portfolio-window-close {
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition-fast);
}

.portfolio-window-close:hover {
  background: var(--text-dark);
  color: #ffffff;
}

/* Service Tabs inside the Portfolio Window */
/* Portfolio Window Tabs & Service Switcher */
.portfolio-window-tabs {
  display: flex;
  padding: 8px 30px;
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
  gap: 12px;
}

.p-tab-btn {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.p-tab-btn:hover {
  border-color: var(--primary-gold);
  color: var(--primary-gold-hover);
  background: var(--gold-light);
}

.p-tab-btn.active {
  background: var(--gold-gradient);
  color: #1a1310;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(200, 157, 77, 0.3);
}

.p-tab-btn.tab-before-after {
  border-color: rgba(200, 157, 77, 0.4);
}

.portfolio-tab-intro {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.portfolio-tab-intro h4 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-dark);
  font-weight: 700;
}

.portfolio-tab-intro p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Nav Dropdown for Portfolio */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 10px 0;
  min-width: 220px;
  display: none;
  z-index: 1000;
}

.nav-item-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 600;
  transition: var(--transition-fast);
}

.nav-dropdown-menu a:hover {
  background: var(--gold-light);
  color: var(--primary-gold-hover);
  padding-left: 24px;
}

/* Side by side Before/After Comparison Grid */
.ba-comparisons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.ba-compare-card {
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.ba-compare-card h5 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 14px;
  font-weight: 700;
}

.ba-compare-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ba-photo-side {
  position: relative;
  height: 180px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.ba-photo-side:hover {
  transform: scale(1.02);
}

.ba-photo-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-mini-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ba-mini-badge.before {
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
}

.ba-mini-badge.after {
  background: var(--gold-gradient);
  color: #1a1310;
}

/* Before & After Dedicated Teaser Banner on Homepage */
.ba-teaser-banner {
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary-gold);
  border-radius: var(--radius-md);
  padding: 24px 30px;
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.ba-teaser-info h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 4px;
  font-weight: 700;
}

.ba-teaser-info p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.btn-open-ba {
  background: #ffffff;
  border: 1.5px solid var(--primary-gold);
  color: var(--primary-gold-hover);
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-open-ba:hover {
  background: var(--gold-gradient);
  color: #1a1310;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(200, 157, 77, 0.3);
}

.service-card-gallery-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-gold-hover);
  padding: 6px 0;
  transition: var(--transition-fast);
}

.service-card-gallery-link:hover {
  color: var(--text-dark);
  transform: translateX(3px);
}

.portfolio-window-content {
  padding: 30px;
  overflow-y: auto;
  flex-grow: 1;
}

.p-tab-pane {
  display: none;
}

.p-tab-pane.active {
  display: block;
}

.portfolio-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.p-photo-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 220px;
  background-color: var(--bg-cream);
  border: 1px solid var(--border-light);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.p-photo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-gold);
}

.p-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.p-photo-card:hover img {
  transform: scale(1.06);
}

.p-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  padding: 14px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
}

.new-photos-notice {
  background: var(--gold-light);
  border: 1px dashed var(--primary-gold);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  text-align: center;
  margin-top: 24px;
  color: var(--text-dark);
  font-size: 0.92rem;
}

/* Before & After inside window */
.before-after-container {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  user-select: none;
  border: 1px solid var(--border-light);
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ba-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-image.after-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 3px solid #ffffff;
}

.ba-image.after-image img {
  height: 100%;
  object-fit: cover;
  max-width: none !important;
}

.ba-label {
  position: absolute;
  bottom: 16px;
  z-index: 3;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
}

.ba-label.before-label {
  right: 16px;
}

.ba-label.after-label {
  left: 16px;
  background: var(--gold-gradient);
  color: #1a1310;
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #ffffff;
  z-index: 4;
  cursor: ew-resize;
  transform: translateX(-50%);
}

.ba-slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--gold-gradient);
  border: 3px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1310;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   MODALS: SERVICE "LEARN MORE" & ESTIMATE & LIGHTBOX
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 14, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-box {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-dark);
  z-index: 10;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--text-dark);
  color: #ffffff;
}

.modal-hero-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.modal-content-body {
  padding: 30px;
}

.modal-content-body h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.modal-content-body p {
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 18px;
}

.modal-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.modal-feature-item {
  background: var(--bg-cream);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-feature-item svg {
  color: var(--primary-gold);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 7, 0.94);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-modal img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
}

/* Floating Mobile Quick Action */
.mobile-floating-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 10px 16px;
  z-index: 999;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.mobile-floating-bar-inner {
  display: flex;
  gap: 10px;
}

.mobile-floating-bar .btn-m-call {
  flex: 1;
  background: var(--gold-gradient);
  color: #1a1310;
  font-weight: 700;
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
}

.mobile-floating-bar .btn-m-estimate {
  flex: 1;
  background: #ffffff;
  color: var(--text-dark);
  border: 1.5px solid var(--border-light);
  font-weight: 700;
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1080px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .owner-card-container {
    grid-template-columns: 1fr;
  }
  .owner-photo-side {
    min-height: 340px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .portfolio-modal-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-announcement .container {
    justify-content: center;
    text-align: center;
  }
  .nav-links, .header-cta-group {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 24px;
    border-bottom: 2px solid var(--primary-gold);
    box-shadow: var(--shadow-md);
    gap: 18px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .btn-hero-primary, .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .mobile-floating-bar {
    display: block;
  }
  body {
    padding-bottom: 64px;
  }
  .modal-features-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-modal-grid {
    grid-template-columns: 1fr;
  }
  .slogan-pre-estimate {
    font-size: 1.1rem;
    flex-direction: column;
    gap: 8px;
  }
  .slogan-pre-estimate::before,
  .slogan-pre-estimate::after {
    display: none;
  }
}
