/* ──────────────────────────────────────────────────────────────────────
   Styx Mill — Components

   Component conventions per brief §12 — class names chosen so each
   block translates cleanly to an Astro component in the eventual NRL
   portfolio rebuild without semantic translation.

     .site-header / .site-footer
     .nav-primary / .mobile-menu-toggle
     .hero / .hero-content
     .proposition-strip
     .stage-status-table
     .home-card / .home-grid
     .cta-band
     .facts-block
     .form-field / .form-actions
   ────────────────────────────────────────────────────────────────────── */

/* ── Site header / sticky nav ──────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 245, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--colour-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 72px;
  padding-block: var(--space-3);
}

.site-header__brand {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--colour-text);
  text-decoration: none;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-3);
}
.site-header__emblem {
  height: 38px;
  width: auto;
  display: block;
  flex: none;
}
.site-header__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-parent {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.brand-dev {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--colour-text-muted);
  margin-top: 3px;
}
.site-header__brand small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--colour-text-soft);
  margin-top: 2px;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.nav-primary a {
  color: var(--colour-text);
  text-decoration: none;
  font-size: var(--text-sm);
  padding-block: var(--space-2);
  position: relative;
  transition: color var(--motion-fast) var(--ease);
}
.nav-primary a:hover { color: var(--colour-accent); }
.nav-primary a[aria-current="page"] {
  color: var(--colour-accent);
}
.nav-primary a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset: auto 0 -2px 0;
  height: 2px;
  background: var(--colour-accent);
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background var(--motion-fast) var(--ease),
              color var(--motion-fast) var(--ease),
              border-color var(--motion-fast) var(--ease);
  cursor: pointer;
}

.btn--primary {
  background: var(--colour-accent);
  color: var(--colour-on-accent);
}
.btn--primary:hover {
  background: var(--colour-accent-hover);
  color: var(--colour-on-accent);
}

.btn--ghost {
  background: transparent;
  color: var(--colour-text);
  border-color: var(--colour-border-strong);
}
.btn--ghost:hover {
  border-color: var(--colour-text);
  color: var(--colour-text);
}

.btn--lg { padding: var(--space-4) var(--space-6); font-size: var(--text-sm); letter-spacing: 0.1em; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;   /* fallback */
  min-height: 100svh;  /* full screen — accounts for mobile browser chrome */
  display: grid;
  align-items: end;
  background: var(--colour-surface-tint);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img,
.hero__media .hero__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__placeholder {
  background:
    linear-gradient(135deg, #d8e3da 0%, #c0d4c5 35%, #98b2a0 70%, #7a9686 100%);
  display: grid;
  place-items: center;
  color: rgba(31, 29, 24, 0.4);
  font-family: var(--font-serif);
  font-size: var(--text-md);
  letter-spacing: 0.04em;
}
.hero__placeholder::before {
  content: "Master aerial render — placeholder";
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(31, 29, 24, 0.05) 0%,
      rgba(31, 29, 24, 0.05) 40%,
      rgba(31, 29, 24, 0.45) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: var(--space-9) var(--space-8);
  color: var(--colour-on-accent);
}
.hero__eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: var(--space-4);
  color: rgba(251, 249, 245, 0.85);
}
.hero h1 {
  color: var(--colour-on-accent);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  max-width: 18ch;
}
.hero__lede {
  font-size: var(--text-md);
  margin-top: var(--space-5);
  max-width: 56ch;
  color: rgba(251, 249, 245, 0.92);
}
.hero__actions {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-7);
  flex-wrap: wrap;
}

/* Inner-page hero — shorter than the home hero; same photo + overlay pattern
   so every tab opens with the same premium entry. */
.hero--inner { min-height: clamp(360px, 52vh, 520px); }

/* ── Proposition strip — freehold-vs-village contrast ──────────────── */
.proposition-strip {
  background: var(--colour-surface-elev);
  border-block: 1px solid var(--colour-border);
}
.proposition-strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
  padding-block: var(--space-7);
}
.proposition-strip__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.proposition-strip__item dt {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  color: var(--colour-text);
}
.proposition-strip__item dd {
  font-size: var(--text-sm);
  color: var(--colour-text-muted);
  line-height: var(--line-normal);
}

/* ── Facts block (AI-readable, brief §3) ───────────────────────────── */
.facts-block {
  background: var(--colour-surface-elev);
  border: 1px solid var(--colour-border);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
  margin-block: var(--space-6);
}
.facts-block__label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--colour-text-soft);
  margin-bottom: var(--space-3);
}
.facts-block p {
  font-size: var(--text-base);
  line-height: var(--line-normal);
  color: var(--colour-text);
}

/* ── Stage status table ────────────────────────────────────────────── */
.stage-status-table {
  width: 100%;
  border-collapse: collapse;
  margin-block: var(--space-6);
}
.stage-status-table th,
.stage-status-table td {
  text-align: left;
  padding: var(--space-4) var(--space-3);
  border-bottom: 1px solid var(--colour-border);
}
.stage-status-table th {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--colour-text-soft);
}
.stage-status-table td {
  font-size: var(--text-base);
}
.stage-status-table .stage-name {
  font-family: var(--font-serif);
  font-size: var(--text-md);
}

.stage-pill {
  display: inline-block;
  padding: 2px var(--space-3);
  border-radius: 0;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  background: var(--colour-surface-tint);
  color: var(--colour-text-muted);
  border: 1px solid var(--colour-border-strong);
}
.stage-pill[data-status="selling"] {
  background: var(--colour-accent-soft);
  color: var(--colour-accent);
  border-color: var(--colour-accent-soft);
}
.stage-pill[data-status="consenting"],
.stage-pill[data-status="under-construction"] {
  background: #f0e6d3;
  color: #856023;
  border-color: #e2d3b0;
}
.stage-pill[data-status="under-offer"] {
  background: #fde8e8;
  color: #8a2a2a;
  border-color: #f5c0c0;
}

/* ── Home cards ─────────────────────────────────────────────────────── */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
  margin-block: var(--space-6);
}
.home-card {
  background: var(--colour-surface-elev);
  border: 1px solid var(--colour-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--motion) var(--ease),
              transform var(--motion) var(--ease);
}
.home-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.home-card__media {
  aspect-ratio: 4 / 3;
  background: var(--colour-surface-tint);
  position: relative;
}
.home-card__banner {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: #8a2a2a;
  color: #fbf9f5;
  padding: 4px var(--space-3);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.home-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.home-card__title { font-size: var(--text-lg); }

/* ── CTA band ──────────────────────────────────────────────────────── */
.cta-band {
  background: var(--colour-accent);
  color: var(--colour-on-accent);
  padding-block: var(--space-8);
}
.cta-band h2 { color: var(--colour-on-accent); }
.cta-band__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-6);
  align-items: center;
}
.cta-band__inner > div { max-width: 60ch; }
.cta-band .btn--ghost {
  color: var(--colour-on-accent);
  border-color: rgba(251, 249, 245, 0.35);
}
.cta-band .btn--ghost:hover {
  border-color: var(--colour-on-accent);
  background: rgba(251, 249, 245, 0.08);
}

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--colour-text);
  color: rgba(251, 249, 245, 0.85);
  padding-block: var(--space-7);
}
.site-footer a { color: var(--colour-on-accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-6);
  padding-block: var(--space-5);
}
.site-footer__col h3 {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(251, 249, 245, 0.7);
  margin-bottom: var(--space-3);
}
.site-footer__col ul { list-style: none; padding: 0; }
.site-footer__col li + li { margin-top: var(--space-2); }
.site-footer__legal {
  border-top: 1px solid rgba(251, 249, 245, 0.15);
  padding-top: var(--space-5);
  margin-top: var(--space-5);
  font-size: var(--text-xs);
  color: rgba(251, 249, 245, 0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ── Merged footer (Option 2): CTA + newsletter + columns in one block ── */
.site-footer--merged { padding-block: var(--space-9) var(--space-7); }
.footer-lead {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(var(--space-6), 6vw, var(--space-9));
  align-items: start;
  padding-bottom: var(--space-8);
}
.footer-lead__eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--colour-accent);
  margin: 0 0 var(--space-3);
}
.footer-lead__title {
  font-family: var(--font-serif);
  color: var(--colour-on-accent);
  margin: 0 0 var(--space-4);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.15;
}
.footer-lead__newstitle {
  font-family: var(--font-serif);
  color: var(--colour-on-accent);
  margin: 0 0 var(--space-3);
  font-size: var(--text-xl);
}
.footer-lead__text {
  color: rgba(251, 249, 245, 0.78);
  line-height: 1.6;
  max-width: 46ch;
  margin: 0 0 var(--space-5);
  font-size: var(--text-md);
}
.footer-news-form {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.footer-news-form input[type="email"] {
  flex: 1 1 15rem;
  min-width: 0;
  padding: 0.85em 1em;
  border: 1px solid rgba(251, 249, 245, 0.25);
  border-radius: var(--radius);
  background: rgba(251, 249, 245, 0.06);
  color: var(--colour-on-accent);
  font-family: var(--font-body);
  font-size: var(--text-md);
}
.footer-news-form input[type="email"]::placeholder { color: rgba(251, 249, 245, 0.5); }
.footer-news-form input[type="email"]:focus {
  outline: 2px solid var(--colour-accent);
  outline-offset: 1px;
  border-color: transparent;
}
.footer-news-form__done {
  flex-basis: 100%;
  color: var(--colour-on-accent);
  margin: var(--space-2) 0 0;
  font-family: var(--font-serif);
  font-style: italic;
}
.footer-rule {
  border: 0;
  border-top: 1px solid rgba(251, 249, 245, 0.15);
  margin: 0 0 var(--space-7);
}
.footer-brand-logo {
  height: 30px;
  width: auto;
  display: block;
  margin: var(--space-6) 0 var(--space-2);
  opacity: 0.95;
}
@media (max-width: 720px) {
  .footer-lead { grid-template-columns: 1fr; gap: var(--space-7); }
}

/* ── Forms ─────────────────────────────────────────────────────────── */
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-block: var(--space-4);
}
.form-field label {
  font-size: var(--text-sm);
  color: var(--colour-text-muted);
}
.form-field input,
.form-field textarea,
.form-field select {
  font: inherit;
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-4);
  background: var(--colour-surface-elev);
  border: 1px solid var(--colour-border-strong);
  border-radius: var(--radius);
  color: var(--colour-text);
  transition: border-color var(--motion-fast) var(--ease),
              box-shadow var(--motion-fast) var(--ease);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--colour-accent);
  box-shadow: 0 0 0 3px var(--colour-accent-soft);
}

/* ── Comparison table (Ownership page) ─────────────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-block: var(--space-6);
}
.comparison-table th,
.comparison-table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--colour-border);
  vertical-align: top;
}
.comparison-table thead th {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--colour-text-soft);
  border-bottom: 2px solid var(--colour-border-strong);
}
.comparison-table thead th:nth-child(2) {
  background: var(--colour-accent-soft);
  color: var(--colour-accent);
}
.comparison-table tbody tr:nth-child(odd) {
  background: rgba(243, 239, 230, 0.4);
}

/* ── Mobile menu (progressive enhancement) ─────────────────────────── */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--colour-border-strong);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--colour-text);
}

@media (max-width: 820px) {
  .nav-primary {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--colour-surface);
    border-bottom: 1px solid var(--colour-border);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4);
    gap: var(--space-2);
  }
  .nav-primary[data-open="true"] {
    display: flex;
  }
  .nav-primary a {
    padding: var(--space-3);
    border-radius: var(--radius);
  }
  .nav-primary a[aria-current="page"]::after { display: none; }
  .nav-primary a[aria-current="page"] { background: var(--colour-accent-soft); }

  .mobile-menu-toggle { display: inline-flex; }

  .hero { min-height: 100svh; }
  .cta-band__inner { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────────────────────────
   EM updates no.1 (Dani) — home-page rework additions
   ────────────────────────────────────────────────────────────────────── */

/* Visually-hidden (a11y labels) */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Points of difference — minimal cards (no fluff) */
.point-card {
  background: transparent;
  padding: var(--space-5) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.point-card + .point-card { } /* grid gap handles spacing */
.point-card__num {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-xs);
  color: var(--colour-accent);
  letter-spacing: 0.18em;
}
.point-card__num::after { content: ""; display: block; width: 32px; height: 2px; background: var(--colour-accent); margin-top: var(--space-3); opacity: 0.6; }
.point-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--colour-brand);
  margin: 0;
  line-height: 1.2;
}
.point-card__desc {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--colour-text-muted);
  margin: 0;
}

/* Scroll-reveal — progressive enhancement. Visible by default; only hidden
   when JS is active (html.js), so no-JS / crawlers see everything. */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--motion-slow) var(--ease), transform var(--motion-slow) var(--ease);
  will-change: opacity, transform;
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Location map (Leaflet) */
.location-map {
  width: 100%;
  height: clamp(320px, 42vw, 460px);
  border-radius: var(--radius);
  border: 1px solid var(--colour-border);
  box-shadow: var(--shadow-sm);
  background: var(--colour-surface-tint);
  z-index: 0; /* keep tiles under the sticky header */
}
.location-map__legend {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--colour-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}
.location-map__dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.location-map__dot--em   { background: var(--colour-accent); }
.location-map__dot--styx { background: var(--colour-brand); }

/* Subscribe pop-up */
.subscribe-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}
.subscribe-modal[data-open="true"] { display: flex; }
.subscribe-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 30, 40, 0.55);
}
.subscribe-modal__dialog {
  position: relative;
  background: var(--colour-surface-elev);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 460px;
  width: 100%;
  padding: var(--space-8) var(--space-7) var(--space-7);
  text-align: center;
  animation: subscribe-in var(--motion) var(--ease);
}
@keyframes subscribe-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.subscribe-modal__close {
  position: absolute;
  top: var(--space-3); right: var(--space-4);
  background: none; border: none;
  font-size: 1.75rem; line-height: 1;
  color: var(--colour-text-soft);
  cursor: pointer;
}
.subscribe-modal__close:hover { color: var(--colour-brand); }
.subscribe-modal__eyebrow {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--colour-accent);
  margin: 0 0 var(--space-2);
}
.subscribe-modal__title { margin: 0 0 var(--space-3); color: var(--colour-brand); }
.subscribe-modal__lede {
  font-size: var(--text-sm);
  color: var(--colour-text-muted);
  line-height: 1.55;
  margin: 0 0 var(--space-5);
}
.subscribe-modal__form { display: flex; flex-direction: column; gap: var(--space-3); }
.subscribe-modal__form input {
  padding: var(--space-4);
  border: 1px solid var(--colour-border-strong);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  width: 100%;
}
.subscribe-modal__form input:focus-visible {
  outline: 2px solid var(--colour-accent);
  outline-offset: 1px;
}
.subscribe-modal__done {
  margin: var(--space-4) 0 0;
  color: var(--colour-success);
  font-weight: 600;
}

/* ──────────────────────────────────────────────────────────────────────
   NRL PROPERTY-CARD GALLERY — reusable, icon-based module.

   Drop-in for any North Ridge development site. Three pieces travel together:
     1. this CSS block
     2. the SVG icon sprite (id="nrl-prop-icons") — defines #i-bed #i-study
        #i-bath #i-toilet #i-car #i-floor #i-land
     3. the .property-card markup (one <article> per home; static HTML so
        crawlers/AI see every listing at first paint)
   Each card: photo + "Complete" badge → icon feature row → address →
   feature note → price + PDF. Data mirrors data/homes.json.
   ────────────────────────────────────────────────────────────────────── */
.property-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 640px)  { .property-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .property-gallery { grid-template-columns: repeat(3, 1fr); } }

.property-card {
  display: flex; flex-direction: column;
  background: var(--colour-surface-elev);
  border: 1px solid var(--colour-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--motion) var(--ease), box-shadow var(--motion) var(--ease);
}
.property-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.property-card__media { position: relative; }
.property-card__media img {
  display: block; width: 100%; height: clamp(190px, 24vw, 230px); object-fit: cover;
}
.property-card__badge {
  position: absolute; top: var(--space-3); right: var(--space-3);
  background: rgba(0, 51, 68, 0.9); color: #fff;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 0;
}

.property-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.property-card__eyebrow { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--colour-accent); margin: 0; }
.property-card__address { font-family: var(--font-serif); font-size: var(--text-xl); font-weight: 400; color: var(--colour-brand); margin: 0; line-height: 1.2; }

/* The icon feature row — the heart of the module */
.property-card__features {
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5);
  padding: var(--space-3) 0; margin: 0;
  border-top: 1px solid var(--colour-border);
  border-bottom: 1px solid var(--colour-border);
  list-style: none;
}
.feature { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); color: var(--colour-text); font-weight: 600; }
.feature__icon { width: 22px; height: 22px; color: var(--colour-accent); flex: none; }
.feature__val { font-variant-numeric: tabular-nums; }
.feature__label { font-weight: 400; color: var(--colour-text-soft); font-size: var(--text-xs); }

.property-card__note { font-size: var(--text-sm); line-height: 1.55; color: var(--colour-text-muted); margin: 0; flex: 1; }
.property-card__footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-2); }
.property-card__price { font-family: var(--font-sans); font-size: var(--text-lg); font-weight: 700; color: var(--colour-brand); margin: 0; }

/* ──────────────────────────────────────────────────────────────────────
   Dark feature band — premium drama. Use sparingly (1–2 per page).
   Deep-teal section with light text + copper "bronze" accent (Landmark-style).
   ────────────────────────────────────────────────────────────────────── */
.section--dark { background: var(--colour-brand); color: rgba(251, 249, 245, 0.9); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .text-soft { color: var(--colour-accent-soft) !important; }
.section--dark .lead, .section--dark p { color: rgba(251, 249, 245, 0.82) !important; }
.section--dark .btn--ghost { color: #fff; border-color: rgba(251, 249, 245, 0.4); background: transparent; }
.section--dark .btn--ghost:hover { border-color: #fff; color: #fff; }

/* ──────────────────────────────────────────────────────────────────────
   Development aerial band — full-bleed "see the whole community" image
   with a caption overlay. References the complete development.
   ────────────────────────────────────────────────────────────────────── */
.dev-aerial { position: relative; }
.dev-aerial img {
  width: 100%;
  height: clamp(300px, 40vw, 600px);
  object-fit: cover;
  display: block;
}
.dev-aerial__overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(0,30,40,0.10) 35%, rgba(0,30,40,0.78));
}
.dev-aerial__overlay .container { padding-block: var(--space-7); color: #fff; }
.dev-aerial__overlay .text-soft { color: rgba(255,255,255,0.85) !important; }
.dev-aerial__overlay h2 { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.4); max-width: 22ch; }
.dev-aerial__overlay p { color: rgba(255,255,255,0.92); max-width: 56ch; }
.dev-aerial__stats {
  font-family: var(--font-sans); font-weight: 600; letter-spacing: 0.04em;
  margin-top: var(--space-4) !important; display: flex; gap: var(--space-5); flex-wrap: wrap;
}
.dev-aerial__stats strong { font-family: var(--font-serif); font-weight: 400; font-size: var(--text-lg); }

/* ──────────────────────────────────────────────────────────────────────
   TEAM / KEY-PEOPLE GRID — reusable. Each card: portrait photo (or initials
   placeholder until headshots land) + name + role + short bio.
   Swap .team-card__photo's text for <img> when real photos arrive.
   ────────────────────────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
}
.team-card {
  display: flex; flex-direction: column;
  background: var(--colour-surface-elev);
  border: 1px solid var(--colour-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.team-card__photo {
  aspect-ratio: 4 / 5;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--colour-surface-tint), var(--colour-accent-soft));
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--colour-brand);
  letter-spacing: 0.04em;
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.team-card__name { font-family: var(--font-serif); font-size: var(--text-lg); font-weight: 400; color: var(--colour-brand); margin: 0; line-height: 1.2; }
.team-card__role { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--colour-accent); margin: 0; }
.team-card__bio { font-size: var(--text-sm); line-height: 1.55; color: var(--colour-text-muted); margin: var(--space-2) 0 0; }
.team-card__contact { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.team-card__contact a { font-size: var(--text-sm); color: var(--colour-accent); text-decoration: none; }
.team-card__contact a:hover { text-decoration: underline; }

/* Team layout — large bios panel on the LHS spanning both rows; people tiles 3x2
   to the right (top: John/Dean/Josh, bottom: Phil/Rich/Mary). People tiles stay
   clean (photo + role + contact); the prose bios live in the left panel. */
.team-layout {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: var(--space-5);
}
.team-bio {
  grid-column: 1;
  grid-row: 1 / span 2;
  background: var(--colour-brand);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-5);
}
.team-bio__eyebrow { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.18em; color: var(--colour-accent-soft); margin: 0; }
.team-bio__name { font-family: var(--font-serif); font-weight: 400; color: #fff; margin: 0 0 var(--space-2); font-size: var(--text-md); line-height: 1.25; }
.team-bio__entry p { font-size: var(--text-sm); line-height: 1.6; color: rgba(251, 249, 245, 0.82); margin: 0; }

@media (max-width: 900px) {
  .team-layout { grid-template-columns: repeat(2, 1fr); }
  .team-bio { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 520px) {
  .team-layout { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────────────────────────
   EM updates no.2 (Dani) — home page reads one segment at a time
   Each top-level block fills the viewport and the page snaps from one to
   the next, so you're never looking at two half-blocks while scrolling.
   Desktop only (mobile keeps natural flow); disabled for reduced-motion.
   `proximity` (not `mandatory`) + min-height (not fixed height) so tall
   blocks — the homes cards, the location map — grow naturally and never
   trap the reader.
   ────────────────────────────────────────────────────────────────────── */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  html.home { scroll-snap-type: y proximity; }

  /* every block is its own full-height segment */
  html.home #main > section {
    min-height: 100vh;
    min-height: 100svh;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }

  /* centre the content of shorter blocks so they sit as a balanced segment;
     the hero keeps its own grid/bottom-aligned layout */
  html.home #main > section:not(.hero):not(.mag-spread) {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ──────────────────────────────────────────────────────────────────────
   MAGAZINE SPREAD (Styx-style PILOT) — full-viewport two-zone editorial
   layout: a LARGE photo (~58%) beside a cream WORDING panel (~42%), with an
   oversized asymmetric serif headline. Layout only — content stays Elmbridge.
   Sits inside the existing scroll-snap so each spread is one screen.
   ────────────────────────────────────────────────────────────────────── */
.mag-spread {
  display: grid;
  grid-template-columns: 42% 58%;     /* wording | media (media is the larger zone) */
  min-height: 100svh;
  background: var(--colour-surface-tint);
}
.mag-spread--media-left { grid-template-columns: 58% 42%; }
.mag-spread--media-left .mag-spread__media { order: -1; }

.mag-spread__media { position: relative; overflow: hidden; }
.mag-spread__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.mag-spread__text {
  display: flex;
  flex-direction: column;
  justify-content: center;            /* swap to flex-end for a bottom-anchored headline */
  gap: var(--space-4);
  padding: clamp(2rem, 5.5vw, 6rem);
  background: var(--colour-surface-tint);
}
.mag-spread__eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--colour-accent);
  margin: 0;
}
.mag-spread__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4.25rem);   /* OVERSIZED display */
  line-height: 1.04;
  color: var(--colour-brand);
  margin: 0;
  max-width: 16ch;
}
.mag-spread__lead {
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--colour-text);
  margin: 0;
  max-width: 46ch;
}
.mag-spread__body {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--colour-text-muted);
  margin: 0;
  max-width: 46ch;
}
.mag-spread__stats {
  display: flex; flex-wrap: wrap; gap: var(--space-6);
  font-size: var(--text-sm); color: var(--colour-text-muted); margin: 0;
}
.mag-spread__stats strong {
  font-family: var(--font-serif); font-weight: 400;
  font-size: var(--text-xl); color: var(--colour-brand); margin-right: 0.3em;
}
.mag-spread__stats span:last-child strong { color: var(--colour-accent); }
.mag-spread__cta { margin: 0; }

/* Stack on narrow screens — photo on top, wording below (no forced 100svh split) */
@media (max-width: 820px) {
  .mag-spread, .mag-spread--media-left {
    grid-template-columns: 1fr;
    grid-template-rows: 56svh auto;
  }
  .mag-spread--media-left .mag-spread__media { order: -1; }
  .mag-spread__media { order: -1; }
  .mag-spread__text { padding: var(--space-7) var(--space-5); }
}

/* ── Magazine spread — FOOTNOTE variant ───────────────────────────────────
   Two-zone top (wording LHS + large photo RHS) + a full-width footnote BANNER
   across the bottom. Used to collapse "Available now" + "Built for the way you
   live today" into one spread. The footnote takes a bottom strip, so the photo
   zone is shorter → landscape-friendly. */
.mag-spread--footnote {
  grid-template-columns: 42% 58%;
  grid-template-rows: 1fr auto;
}
.mag-spread--footnote .mag-spread__text  { grid-column: 1; grid-row: 1; }
.mag-spread--footnote .mag-spread__media { grid-column: 2; grid-row: 1; }
.mag-spread__footnote {
  grid-column: 1 / -1;
  grid-row: 2;
  background: var(--colour-brand);
  color: var(--colour-on-brand);
  display: flex;
  align-items: center;
  gap: var(--space-5) var(--space-7);
  flex-wrap: wrap;
  padding: var(--space-6) clamp(2rem, 5.5vw, 6rem);
}
.mag-spread__footnote h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  color: #fff;
  margin: 0;
  flex: 1 1 24ch;
  max-width: 42ch;
}
.mag-spread__footnote p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: rgba(251, 249, 245, 0.85);
  margin: 0;
  flex: 1 1 28ch;
  max-width: 44ch;
}
.mag-spread__footnote .mag-spread__footnote-cta { flex: 0 0 auto; }
.mag-spread__footnote .btn--ghost { color: #fff; border-color: rgba(251, 249, 245, 0.4); background: transparent; }
.mag-spread__footnote .btn--ghost:hover { border-color: #fff; color: #fff; }

@media (max-width: 820px) {
  .mag-spread--footnote {
    grid-template-columns: 1fr;
    grid-template-rows: 46svh auto auto;
  }
  .mag-spread--footnote .mag-spread__media { grid-column: 1; grid-row: 1; }
  .mag-spread--footnote .mag-spread__text  { grid-column: 1; grid-row: 2; }
  .mag-spread__footnote { grid-column: 1; grid-row: 3; padding: var(--space-6) var(--space-5); }
}

/* ── Home page: hero runs to the VERY TOP, nav OVERLAID transparently (no top
   banner), turning solid once scrolled past the hero (.is-scrolled, set in site.js).
   Inner pages keep the normal sticky solid header above. ── */
html.home .site-header {
  position: fixed;
  left: 0; right: 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease);
}
/* subtle top scrim so the nav stays legible over a bright hero */
html.home .site-header:not(.is-scrolled)::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(0, 22, 30, 0.42), rgba(0, 22, 30, 0));
  pointer-events: none;
}
html.home .site-header:not(.is-scrolled) .site-header__brand,
html.home .site-header:not(.is-scrolled) .brand-parent,
html.home .site-header:not(.is-scrolled) .brand-dev,
html.home .site-header:not(.is-scrolled) .nav-primary a,
html.home .site-header:not(.is-scrolled) .mobile-menu-toggle {
  color: var(--colour-on-accent);
}
html.home .site-header:not(.is-scrolled) .nav-primary a:hover,
html.home .site-header:not(.is-scrolled) .nav-primary a[aria-current="page"] {
  color: #fff;
}
/* scrolled — the solid cream banner returns */
html.home .site-header.is-scrolled {
  background: rgba(251, 249, 245, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--colour-border);
}

/* ── home-band: opt a section OUT of the full-screen scroll-snap so it reads as a
   compact BANNER (the "Our difference" strip, the show-home CTA) — kills the
   full-viewport white/colour space those short sections were inheriting. ── */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  html.home #main > section.home-band { min-height: 0; scroll-snap-align: none; }
}
/* tighten the CTA band so the orange is a strip, not a screen */
.cta-band.home-band { padding-block: var(--space-7); }

/* ── Magazine spread — FLOW variant ───────────────────────────────────────
   Same two-zone editorial look as .mag-spread, but NOT forced full-screen.
   Used where several spreads run in sequence (e.g. the homes "room by room"
   series) so they read as a magazine feature, not N back-to-back full screens. */
.mag-spread--flow { min-height: 0; }
.mag-spread--flow .mag-spread__media { min-height: 60svh; }
@media (max-width: 820px) {
  .mag-spread--flow .mag-spread__media { min-height: 52svh; }
}
/* slightly calmer headline for a long series (the home-page hero spreads stay XL) */
.mag-spread--flow .mag-spread__title { font-size: clamp(2rem, 3.6vw, 3rem); }

/* spec caption line inside a spread (room dimensions, lot-specific notes) */
.mag-spread__spec {
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--colour-border);
  font-size: var(--text-sm);
  color: var(--colour-text-muted);
  letter-spacing: 0.01em;
  margin-bottom: 0;
  max-width: 46ch;
}

/* ── Enquire — magazine-styled contact block + form (Netlify Forms) ───────── */
.enquire { background: var(--colour-surface-tint); padding-block: clamp(var(--space-8), 8vw, var(--space-9)); }
.enquire__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(var(--space-6), 5vw, var(--space-9));
  align-items: start;
}
.enquire__eyebrow {
  font-family: var(--font-sans); font-size: var(--text-xs); text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--colour-accent); margin: 0;
}
.enquire__title {
  font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.05; color: var(--colour-brand); margin: var(--space-2) 0 0;
}
.enquire__lead { font-size: var(--text-md); line-height: 1.6; color: var(--colour-text); margin: var(--space-4) 0 0; max-width: 42ch; }
.enquire__direct { font-size: var(--text-sm); line-height: 1.7; color: var(--colour-text-muted); margin: var(--space-6) 0 0; }
.enquire__direct a { color: var(--colour-brand); font-weight: 600; }

.enquire__panel {
  background: var(--colour-surface-elev, #fff);
  border: 1px solid var(--colour-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(var(--space-5), 4vw, var(--space-7));
}

.enquire-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquire-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-4); }
.field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.enquire-form__row .field { margin-bottom: 0; }
.field label { font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 600; color: var(--colour-text); }
.field__opt { font-weight: 400; color: var(--colour-text-muted); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: var(--text-md); color: var(--colour-text);
  background: #fff; border: 1px solid var(--colour-border); border-radius: calc(var(--radius) * 0.6);
  padding: 0.7rem 0.85rem; width: 100%;
  transition: border-color var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 4.5rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--colour-text-soft); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--colour-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--colour-accent) 22%, transparent);
}
.field__check {
  display: flex; align-items: flex-start; gap: var(--space-3);
  font-size: var(--text-sm); color: var(--colour-text-muted); line-height: 1.5;
  margin: var(--space-2) 0 var(--space-5);
}
.field__check input { margin-top: 0.2rem; flex: 0 0 auto; width: 1.05rem; height: 1.05rem; accent-color: var(--colour-accent); }
.enquire-form__submit { width: 100%; }

.enquire__done {
  background: var(--colour-brand); color: var(--colour-on-brand);
  border-radius: var(--radius); padding: clamp(var(--space-5), 4vw, var(--space-7));
}
.enquire__done-title { font-family: var(--font-serif); font-size: var(--text-xl); margin: 0 0 var(--space-2); }
.enquire__done a { color: var(--colour-on-brand); text-decoration: underline; }

@media (max-width: 760px) {
  .enquire__inner { grid-template-columns: 1fr; }
  .enquire-form__row { grid-template-columns: 1fr; }
}

/* ── Homes hero — short points list ──────────────────────────────────────── */
.hero__points {
  list-style: none; margin: var(--space-4) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
  font-size: var(--text-md); color: var(--colour-on-accent);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}
.hero__points li { position: relative; padding-left: 1.5em; }
.hero__points li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--colour-accent); font-weight: 700; }

/* ── Feature mosaic (homes "inside every home") — magazine mix: some labels
   sit BESIDE the photo (wide tiles), some UNDERNEATH (tall tiles). ─────────── */
.feature-mosaic {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(10rem, 20vw, 14rem); gap: var(--space-3);
}
.fm {
  background: var(--colour-surface-elev, #fff); border: 1px solid var(--colour-border);
  border-radius: calc(var(--radius) * 0.7); overflow: hidden;
}
.fm__photo { overflow: hidden; }
.fm__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm__label { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: var(--space-3); }
.fm__label h3 { font-family: var(--font-serif); font-weight: 400; font-size: var(--text-md); color: var(--colour-brand); margin: 0; line-height: 1.15; }
.fm__label p { font-size: var(--text-xs); color: var(--colour-text-muted); margin: var(--space-2) 0 0; line-height: 1.4; }
/* label underneath the photo */
.fm--below { display: flex; flex-direction: column; }
.fm--below .fm__photo { flex: 1; min-height: 0; }
/* label beside the photo — spans two columns */
.fm--beside { grid-column: span 2; display: grid; grid-template-columns: 1.2fr 0.8fr; }
.fm--beside .fm__photo { height: 100%; }
/* stylised text-only tile — for amenities we don't carry a photo of */
.fm--text { background: var(--colour-surface-tint); display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--space-4); }
.fm--text__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); max-width: 24ch; }
.fm--text__icon { width: 30px; height: 30px; color: var(--colour-accent); margin-bottom: var(--space-1); }
.fm--text h3 { font-family: var(--font-serif); font-weight: 400; font-size: var(--text-md); color: var(--colour-brand); margin: 0; line-height: 1.15; }
.fm--text p { font-size: var(--text-xs); color: var(--colour-text-muted); margin: 0; line-height: 1.4; }
@media (max-width: 720px) {
  .feature-mosaic { grid-template-columns: repeat(2, 1fr); }
  .fm--beside { grid-column: span 2; }
}

/* ── The Detail — native <details> accordion (no JS), keeps spec copy tucked away ── */
.detail-accordion { border-top: 1px solid var(--colour-border); }
.detail-row { border-bottom: 1px solid var(--colour-border); }
.detail-row > summary {
  cursor: pointer; list-style: none; padding: var(--space-4) 0;
  font-family: var(--font-serif); font-weight: 400; font-size: var(--text-lg);
  color: var(--colour-brand); display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
}
.detail-row > summary::-webkit-details-marker { display: none; }
.detail-row > summary::after { content: "+"; color: var(--colour-accent); font-size: 1.5em; line-height: 0.8; }
.detail-row[open] > summary::after { content: "–"; }
.detail-row > p { margin: 0 0 var(--space-5); color: var(--colour-text); line-height: 1.65; max-width: 64ch; font-size: var(--text-md); }
