/* ---- tokens.css ---- */
/* Design tokens. Change colours and fonts here and the whole site follows.
   Light values are on :root. Dark values apply when the visitor's device is
   set to dark mode (or data-theme="dark" is set on the page). */
:root {
  --bg: #F5F8F6;
  --surface: #FFFFFF;
  --fg: #0E2B2B;
  --muted: #4A6666;
  --teal: #0B5C5C;
  --teal-soft: #D5EAE5;
  --coral: #E8553A;
  --coral-soft: #FFE2D9;
  --on-teal: #FFFFFF;
  --line: #C9DAD5;
  --font-display: "Lexend", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1D1D;
    --surface: #112828;
    --fg: #E7F1EE;
    --muted: #9DB8B3;
    --teal: #6CCBBF;
    --teal-soft: #14403F;
    --coral: #FF8468;
    --coral-soft: #4A2219;
    --on-teal: #062222;
    --line: #25403F;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0A1D1D;
  --surface: #112828;
  --fg: #E7F1EE;
  --muted: #9DB8B3;
  --teal: #6CCBBF;
  --teal-soft: #14403F;
  --coral: #FF8468;
  --coral-soft: #4A2219;
  --on-teal: #062222;
  --line: #25403F;
  color-scheme: dark;
}

/* ---- base.css ---- */
/* Base: resets, typography, focus, and the page width wrapper. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.02em;
}
p { margin: 0; max-width: 62ch; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: var(--on-teal);
  padding: 0.75rem 1rem;
  z-index: 20;
}
.skip:focus { left: 16px; }

/* Centres content and keeps a side gutter, including on phones with notches. */
.wrap {
  max-width: 74rem;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ---- layout.css ---- */
/* Layout: header, full-width bands, footer. */

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.25rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: -0.04em;
  color: var(--teal);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
}
.logo i {
  display: inline-block;
  width: 0.26em;
  height: 0.26em;
  border-radius: 50%;
  background: var(--coral);
  margin-left: 0.06em;
}

.nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}
.nav a {
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-color: var(--coral); }

/* Bands: each section on the page. Add class "tint" for the tinted background.
   Alternate plain and tint down the page. */
.band { padding-block: 4.5rem; }
.band.tint { background: var(--teal-soft); }
.band h2 {
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  color: var(--teal);
  margin-top: 0.6rem;
}
.band .intro { margin-top: 1.25rem; font-size: 1.2rem; }

/* Footer */
footer {
  background: var(--fg);
  color: var(--bg);
  padding-block: 2.5rem;
  font-size: 1rem;
}
footer .logo { color: var(--bg); }
footer .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-end;
}
footer p { max-width: 46ch; opacity: 0.85; }

/* ---- components.css ---- */
/* Components: small reusable pieces (buttons, pills, form controls). */

/* Buttons */
.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--teal);
  cursor: pointer;
  display: inline-block;
}
.btn.primary { background: var(--teal); color: var(--on-teal); }
.btn.primary:hover { background: var(--fg); border-color: var(--fg); }
.btn.ghost { background: transparent; color: var(--teal); }
.btn.ghost:hover { background: var(--teal-soft); }

/* Value pills */
.values { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.values span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: var(--surface);
  border: 2px solid var(--teal);
  color: var(--teal);
}

/* Forms */
form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 2rem;
  display: grid;
  gap: 1.25rem;
}
label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  display: grid;
  gap: 0.45rem;
}
input, select, textarea {
  font: inherit;
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 0.8rem 1rem;
  border-radius: 0.6rem;
  border: 2px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--teal); }
textarea { min-height: 7rem; resize: vertical; }

.note { color: var(--muted); font-size: 1rem; }

/* Spam trap field: off-screen, never seen by people. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Confirmation shown after an enquiry is sent. */
.sent {
  background: var(--surface);
  border: 2px solid var(--teal);
  border-radius: 1.25rem;
  padding: 2rem;
  display: grid;
  gap: 0.6rem;
}
.sent h3 { font-size: 1.4rem; font-weight: 600; color: var(--teal); }

/* ---- sections.css ---- */
/* Sections: styles that belong to one part of the page.
   Layout concept: one open ring (support, with a gap for freedom) and rising
   coral dots (progress) carry the page. Big lowercase type, left-aligned. */

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding-block: 3rem 4.5rem;
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  color: var(--teal);
  margin-top: 0.8rem;
}
.hero h1 .dot { color: var(--coral); }
.hero p.lede { margin-top: 1.5rem; font-size: 1.3rem; }
.hero svg { width: 100%; max-width: 30rem; height: auto; justify-self: center; }
.ring { stroke: var(--teal); }
.rise { fill: var(--coral); }

@media (prefers-reduced-motion: no-preference) {
  .rise { transform-box: fill-box; transform-origin: center; animation: pop 0.7s ease-out both; }
  .rise:nth-of-type(2) { animation-delay: 0.15s; }
  .rise:nth-of-type(3) { animation-delay: 0.3s; }
  @keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
}

/* What we do */
.supports { margin-top: 2.5rem; border-top: 2px solid var(--fg); }
.support {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 1rem 3rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.support h3 { font-weight: 600; font-size: 1.45rem; letter-spacing: -0.01em; }
.support p { color: var(--muted); }

/* How it works */
.steps {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  counter-reset: s;
}
.steps li { counter-increment: s; border-top: 4px solid var(--teal); padding-top: 1rem; }
.steps li::before {
  content: counter(s);
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.steps h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.steps p { color: var(--muted); font-size: 1.05rem; }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: start;
}
.details { margin-top: 1.5rem; display: grid; gap: 0.4rem; }
#result { display: grid; gap: 0.8rem; }
#result textarea { min-height: 9rem; }

/* ---- responsive.css ---- */
/* Responsive: tablet and phone adjustments. Keep these last so they win. */
@media (max-width: 820px) {
  .hero, .contact, .support { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 2rem; padding-block: 1.5rem 3rem; }
  .hero svg { max-width: 18rem; justify-self: start; order: -1; }
  .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .band { padding-block: 3.25rem; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  form { padding: 1.4rem; }
}
