/* theme.css — cinematic stylesheet (Phase 1).
   ─────────────────────────────────────────────────────────────────────────
   Warm-cream palette + Fraunces headlines + Inter body. Hero is video-first,
   sections float in on scroll, nav is hidden during hero and slides in
   after the user scrolls past.

   Variable contract (kept for future yaml->:root injection):
     clients/{slug}.yaml.brand.* -> --color-/--font- variables. build.py
     does not yet inject these — defaults below match the cinematic spec.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --bg-base:           #faf7f0;
  --bg-elevated:       #f0ebe0;
  --color-text:        #1a1a1a;
  --color-muted:       #6b6359;
  --color-accent:      #b8763a;
  --color-accent-soft: #d4a574;
  --color-border:      #e6dfd1;

  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --nav-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

img, video { display: block; max-width: 100%; }

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-soft); }

/* ─── Sticky nav (hidden during hero, slides in after) ───
   Default state is hidden — pages without a hero get .is-visible from JS
   immediately on DOMContentLoaded so non-hero pages still show the nav.
   This prevents FOUC on the home page where the nav must be invisible
   during the cinematic descent. */
.site-nav-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: rgba(250, 247, 240, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 1rem clamp(1.5rem, 5vw, 3rem);
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}
.site-nav-sticky.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.site-nav-sticky.is-hidden-on-hero {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.site-nav-sticky .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.site-nav-sticky .brand:hover { color: var(--color-accent); }
.site-nav-sticky .brand img { height: 28px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-nav a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--color-accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.6rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 4px 0;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    order: 3;
    padding: 0.5rem 0 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: #000;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero-poster-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;          /* vertical center */
  align-items: flex-end;            /* push to right column */
  padding: clamp(2rem, 5vw, 4rem);
  /* Gradient runs LEFT->RIGHT (transparent -> dark) so the tower on
     the left stays clean and the text on the right has contrast. */
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.45) 25%,
    rgba(0, 0, 0, 0.15) 55%,
    rgba(0, 0, 0, 0) 75%
  );
}

/* Inner container holding copy + CTAs; .is-visible is added by
   cinematic.js at ~80% of the video duration so the text appears
   as the camera settles on the tower. */
.hero-overlay-content {
  width: clamp(280px, 42vw, 540px);
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}
.hero-overlay-content.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-copy {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
.hero-ctas {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 2px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease;
  font-size: 1rem;
  letter-spacing: 0.02em;
  display: inline-block;
}
.btn-primary:hover { background: var(--color-accent-soft); color: #fff; }

.btn-secondary {
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  opacity: 0.85;
  transition: opacity 0.3s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
  font-size: 1rem;
}
.btn-secondary:hover { opacity: 1; color: #fff; }

/* ─── Section scaffolding ─── */
.site-main { }
section {
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
}
.section-inner {
  max-width: 900px;
  margin: 0 auto;
}
.section-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 2rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.section-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-text);
  margin: 0 0 1.25rem;
}
.section-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-muted);
  margin: 0;
}

/* ─── Float-in scroll reveal ─── */
.float-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.float-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Footer ─── */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--color-border);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 3rem);
  color: var(--color-muted);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: center;
}
.footer-realtor {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
  margin: 0;
}
.footer-realtor a {
  color: var(--color-text);
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 1px;
  transition: color 0.2s ease;
}
.footer-realtor a:hover { color: var(--color-accent); }
.footer-contact {
  font-size: 0.95rem;
  margin: 0;
}
.footer-contact a {
  color: var(--color-muted);
  transition: color 0.2s ease;
}
.footer-contact a:hover { color: var(--color-accent); }
.footer-legal {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0.5rem 0 0;
}


/* ─── Mobile hero overlay sizing ─── */
@media (max-width: 768px) {
  /* Drop flex centering on mobile — use absolute positioning on the
     content for exact placement that matches the design. */
  .hero-overlay {
    padding: 0;
    background: linear-gradient(
      to left,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.4) 35%,
      rgba(0, 0, 0, 0) 75%
    );
  }
  .hero-overlay-content {
    position: absolute;
    right: 4vw;
    top: 42%;
    transform: translateY(-50%);
    width: min(55vw, 220px);
    text-align: center;
    /* Override desktop's translateY fade — use opacity only on mobile
       since we need to maintain the vertical centering transform. */
    opacity: 0;
    transition: opacity 1.2s ease-out;
  }
  .hero-overlay-content.is-visible {
    opacity: 1;
    transform: translateY(-50%);   /* keep centered, don't slide */
  }
  .reveal-copy {
    font-size: clamp(1.05rem, 4.2vw, 1.5rem);
    line-height: 1.3;
  }
  .hero-ctas {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
  }
  .btn-primary {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* ─── Reduced motion + saveData ─── */
@media (prefers-reduced-motion: reduce) {
  .float-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-overlay-content {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-video { display: none; }
  .hero-poster-fallback { display: block !important; }
  .site-nav-sticky { transition: none !important; }
}

/* ═══ PHASE 2 SECTIONS ═══ */

/* ─── SECTION SHARED ─── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-lead {
  color: var(--color-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-top: -0.5rem;
}
.section-footer-link {
  text-align: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.section-footer-link a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.3s;
}
.section-footer-link a:hover { opacity: 0.7; }

/* ─── FEATURED LISTINGS ─── */
.featured-listings { background: var(--bg-base); }
.listings-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
}
.listing-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.listing-card-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-elevated);
}
.listing-card-photo--empty {
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-base));
}
.listing-card-body { padding: 1.25rem; }
.listing-card-status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}
.listing-card-status--active      { background: #e8f5e9; color: #2e7d32; }
.listing-card-status--pending     { background: #fff8e1; color: #b8763a; }
.listing-card-status--sold        { background: #e3f2fd; color: #1565c0; }
.listing-card-status--coming-soon { background: #f3e5f5; color: #6a1b9a; }
.listing-card-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}
.listing-card-address { font-weight: 500; margin: 0; }
.listing-card-locality {
  color: var(--color-muted);
  margin: 0.15rem 0 0.75rem;
  font-size: 0.95rem;
}
.listing-card-stats {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ─── ABOUT ─── */
.about { background: var(--bg-elevated); }
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-photo img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--bg-base), var(--color-muted));
  border-radius: 4px;
}
.about-tagline {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}
.about-tagline a {
  color: var(--color-muted);
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.2);
}
.about-paragraph {
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--color-text);
}
.about-meta {
  margin-top: 1.5rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-style: italic;
}
.about-link { margin-top: 1.5rem; }
.about-link a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
}

/* ─── TESTIMONIALS ─── */
.testimonials { background: var(--bg-base); }
.testimonials-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2rem);
}
.testimonial-card {
  background: #fff;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}
.testimonial-stars {
  color: #f5b400;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.testimonial-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  color: var(--color-text);
  flex-grow: 1;
}
.testimonial-quote::before { content: '\201C'; margin-right: 0.1em; }
.testimonial-quote::after  { content: '\201D'; margin-left:  0.1em; }
.testimonial-name {
  font-weight: 600;
  margin: 0;
  color: var(--color-text);
}
.testimonial-badge {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* ─── SERVICE AREAS ─── */
.service-areas { background: var(--bg-elevated); }
.service-areas-pills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.service-area-pill {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  color: var(--color-text);
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}
.service-area-pill:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* ─── CONTACT CTA ─── */
.contact-cta {
  background: var(--color-text);
  color: #fff;
}
.contact-cta-inner {
  text-align: center;
  max-width: 720px;
}
.contact-cta-heading {
  color: #fff;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  margin-bottom: 1rem;
}
.contact-cta-meta {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}
.contact-cta-btn { display: inline-block; }

/* ─── MOBILE RESPONSIVE FOR PHASE 2 SECTIONS ─── */
@media (max-width: 900px) {
  .listings-row,
  .testimonials-row { grid-template-columns: 1fr; }
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-photo {
    max-width: 240px;
    margin: 0 auto;
  }
}


/* ═══ LEGACY COMPONENT STYLES (for inner pages) ═══
   These restyle the legacy class names the inner-page templates
   (listings/index.html, listings/listing.html, search/index.html,
   contact/index.html, about/buyers/sellers/blog) still use, so
   they pick up the cinematic palette + typography without needing
   template surgery. */

.page-header {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.5rem, 5vw, 4rem) clamp(2rem, 5vw, 3rem);
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  margin: 0 0 1rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.page-subtitle,
.lede {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 720px;
}

/* /listings/ index grid — reuses the same .listing-card style as
   the home featured-listings section. */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem);
  max-width: 1400px;
  margin: 0 auto;
}

/* /listings/<slug>/ detail */
.listing-detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 3rem);
}
.listing-detail-gallery { margin-bottom: 2rem; }
.listing-detail-main-photo {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  cursor: zoom-in;
}
.listing-gallery-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  cursor: pointer;
}
.listing-detail-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 500;
  margin: 0;
  color: var(--color-text);
}
.listing-detail-price {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  color: var(--color-accent);
  font-weight: 600;
  margin: 0.5rem 0;
}
.listing-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--color-muted);
  margin: 1rem 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.listing-description { line-height: 1.7; margin: 1.5rem 0; }
.listing-agent {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border-radius: 4px;
}
.listing-agent h2 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
}
.listing-cta-row {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* /contact/ form */
.form-stack {
  max-width: 600px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 5vw, 2rem);
  display: grid;
  gap: 1.25rem;
}
.form-stack label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
.form-stack input,
.form-stack select,
.form-stack textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.3s;
}
.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.form-stack textarea {
  min-height: 140px;
  resize: vertical;
}
.form-stack button[type="submit"] {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 2px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}
.form-stack button[type="submit"]:hover {
  background: var(--color-accent-soft);
}
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* /search/ filters */
.search-controls {
  background: var(--bg-elevated);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 4px;
  max-width: 1200px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.search-controls label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.search-controls input,
.search-controls select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  font-family: inherit;
  background: #fff;
  margin-top: 0.25rem;
}
.search-results-count {
  text-align: center;
  color: var(--color-muted);
  margin: 1rem 0 2rem;
}

/* /blog/ */
.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 3rem);
}
.blog-post-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
}
.blog-post-card h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
}
.blog-post-card .post-date {
  color: var(--color-muted);
  font-size: 0.85rem;
}

/* Generic prose pages (buyers, sellers, about long-form) */
.content-prose {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 3rem);
  line-height: 1.75;
  color: var(--color-text);
}
.content-prose h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  margin-top: 2.5rem;
}
.content-prose p { margin: 0 0 1.25rem; }

/* ═══ FAQ ═══ */
.faq { background: var(--bg-base); }
.faq-groups {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  max-width: 860px;
  margin: 0 auto;
}
.faq-group-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--color-accent);
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(184, 118, 58, 0.2);
  padding-bottom: 0.75rem;
}
.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0;
}
.faq-item[open] {
  background: var(--bg-elevated);
  margin: 0 -1.5rem;
  padding: 0 1.5rem;
  border-radius: 4px;
  border-bottom-color: transparent;
}
.faq-question {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--color-text);
  position: relative;
  transition: color 0.2s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--color-accent);
  font-weight: 300;
  transition: transform 0.3s ease;
}
.faq-item[open] > .faq-question::after {
  content: '\2212';   /* minus */
  transform: translateY(-50%);
}
.faq-question:hover { color: var(--color-accent); }
.faq-answer {
  padding: 0 0 1.5rem;
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 760px;
}
.faq-answer p { margin: 0; }

/* ═══ BLOG INDEX ═══ */
.blog-index { padding: clamp(4rem, 10vw, 7rem) clamp(1.5rem, 5vw, 4rem); }
.blog-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 1100px;
  margin: 0 auto;
}
.blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 4px;
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.blog-card-date {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.blog-card-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  margin: 0 0 0.75rem;
  line-height: 1.3;
  color: var(--color-text);
}
.blog-card-excerpt {
  color: var(--color-muted);
  margin: 0 0 1rem;
  line-height: 1.6;
}
.blog-card-link {
  color: var(--color-accent);
  font-weight: 500;
  margin: 0;
}
.blog-empty {
  text-align: center;
  color: var(--color-muted);
  padding: 4rem 0;
  font-style: italic;
}

/* ═══ BLOG POST ═══ */
.blog-post { padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 3rem); }
.blog-post .section-inner { max-width: 720px; }
.blog-post-header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.blog-post-date {
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin: 0 0 1rem;
}
.blog-post-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--color-text);
  letter-spacing: -0.015em;
}
.blog-post-excerpt {
  color: var(--color-muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.5;
  margin: 0;
}
.blog-post-body {
  font-size: clamp(1.05rem, 1.5vw, 1.125rem);
  line-height: 1.75;
  color: var(--color-text);
}
.blog-post-body h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  color: var(--color-text);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}
.blog-post-body p { margin: 0 0 1.25rem; }
.blog-post-body a { color: var(--color-accent); }
.blog-post-footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--color-muted);
}
.blog-post-footer a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* ═══ FAQ PAGE (dedicated) ═══ */
.faq-page {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--bg-base);
}
.faq-page .section-inner { max-width: 860px; }
.faq-page .page-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding: 0;
}
.faq-page .page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 500;
  margin: 0 0 1.25rem;
  color: var(--color-text);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.faq-page .lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

.page-cta {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
}
.page-cta p {
  margin: 0 0 1.25rem;
  color: var(--color-muted);
}

/* ═══ CTA BLOCKS (reusable across pages) ═══ */
.cta-block {
  margin: clamp(2.5rem, 5vw, 4rem) auto;
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--bg-elevated);
  border-radius: 4px;
  max-width: 720px;
  text-align: center;
}
.cta-heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin: 0 0 0.75rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.cta-sub {
  color: var(--color-muted);
  margin: 0 0 1.5rem;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
}
.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.cta-mobile { display: none; }
.cta-desktop { display: inline-block; }
.cta-phone-desktop {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}
.cta-phone-desktop a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .cta-mobile  { display: inline-block; }
  .cta-desktop { display: none; }
  .cta-phone-desktop { display: none; }
}

/* ═══ FLOATING CALL BUTTON (mobile only, top-right) ═══ */
.floating-call-btn {
  position: fixed;
  top: 18px;   /* vertical center against .nav-toggle: 1rem header pad + 0.6rem toggle pad + 11 (half span stack) = ~36.6px; button ~36.6px tall, so top = 18 */
  left: auto;
  right: 76px; /* sits just left of hamburger: 1.5rem right-pad (24) + 24px span + 2*0.6rem toggle pad (19.2) + ~8px gap */
  z-index: 200;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: none;
  opacity: 0;
  transform: translateY(-100px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  white-space: nowrap;
}
.floating-call-btn.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.floating-call-btn:hover {
  background: var(--color-accent-soft);
}

@media (max-width: 768px) {
  .floating-call-btn { display: inline-block; }
  .nav-toggle { position: relative; z-index: 201; }
}

/* ═══ FORM CONTEXT INDICATOR (set by cinematic.js on /contact/?context=…) ═══ */
.form-context-indicator {
  background: var(--bg-elevated);
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--color-accent);
  margin: 0 0 1.5rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  border-radius: 2px;
}
