/* ==========================================================================
   EKO HEARTLAND PROPERTIES — DESIGN SYSTEM v3
   Architectural, contemporary, calm. Built directly from the logo's deep
   teal geometry. Sans-serif carries the working interface; serif is
   reserved for the homepage hero and a small number of editorial moments.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=Public+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* ---- Colour tokens — rebuilt around the Eko Heartland teal mark ---- */
  --color-deep:        #022F34;   /* deepest teal — darkest bands, footer */
  --color-heartland:   #064B52;   /* primary teal — brand primary, primary buttons, headings */
  --color-heartland-2: #2F6D72;   /* secondary teal — hovers, eyebrows, accents */
  --color-teal:        #2F6D72;   /* alias used by smaller components */
  --color-copper:      #B9653C;   /* restrained micro-accent ONLY — never a dominant CTA colour */
  --color-stone:       #ECE9E1;   /* soft stone — section variation */
  --color-stone-dark:  #ECE9E1;
  --color-paper:       #F7F5EF;   /* warm off-white — main background */
  --color-white:       #FFFFFF;
  --color-ink:         #142B2D;   /* main text */
  --color-muted:       #657375;   /* muted text */
  --color-line:        #DADDD9;   /* borders */

  /* Back-compat aliases so existing component rules keep working */
  --color-sage:        var(--color-heartland-2);
  --color-brass:       var(--color-copper);
  --color-brick:       var(--color-heartland);
  --color-brick-dark:  var(--color-deep);

  /* ---- Type tokens ----
     Sans is the working typeface (headings, nav, buttons, forms, body).
     Serif (Fraunces) is opt-in via .font-serif for the homepage hero and
     select editorial statements only. */
  --font-display: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-serif:   'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --step--1: clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);  /* eyebrow: 12–13px */
  --step-0:  clamp(1.0625rem, 1.02rem + 0.15vw, 1.125rem); /* body: 17–18px */
  --step-1:  clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);      /* h3: 20–24px */
  --step-2:  clamp(1.5rem, 1.3rem + 0.8vw, 1.75rem);
  --step-3:  clamp(1.875rem, 1.6rem + 1.1vw, 2.25rem);     /* h2: 30–36px */
  --step-4:  clamp(2rem, 1.7rem + 1.3vw, 2.5rem);
  --step-5:  clamp(2.625rem, 2.2rem + 1.8vw, 3rem);        /* internal h1: 42–48px */
  --step-6:  clamp(2.8rem, 2rem + 3.5vw, 4.6rem);          /* dramatic single-word editorial moments */
  --step-hero: clamp(3.5rem, 2.6rem + 4vw, 3.875rem);      /* homepage h1: 56–62px */

  /* ---- Layout tokens ---- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --container: 1120px;       /* standard container */
  --container-wide: 1240px;  /* wide container */
  --reading-width: 45rem;    /* ~720px */
  --gap: clamp(1.25rem, 1rem + 1vw, 2.5rem);
  --section-pad: clamp(3rem, 2.5rem + 2vw, 4.5rem);   /* ~72px normal */
  --section-pad-lg: clamp(3.5rem, 3rem + 3vw, 6rem);  /* up to ~96px major editorial */

  --shadow-card: 0 1px 2px rgba(2,47,52,0.05), 0 8px 24px rgba(2,47,52,0.06);
  --shadow-raised: 0 10px 30px rgba(2,47,52,0.14);
}

.font-serif { font-family: var(--font-serif) !important; }

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-paper);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-heartland);
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 0.5em;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--step-5); font-weight: 700; line-height: 1.05; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--color-sage); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--color-brick); }

/* Visible focus states everywhere */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--color-brick);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-heartland);
  color: #fff;
  padding: 0.85em 1.4em;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
/* The generic a:hover rule below would otherwise set this link's hover
   colour to the same teal as its own background, making it vanish. */
.skip-link:hover { color: #fff; }
.skip-link:focus {
  left: 0;
}

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding-block: var(--section-pad); }
.section--stone { background: var(--color-stone); }
.section--dark {
  background: var(--color-heartland);
  color: #E7E9E5;
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: #C9D2CB; }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brick);
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 2px;
  height: 0.8em;
  background: var(--color-copper);
  display: inline-block;
  box-shadow: 4px 0 0 var(--color-copper);
  margin-right: 2px;
}

.lede { font-size: var(--step-1); color: var(--color-muted); max-width: 42rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  padding: 0.9em 1.6em;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  line-height: 1.1;
}
.btn-primary {
  background: var(--color-brick);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { background: var(--color-brick-dark); color: #fff; transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--color-heartland);
  border-color: var(--color-heartland);
}
.btn-secondary:hover { background: var(--color-heartland); color: #fff; }
/* Any btn-secondary placed on a dark surface needs the light variant.
   Applied by context class rather than repeated per-component overrides. */
   .section--dark .btn-secondary,
.edt-split--a .btn-secondary,
.edt-close .btn-secondary,
.edt-hero .btn-secondary,
.cookie-banner .btn-secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.65);
}
.section--dark .btn-secondary:hover,
.edt-split--a .btn-secondary:hover,
.edt-close .btn-secondary:hover,
.edt-hero .btn-secondary:hover,
.cookie-banner .btn-secondary:hover {
  background: #fff;
  color: var(--color-heartland);
}
.btn-ghost {
  background: transparent;
  color: var(--color-sage);
  padding: 0.95em 0.2em;
  border-radius: 0;
}
.btn-ghost::after { content: "→"; margin-left: 0.35em; transition: margin 0.15s ease; }
.btn-ghost:hover::after { margin-left: 0.6em; }
.btn-block { width: 100%; justify-content: center; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(247,245,239,0.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.site-header__inner {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  align-items: center;
  column-gap: 1rem;
  padding-block: 0.9rem;
}
.brand {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-heartland);
}
.brand__mark { width: clamp(120px, 9vw, 140px); height: auto; flex-shrink: 0; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-heartland);
  line-height: 1.1;
}

.main-nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}
.header-cta { grid-column: 3; justify-self: end; }
.main-nav__cta-mobile { display: none; }
.main-nav__list {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: var(--step--1);
}
.main-nav__list a {
  color: var(--color-ink);
  text-decoration: none;
  padding: 0.4em 0.1em;
  border-bottom: 2px solid transparent;
}
.main-nav__list a:hover,
.main-nav__list a[aria-current="page"] {
  color: var(--color-heartland);
  border-bottom-color: var(--color-heartland);
}

.nav-toggle {
  display: none;
  grid-column: 3;
  justify-self: end;
  background: none;
  border: 2px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 0.5em 0.6em;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-heartland);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .site-header__inner { display: flex; align-items: center; justify-content: space-between; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 85vw);
    height: 100vh;
    background: var(--color-paper);
    flex-direction: column;
    align-items: stretch;
    padding: 5.5rem 1.75rem 2rem;
    box-shadow: var(--shadow-raised);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    gap: 2rem;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav__list { flex-direction: column; gap: 1.1rem; font-size: 1.05rem; }
  .main-nav__cta-mobile { display: inline-flex; }
  .main-nav .btn { width: 100%; justify-content: center; }
}

/* ---- Hero ---- */
.hero {
  padding-block: clamp(3rem, 2.5rem + 3vw, 6rem);
  background: linear-gradient(180deg, var(--color-stone) 0%, var(--color-paper) 100%);
}
/* Compact variant for text-only heroes (no image) — the full hero padding
   was tuned for hero__figure-height content and leaves excess dead space
   without one. */
.hero--compact { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }

/* Slim inline redirect prompts — used instead of a full card grid when a
   page just needs to point a specific audience to their dedicated form. */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--color-line);
}
.quick-links a {
  font-weight: 700;
  color: var(--color-heartland);
  text-decoration: none;
}
.quick-links a:hover { color: var(--color-brass); }
.quick-links a::after { content: "→"; margin-left: 0.4em; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 3vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}
.hero h1 { margin-bottom: 0.5em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero__figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-stone-dark);
}
.hero__figure img { width: 100%; height: 100%; object-fit: cover; }
.hero__note {
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 1.1em 1.3em;
  font-size: var(--step--1);
  color: var(--color-muted);
  margin-top: 1.5rem;
}

/* ---- Cards & grids ---- */
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card__icon {
  width: 46px; height: 46px;
  margin-bottom: 1.1rem;
  color: var(--color-brick);
}
.card h3, .card h4 { margin-bottom: 0.45em; }
.card p { color: var(--color-muted); }
.card .btn-ghost { margin-top: auto; padding-top: 1rem; }

.section--dark .card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.14);
}
.section--dark .card p { color: #C9D2CB; }
.section--dark .card h3, .section--dark .card h4 { color: #fff; }

/* ---- Numbered process (used only where order genuinely matters) ---- */
.process {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(4, 1fr);
  counter-reset: step;
}
.process--7 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .process, .process--7 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .process, .process--7 { grid-template-columns: 1fr; }
}
.process__step {
  counter-increment: step;
  position: relative;
  padding-top: 2.6rem;
}
.process__step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-brick);
  display: block;
  margin-bottom: 0.4rem;
}
.process__step h4 { margin-bottom: 0.4em; }
.process__step p { color: var(--color-muted); font-size: var(--step--1); }

/* ---- Areas / tags ---- */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.area-list li {
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 0.6em 1.2em;
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--color-heartland);
}

/* ---- Architectural numbered list (replaces pill-chip lists where the
        content is a small enumerated set, e.g. organisation types) ---- */
.numbered-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  border-top: 1px solid var(--color-line);
}
.numbered-list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--color-line);
  font-weight: 600;
  color: var(--color-ink);
  font-size: var(--step-0);
}
.numbered-list__num {
  font-weight: 700;
  color: var(--color-copper);
  font-variant-numeric: tabular-nums;
  min-width: 2.2ch;
}

/* ---- Disclaimer / conditional notice blocks ---- */
.notice {
  border-left: 3px solid var(--color-sage);
  background: var(--color-stone);
  padding: 1em 1.3em;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--step--1);
  color: var(--color-muted);
  margin: 1.5rem 0;
}
.notice--placeholder {
  border-left-color: var(--color-brick);
  background: #FBF1EC;
  color: #6B3A26;
  font-style: italic;
}

/* ---- Split / two-column content ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 3vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---- Final CTA band ---- */
.cta-band {
  background: var(--color-heartland);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.6rem + 2vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 750px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band__block {
  border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: clamp(1rem, 2vw, 2rem);
}
.cta-band__block:first-child { border-left: none; padding-left: 0; }
@media (max-width: 750px) {
  .cta-band__block { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 1.5rem; }
  .cta-band__block:first-child { border-top: none; padding-top: 0; }
}
.cta-band h3 { color: #fff; }
.cta-band p { color: #C9D2CB; margin-bottom: 1.3em; }
/* Same collision as page-hero--band: btn-primary's teal fill matches this
   band's background exactly. Use a solid white button here instead. */
.cta-band .btn-primary { background: #fff; color: var(--color-heartland); }
.cta-band .btn-primary:hover { background: #EFEDE4; color: var(--color-heartland); }

/* ---- Forms ---- */
.form-panel {
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.75rem);
  box-shadow: var(--shadow-card);
}
.form-row { margin-bottom: 1.4rem; }
.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 620px) { .form-row--split { grid-template-columns: 1fr; } }

label, legend {
  display: block;
  font-weight: 700;
  font-size: var(--step--1);
  color: var(--color-heartland);
  margin-bottom: 0.4em;
}
fieldset { border: none; padding: 0; margin: 0 0 1.4rem; }
.required-mark { color: var(--color-brick); }

input[type="text"], input[type="email"], input[type="tel"],
input[type="date"], input[type="number"], select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--color-ink);
  background: var(--color-paper);
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 0.75em 0.9em;
}
textarea { resize: vertical; min-height: 8rem; }
input:focus, select:focus, textarea:focus { border-color: var(--color-sage); }

.radio-group, .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
}
.radio-group label, .checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 500;
  color: var(--color-ink);
  margin-bottom: 0;
}
.radio-group input, .checkbox-group input { width: auto; }

.field-hint { font-size: var(--step--1); color: var(--color-muted); margin-top: 0.35em; }
.field-error {
  font-size: var(--step--1);
  color: var(--color-brick-dark);
  margin-top: 0.35em;
  font-weight: 600;
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--color-brick);
}

.form-alert {
  border-radius: var(--radius-md);
  padding: 1em 1.3em;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.form-alert--success { background: #EAF1EC; color: #23422E; border: 1px solid #B9D3C1; }
.form-alert--error { background: #FBECE7; color: #7A2E13; border: 1px solid #E9B79D; }

/* ---- FAQ accordion (works without JS too) ---- */
.faq-item {
  border-bottom: 1px solid var(--color-line);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--color-heartland);
  padding: 1.2em 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--color-brick);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 1.3em; color: var(--color-muted); }

/* ---- Footer ---- */
.site-footer {
  background: var(--color-heartland);
  color: #C9D2CB;
  padding-block: clamp(3rem, 2.5rem + 2vw, 5rem) 2rem;
}
/* Plain links here would otherwise inherit the generic a:hover colour,
   which is the exact same teal as this footer's own background. */
.site-footer a { color: #C9D2CB; }
.site-footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
}
.footer__brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; margin-bottom: 1rem; text-decoration: none; }
.footer__brand span { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7em; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: 3rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: var(--step--1);
  color: #A5B0A9;
}
.footer__bottom a { color: #A5B0A9; }

/* ---- Cookie consent banner ---- */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 640px;
  margin-inline: auto;
  background: var(--color-heartland);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-raised);
  z-index: 900;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { font-size: var(--step--1); color: #E1E6E0; margin-bottom: 1rem; }
.cookie-banner__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
/* Same collision as page-hero--band/cta-band: swap to a solid white button. */
.cookie-banner .btn-primary { background: #fff; color: var(--color-heartland); }
.cookie-banner .btn-primary:hover { background: #EFEDE4; color: var(--color-heartland); }

/* ---- Placeholder imagery ----
   Used until licensed photography is supplied. Deliberately marked as a
   placeholder rather than pretending to be a real photograph — see README. */
.img-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background:
    repeating-linear-gradient(135deg, rgba(35,52,44,0.06) 0 2px, transparent 2px 14px),
    var(--color-stone-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  text-align: center;
  padding: 1.5rem;
}
.img-placeholder__label {
  font-size: var(--step--1);
  font-weight: 600;
  max-width: 20rem;
  background: rgba(255,255,255,0.85);
  padding: 0.6em 1em;
  border-radius: var(--radius-sm);
}

/* ---- Utility ---- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.text-muted { color: var(--color-muted); }
.narrow { max-width: 60ch; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.legal-content h2 { margin-top: 1.8em; }
.legal-content ul { color: var(--color-muted); }

/* ==========================================================================
   EDITORIAL HOMEPAGE COMPONENTS
   Distinct, hand-composed sections — no repeated card-grid rhythm.
   ========================================================================== */

.edt-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* ---- 1. Hero: full-bleed photography, left-to-right teal gradient,
        no boxed copy panel — text sits directly on the gradient. ---- */
.edt-hero {
  position: relative;
  min-height: min(56vh, 540px);
  display: grid;
  grid-template-columns: 1fr;
}
.edt-hero__media {
  grid-area: 1 / 1;
  position: relative;
  overflow: hidden;
}
.edt-hero__media .img-placeholder {
  min-height: min(56vh, 540px);
  border-radius: 0;
}
.edt-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Controlled left-to-right teal gradient — dark teal under the copy,
     fading to reveal the photograph on the right. */
  background: linear-gradient(90deg, var(--color-deep) 0%, rgba(2,47,52,0.82) 32%, rgba(2,47,52,0.35) 58%, rgba(2,47,52,0.04) 78%);
}
.edt-hero__watermark {
  position: absolute;
  z-index: 1;
  right: clamp(1rem, 4vw, 4rem);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(140px, 16vw, 260px);
  opacity: 0.12;
  pointer-events: none;
}
.edt-hero__watermark img { width: 100%; filter: brightness(0) invert(1); }
@media (max-width: 900px) { .edt-hero__watermark { display: none; } }
.edt-hero__content {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding-block: clamp(2rem, 3vw, 3rem);
}
.edt-hero__inner {
  max-width: 34rem;
  color: #fff;
}
.edt-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #CFE3DE;
  margin-bottom: 1.2rem;
}
.edt-hero__eyebrow::before { content: ""; width: 2.2em; height: 1.5px; background: var(--color-copper); }
.edt-hero h1 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: var(--step-hero);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 0.15em;
  text-wrap: balance;
}
.edt-hero__subline {
  font-family: var(--font-serif);
  font-style: italic;
  color: #CFE3DE;
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.1rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.8em;
}
.edt-hero__lede { color: #E1EAE7; font-size: var(--step-0); max-width: 26rem; margin-bottom: 1.6rem; }
.edt-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---- 2. Statement: pure typography pause, full negative space ---- */
.edt-statement {
  padding-block: clamp(4rem, 5vw, 6.5rem);
  background: var(--color-stone);
  text-align: center;
}
.edt-statement__mark { width: 40px; height: auto; margin: 0 auto 2rem; opacity: 0.85; }
.edt-statement__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.7rem, 1.2rem + 2.4vw, 3.1rem);
  line-height: 1.28;
  color: var(--color-heartland);
  max-width: 38rem;
  margin-inline: auto;
  text-wrap: balance;
}
.edt-statement__note {
  margin: 1.8rem auto 0;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  color: var(--color-muted);
  max-width: 30rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--color-line);
}

/* ---- 3. Asymmetric split — Landlords' own device: large dominant
        photography with a narrow text column. (Housing Partners uses a
        deliberately different device below — see .edt-requirement.) ---- */
.edt-split {
  display: grid;
  align-items: stretch;
  min-height: 640px;
}
.edt-split--a { grid-template-columns: 1.55fr 1fr; }
.edt-split__media { position: relative; overflow: hidden; }
.edt-split__media .img-placeholder { min-height: 100%; border-radius: 0; }
.edt-split__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 3vw, 4.5rem);
  background: var(--color-heartland);
  color: #fff;
}
.edt-split__text .eyebrow { color: var(--color-brass); }
.edt-split__text h2 { color: #fff; font-size: var(--step-4); max-width: 20ch; text-wrap: balance; }
.edt-split__text p { color: #D6E2DE; max-width: 32ch; }
.edt-split__text .notice { background: rgba(255,255,255,0.08); border-left-color: var(--color-brass); color: #E4EDEA; }
.edt-split__text .btn-secondary { align-self: flex-start; margin-top: 1.6rem; }
/* Plain links here (e.g. the "Letting agent?" line) would otherwise
   inherit the generic a:hover colour — same teal as this panel's own
   background. */
.edt-split__text a:not(.btn) { color: #D6E2DE; }
.edt-split__text a:not(.btn):hover { color: #fff; }

@media (max-width: 900px) {
  .edt-split, .edt-split--a { grid-template-columns: 1fr; min-height: auto; }
  .edt-split__media .img-placeholder { min-height: 320px; }
}

/* ---- 4 (alternate). Requirement band — Housing Partners' own device.
        Deliberately not a mirrored photo split: structured, text-only,
        so it reads as a distinct idea rather than the Landlords panel
        flipped horizontally. ---- */
.edt-requirement {
  padding-block: var(--section-pad);
  background: var(--color-paper);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.edt-requirement__head { max-width: 34rem; margin-bottom: clamp(2.5rem, 3vw, 4rem); }
.edt-requirement__head h2 { max-width: 18ch; }
.edt-requirement__fields {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1.5px solid var(--color-line);
  margin-bottom: clamp(2rem, 3vw, 3rem);
}
.edt-requirement__field {
  padding: 1.6rem 1.6rem 0 0;
  border-left: 1.5px solid var(--color-line);
}
.edt-requirement__field:first-child { border-left: none; padding-left: 0; }
.edt-requirement__field:not(:first-child) { padding-left: 1.6rem; }
.edt-requirement__num {
  display: block;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brass);
  margin-bottom: 0.6rem;
}
.edt-requirement__field h4 { font-size: var(--step-1); margin-bottom: 0; }
@media (max-width: 800px) {
  .edt-requirement__fields { grid-template-columns: repeat(2, 1fr); }
  .edt-requirement__field { border-top: 1.5px solid var(--color-line); padding-top: 1.4rem; }
  .edt-requirement__field:nth-child(-n+2) { border-top: none; padding-top: 0; }
  .edt-requirement__field:nth-child(even) { border-left: 1.5px solid var(--color-line); padding-left: 1.6rem; }
  .edt-requirement__field:nth-child(odd) { border-left: none; padding-left: 0; }
}

/* ---- 5. Process: a single flowing line, not boxed cards ---- */
.edt-process { padding-block: var(--section-pad); }
.edt-process__head { max-width: 34rem; margin-bottom: clamp(2.5rem, 3vw, 4rem); }
.edt-process__line {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  border-top: 1.5px solid var(--color-line);
}
.edt-process__step {
  flex: 1 1 0;
  min-width: 190px;
  padding: 1.8rem 1.6rem 0 0;
  position: relative;
}
.edt-process__step + .edt-process__step { border-left: 1.5px solid var(--color-line); padding-left: 1.6rem; }
.edt-process__num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-2);
  color: var(--color-brass);
  margin-bottom: 0.5rem;
}
.edt-process__step h4 { margin-bottom: 0.35em; font-size: var(--step-1); }
.edt-process__step p { color: var(--color-muted); font-size: var(--step--1); max-width: 22ch; }
@media (max-width: 800px) {
  .edt-process__step { flex: 1 1 45%; border-left: none !important; padding-left: 0 !important; border-top: 1.5px solid var(--color-line); padding-top: 1.4rem; }
}

/* ---- 6. Principles: oversized word + caption, alternating rhythm, dark full-bleed ---- */
.edt-principles {
  background: var(--color-heartland);
  color: #fff;
  padding-block: clamp(4.5rem, 6vw, 8rem);
}
.edt-principles__row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: baseline;
  padding-block: clamp(1.6rem, 2.5vw, 2.6rem);
  border-top: 1px solid rgba(255,255,255,0.16);
}
.edt-principles__row:last-child { border-bottom: 1px solid rgba(255,255,255,0.16); }
.edt-principles__row--reverse { grid-template-columns: 1fr 1.1fr; }
.edt-principles__row--reverse .edt-principles__word { order: 2; text-align: right; }
.edt-principles__row--reverse .edt-principles__caption { order: 1; }
.edt-principles__word {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: var(--step-6);
  line-height: 0.95;
  color: #fff;
}
.edt-principles__caption { color: #C7D6D2; font-size: var(--step-0); max-width: 30rem; }
.edt-principles__caption strong { color: var(--color-brass); font-weight: 700; }
@media (max-width: 700px) {
  .edt-principles__row, .edt-principles__row--reverse {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .edt-principles__row--reverse .edt-principles__word { text-align: left; order: 1; }
  .edt-principles__row--reverse .edt-principles__caption { order: 2; }
  .edt-principles__word { font-size: var(--step-5); }
}

/* ---- 7. Areas: typographic + a small relational map ---- */
.edt-areas { padding-block: var(--section-pad); }
.edt-areas__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 3vw, 4rem);
  align-items: center;
}
.edt-areas__grid p + p { margin-top: 0.9em; }
@media (max-width: 800px) {
  .edt-areas__grid { grid-template-columns: 1fr; }
}

.edt-map {
  width: 100%;
  height: auto;
  background: var(--color-stone);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
}
.edt-map__line-core {
  fill: none;
  stroke: var(--color-teal);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.edt-map__line-grow {
  fill: none;
  stroke: var(--color-brass);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-dasharray: 1 7;
}
.edt-map__pin { fill: var(--color-heartland); }
.edt-map__pin--grow { fill: var(--color-brass); }
.edt-map__label {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  fill: var(--color-ink);
}
.edt-map__caption {
  margin-top: 0.9rem;
  font-size: var(--step--1);
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.edt-map__caption span { display: inline-flex; align-items: center; gap: 0.5em; }
.edt-map__swatch { width: 16px; height: 0; border-top: 2px solid var(--color-teal); display: inline-block; }
.edt-map__swatch--grow { border-top: 2px dashed var(--color-brass); }

/* ---- 8. Final CTA: full-bleed editorial close, asymmetric ---- */
.edt-close {
  background: var(--color-ink);
  color: #fff;
  padding-block: clamp(4rem, 6vw, 7.5rem);
}
.edt-close__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: end;
}
.edt-close h2 { color: #fff; font-size: var(--step-5); max-width: 20ch; text-wrap: balance; }
.edt-close__actions { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.edt-close p { color: #B9C7C3; }
@media (max-width: 800px) {
  .edt-close__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   INTERNAL PAGE SYSTEM (v2)
   A distinct compositional vocabulary per page type — no repeated
   eyebrow+heading+card-grid formula. Every internal-page hero is a fixed,
   compact band (280–360px); internal H1s sit at 44–50px, not the editorial
   homepage scale.
   ========================================================================== */

/* ---- Universal compact internal hero ---- */
.page-hero {
  min-height: clamp(280px, 26vw, 360px);
  display: flex;
  align-items: center;
  padding-block: 64px 72px;
}
/* .container's own margin-inline:auto behaves as flex-item centering once
   it's a flex child with a narrower max-width than the available space —
   this neutralises that so narrow hero copy stays left-aligned like every
   other page, instead of drifting to the centre. */
.page-hero__narrow { max-width: 42rem; margin-inline: 0; }
.page-hero h1 {
  font-size: var(--step-5); /* 42–48px */
  line-height: 1.1;
  margin-bottom: 0.4em;
  text-wrap: balance;
}
.page-hero--plain { background: var(--color-stone); }
.page-hero--band { background: var(--color-heartland); color: #fff; }
.page-hero--band h1 { color: #fff; }
.page-hero--band .eyebrow { color: #CFE3DE; }
.page-hero--band p { color: #C9D2CB; }
/* The primary button's teal fill is identical to this band's background —
   swap to a solid white button here so it stays visible, matching the
   convention of a white CTA on a coloured hero. */
.page-hero--band .btn-primary { background: #fff; color: var(--color-heartland); }
.page-hero--band .btn-primary:hover { background: #EFEDE4; color: var(--color-heartland); }

.page-hero__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  width: 100%;
}
.page-hero__media {
  height: clamp(200px, 20vw, 280px);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.page-hero__media .img-placeholder { height: 100%; min-height: 0; }

/* Compact 45/55 split hero (Landlords) — taller allowance since it
   carries a large paired photograph; still well under one viewport. */
.page-hero--split { min-height: clamp(400px, 34vw, 500px); padding-block: 48px; }
.page-hero--split .page-hero__grid { grid-template-columns: 0.82fr 1fr; height: 100%; }
.page-hero--split .page-hero__media { height: 100%; max-height: 420px; }

@media (max-width: 800px) {
  .page-hero__grid, .page-hero--split .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero, .page-hero--split { min-height: auto; padding-block: 2.5rem; }
   .page-hero__media, .page-hero--split .page-hero__media {
    display: block;
    height: auto;
    max-height: none;
    aspect-ratio: 16 / 9;
    order: -1;
  }
}


/* ---- Spec list: definition-style rows, replaces card grids ---- */
.spec-list { border-top: 1px solid var(--color-line); }
.spec-list__row {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) 1.6fr;
  gap: clamp(1rem, 2vw, 2.5rem);
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--color-line);
}
.spec-list__row dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  color: var(--color-heartland);
}
.spec-list__row dd {
  margin: 0;
  color: var(--color-muted);
}
@media (max-width: 700px) {
  .spec-list__row { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ---- Narrative stack: numbered single-column list, replaces card grids ---- */
.narrative-stack { border-top: 1px solid var(--color-line); }
.narrative-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: clamp(1rem, 2vw, 2rem);
  padding-block: clamp(1.8rem, 2.5vw, 2.6rem);
  border-bottom: 1px solid var(--color-line);
}
.narrative-item__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-3);
  color: var(--color-brass);
  line-height: 1;
}
.narrative-item h3 { margin-bottom: 0.35em; font-size: var(--step-1); }
.narrative-item p { color: var(--color-muted); max-width: 52ch; }
@media (max-width: 620px) {
  .narrative-item { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ---- Essay: narrow centred column for About ---- */
.essay { max-width: var(--reading-width); margin-inline: auto; }
.essay p { color: var(--color-muted); font-size: var(--step-0); }
.essay p + p { margin-top: 1.1em; }
.essay__lead {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--color-heartland);
  font-weight: 700;
}

/* ---- Large serif editorial proposition statement (About) ---- */
.editorial-statement {
  font-size: clamp(1.75rem, 1.4rem + 2vw, 2.75rem);
  line-height: 1.28;
  color: #fff;
  font-style: italic;
  font-weight: 400;
  max-width: 34rem;
  margin-inline: auto;
}

/* ---- Principle rows: editorial label + text, not identical cards ---- */
.principle-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: 1.6rem;
  border-top: 1px solid var(--color-line);
  max-width: 52rem;
  margin-inline: auto;
}
.principle-row:last-child { border-bottom: 1px solid var(--color-line); }
.principle-row__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--color-heartland);
}
.principle-row__text { color: var(--color-muted); margin: 0; max-width: 42ch; }
@media (max-width: 620px) {
  .principle-row { grid-template-columns: 1fr; gap: 0.4rem; }
}

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-2);
  color: var(--color-heartland);
  border-left: 3px solid var(--color-brass);
  padding-left: 1.3rem;
  margin: 2rem 0;
}
.essay__principles {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.essay__principles li { color: var(--color-muted); }
.essay__principles strong { color: var(--color-heartland); font-family: var(--font-display); font-size: var(--step-1); display: block; margin-bottom: 0.15em; }

/* ---- Contact utility layout: info panel + form, two columns ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.contact-info { display: grid; gap: 1.6rem; }
.contact-info h2 { font-size: var(--step-1); margin-bottom: 0.3em; }
.contact-info__item { border-top: 1px solid var(--color-line); padding-top: 1.1rem; }
.contact-info__item:first-child { border-top: none; padding-top: 0; }
.contact-info__label { font-size: var(--step--1); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted); margin-bottom: 0.3em; }
.contact-info__links {
  margin-top: 0.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--color-line);
  display: grid;
  gap: 0.7rem;
}
.contact-info__links a {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--color-heartland-2);
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---- Utility page (Submit Property / Submit Requirement) ---- */
.utility-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--color-muted);
  text-decoration: none;
  margin-bottom: 1.2rem;
}
.utility-back::before { content: "←"; }
.utility-back:hover { color: var(--color-brass); }
