/* Nav container override for full-width sticky */
.container-nav {
  position: relative; /* anchor for [data-nav-menu] absolute positioning */
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 3vw, var(--space-10));
}

/* ============================================================
   EDWARDS KITCHEN & BATH — Component Styles
   ============================================================ */

/* ---- NAV ---- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: var(--space-4);
  display: flex;
  justify-content: center;
  pointer-events: none; /* let clicks through the transparent gap above capsule */
  transition: padding var(--transition-slow);
}

/* Floating glass nav capsule — luxury editorial feel */
.nav-inner {
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  width: 100%;
  max-width: 1360px;
  /* Warm cream glass — not pure white, not opaque */
  background: rgba(253, 251, 247, 0.82);
  backdrop-filter: blur(20px) saturate(1.8) brightness(1.04);
  -webkit-backdrop-filter: blur(20px) saturate(1.8) brightness(1.04);
  /* Subtle champagne-gold border */
  border: 1px solid rgba(193, 163, 125, 0.28);
  border-top: 1px solid rgba(255, 252, 245, 0.65);
  border-radius: 14px;
  padding: 10px var(--space-3) 10px var(--space-5);
  /* Layered shadow for depth + top highlight for glass illusion */
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 -1px 0 rgba(193, 163, 125, 0.12) inset,
    0 4px 6px rgba(28, 26, 24, 0.04),
    0 10px 30px rgba(28, 26, 24, 0.09),
    0 20px 60px rgba(28, 26, 24, 0.06);
  transition: background var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
}

#site-header.scrolled {
  padding-block: var(--space-3);
}

#site-header.scrolled .nav-inner {
  background: rgba(253, 251, 247, 0.95);
  border-color: rgba(193, 163, 125, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 -1px 0 rgba(193, 163, 125, 0.15) inset,
    0 8px 24px rgba(28, 26, 24, 0.11),
    0 20px 50px rgba(28, 26, 24, 0.08),
    0 1px 3px rgba(28, 26, 24, 0.06);
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-logo img,
.nav-logo svg {
  height: 50px;
  width: auto;
  display: block;
}

/* Logo always in original brand colors — no filter */

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #211F1C; /* hardcoded dark — always visible on cream capsule */
  white-space: nowrap;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--color-brand);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--color-brand); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--color-brand); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav-phone {
  font-size: 0.9rem;
  font-weight: 600;
  color: #3a3835; /* darker — clearly readable */
  letter-spacing: 0.02em;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
}
.nav-phone:hover { color: var(--color-brand); }
.nav-phone svg { opacity: 0.55; }

/* Schedule Consultation — filled brand red = default state */
.nav-cta {
  background: var(--color-brand);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6em 1.5em;
  border-radius: 8px;
  border: 1.5px solid var(--color-brand);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.nav-cta:hover {
  background: transparent;
  color: var(--color-brand);
  border-color: var(--color-brand);
}

/* Theme toggle — hidden, light-only site */
[data-theme-toggle] {
  display: none;
}

/* Mobile hamburger */
[data-nav-toggle] {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid rgba(28,26,24,0.12);
  color: #211F1C;
  cursor: pointer;
  transition: background var(--transition);
}
[data-nav-toggle]:hover { background: rgba(28,26,24,0.07); }

/* Mobile Nav Menu */
[data-nav-menu] {
  display: none;
  position: fixed;
  /* Start BELOW the floating header so the hamburger button stays clickable */
  top: 74px;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 3px solid var(--color-brand);
  box-shadow: 0 12px 40px rgba(28,26,24,0.18);
  padding: var(--space-6);
  flex-direction: column;
  gap: var(--space-2);
  z-index: 99; /* just below header z-index 100 */
  pointer-events: all;
}

/* Scrolled header is shorter — JS adds .nav-menu-scrolled to move top up */
[data-nav-menu].nav-menu-scrolled {
  top: 62px;
}

[data-nav-menu].open {
  display: flex;
}

[data-nav-menu] .nav-links {
  display: flex !important; /* override the @media (max-width:960px) hide */
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: 100%;
}

[data-nav-menu] .nav-links a {
  color: var(--color-text);
  font-size: var(--text-base);
  padding-block: var(--space-3);
  width: 100%;
  border-bottom: 1px solid var(--color-divider);
}

[data-nav-menu] .nav-phone,
[data-nav-menu] .nav-cta {
  display: flex !important; /* override the @media (max-width:960px) hide */
  color: var(--color-text);
}

[data-nav-menu] .nav-cta {
  margin-top: var(--space-4);
  width: 100%;
  text-align: center;
  justify-content: center;
  background: var(--color-brand);
  border-color: var(--color-brand);
  font-size: var(--text-sm);
  padding: 0.75em 1.5em;
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .nav-cta { display: none; }
  [data-nav-toggle] { display: flex; }
}

@media (max-width: 480px) {
  /* On very small screens keep nav-inner padding tight */
  .nav-inner {
    padding: 8px var(--space-3) 8px var(--space-3);
  }
}

@media (max-width: 600px) {
  .nav-logo img { height: 44px; }
}

/* ---- FOOTER ---- */
.site-footer {
  background: #1C1A18;
  color: var(--color-dark-text);
  padding-block: clamp(var(--space-16), 6vw, var(--space-24));
  border-top: 3px solid #630b11;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  margin-bottom: clamp(var(--space-10), 4vw, var(--space-16));
}

.footer-brand-card {
  display: inline-block;
  background: #F5F2EC;
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-5);
}

.footer-brand-card img {
  height: 48px;
  width: auto;
  display: block;
  margin-bottom: var(--space-3);
}

.footer-brand-card .footer-tagline {
  margin-bottom: 0;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-5);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-dark-muted);
  margin-bottom: var(--space-3);
  line-height: 1.5;
}

.footer-contact-item a:hover {
  color: var(--color-accent-tan);
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-accent-tan);
  opacity: 0.7;
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(193,163,125,0.85);
  margin-bottom: var(--space-5);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(204, 202, 198, 0.65);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent-tan);
}

.footer-links--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}

.footer-links--inline li::after {
  content: '·';
  margin-left: var(--space-4);
  color: rgba(204,202,198,0.2);
  font-size: var(--text-xs);
}

.footer-links--inline li:last-child::after { content: ''; margin: 0; }

.footer-hours-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: rgba(204, 202, 198, 0.65);
  margin-bottom: var(--space-2);
}

.footer-hours-row span:first-child {
  color: rgba(204,202,198,0.4);
  font-size: var(--text-xs);
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(193,163,125,0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: rgba(204,202,198,0.35);
  max-width: none;
}

.footer-bottom a:hover {
  color: var(--color-accent-tan);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- TRUST BAR ---- */
.trust-bar {
  background: #630b11;
  padding-block: var(--space-5);
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(var(--space-3), 2vw, var(--space-6));
  flex-wrap: nowrap;
  overflow: hidden;
  max-width: 1400px;
  width: 100%;
  padding-inline: clamp(var(--space-4), 3vw, var(--space-10));
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #F5F2EC;
  white-space: nowrap;
  flex-shrink: 0;
}

.trust-item svg {
  color: rgba(245,242,236,0.75);
  flex-shrink: 0;
}

.trust-bar-divider {
  width: 1px;
  height: 20px;
  background: rgba(245,242,236,0.25);
}

@media (max-width: 600px) {
  .trust-bar-divider { display: none; }
  .trust-item { font-size: 0.65rem; }
  .trust-bar-inner { gap: var(--space-3); }
}

/* ---- FAQ ACCORDION ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-divider);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-5);
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--color-brand); }

.faq-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  position: relative;
  color: var(--color-accent-tan);
  transition: transform var(--transition);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.faq-icon::before { width: 12px; height: 1.5px; }
.faq-icon::after  { width: 1.5px; height: 12px; }

.faq-item.open .faq-icon::after {
  transform: scaleY(0);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
  padding-bottom: var(--space-5);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ---- TESTIMONIAL CARDS ---- */
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.testimonial-stars {
  display: flex;
  gap: var(--space-1);
  color: var(--color-accent-tan);
  margin-bottom: var(--space-2);
}

.testimonial-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #630b11;
  background: rgba(99,11,17,0.08);
  border: 1px solid rgba(99,11,17,0.18);
  border-radius: 100px;
  padding: 0.25em 0.85em;
  margin-bottom: var(--space-1);
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  line-height: 1.5;
  color: var(--color-text);
  flex: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.testimonial-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.testimonial-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

/* ---- SECTION HEADER utility ---- */
.section-header {
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
  font-size: var(--text-2xl);
}

/* Size modifiers — replaces scattered inline font-size overrides */
.section-title--lg  { font-size: var(--text-3xl); }
.section-title--sm  { font-size: var(--text-xl); }
.section-title--xs  { font-size: var(--text-lg); }

.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 56ch;
  margin-top: var(--space-4);
  margin-inline: auto;
  text-align: center;
}

/* Dark section variants */
.section--dark .section-title { color: var(--color-dark-text); }
.section--dark .section-sub   { color: var(--color-dark-muted); }

/* ---- FULL-BLEED IMAGE DIVIDER ---- */
.img-divider {
  position: relative;
  height: clamp(360px, 50vw, 620px);
  overflow: hidden;
}

.img-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 6s ease-out;
}

.img-divider:hover img { transform: scale(1); }

.img-divider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28,26,24,0.72) 0%, rgba(28,26,24,0.45) 60%, rgba(28,26,24,0.62) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  padding: var(--space-8);
}

.img-divider-text {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 3rem);
  font-style: italic;
  font-weight: 300;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.img-divider-stats {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
  justify-content: center;
}

.img-divider-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  background: rgba(245,242,236,0.12);
  border: 1px solid rgba(245,242,236,0.2);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  min-width: 120px;
}

.img-divider-stat-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: #fff;
  line-height: 1;
}

.img-divider-stat-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.7);
  text-align: center;
}

@media (max-width: 640px) {
  .img-divider-text { white-space: normal; font-size: clamp(1.3rem, 5vw, 2rem); }
  .img-divider-stat { min-width: 90px; padding: var(--space-3) var(--space-4); }
  .img-divider-stats { gap: var(--space-3); }
}

/* ---- CTA BANNER ---- */
.cta-banner {
  background: var(--color-surface-offset);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-8), 5vw, var(--space-16));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.cta-banner--dark {
  background: var(--color-dark-bg);
  color: var(--color-dark-text);
}

.cta-banner-text h3 {
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: var(--space-2);
}

.cta-banner-text p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.cta-banner--dark .cta-banner-text p {
  color: var(--color-dark-muted);
}

.cta-banner-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE AUDIT FIXES — July 2026
   ============================================================ */

/* ---- FIX 1: Nav at 1200px — CTA button clipping ---- */
@media (max-width: 1280px) {
  .nav-cta {
    font-size: 0.68rem;
    padding: 0.55em 1.1em;
    letter-spacing: 0.06em;
  }
  .nav-phone {
    font-size: 0.82rem;
  }
  .nav-links {
    gap: var(--space-5);
  }
  .nav-links a {
    font-size: 0.8rem;
  }
}

/* ---- FIX 2 & 3: Hero review line + CTA layout on mobile ---- */
@media (max-width: 600px) {
  /* Review: keep stars and text on one row, don't let text float-wrap */
  .hero-review {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: var(--space-2);
  }
  .hero-review-stars {
    flex-shrink: 0;
    padding-top: 2px;
  }
  .hero-review-text {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  /* CTAs: stack vertically, both full-width and equal weight */
  .hero-actions {
    flex-direction: column;
    gap: var(--space-3);
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Side-by-side on 430+ (pro/plus phones) */
@media (min-width: 430px) and (max-width: 600px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: nowrap;
  }
  .hero-actions .btn {
    flex: 1;
    min-width: 0;
  }
}

/* ---- FIX 8: Audience cards — 2-col at 768px tablet ---- */
@media (min-width: 600px) and (max-width: 900px) {
  .audience-grid {
    grid-template-columns: 1fr 1fr;
  }
  .audience-card:last-child {
    grid-column: 1 / -1;
  }
  .audience-card { min-height: 340px; }
}

/* ---- FIX 10: Footer service areas on mobile ---- */
@media (max-width: 600px) {
  .footer-links--inline {
    gap: var(--space-1) var(--space-3);
  }
  .footer-links--inline a {
    font-size: var(--text-xs);
  }
}

/* ---- FIX 11: Section vertical padding — tighter on mobile ---- */
@media (max-width: 600px) {
  .section {
    padding-top: clamp(2.5rem, 8vw, 3.5rem);
    padding-bottom: clamp(2.5rem, 8vw, 3.5rem);
  }
  .section-header {
    margin-bottom: var(--space-8);
  }
}


/* ============================================================
   RESPONSIVE AUDIT — ROUND 2 (July 2026)
   ============================================================ */

/* ---- R2-1: Trust bar — 2×2 grid on narrow mobile ---- */
@media (max-width: 500px) {
  .trust-bar-inner {
    /* Switch from single-row flex to 2×2 grid */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2) var(--space-2);
    overflow: visible;
    justify-items: start;
    /* Remove horizontal padding so columns have full width */
    padding-inline: var(--space-4);
  }
  /* Hide the vertical dividers — they don't work in a grid */
  .trust-bar-divider {
    display: none;
  }
  .trust-item {
    font-size: 0.6rem;
    gap: 5px;
    /* Allow text to wrap within each column */
    white-space: normal;
    line-height: 1.3;
    align-items: flex-start;
  }
  .trust-item svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    margin-top: 1px;
  }
  .trust-bar {
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
  }
}

/* ---- R2-2: Image divider — stats fit without overflow on mobile ---- */
@media (max-width: 600px) {
  .img-divider {
    /* Use min-height so the container grows to fit 2 rows of stat cards */
    height: auto;
    min-height: 440px;
  }
  .img-divider img {
    /* Make the img position:absolute so it covers the auto-height container */
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
  }
  .img-divider-overlay {
    padding: var(--space-6) var(--space-4);
    gap: var(--space-5);
    justify-content: center;
  }
  .img-divider-stats {
    /* 2×2 grid instead of wrapping flex */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    width: 100%;
  }
  .img-divider-stat {
    min-width: unset;
    width: 100%;
    padding: var(--space-3);
  }
  .img-divider-stat-number {
    font-size: var(--text-xl);
  }
  .img-divider-text {
    font-size: clamp(1.1rem, 4.5vw, 1.4rem);
    white-space: normal;
    text-align: center;
  }
}
