/* ───────────────────────────────────────────────────────────────────
   DOMI COLLECTION — Homepage Editorial v2 (27 Aug 2026)
   Layered on top of styles.css. Scopes a quieter, premium editorial
   look: split hero, hairline framing, one dark brand band, larger
   Cormorant, no bold weights, single rust event per field of view.
   Brand kit rule: no gradients, no tints — solid planes only.
   ─────────────────────────────────────────────────────────────────── */

/* ─── Type scale (editorial, lighter weights) ─────────────────────── */
h1, h2, h3 { font-weight: 400; }
h2 { font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -0.018em; line-height: 1.06; }
h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

.eyebrow,
.editorial-band-eyebrow {
  font-weight: 400;
  letter-spacing: 0.24em;
  font-size: 0.7rem;
}

.lead { font-weight: 400; }

/* ─── Nav — keep transparent over the dark hero (original on-dark behaviour) ── */
.nav-link { font-weight: 400; }
/* Legibility aid for the transparent nav over bright hero photos */
.nav.on-dark .nav-brand,
.nav.on-dark .nav-link { text-shadow: 0 1px 12px rgba(28, 26, 23, 0.55), 0 1px 3px rgba(28, 26, 23, 0.5); }

/* ─── HERO — full-bleed photo, overlaid text, refined bottom scrim ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;      /* text rides low, inside the scrim */
  justify-content: center;   /* centered horizontally */
  text-align: center;
}
/* Refined ink scrim: fully transparent at the very top (photo stays the
   highlight), then a stronger fade through the text zone down to the
   bottom. Tuned to stay legible even on the brightest hero photos. */
.hero-media::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    transparent 0%,
    transparent 28%,
    rgba(28, 26, 23, 0.30) 46%,
    rgba(28, 26, 23, 0.50) 66%,
    rgba(28, 26, 23, 0.64) 86%,
    rgba(28, 26, 23, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--cream);
  padding: 0 var(--gutter) clamp(56px, 8vw, 96px);
  max-width: 860px;
}
.hero-content[data-reveal] { opacity: 1; transform: none; }  /* visible even before reveal JS fires */

.hero-eyebrow {
  color: var(--cream);
  opacity: 0.92;
  margin-bottom: 1.4rem;
  text-shadow: 0 1px 14px rgba(28, 26, 23, 0.55), 0 1px 3px rgba(28, 26, 23, 0.5);
}
.hero h1 {
  color: var(--cream);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  text-shadow: 0 2px 22px rgba(28, 26, 23, 0.6), 0 1px 4px rgba(28, 26, 23, 0.55);
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--cream);
}
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(250, 247, 241, 0.92);
  margin-top: 1.4rem;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.5;
  max-width: 36ch;
  margin-inline: auto;
  text-shadow: 0 1px 14px rgba(28, 26, 23, 0.55), 0 1px 3px rgba(28, 26, 23, 0.5);
}
.hero-cta {
  justify-content: center;
  margin-top: clamp(26px, 3vw, 40px);
  gap: 14px;
}
.hero .btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(250, 247, 241, 0.7);
}
.hero .btn-ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
/* Rust is the single accent event in the hero field of view (the CTA) */
.hero .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--cream); }
.hero .btn-primary:hover { background: var(--accent-h); border-color: var(--accent-h); }

.hero-scroll { color: rgba(250, 247, 241, 0.7); }

@media (max-width: 860px) {
  .hero { min-height: 88vh; }
  .hero-content { padding-bottom: 64px; }
}

/* ─── Buttons — hairline, regular weight ──────────────────────────── */
.btn {
  font-weight: 400;
  padding: 15px 30px;
  border-radius: 0;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

/* ─── Villa cards — hairline frames, flat planes, quiet hover ─────── */
.villa-card {
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: none;
  transition: border-color 0.3s var(--ease);
}
.villa-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--accent);
}
.villa-card-title h3 { font-weight: 400; }
.villa-card-rating .star { color: var(--accent); }
.villa-card-body .btn { font-weight: 400; }

/* ─── EDITORIAL BAND — the one dark moment ────────────────────────── */
.editorial-band {
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(72px, 11vw, 140px);
  border-block: 1px solid var(--ink);
}
.editorial-band-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.editorial-band-rule {
  width: 48px;
  height: 1px;
  background: var(--accent); /* the single rust event in this field of view */
  margin-bottom: 28px;
}
.editorial-band-eyebrow {
  color: rgba(250, 247, 241, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.7rem;
  margin-bottom: 1.6rem;
}
.editorial-band-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.8rem, 4.4vw, 3.4rem);
  line-height: 1.14;
  letter-spacing: -0.012em;
  max-width: 20ch;
  color: var(--cream);
}
.editorial-band-quote em {
  font-style: italic;
  color: rgba(250, 247, 241, 0.82);
}
.editorial-band-attribution {
  margin-top: 2.4rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(250, 247, 241, 0.5);
}

/* ─── Section rhythm ──────────────────────────────────────────────── */
.section-paper { background: var(--paper); }
.section-cream { background: var(--cream); }

/* ───────────────────────────────────────────────────────────────────
   Sitewide brand-kit consistency pass (homepage scope).
   The editorial quote band is the single dark moment, so the
   coming-soon teaser becomes a light plaster panel. Remaining
   gradients and soft shadows are removed; weights drop to 400.
   ─────────────────────────────────────────────────────────────────── */

/* Lighter weights sitewide (kit: light/regular only — no bold) */
body.home h4,
body.home .eyebrow,
body.home .nav-link,
body.home .btn,
body.home .villa-card-badge,
body.home .villa-card-rating,
body.home .villa-card-meta,
body.home .testimonial-attribution,
body.home .poi-name,
body.home .poi-rating,
body.home .coming-soon-tag,
body.home .coming-soon-meta dt,
body.home .coming-soon-meta dd,
body.home .fact-features dt,
body.home .fact-features dd,
body.home .pulse-label,
body.home .chat-sender,
body.home .founder-name,
body.home .footer-brand-mark,
body.home .footer-col h5 {
  font-weight: 400;
}

/* Remove soft drop shadows — flat planes / hairline borders only */
body.home .accordion-item.is-open,
body.home .accordion-visual,
body.home .founder-portrait,
body.home .testimonial,
body.home .location-visual {
  box-shadow: none;
}

/* Founder portrait: drop the radial-mask gradient, use a clean square frame */
body.home .founder-portrait {
  -webkit-mask-image: none;
  mask-image: none;
  border-radius: 0;
  border: 1px solid var(--ink);
  width: min(360px, 86vw);
  height: min(440px, 100vw);
}

/* No gradients: replace photo veils/overlays with solid planes */
body.home #about::before {
  background: rgba(250, 247, 241, 0.9);
}
body.home .location-visual-overlay {
  background: var(--ink);
}

/* ─── Coming Soon — light plaster editorial panel (not dark) ─────── */
body.home .coming-soon {
  background: var(--cream-2);
  color: var(--ink);
}
body.home .coming-soon::before { opacity: 0.04; mix-blend-mode: multiply; }
body.home .coming-soon h2,
body.home .coming-soon p { color: var(--ink); }
body.home .coming-soon .eyebrow { color: var(--muted); }
body.home .coming-soon p.lead,
body.home .coming-soon p[style*="color:rgba(246,241,230"] { color: var(--ink-soft) !important; }
body.home .coming-soon-tag {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}
body.home .coming-soon-meta { border-top-color: var(--line); }
body.home .coming-soon-meta dt { color: var(--muted); }
body.home .coming-soon-meta dd { color: var(--ink); }
body.home .coming-soon-visual {
  background: var(--ink);
  border: 1px solid var(--ink);
}
body.home .coming-soon-visual-text .num { color: var(--cream); }
body.home .coming-soon-visual-text .label { color: var(--cream-2); }
body.home .coming-soon .btn[style*="color:var(--cream)"] {
  color: var(--ink) !important;
  border-color: var(--ink) !important;
}

/* Concierge — quiet the chrome, keep the chat functional */
body.home .pulse-dot,
body.home .pulse-dot::after { background: var(--accent); }
body.home .pulse-label { color: var(--muted); }
body.home .concierge-status { background: transparent; }
body.home .typing-demo { background: var(--cream); border: 1px solid var(--line); }

/* Villa card badge — flat, hairline */
body.home .villa-card-badge {
  background: var(--paper);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--ink);
  color: var(--ink);
}

/* Section headings — larger editorial Cormorant */
body.home h2 { font-size: clamp(2.3rem, 5.2vw, 4rem); }

/* No gradients on textured section backgrounds — solid veil + pattern only */
body.home .testimonials {
  background: var(--paper);
  background-image: url('../img/common/pattern.png');
  background-size: 360px;
}
body.home .concierge {
  background: var(--monsoon);
  background-image: url('../img/common/pattern.png');
  background-size: 22px 22px;
  background-repeat: repeat;
}
