/* ============================================================
   C2O — Capability to Outcomes
   Design tokens sampled from the brand logo pack.
   ============================================================ */

/* Self-hosted Inter (latin subset). font-display: swap avoids invisible text. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Inter"), url("assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local("Inter Medium"), url("assets/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local("Inter SemiBold"), url("assets/fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("Inter Bold"), url("assets/fonts/inter-latin-700-normal.woff2") format("woff2");
}

:root {
  /* Palette */
  --teal: #0A3A44;        /* Primary dark  */
  --blue: #24688C;        /* Primary mid   */
  --blue-deep: #1B5172;   /* Button hover  */
  --sage: #84ACAA;        /* Secondary     */
  --sage-wash: #EAF2F0;   /* Soft panels   */
  --gold: #A88A3C;        /* Accent only   */
  --white: #FFFFFF;
  --pale: #C9DAD6;        /* Light on dark */

  /* Text roles */
  --ink: #0A3A44;
  --muted: #3E565C;
  --on-dark: #C9DAD6;
  --on-dark-strong: #FFFFFF;

  /* Surfaces & lines */
  --line: #DCE6E4;
  --line-dark: rgba(201, 218, 214, 0.18);

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  /* Spacing & rhythm */
  --maxw: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 14px;
  --radius-sm: 10px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3 { color: var(--teal); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.6em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.25rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.4rem); }
p { margin: 0 0 1.1em; max-width: 68ch; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--teal); color: #fff; padding: 0.6rem 1rem;
  border-radius: var(--radius-sm); z-index: 200; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.section { padding-block: var(--section-y); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-intro { color: var(--muted); font-size: 1.08em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; cursor: pointer;
  padding: 0.7rem 1.4rem; border-radius: 999px;
  text-decoration: none; border: 1.5px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1.02rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-ghost:hover { background: var(--teal); color: #fff; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #8F7430; transform: translateY(-1px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; }
.nav-menu {
  list-style: none; display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0;
}
.nav-menu a:not(.btn) {
  color: var(--teal); text-decoration: none; font-weight: 500; font-size: 0.98rem;
  padding: 0.3rem 0; position: relative;
}
.nav-menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--gold); transition: right 0.25s var(--ease);
}
.nav-menu a:not(.btn):hover::after { right: 0; }
.nav-cta .btn { padding: 0.55rem 1.15rem; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--teal); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(4.5rem, 10vw, 9rem);
  background:
    radial-gradient(120% 120% at 12% 0%, rgba(132, 172, 170, 0.22), transparent 55%),
    radial-gradient(120% 120% at 100% 100%, rgba(36, 104, 140, 0.16), transparent 50%),
    var(--white);
}
.hero-inner { max-width: 880px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8rem;
  font-weight: 600; color: var(--blue); margin: 0 0 1.1rem;
}
.hero h1 { margin-bottom: 0.4em; }
.lead { font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.6rem); color: var(--teal); max-width: 30ch; font-weight: 400; }
.supporting { color: var(--muted); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* ---------- Generic section variants ---------- */
.section-sage { background: var(--sage-wash); }
.emphasis {
  font-size: 1.18em; color: var(--teal); font-weight: 500;
  border-left: 3px solid var(--gold); padding-left: 1.1rem; margin-top: 1.6rem;
}

/* ---------- What we do (steps) ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.5rem; grid-template-columns: 1fr;
}
.step {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem 1.75rem;
}
.step-num {
  display: inline-block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--gold); margin-bottom: 0.9rem;
}
.step h3 { margin-bottom: 0.4em; }
.step p { color: var(--muted); margin: 0; }
.closing-line { margin-top: 2.25rem; font-size: 1.2em; font-weight: 500; color: var(--teal); }

/* ---------- Cards (who we work with) ---------- */
.cards { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.75rem; background: var(--white);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(10, 58, 68, 0.08); border-color: var(--sage); }
.card h3 { color: var(--blue); }
.card p { color: var(--muted); margin: 0; }

/* ---------- Our edge (dark) ---------- */
.section-dark { background: var(--teal); color: var(--on-dark); }
.section-dark h2 { color: var(--on-dark-strong); }
.section-dark p { color: var(--on-dark); }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }
.center .hero-actions, .center .btn { margin-left: auto; margin-right: auto; }
.eyebrow-light { color: var(--sage); }
.lead-dark { font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.6rem); color: var(--on-dark-strong); font-weight: 400; max-width: 46ch; margin-bottom: 1.8rem; }
.edge-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
.edge-copy { max-width: 60ch; }
.markers { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.markers li {
  border-top: 1px solid var(--line-dark); padding-top: 1.1rem;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.marker-key { font-size: 1.5rem; font-weight: 600; color: var(--gold); letter-spacing: -0.01em; }
.marker-label { color: var(--on-dark); font-size: 0.98rem; }

/* ---------- Two organisations ---------- */
.orgs { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.org {
  border: 1px solid var(--line); border-left: 4px solid var(--sage);
  border-radius: var(--radius); padding: 2rem 1.75rem; background: var(--white);
}
.org h3 { color: var(--teal); }
.org p { color: var(--muted); }
.org-link { font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0; font-weight: 600; font-size: 1.08rem; color: var(--teal);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(45deg); transition: transform 0.2s var(--ease);
  margin-right: 4px;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-answer { padding: 0 0 1.4rem; }
.faq-answer p { color: var(--muted); margin: 0; max-width: 64ch; }

/* ---------- Contact form ---------- */
.form {
  display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; margin-top: 2rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--teal); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem; width: 100%; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 104, 140, 0.16);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-footer { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-note { margin: 0; color: var(--muted); font-size: 0.95rem; }
.form-note.error { color: #9A3412; }
.contact-alt { margin-top: 1.5rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal); color: var(--on-dark); padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-logo { height: 40px; width: auto; margin-bottom: 1.25rem; }
.footer-line { color: var(--on-dark-strong); font-weight: 500; max-width: none; }
.footer-contact a { color: var(--pale); }
.footer-legal { color: var(--on-dark); opacity: 0.75; font-size: 0.9rem; margin: 1.5rem 0 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .orgs { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 880px) {
  .edge-grid { grid-template-columns: 1.4fr 1fr; }
  .markers { padding-top: 0.5rem; }
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.5rem;
    box-shadow: 0 20px 40px rgba(10, 58, 68, 0.12);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu li { border-bottom: 1px solid var(--line); }
  .nav-menu li:last-child { border-bottom: 0; }
  .nav-menu a:not(.btn) { display: block; padding: 0.95rem 0; }
  .nav-menu a:not(.btn)::after { display: none; }
  .nav-cta { padding-top: 1rem; }
  .nav-cta .btn { width: 100%; padding: 0.85rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 520px) {
  .form { grid-template-columns: 1fr; }
}

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