/* ==========================================================================
   DMG ADVANCED TEMPLATE — stylesheet
   Elevated, clean, image-forward. Brand palette + fonts arrive as CSS
   variables injected per property by build-advanced.js (see partials/head).
   ========================================================================== */

:root {
  --ink: #22242a;
  --paper: #faf9f6;
  --paper-alt: #f1efe9;
  --accent: #31523f;
  --accent-dark: #24402f;
  --on-accent: #ffffff;
  --footer-bg: var(--ink);
  --footer-text: #e8e6e1;
  --contrast-bg: #34373c;   /* charcoal band under the light nav panel */
  --contrast-text: #f2f1ee;
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', 'Segoe UI', Arial, sans-serif;
  --header-h: 88px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2, .display { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.42ch;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}
.eyebrow--light { color: rgba(255, 255, 255, 0.85); }

.lede {
  font-size: 1.125rem;
  max-width: 62ch;
  margin: 0 auto 1.35rem;
}

/* ---------- Layout ---------- */
.container { width: min(1180px, 92vw); margin-inline: auto; }
.container--narrow { width: min(780px, 92vw); }
.container--wide { width: min(1440px, 94vw); }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3.5rem) 0; }
.section--flush { padding-top: 0; }
.section--alt { background: var(--paper-alt); }
.section-heading { text-align: center; margin-bottom: 2.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.95rem 2.3rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.32ch;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-solid {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.btn-solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border-color: currentColor;
}
.btn-ghost-dark:hover { background: var(--ink); color: var(--paper); }

/* ---------- Sticky top bar ----------
   Off-canvas until the visitor scrolls past the split hero, then slides
   down (body.nav-docked — see js/advanced.js). Always visible on mobile,
   where the split panel is hidden. */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.45s var(--ease), visibility 0.45s var(--ease), box-shadow 0.35s var(--ease);
}
body.nav-docked .site-header {
  transform: none;
  visibility: visible;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}
.header-inner {
  width: min(1440px, 94vw);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 52px; width: auto; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2.1rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a:not(.btn) {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.3ch;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.site-nav a:not(.btn):hover { border-bottom-color: currentColor; }
.site-nav a.is-active { border-bottom-color: var(--accent); color: var(--accent); }
.btn-nav { padding: 0.7rem 1.6rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}


/* ---------- Split hero — nav panel left, page media right ----------
   The livethesally.com opening: a full-height spread with the vertical
   nav beside the page's hero image. Scrolling past it docks the nav to
   the sticky top bar. */
.split-hero {
  display: grid;
  grid-template-columns: clamp(300px, 26vw, 400px) 1fr;
  height: 100svh;
  min-height: 620px;
}
.split-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--paper);
  padding: clamp(1.6rem, 3vh, 3rem) 2rem;
  text-align: center;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}
.split-brand img { max-height: 84px; width: auto; max-width: 100%; }
.split-nav {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 0;
  overflow-y: auto;
}
.split-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(0.5rem, 1.6vh, 1.15rem); }
.split-nav a {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.34ch;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.35rem 0.2rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.split-nav a:hover { border-bottom-color: currentColor; }
.split-nav a.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.split-panel-foot { display: grid; gap: 1rem; justify-items: center; }
.split-phone {
  font-size: 0.82rem;
  letter-spacing: 0.18ch;
  text-decoration: none;
  opacity: 0.75;
}
.split-phone:hover { opacity: 1; }

.split-media {
  position: relative;
  overflow: hidden;
  color: #fff;
  display: grid;
  place-items: end start;
}
.split-media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-media-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 10, 12, 0.55), rgba(8, 10, 12, 0.12) 55%);
}
.split-media-content {
  position: relative;
  z-index: 1;
  padding: clamp(1.8rem, 4vw, 3.4rem);
  max-width: min(760px, 90%);
}
.split-media-content h1 { margin: 0; font-size: clamp(2.4rem, 4.6vw, 4rem); }
/* Home variant: content centered over the media */
.split-media-content--center {
  place-self: center;
  text-align: center;
  width: min(760px, 92%);
}
.split-media-content--center h1 { margin-bottom: 0.35em; }
.hero-subhead {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 0.18ch;
  margin: 0 0 2.2rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Hero rotator ----------
   A small set of hero images (3-5) cross-faded by the dot controls —
   no autoplay, no arrows. */
.hero-rotator { position: absolute; inset: 0; }
.rotator-img { opacity: 0; transition: opacity 0.9s var(--ease); }
.rotator-img.is-active { opacity: 1; }
.rotator-dots {
  position: absolute;
  z-index: 2;
  right: 1.7rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.rotator-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.rotator-dot:hover { background: rgba(255, 255, 255, 0.5); }
.rotator-dot.is-active { background: #fff; transform: scale(1.15); }

/* ---------- Intro / copy blocks ----------
   Intro bands render DARK (neutral charcoal by default; override with
   branding.colors.contrastBg) for stark contrast against the light nav
   panel of the split hero directly above them. */
.intro {
  text-align: center;
  background: var(--contrast-bg);
  color: var(--contrast-text);
}
.intro .eyebrow { margin-bottom: 1.4rem; color: rgba(255, 255, 255, 0.58); }

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--accent);
  color: var(--on-accent);
  padding: clamp(2.2rem, 4vw, 3.2rem) 0;
}
.stats-list {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
.stats-list li { display: grid; gap: 0.15rem; }
.stat-value { font-family: var(--font-heading); font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.1; }
.stat-label { font-size: 0.72rem; letter-spacing: 0.35ch; text-transform: uppercase; opacity: 0.85; }

/* ---------- Callout cards ---------- */
.callout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
}
.callout-card {
  display: block;
  text-decoration: none;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.callout-card:hover { box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12); transform: translateY(-4px); }
.callout-media { display: block; aspect-ratio: 4 / 3.4; overflow: hidden; }
.callout-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.callout-card:hover .callout-media img { transform: scale(1.045); }
.callout-body { display: grid; gap: 0.35rem; padding: 1.6rem 1.7rem 1.8rem; }
.callout-body .eyebrow { margin: 0; font-size: 0.66rem; }
.callout-title { font-family: var(--font-heading); font-size: 1.55rem; line-height: 1.2; }
.callout-link {
  font-size: 0.74rem;
  letter-spacing: 0.3ch;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.5rem;
}

/* ---------- Full-bleed image break ---------- */
.image-break {
  position: relative;
  min-height: clamp(420px, 62vh, 640px);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.image-break-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-break-scrim { position: absolute; inset: 0; background: rgba(10, 12, 14, 0.38); }
.image-break-content { position: relative; z-index: 1; width: min(760px, 92vw); padding: 4rem 0; }
.image-break-content .btn { margin-top: 1.4rem; }

/* ---------- Feature groups (Amenities) ---------- */
.feature-group { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.feature-group:nth-of-type(even) { background: var(--paper-alt); }
.feature-group-head { text-align: center; max-width: 780px; margin: 0 auto clamp(2.2rem, 5vw, 3.6rem); }
.feature-group-head .lede { margin-bottom: 0; }
.feature-rows { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.feature-row {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: center;
}
.feature-row:nth-child(even) { grid-template-columns: 5fr 7fr; }
.feature-row:nth-child(even) .feature-media { order: 2; }
.feature-media { overflow: hidden; }
.feature-media img { width: 100%; height: 100%; aspect-ratio: 16 / 10.5; object-fit: cover; }
.feature-copy h3 { margin-bottom: 0.5rem; }
.feature-copy p { margin: 0; max-width: 48ch; }

/* ---------- Complete amenity list ---------- */
.full-list-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  max-width: 980px;
  margin-inline: auto;
}
.full-list-col h3 { margin-bottom: 1.2rem; }
.full-list-col ul { list-style: none; margin: 0; padding: 0; }
.full-list-col li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.98rem;
}

/* ---------- Gallery collage ---------- */
.gallery-intro { text-align: center; }
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 0 2.2rem;
}
.gallery-filter {
  padding: 0.55rem 1.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.3ch;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.gallery-filter:hover { border-color: var(--accent); color: var(--accent); }
.gallery-filter.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 80px;
  grid-auto-flow: dense;
  gap: 14px;
}
.collage-item {
  position: relative;
  padding: 0;
  border: 0;
  background: var(--paper-alt);
  cursor: zoom-in;
  overflow: hidden;
  display: block;
}
.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.collage-item:hover img { transform: scale(1.04); }
.collage-item[hidden] { display: none; }
/* Tile size classes are assigned in a repeating 9-tile cycle by
   js/advanced.js (so category filters never break the pattern). The cycle
   builds three interlocking bands, mosaic-style:
     band 1 — large feature LEFT + two wide strips stacked beside it
     band 2 — two tall small tiles + one wide tile
     band 3 — small stack LEFT + large feature RIGHT (mirrors band 1) */
.t1 { grid-column: span 7; grid-row: span 4; }
.t2 { grid-column: span 5; grid-row: span 2; }
.t3 { grid-column: span 5; grid-row: span 2; }
.t4 { grid-column: span 3; grid-row: span 3; }
.t5 { grid-column: span 3; grid-row: span 3; }
.t6 { grid-column: span 6; grid-row: span 3; }
.t7 { grid-column: span 4; grid-row: span 2; }
.t8 { grid-column: span 8; grid-row: span 4; }
.t9 { grid-column: span 4; grid-row: span 2; }

/* ---------- Floor plans ---------- */
.floorplan-embed { min-height: 480px; }
.floorplan-embed iframe { width: 100%; min-height: 640px; border: 0; }
.floorplan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.floorplan-card { margin: 0; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
.floorplan-thumb { display: block; width: 100%; padding: 1.2rem; border: 0; background: none; cursor: zoom-in; }
.floorplan-thumb img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.floorplan-card figcaption {
  padding: 0 1.4rem 1.4rem;
  text-align: center;
  display: grid;
  gap: 0.15rem;
}
.floorplan-card strong { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 500; }
.floorplan-card span { font-size: 0.85rem; letter-spacing: 0.12ch; opacity: 0.75; }

.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.tour-card { margin: 0; }
.tour-card iframe { width: 100%; aspect-ratio: 16 / 10; border: 0; background: var(--ink); }
.tour-card figcaption { padding-top: 0.7rem; text-align: center; }

/* ---------- Neighborhood map ---------- */
.map-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}
.map-category {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.3rem;
  font-size: 0.74rem;
  letter-spacing: 0.28ch;
  text-transform: uppercase;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.map-category svg { width: 19px; height: 19px; }
.map-category:hover { border-color: var(--accent); color: var(--accent); }
.map-category.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.explore-map { height: clamp(420px, 62vh, 620px); background: var(--paper-alt); }
.explore-map iframe { width: 100%; height: 100%; }
.map-poi-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.3rem 1.6rem;
  margin-top: 1.4rem;
}
.map-poi {
  text-align: left;
  padding: 0.45rem 0.2rem;
  font-size: 0.95rem;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.map-poi:hover { color: var(--accent); }

/* ---------- Neighborhood highlights ---------- */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.highlight-card { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); }
.highlight-media { aspect-ratio: 16 / 10; overflow: hidden; }
.highlight-media img { width: 100%; height: 100%; object-fit: cover; }
.highlight-body { padding: 1.5rem 1.6rem 1.7rem; }
.highlight-body .eyebrow { margin-bottom: 0.5rem; font-size: 0.64rem; }
.highlight-body h3 { margin-bottom: 0.4rem; }
.highlight-body p { margin: 0; font-size: 0.98rem; }

/* ---------- Availability ---------- */
.listings-copy { text-align: center; }
.appfolio-listings { margin-top: 1.5rem; }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-details { margin: 0.4rem 0 0; display: grid; gap: 1.5rem; }
.contact-details dt { margin-bottom: 0.3rem; }
.contact-details dd { margin: 0; font-size: 1.05rem; }
.contact-details a { text-decoration: none; }
.contact-details a:hover { color: var(--accent); }

.contact-form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: grid; gap: 0.35rem; }
.form-field label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3ch;
  text-transform: uppercase;
}
.req { color: var(--accent); }
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.sms-disclosure { font-size: 0.8rem; line-height: 1.55; opacity: 0.75; }
.btn-submit { justify-self: start; }
.btn-submit[disabled] { opacity: 0.55; cursor: wait; }
.form-status { min-height: 1.4em; margin: 0; font-size: 0.95rem; }
.form-status.is-error { color: #a4322c; }
.form-status.is-success { color: var(--accent); }

/* ---------- Pre-footer ---------- */
.prefooter-banner {
  position: relative;
  min-height: clamp(380px, 55vh, 560px);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.prefooter-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prefooter-banner-overlay { position: absolute; inset: 0; background: rgba(10, 12, 14, 0.44); }
.prefooter-banner-content { position: relative; z-index: 1; width: min(820px, 92vw); padding: 4rem 0; }
.prefooter-heading { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 1.6rem; }
.prefooter-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.prefooter-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  background: var(--paper);
  padding: 4px;
}
.prefooter-strip-item {
  padding: 0;
  border: 0;
  background: var(--paper-alt);
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 1;
}
.prefooter-strip-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.prefooter-strip-item:hover img { transform: scale(1.06); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
}
.footer-main {
  width: min(1180px, 92vw);
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.footer-logo { height: 56px; width: auto; margin-bottom: 1.3rem; }
.footer-logo--wide { height: 44px; }
.footer-lines { margin: 0 0 0.9rem; font-size: 0.95rem; line-height: 1.6; }
.footer-lines span { display: block; }
.footer-lines a { color: inherit; text-decoration: none; }
.footer-lines a:hover { text-decoration: underline; }
.footer-col--nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col--nav a {
  font-size: 0.78rem;
  letter-spacing: 0.28ch;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.85;
}
.footer-col--nav a:hover { opacity: 1; text-decoration: underline; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  width: min(1180px, 92vw);
  margin-inline: auto;
  padding: 1.4rem 0 2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.82rem;
}
.footer-legal p { margin: 0; display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; }
.footer-legal a { color: inherit; }
.eho-logo { height: 30px; width: auto; }

/* ---------- Back to top ----------
   A small pull-tab hanging directly below the sticky header bar; slides
   out from behind the bar once the visitor scrolls past the hero
   (body.nav-docked). Clicking snaps back to the top of the page. */
.to-top {
  position: fixed;
  top: var(--header-h);
  left: 50%;
  z-index: 95; /* below the header (100) so it emerges from behind it */
  width: 54px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  opacity: 0;
  transform: translate(-50%, -110%);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.25s var(--ease);
}
.to-top svg { width: 18px; height: 18px; }
.to-top:hover { background: var(--accent); }
body.nav-docked .to-top {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(12, 13, 15, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.6rem 1rem;
  opacity: 0.8;
}
.lightbox button:hover { opacity: 1; }
.lightbox-close { top: 1rem; right: 1.2rem; font-size: 2.8rem; }
.lightbox-prev { left: 0.6rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 0.6rem; top: 50%; transform: translateY(-50%); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .feature-row, .feature-row:nth-child(even) { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-media { order: 0; }
  .feature-copy { max-width: 640px; }
  .contact-layout { grid-template-columns: 1fr; }
  .prefooter-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 880px) {
  :root { --header-h: 72px; }
  .brand-logo { height: 42px; }
  .nav-toggle { display: flex; }

  /* The split panel collapses on mobile: the fixed top bar is always
     visible and carries the menu; the page media sits below it. */
  .split-panel { display: none; }
  .split-hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    padding-top: var(--header-h);
  }
  .split-media { height: min(76svh, 640px); }
  .site-header {
    transform: none;
    visibility: visible;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--paper);
    color: var(--ink);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    overflow-y: auto;
  }
  .nav-open .site-nav { transform: none; }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1.4rem 6vw 3rem;
  }
  .site-nav li { width: 100%; border-bottom: 1px solid rgba(0, 0, 0, 0.07); }
  .site-nav li.nav-cta { border-bottom: 0; padding-top: 1.6rem; }
  .site-nav a:not(.btn) { display: block; padding: 1.05rem 0; font-size: 0.92rem; }
  .site-header.nav-open { background: var(--paper); color: var(--ink); }
  .nav-open .nav-toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav-open .nav-toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

  .callout-grid { grid-template-columns: 1fr; }
  .stats-list { justify-content: space-between; gap: 1.4rem 2rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .collage { grid-auto-rows: 60px; gap: 8px; }
  .collage-item.t1, .collage-item.t6, .collage-item.t8 { grid-column: span 12; grid-row: span 4; }
  .collage-item.t2, .collage-item.t3 { grid-column: span 12; grid-row: span 3; }
  .collage-item.t4, .collage-item.t5, .collage-item.t7, .collage-item.t9 { grid-column: span 6; grid-row: span 3; }
  .prefooter-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}
