/* ==========================================================================
   OUR HUB — design system
   Colours and fonts: edit the :root block only.
   ========================================================================== */

@font-face { font-family: "Lexend"; src: url("fonts/lexend-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("fonts/lexend-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Brand palette (from the brief) */
  --navy: #03273F;
  --teal: #0B8079;        /* buttons, large text, decoration */
  --ivory: #FEFBF6;
  --ink: #1E2D35;
  --soft-teal: #E5F1EF;
  /* Additions — see README "Design decisions" */
  --teal-text: #0A6D67;   /* teal for small text: #0B8079 on soft teal is 4.15:1 and fails WCAG AA */
  --sand: #E3B66B;        /* decorative only, never for text */
  --white: #FFFFFF;
  --line: #D9DED9;
  --muted: #4A5A62;

  --font-head: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --max: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --space: clamp(3.5rem, 8vw, 6.5rem);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--font-body); font-size: 1.125rem; line-height: 1.65; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--teal-text); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.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: 1rem; top: -4rem; z-index: 100; background: var(--navy); color: var(--white); padding: .75rem 1.25rem; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 1rem; color: var(--white); }

.eyebrow { font-family: var(--font-head); font-size: .95rem; font-weight: 600; color: var(--teal-text); margin-bottom: 1rem; letter-spacing: .01em; }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.3rem); color: var(--ink); max-width: 40em; }
.small-print { font-size: 1rem; color: var(--muted); margin-top: 2rem; max-width: 46em; }
.tag { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--navy); background: var(--soft-teal); padding: .2rem .7rem; border-radius: 99px; margin-bottom: .9rem; }

/* ---------- status banner ---------- */
.status-banner { background: var(--navy); color: var(--ivory); font-size: .98rem; }
.status-banner__inner { display: flex; gap: .9rem; align-items: baseline; padding-top: .6rem; padding-bottom: .6rem; flex-wrap: wrap; }
.status-banner__label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; background: var(--sand); color: var(--ink); padding: .15rem .6rem; border-radius: 99px; }

/* ---------- header ---------- */
.site-header { background: var(--ivory); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--navy); }
.brand__logo { display: block; height: 46px; width: auto; }
.brand--footer .brand__logo { height: 52px; }
.brand__lockup { display: inline-grid; line-height: 1; }
.brand__arc { display: block; width: 0; min-width: 100%; height: 1.05rem; margin: 0 0 .1rem; overflow: visible; justify-self: center; }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 1.8rem; letter-spacing: -.01em; color: var(--navy); }
.brand--footer .brand__name { color: var(--ivory); }
.brand--footer .brand__arc path { fill: #8FD0CB; }
.brand__mark { color: var(--navy); } .brand__mark svg { width: 38px; height: 38px; }
.brand--footer .brand__mark { color: var(--ivory); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav a { display: block; padding: .55rem .8rem; border-radius: 99px; text-decoration: none; color: var(--ink); font-size: 1rem; font-weight: 700; }
.site-nav a:hover { background: var(--soft-teal); color: var(--navy); }
.site-nav a[aria-current="page"] { background: var(--navy); color: var(--white); }
.nav-toggle { display: none; align-items: center; gap: .6rem; background: transparent; border: 2px solid var(--navy); color: var(--navy); border-radius: 99px; padding: .5rem 1rem; font: 700 1rem var(--font-body); cursor: pointer; min-height: 44px; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ivory); border-bottom: 1px solid var(--line); padding: .75rem var(--gutter) 1.25rem; box-shadow: 0 18px 30px -20px rgba(23,62,85,.35); }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav a { padding: .85rem 1rem; font-size: 1.1rem; }
  .site-nav ul { flex-wrap: wrap; }
}

/* ---------- CTAs ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; align-items: center; }
.cta-row--end { justify-content: flex-end; margin-top: 0; }
.cta { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: .8rem 1.5rem; border-radius: 99px; font: 700 1.05rem var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, transform .2s; margin: 0; }
.cta--primary { background: var(--teal); color: var(--white); }
.cta--primary:hover { background: var(--navy); color: var(--white); }
.cta--secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.cta--secondary:hover { background: var(--navy); color: var(--white); }
.cta--light { background: var(--ivory); color: var(--navy); }
.cta--light:hover { background: var(--white); color: var(--navy); }
.cta__arrow { transition: transform .2s; }
.cta:hover .cta__arrow { transform: translateX(3px); }
.cta--soon { background: var(--white); color: var(--muted); border: 2px dashed var(--line); cursor: default; font-weight: 700; }
.section--band .cta--soon { background: rgba(255,255,255,.08); color: var(--ivory); border-color: rgba(248,246,240,.4); }
.cta__pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--sand); flex: none; }

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero__grid { display: grid; gap: 3rem; align-items: center; }
.hero--home .hero__grid, .hero--raasta .hero__grid { grid-template-columns: 1.25fr 1fr; }
.hero h1 { max-width: 18ch; }
.hero--home h1 { font-size: clamp(2.4rem, 4.6vw, 3.35rem); }
.hero__art { max-width: 440px; justify-self: end; width: 100%; }
.tagline { font-family: var(--font-head); font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--teal-text); margin: 0 0 1.5rem; }
@media (max-width: 860px) {
  .hero--home .hero__grid, .hero--raasta .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 300px; justify-self: start; order: -1; }
}

/* ---------- Raasta wordmark ---------- */
.raasta-mark { display: inline-flex; flex-direction: column; gap: .35rem; margin: 0 0 1.25rem; color: var(--navy); font-family: var(--font-head); }
.raasta-mark__words { display: inline-flex; align-items: center; gap: .55em; text-transform: uppercase; font-weight: 600; letter-spacing: .14em; line-height: 1; }
.raasta-mark__words > span:last-child { color: var(--teal); }
.raasta-mark__divider { display: inline-block; width: 1.5px; height: 1.05em; background: currentColor; opacity: .55; }
.raasta-mark__row { display: inline-flex; align-items: center; gap: .7em; }
.raasta-mark__stack { display: inline-flex; flex-direction: column; gap: .35rem; }
.raasta-mark__icon { display: inline-flex; flex: none; width: 2.6em; height: 2.6em; }
.raasta-mark__icon svg { width: 100%; height: 100%; }
.raasta-mark--xl .raasta-mark__icon { width: 1.25em; height: 1.25em; font-size: clamp(2.6rem, 6vw, 4.4rem); }
.raasta-mark--xl .raasta-mark__row { gap: .9rem; }
.raasta-mark--xl .raasta-mark__row { align-items: center; }
.raasta-mark__by { font-family: var(--font-body); font-size: .9rem; letter-spacing: .02em; color: var(--muted); text-transform: none; font-weight: 400; }
.raasta-mark--sm .raasta-mark__words { font-size: 1rem; }
.raasta-mark--md .raasta-mark__words { font-size: 1.15rem; }
.raasta-mark--xl .raasta-mark__words { font-size: clamp(1.3rem, 2.7vw, 2.25rem); letter-spacing: .08em; flex-wrap: wrap; row-gap: .2em; }
.raasta-mark--xl .raasta-mark__by { font-size: 1.05rem; margin-top: .35rem; }
h1.raasta-mark { max-width: none; }
.raasta-inline { white-space: nowrap; font-weight: 700; color: var(--navy); }
.raasta-inline__bar { display: inline-block; width: 1.5px; height: .9em; background: currentColor; opacity: .5; margin: 0 .4em; vertical-align: -.08em; }

/* ---------- sections ---------- */
.section { padding: var(--space) 0; }
.section--tight { padding-top: 0; }
.section--flush { padding-top: 0; }
.section--soft { background: var(--soft-teal); }
.section--band { background: var(--navy); color: var(--ivory); }
.band { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.band h2 { color: var(--ivory); margin: 0; max-width: 18ch; }
.band .cta-row { margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split--narrow { align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .cta-row--end { justify-content: flex-start; } }

/* ---------- cards ---------- */
.card-grid { display: grid; gap: 1.25rem; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid--3, .card-grid--2 { grid-template-columns: 1fr; } }
.card { background: var(--white); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.1rem); border: 1px solid var(--line); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card--outline { background: var(--white); border: 1.5px solid var(--teal); }
.card__title { font-size: 1.35rem; margin-bottom: .55rem; }

.area-card { background: var(--white); border-radius: var(--radius); padding: 1.75rem; border: 1px solid var(--line); position: relative; }
.area-card__num { font-family: var(--font-head); font-size: .85rem; color: var(--teal-text); font-weight: 600; letter-spacing: .1em; margin-bottom: .75rem; }
.area-card__name { font-size: 1.6rem; margin-bottom: .2rem; }
.area-card__q { font-family: var(--font-head); color: var(--teal-text); font-size: 1.05rem; margin-bottom: .9rem; }
.area-card__eg { font-size: 1rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: .9rem; margin: 1rem 0 0; }
.area-card__eg span { font-weight: 700; color: var(--ink); }

.area-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.area-chips li { background: var(--white); border-radius: var(--radius-sm); padding: 1rem 1.15rem; border: 1px solid var(--line); }
.area-chips__name { display: block; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.15rem; }
.area-chips__q { display: block; font-size: .98rem; color: var(--muted); }
@media (max-width: 420px) { .area-chips { grid-template-columns: 1fr; } }

/* ---------- lists ---------- */
.tick-list, .cross-list { list-style: none; padding: 0; margin: 0 0 1em; }
.tick-list li, .cross-list li { position: relative; padding-left: 1.9rem; margin-bottom: .55rem; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); }
.cross-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--muted); }

.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; counter-reset: v; }
.values li { counter-increment: v; border-top: 2px solid var(--navy); padding-top: 1rem; }
.values li::before { content: counter(v, decimal-leading-zero); font-family: var(--font-head); font-size: .85rem; color: var(--teal-text); font-weight: 600; letter-spacing: .1em; }
.values h3 { margin: .4rem 0 .3rem; }
.values p { margin: 0; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

.statement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.statement { background: var(--white); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--line); }
.statement__text { font-family: var(--font-head); font-size: clamp(1.2rem, 2vw, 1.45rem); color: var(--navy); line-height: 1.4; margin: 0; }
@media (max-width: 760px) { .statement-grid { grid-template-columns: 1fr; } }

/* How it works */
.how { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.how li { position: relative; }
.how__n { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--navy); color: var(--ivory); font-family: var(--font-head); font-weight: 600; margin-bottom: 1rem; }
.how h3 { margin-bottom: .35rem; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .how { grid-template-columns: 1fr; } }

/* Raasta Steps — a dotted route, not a ladder */
.steps { list-style: none; padding: 0; margin: 2rem 0 2rem; display: flex; justify-content: space-between; position: relative; gap: .5rem; }
.steps::before { content: ""; position: absolute; left: 1rem; right: 1rem; top: 1.1rem; border-top: 3px dotted var(--teal); }
.steps li { position: relative; flex: 1; text-align: center; font-family: var(--font-head); font-weight: 600; color: var(--navy); padding-top: 3rem; font-size: 1.05rem; }
.steps li::before { content: ""; position: absolute; top: .35rem; left: 50%; transform: translateX(-50%); width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--ivory); border: 3px solid var(--teal); }
@media (max-width: 640px) {
  .steps { flex-direction: column; gap: 1.1rem; padding-left: .3rem; }
  .steps::before { left: 1.03rem; right: auto; top: .5rem; bottom: .5rem; border-top: 0; border-left: 3px dotted var(--teal); }
  .steps li { text-align: left; padding: 0 0 0 2.6rem; }
  .steps li::before { left: .3rem; top: .1rem; transform: none; }
}

/* ---------- notices ---------- */
.notice { border-radius: var(--radius-sm); padding: 1.15rem 1.35rem; margin: 2rem 0 0; border-left: 5px solid var(--teal); background: var(--white); }
.notice p { margin: 0; }
.notice--important { border-left-color: var(--navy); }
.notice--draft { border-left-color: var(--sand); background: #FFF8EA; margin-top: 0; margin-bottom: 1.5rem; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.35rem .25rem; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--navy); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--teal-text); }
.faq__icon { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 2px solid currentColor; position: relative; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s; }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq__a { padding: 0 .25rem 1.4rem; max-width: 44em; }

/* ---------- prose ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; }

/* ---------- contact ---------- */
.contact-line { display: flex; flex-direction: column; font-size: 1.25rem; }
.contact-line span { font-size: .95rem; color: var(--muted); }
.contact-form { display: grid; gap: 1.1rem; max-width: 36rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.req { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: .8rem 1rem; border: 2px solid #8A9AA0; border-radius: var(--radius-sm); background: var(--white); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid var(--soft-teal); }
.field--check { display: flex; gap: .75rem; align-items: flex-start; }
.field--check input { width: 1.4rem; height: 1.4rem; margin-top: .2rem; flex: none; }
.field--check label { font-weight: 400; }
.form-note { font-size: 1rem; color: var(--muted); }
.form-errors:empty { display: none; }
.form-errors { color: #9B2C2C; font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #DCE4E2; padding: 4rem 0 0; font-size: 1rem; }
.site-footer a { color: var(--ivory); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.brand--footer { color: var(--ivory); margin-bottom: 1rem; }
.footer__summary { max-width: 26em; }
.footer__legal { color: #AFC0BE; }
.footer__heading { font-family: var(--font-head); font-weight: 600; color: var(--ivory); margin-bottom: .9rem; font-size: 1rem; }
.footer__links, .footer__social { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: .5rem; }
.footer__social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer__raasta { text-decoration: none; display: inline-block; }
.site-footer .raasta-mark { color: var(--ivory); }
.site-footer .raasta-mark__words > span:last-child { color: #8FD0CB; }
.site-footer .raasta-mark__by { color: #AFC0BE; }
.footer__base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.25rem; padding-bottom: 1.5rem; color: #AFC0BE; }
.footer__base p { margin: 0; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .status-banner, .skip-link, .site-footer, .hero__art { display: none; }
  body { background: #fff; }
  .section--soft, .section--band { background: #fff; color: var(--ink); }
}
.site-footer .raasta-mark__icon [fill="var(--navy)"] { fill: var(--ivory); }

/* ---------- photos ---------- */
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.photo figcaption { font-size: .85rem; color: var(--muted); margin-top: .45rem; }
.card--photo { padding: 0; overflow: hidden; }
.card--photo .photo img { border-radius: 0; aspect-ratio: 2.4 / 1; object-position: center 30%; }
.card--photo .photo figcaption { padding: 0 1.5rem; }
.card--photo .card__body { padding: 1rem 1.5rem 1.6rem; }
.hero--photo .hero__grid { grid-template-columns: 1.1fr 1fr; }
.hero--photo .photo img { aspect-ratio: 5 / 4; }
.section--photo .photo img { aspect-ratio: 21 / 7; max-height: 340px; }
@media (max-width: 860px) { .hero--photo .hero__grid { grid-template-columns: 1fr; } .hero--photo .hero__art { max-width: none; order: 0; } }

.contact-survey { font-size: 1.4rem; margin-top: 2.5rem; }
