/* ============================================================================
   Iteration 18 — "Cinematic Concierge"
   Layered ON TOP of the base styles.css (which stays the shared monochrome
   editorial system). This file: (1) warms the palette and introduces a single
   deliberate Golden Gate accent, (2) lays out the new nav with prominent
   For Lease / Leased CTAs, (3) adds the Compass affiliation footer, and
   (4) defines the new immersive components — animated stat counters, the
   Recent Press band, the Instagram phone, and the cinematic property-tour
   panel. All motion is reduced-motion gated (see base + the guard at the end).
   ========================================================================== */

:root {
  /* Warm-neutral re-tint of the mono system (kept high-contrast for AA) */
  --ink:        #17130E;   /* warm near-black */
  --ink-soft:   #3a342d;
  --muted:      #6b6157;   /* warm grey — ~5.4:1 on paper (AA) */
  --bg-alt:     #f5f1ea;   /* warm ivory band */
  --line:       #e8e2d8;
  --line-2:     #d8cfc1;

  /* The one accent: Golden Gate International Orange, used sparingly */
  --accent:      #b8431f;  /* white text on this ≈ 5.3:1 (AA) */
  --accent-deep: #93330f;
  --accent-tint: #f7ece4;

  --shadow-lift: 0 30px 60px -34px rgba(23,19,14,.5);
}

/* ---- Accent applications (deliberate, sparing) --------------------------- */
.eyebrow.eyebrow--accent { color: var(--accent); }
.eyebrow.eyebrow--accent::before { background: var(--accent); }
.accent { color: var(--accent); }
.prose a:hover, .link:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================================
   NAV — flex row holding text links + the CTA pill group + phone
   ========================================================================== */
.nav { margin-left: auto; display: flex; align-items: center; gap: var(--s-5); }
.nav__list { gap: var(--s-4); }
.nav__cta { display: inline-flex; gap: var(--s-2); }

.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 18px;
  font-family: var(--ff-normal); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1.5px solid transparent; border-radius: 2px;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.nav-cta--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.nav-cta--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-1px); }
.nav-cta--ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.nav-cta--ghost:hover { background: rgba(255,255,255,.16); }
.nav-cta[aria-current="page"] { box-shadow: inset 0 -3px 0 rgba(255,255,255,.7); }

/* scrolled / menu-open → ghost pill flips to ink */
.site-header.is-scrolled .nav-cta--ghost,
body.nav-open .site-header .nav-cta--ghost { color: var(--ink); border-color: var(--line-2); }
.site-header.is-scrolled .nav-cta--ghost:hover,
body.nav-open .site-header .nav-cta--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.site-header.is-scrolled .nav-cta--primary[aria-current="page"],
.site-header.is-scrolled .nav-cta--ghost[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); }

@media (max-width: 1180px) and (min-width: 1041px) {
  .nav__list { gap: var(--s-3); }
  .nav__link { font-size: 0.78rem; }
}
@media (max-width: 1040px) {
  .nav { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__cta { flex-direction: column; gap: var(--s-3); padding: var(--s-4) var(--s-6) 0; }
  .nav-cta { min-height: 52px; justify-content: center; }
  .nav-cta--ghost { color: var(--ink); border-color: var(--line-2); }
  .nav__phone { justify-content: center; padding: var(--s-5) var(--s-6); margin: 0; border-left: 0; }
}

/* ============================================================================
   Iteration 30 — header social cluster (Instagram-forward), right of the phone.
   Lives here because every page loads iteration-18.css; the colour is the
   sanctioned brand-logo exception to the monochrome system.
   ========================================================================== */
/* Wrapper around the call button + social icons. Invisible on desktop
   (display: contents keeps both in the nav's own flex row); in the condensed
   dropdown it becomes the single centered row holding phone + socials. */
.nav__contact { display: contents; }
.site-header__social { display: inline-flex; align-items: center; gap: var(--s-4); }
.site-header__social .social {
  width: 22px; height: 22px; border: 0; background: transparent; overflow: visible;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .22s var(--ease-out), filter .22s var(--ease);
}
.site-header__social .social svg { width: 100%; height: 100%; fill: none; display: block; }
.site-header__social .social--instagram { width: 26px; height: 26px; } /* a touch more prominent */
.site-header__social .social:hover,
.site-header__social .social:focus-visible { transform: translateY(-2px) scale(1.1); filter: drop-shadow(0 6px 12px rgba(0,0,0,.35)); }
.site-header__social .social:active { transform: translateY(0) scale(1.04); }
@media (max-width: 1040px) {
  .nav__contact { display: flex; align-items: center; justify-content: center; gap: var(--s-5); padding: var(--s-4) var(--s-6) var(--s-5); }
  .site-header__social { gap: var(--s-5); padding: 0; }
  /* glyphs stay 30px; the pseudo-element carries the 44px thumb target */
  .site-header__social .social { width: 30px; height: 30px; position: relative; }
  .site-header__social .social::after { content: ""; position: absolute; inset: -7px; }
  .site-header__social .social--instagram { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header__social .social { transition: none; }
  .site-header__social .social:hover, .site-header__social .social:active { transform: none; }
}

/* Green circular phone call-button — replaces the phone-number text in the top
   bar (owner-requested). Colour is a deliberate exception, like the brand icons. */
.nav__call {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: #4e9a3f; color: #fff;
  box-shadow: 0 6px 16px -6px rgba(78,154,63,.6);
  transition: background .2s var(--ease), transform .2s var(--ease-out);
}
.nav__call svg { width: 20px; height: 20px; display: block; }
.nav__call:hover { background: #3f8531; transform: translateY(-2px); }
.nav__call:active { transform: translateY(0); }
@media (max-width: 1040px) {
  .nav__call { margin: 0; width: 54px; height: 54px; }
  .nav__call svg { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) { .nav__call { transition: none; } .nav__call:hover { transform: none; } }

/* ============================================================================
   HERO polish — cinematic darkening + eyebrow + scroll cue
   ========================================================================== */
.hero::after { background: linear-gradient(180deg, rgba(14,11,8,.46) 0%, rgba(14,11,8,.30) 38%, rgba(14,11,8,.72) 100%); }
.hero__eyebrow { margin-bottom: var(--s-5); }
.hero__sub { max-width: 50ch; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); justify-content: center;
  margin-top: var(--s-6); color: rgba(255,255,255,.92);
  font-size: 0.74rem; letter-spacing: .18em; text-transform: uppercase;
}
.hero__meta span { display: inline-flex; align-items: center; gap: var(--s-3); }
.hero__meta span + span::before { content: ""; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; margin-right: var(--s-3); }
.scroll-cue {
  position: absolute; left: 50%; bottom: var(--s-6); transform: translateX(-50%); z-index: 2;
  color: rgba(255,255,255,.8); font-size: 0.64rem; letter-spacing: .22em; text-transform: uppercase;
  display: inline-flex; flex-direction: column; align-items: center; gap: var(--s-2);
}
.scroll-cue::after { content: ""; width: 1px; height: 40px; background: linear-gradient(rgba(255,255,255,.7), transparent); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* section index marker (encodes the real running order of the page) */
.section-index { font-family: var(--ff-normal); font-size: 0.72rem; font-weight: 600; letter-spacing: .2em; color: var(--accent); }

/* ============================================================================
   STAT COUNTERS — Tracy-Tutor-style animated numbers (counters.js drives them)
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
.stat { text-align: center; padding: var(--s-5) var(--s-3); border-top: 2px solid var(--accent); }
.stat__num { font-family: var(--ff-header); font-weight: 500; line-height: 1; color: var(--ink); font-size: clamp(2.4rem, 1.6rem + 2.8vw, 3.6rem); letter-spacing: -0.02em; }
.stat__num .unit { color: var(--accent); }
.stat__label { margin-top: var(--s-3); font-size: 0.74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.section--ink .stat { border-top-color: var(--accent); }
.section--ink .stat__num { color: #fff; }
.section--ink .stat__label { color: rgba(255,255,255,.72); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); } }

/* ============================================================================
   RECENT PRESS — "As Featured In" logo row + top-3 press cards
   ========================================================================== */
.featured-in { text-align: center; }
.featured-in__label { font-size: 0.7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-5); }
.featured-in__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-5) var(--s-8); }
.featured-in__row span { font-family: var(--ff-header); font-size: clamp(1.05rem, .9rem + .7vw, 1.5rem); color: var(--ink); opacity: .62; transition: opacity .25s var(--ease); white-space: nowrap; }
.featured-in__row a:hover span, .featured-in__row span:hover { opacity: 1; }
.featured-in__row a { border: 0; }

.press-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); margin-top: var(--s-8); }
.press-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.press-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-lift); }
.press-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--bg-alt) center/cover no-repeat; overflow: hidden; }
.press-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.press-card:hover .press-card__media img { transform: scale(1.05); }
.press-card__kind { position: absolute; top: var(--s-3); left: var(--s-3); z-index: 2; font-size: 0.6rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; background: var(--accent); color: #fff; padding: 5px 10px; }
.press-card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.press-card__source { font-size: 0.7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.press-card__title { font-family: var(--ff-header); font-size: 1.2rem; line-height: 1.25; color: var(--ink); }
.press-card__link { margin-top: auto; padding-top: var(--s-3); font-size: 0.78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.press-card__link::after { content: "\2197"; transition: transform .25s var(--ease); }
.press-card:hover .press-card__link { color: var(--accent); }
.press-card:hover .press-card__link::after { transform: translate(3px, -3px); }
@media (max-width: 860px) { .press-cards { grid-template-columns: 1fr; } }

/* ============================================================================
   INSTAGRAM PHONE — Dina-style device showing a live vertical clip
   ========================================================================== */
.ig { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(var(--s-7), 6vw, var(--s-10)); align-items: center; }
.ig__phone { justify-self: center; position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 19; }
.ig__device { position: absolute; inset: 0; border-radius: 42px; background: #0c0a08; padding: 12px; box-shadow: var(--shadow-lift), 0 0 0 2px rgba(23,19,14,.9) inset; z-index: 2; }
.ig__screen { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #000; }
.ig__screen video, .ig__screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig__notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 38%; height: 18px; background: #0c0a08; border-radius: 0 0 14px 14px; z-index: 3; }
.ig__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 14px 14px 16px; display: flex; align-items: center; gap: 10px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); font-size: 0.82rem; }
.ig__bar svg { width: 18px; height: 18px; fill: #fff; flex: none; }
.ig__handle { font-weight: 600; }
.ig__halo { position: absolute; inset: -8% -8% -8% -8%; z-index: 1; background: radial-gradient(60% 60% at 50% 40%, var(--accent-tint), transparent 70%); }
.ig__body h2 { margin-bottom: var(--s-4); }
@media (max-width: 860px) { .ig { grid-template-columns: 1fr; gap: var(--s-7); } .ig__body { order: -1; text-align: center; } }

/* ============================================================================
   CINEMATIC TOUR PANEL — vertical property clip beside copy ("step inside")
   ========================================================================== */
.tour { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(var(--s-7), 6vw, var(--s-10)); align-items: center; }
.tour--reverse .tour__media { order: -1; }
.tour__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); box-shadow: var(--shadow-lift); }
.tour__media video, .tour__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tour__tag { position: absolute; left: var(--s-4); bottom: var(--s-4); z-index: 2; color: #fff; font-size: 0.66rem; letter-spacing: .18em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.tour__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(184,67,31,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(184,67,31,.6); } 70% { box-shadow: 0 0 0 10px rgba(184,67,31,0); } 100% { box-shadow: 0 0 0 0 rgba(184,67,31,0); } }
@media (max-width: 860px) { .tour { grid-template-columns: 1fr; gap: var(--s-7); } .tour--reverse .tour__media { order: 0; } .tour__media { max-width: 420px; margin-inline: auto; } }

/* ============================================================================
   FOOTER — Compass affiliation block + office address
   ========================================================================== */
.footer-grid { grid-template-columns: 1.5fr 0.8fr 0.9fr 1fr; }
.footer-brand p { margin-top: var(--s-4); color: #9a948b; font-size: 0.92rem; line-height: 1.6; }
.footer-contact address { font-style: normal; display: grid; gap: var(--s-2); color: #9a948b; font-size: 0.9rem; line-height: 1.5; }
.footer-contact address a { color: #c9c3ba; }
.footer-contact address a:hover { color: #fff; }
.footer-legal { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: start; padding: var(--s-6) 0; margin-top: var(--s-6); border-top: 1px solid rgba(255,255,255,.12); }
.footer-eho { width: 30px; height: 30px; fill: #8a8a90; flex: none; }
.footer-legal p { margin: 0; color: #837d74; font-size: 0.74rem; line-height: 1.6; }
.footer-legal a { color: #b7b1a8; border-bottom: 1px solid rgba(255,255,255,.25); }
.footer-legal a:hover { color: #fff; }
.footer-bottom .powered { color: #8a8a90; }
@media (max-width: 860px) { .footer-legal { grid-template-columns: 1fr; gap: var(--s-3); } }

/* ============================================================================
   LEASE / LEASED page heroes + small refinements
   ========================================================================== */
.page-hero--lease .page-hero__bg { background-position: center 30%; }
.listing__tag { background: #fff; color: var(--ink); }
.listing__tag--rented { background: var(--accent); color: #fff; }
.listing:hover .listing__media { box-shadow: var(--shadow-lift); }

/* CTA band (ink) reused on landlords/tenants */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; max-width: 18ch; margin: 0 auto var(--s-5); }
.cta-band .btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.cta-band .btn--accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

/* reduced motion: stop ambient loops/cues */
@media (prefers-reduced-motion: reduce) {
  .scroll-cue::after, .tour__tag::before { animation: none !important; }
  .ig__screen video, .tour__media video { display: none; }
  .ig__screen img.poster-fallback, .tour__media img.poster-fallback { display: block; }
}
