/* ════════════════════════════════════════════════════════════
   Hope Field Residents (Ainsdale)
   White · Near-black · Deep green · Satoshi
   Structure follows the johnanthonysykes.co.uk "Harbor" system.
   ════════════════════════════════════════════════════════════ */

:root {
  --bg:          #FFFFFF;
  --bg-2:        #F5F7F6;
  --ink:         #12171A;
  --ink-2:       #2B3238;
  --ink-3:       #454D53;
  --mute:        #6B747A;
  --rule:        #E5E9E7;

  --accent:      #00694A;
  --accent-2:    #00523A;
  --accent-soft: rgba(0,105,74,0.09);
  --accent-tint: #74D6AE;

  --dark:        #071B14;
  --dark-2:      #0C2B21;

  --signal:      #B3261E;

  --sans: 'Satoshi', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 8px;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 900px) { .wrap { padding: 0 2.5rem; } }

/* ── Type ── */
h1, h2, h3 { font-family: var(--sans); color: var(--ink); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.03; letter-spacing: -0.042em; }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.4rem); letter-spacing: -0.034em; }
h3 { font-size: clamp(1.05rem, 1.7vw, 1.25rem); font-weight: 600; letter-spacing: -0.022em; line-height: 1.25; }
p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }
em { font-style: normal; color: var(--accent); font-weight: 600; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.19rem); color: var(--ink-3); line-height: 1.6; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 700; color: var(--mute); margin-bottom: 1.4rem;
}
.eyebrow::after { content: ''; flex: 1; min-width: 40px; max-width: 56px; height: 1px; background: var(--rule); }
@media (max-width: 560px) { .eyebrow { flex-wrap: wrap; } .eyebrow::after { display: none; } }

blockquote {
  margin: 1.4rem 0;
  padding: 0.15rem 0 0.15rem 1.25rem;
  border-left: 2px solid var(--accent);
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.55;
}

.skip-link { position: absolute; left: -9999px; top: 0; padding: 0.75rem 1rem; background: var(--ink); color: #fff; z-index: 999; }
.skip-link:focus { left: 0; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.brand { display: flex; flex-direction: column; line-height: 1; gap: 5px; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-name { font-size: 1rem; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.brand-tag { font-size: 0.57rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.nav-links { display: none; }
@media (min-width: 860px) {
  .nav-links { display: flex; align-items: center; gap: 2rem; }
  .nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--ink-3); }
  .nav-links a:hover { color: var(--ink); text-decoration: none; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 500; font-size: 0.95rem; letter-spacing: -0.015em;
  padding: 0.9rem 1.7rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 0.58rem 1.1rem; font-size: 0.86rem; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn-ghost { background: var(--bg-2); color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { background: #E9EDEB; color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--accent-tint); border-color: var(--accent-tint); color: var(--dark); }
.btn-outline-light { background: transparent; color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.32); }
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Hero ── */
.hero { padding: 4.5rem 0 3.5rem; }
@media (min-width: 900px) { .hero { padding: 6rem 0 4.5rem; } }
.hero h1 { margin-bottom: 1.4rem; max-width: 17ch; }
.hero .lead { max-width: 62ch; margin-bottom: 2.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.7rem 1.5rem; font-size: 0.82rem; color: var(--mute); }
.hero-meta span { display: inline-flex; align-items: center; }
.hero-meta span::before {
  content: ''; width: 4px; height: 4px; background: var(--accent);
  border-radius: 50%; margin-right: 0.6rem; flex-shrink: 0;
}

/* ── Alert band ── */
.band { background: var(--bg-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 1.9rem 0; }
.band-inner { display: grid; gap: 0.45rem; border-left: 3px solid var(--accent); padding-left: 1.25rem; max-width: 88ch; }
.band-label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.band p { font-size: 0.97rem; color: var(--ink-3); margin: 0; }

/* ── Sections ── */
.section { padding: 4.5rem 0; }
@media (min-width: 900px) { .section { padding: 5.75rem 0; } }
.section + .section { border-top: 1px solid var(--rule); }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-alt + .section { border-top: 0; }
.section-head { max-width: 72ch; margin-bottom: 2.6rem; }
.section-head .lead { margin-top: 1rem; }
.section-body { max-width: 72ch; }
.section-body > h2 { margin-bottom: 1.1rem; }
.section-body > * + h2 { margin-top: 0.5rem; }
.section-body > * + h3 { margin-top: 2rem; }
.section-body > h3 { margin-bottom: 0.7rem; }
.section-body ol { margin: 0 0 1.1rem 1.25rem; }
.section-body li { margin-bottom: 0.55rem; }
.section-body ul { list-style: none; margin: 0 0 1.1rem; }
.section-body ul.docs, .section-body ul.trail, .section-body ul.steps { margin-bottom: 0; }
.section-body ul:not(.docs):not(.trail):not(.steps):not(.trail-key) > li { position: relative; padding-left: 1.35rem; }
.section-body ul:not(.docs):not(.trail):not(.steps):not(.trail-key) > li::before {
  content: ''; position: absolute; left: 0; top: 0.72em;
  width: 5px; height: 5px; background: var(--accent); border-radius: 50%;
}
.section-body ol > li::marker { color: var(--accent); font-weight: 700; }

.aside {
  margin-top: 1.6rem; padding: 1.15rem 1.35rem;
  background: var(--bg-2); border: 1px solid var(--rule); border-radius: var(--radius);
  font-size: 0.95rem; color: var(--ink-3);
}
.section-alt .aside { background: var(--bg); }

/* ── Stat cards ── */
.stats { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--bg); padding: 1.9rem 1.6rem 1.7rem; position: relative; }
.stat::before { content: ''; position: absolute; top: 1.9rem; left: 0; width: 2px; height: 1.7rem; background: var(--accent); }
.stat .v { font-size: 2.5rem; font-weight: 500; color: var(--ink); line-height: 1; letter-spacing: -0.04em; }
.stat .l { margin-top: 0.75rem; font-size: 0.86rem; color: var(--ink-3); line-height: 1.5; }

/* ── Steps / timeline ── */
.steps { display: grid; gap: 0; max-width: 72ch; list-style: none; }
.steps li {
  position: relative; padding: 0 0 1.9rem 2.1rem;
  border-left: 1px solid var(--rule);
}
.steps li:last-child { padding-bottom: 0; border-left-color: transparent; }
.steps li::before {
  content: ''; position: absolute; left: -4.5px; top: 0.5rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.steps li.is-now::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.steps li.is-next::before { border-color: var(--rule); }
.steps .date { display: block; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: 0.35rem; }
.steps li.is-next .date { color: var(--mute); }
.steps p { font-size: 0.95rem; color: var(--ink-3); margin: 0; }

/* ── Card grid ── */
.cards { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--bg); padding: 1.75rem 1.6rem; }
.card h3 { margin-bottom: 0.6rem; }
.card h3::before { content: ''; display: block; width: 22px; height: 2px; background: var(--accent); margin-bottom: 0.85rem; }
.card p { font-size: 0.93rem; color: var(--ink-3); line-height: 1.6; margin: 0; }

/* ── Document list ── */
.docs { list-style: none; margin: 0; }
.docs li { border-top: 1px solid var(--rule); padding: 1.15rem 0; }
.docs li:last-child { border-bottom: 1px solid var(--rule); }
.doc-top { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; align-items: baseline; justify-content: space-between; }
.doc-name { font-weight: 600; font-size: 1rem; letter-spacing: -0.015em; flex: 1 1 18rem; }
.doc-meta { font-size: 0.75rem; color: var(--mute); white-space: nowrap; }
.doc-note { font-size: 0.92rem; color: var(--ink-3); line-height: 1.6; margin: 0.4rem 0 0; }

/* ── Correspondence trail ── */
.trail { list-style: none; margin: 0; max-width: 72ch; }
.trail li { position: relative; padding: 0 0 1.6rem 1.5rem; border-left: 1px solid var(--rule); }
.trail li:last-child { padding-bottom: 0; }
.trail li::before {
  content: ''; position: absolute; left: -3.5px; top: 0.55rem;
  width: 6px; height: 6px; border-radius: 50%; background: var(--rule);
}
.trail li.t-us::before { background: var(--accent); }
.trail li.t-bad::before { background: var(--signal); }
.trail .date { display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--mute); margin-bottom: 0.3rem; }
.trail li.t-us .date { color: var(--accent); }
.trail li.t-bad .date { color: var(--signal); }
.trail p { font-size: 0.94rem; color: var(--ink-3); margin: 0 0 0.4rem; }
.trail-key { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-bottom: 1.8rem; font-size: 0.78rem; color: var(--mute); }
.trail-key span { display: inline-flex; align-items: center; gap: 0.5rem; }
.trail-key i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }

/* ── FAQ ── */
.faq { max-width: 72ch; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2rem 1.15rem 0;
  font-weight: 600; color: var(--ink); font-size: 1rem; letter-spacing: -0.018em; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 0.35rem; top: 1.5rem;
  width: 9px; height: 9px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.7rem; }
.faq details p { padding: 0 0 1.25rem; font-size: 0.95rem; color: var(--ink-3); }

/* ── Dark CTA ── */
.cta { background: var(--dark); color: rgba(255,255,255,0.82); padding: 4.5rem 0; }
@media (min-width: 900px) { .cta { padding: 5.5rem 0; } }
.cta h2 { color: #fff; margin-bottom: 1rem; }
.cta .eyebrow { color: rgba(255,255,255,0.55); }
.cta .eyebrow::after { background: rgba(255,255,255,0.18); }
.cta .lead { color: rgba(255,255,255,0.68); max-width: 62ch; }
.cta em { color: var(--accent-tint); }
.cta strong { color: #fff; }
.cta-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 1.25fr 1fr; gap: 4rem; align-items: start; } }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.cta-panel { background: var(--dark-2); border: 1px solid rgba(255,255,255,0.09); border-radius: var(--radius); padding: 1.6rem; }
.cta-panel h3 { color: #fff; font-size: 1rem; margin-bottom: 0.7rem; }
.cta-panel p { font-size: 0.9rem; color: rgba(255,255,255,0.62); margin-bottom: 0.7rem; }
.cta-panel .status {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 0.9rem;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  color: var(--accent-tint);
}
.cta-panel .status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-tint); }

/* ── Footer ── */
.footer { background: var(--dark); color: rgba(255,255,255,0.5); padding: 3.5rem 0 2.25rem; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-grid { display: grid; gap: 2rem; margin-bottom: 2.5rem; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.6fr 1fr; gap: 3rem; } }
.footer .brand-name { color: #fff; }
.footer .brand-tag { color: rgba(255,255,255,0.35); }
.footer p { font-size: 0.84rem; line-height: 1.65; color: rgba(255,255,255,0.45); margin-bottom: 0.8rem; }
.footer h4 { color: #fff; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; margin-bottom: 1rem; }
.footer a { color: rgba(255,255,255,0.62); }
.footer a:hover { color: #fff; }
.footer-col a { display: block; font-size: 0.85rem; padding: 0.28rem 0; }
.footer-bottom { padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom p { font-size: 0.76rem; color: rgba(255,255,255,0.32); margin-bottom: 0.5rem; }

/* ── Centred utility page (404) ── */
.centre-page { min-height: 66vh; display: flex; align-items: center; padding: 4rem 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
