/* ============================================================
   2050 — Website Design System
   Built to the 2050 Brand Guidelines.
   Palette used ONE colour at a time, always separated by white.
   Interactive accent (buttons, links, focus) = Tomato Jam red.
   Typography: Avenir (Black / Medium / Book) + Georgia accent.
   8px spacing grid. Negative tracking at display sizes.
   ============================================================ */

/* ---------- Fonts (self-hosted; licence owned by 2050) ---------- */
@font-face {
  font-family: 'Avenir';
  src: url('../fonts/avenir-book.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Avenir';
  src: url('../fonts/avenir-medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Avenir';
  src: url('../fonts/avenir-medium-oblique.woff2') format('woff2');
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Avenir';
  src: url('../fonts/avenir-black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Georgia 2050';
  src: url('../fonts/georgia.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --red:    #CC3333;  /* Tomato Jam  — interactive accent / finance, urgency */
  --navy:   #003366;  /* Oxford Navy — authority, trust */
  --green:  #336633;  /* Hunter Green — sustainability */
  --orange: #FF6633;  /* Tiger Flame — energy, innovation */

  --bg:     #f1f1f1;  /* brand off-white — the canvas */
  --surface:#ffffff;  /* raised cards */
  --ink:    #1a1a1a;  /* body text (never pure black) */
  --muted:  #6a6a6a;
  --line:   #e2e2e2;

  --maxw: 1180px;
  --radius: 3px;
  --shadow: 0 2px 18px rgba(0,0,0,0.06);  /* single soft diffuse — used consistently */

  --serif: 'Georgia 2050', Georgia, 'Times New Roman', serif;
  --sans: 'Avenir', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::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-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; transition: color .18s ease, opacity .18s ease; }
a:hover { opacity: .82; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.measure { max-width: 680px; }
.measure-wide { max-width: 820px; }

/* ---------- Typography ---------- */
.eyebrow {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-block;
}
h1, .h1 {
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h2, .h2 {
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
}
h3, .h3 {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 17px;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--ink);
}
.lead {
  font-weight: 300;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.5;
  color: var(--ink);
}
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.4;
  color: var(--ink);
}
.subhead {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
}

/* colour utilities — headline text only, always on white */
.t-red { color: var(--red); }
.t-navy { color: var(--navy); }
.t-green { color: var(--green); }
.t-orange { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 500; font-size: 15px;
  letter-spacing: 0.02em;
  padding: 15px 30px; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { opacity: 1; transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #b82d2d; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-on-color { background: #fff; color: var(--ink); }
.btn-on-color:hover { background: rgba(255,255,255,.88); }
.btn-ghost-on-color { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost-on-color:hover { background: #fff; color: var(--ink); border-color:#fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn-row.center { justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241,241,241,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav__logo img { height: 34px; width: auto; }
.nav__toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav__drawer { display: flex; align-items: center; gap: 40px; }
.nav__menu { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav__link {
  color: var(--ink); font-weight: 500; font-size: 15px; letter-spacing: 0.01em;
}
.nav__link:hover { color: var(--red); opacity: 1; }
.nav__link.is-active { color: var(--red); }
.nav__cta { display: flex; align-items: center; gap: 22px; }
.nav__login { color: var(--ink); font-weight: 500; font-size: 15px; }
.nav__login:hover { color: var(--red); opacity: 1; }
.hamburger { display: none; }

/* ---------- Colour bands (one colour, white text, air around them) ---------- */
.band { color: #fff; }
.band .eyebrow, .band h2, .band .h2, .band p, .band .lead, .band .quote { color: #fff; }
.band-red    { background: var(--red); }
.band-navy   { background: var(--navy); }
.band-green  { background: var(--green); }
.band-orange { background: var(--orange); }
.band .subhead { color: rgba(255,255,255,.85); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border-top: 3px solid var(--line);
  padding: 34px 30px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }
/* section colour applied to a card cluster — all cards in a section share ONE colour */
.accent-red    .card { border-top-color: var(--red); }
.accent-navy   .card { border-top-color: var(--navy); }
.accent-green  .card { border-top-color: var(--green); }
.accent-orange .card { border-top-color: var(--orange); }

/* ---------- Icon (placeholder line icons, single colour) ---------- */
.icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.04);
  margin-bottom: 22px;
}
.icon svg { width: 28px; height: 28px; fill: none; stroke-width: 2; }
.accent-red    .icon svg { stroke: var(--red); }
.accent-navy   .icon svg { stroke: var(--navy); }
.accent-green  .icon svg { stroke: var(--green); }
.accent-orange .icon svg { stroke: var(--orange); }

/* ---------- Phase steps ---------- */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: phase; }
.phase {
  background: var(--surface); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow);
  border-top: 3px solid var(--navy); position: relative;
}
.phase__num {
  font-weight: 900; font-size: 15px; letter-spacing: 0.1em;
  color: var(--navy); margin-bottom: 14px; display: block;
}
.phase h3 { margin-bottom: 10px; }
.phase p { color: var(--muted); font-size: 16px; }

/* ---------- Signatory list ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.chip {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 20px; font-size: 15px; color: var(--ink);
  box-shadow: var(--shadow);
}

/* ---------- Forms ---------- */
.form { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 44px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 8px; }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; font-weight: 300; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(204,51,51,0.15);
}
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); flex: none; }
.form-note { font-size: 14px; color: var(--muted); margin-top: 18px; }

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 24px 40px 24px 0; position: relative;
  font-weight: 500; font-size: 19px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 20px;
  font-size: 26px; font-weight: 300; color: var(--orange); transition: transform .2s ease;
}
.faq details[open] summary::after { content: '\2013'; }
.faq details p { color: var(--muted); padding: 0 40px 26px 0; margin: 0; }

/* ---------- Login ---------- */
.login-wrap { min-height: calc(100vh - 74px - 260px); display: flex; align-items: center; justify-content: center; padding: 72px 0; }
.login-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 48px 44px; width: 100%; max-width: 440px; border-top: 3px solid var(--navy); }
.login-card h1 { font-size: 26px; margin-bottom: 8px; }
.login-note { font-size: 13px; color: var(--muted); margin-top: 22px; line-height: 1.5; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 3px solid var(--navy); padding: 60px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
.site-footer img { height: 30px; margin-bottom: 18px; }
.footer-tag { font-weight: 500; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.footer-col h4 { font-weight: 900; text-transform: uppercase; font-size: 12px; letter-spacing: 0.08em; color: var(--ink); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--red); opacity: 1; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: 108px 0 96px; }
.hero .eyebrow { color: var(--navy); }
.hero h1 { max-width: 14ch; }
.hero .lead { margin-top: 26px; max-width: 620px; color: #3a3a3a; }
.page-head { padding: 84px 0 20px; }

/* ---------- Misc ---------- */
.rule { height: 3px; width: 64px; background: var(--red); border: 0; margin: 0 0 28px; }
.rule.navy { background: var(--navy); } .rule.green { background: var(--green); }
.rule.orange { background: var(--orange); }
.rule.center { margin-left: auto; margin-right: auto; }
.stat-row { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 40px; }
.stat b { display: block; font-weight: 900; font-size: 40px; letter-spacing: -0.02em; line-height: 1; }
.stat span { font-size: 15px; color: var(--muted); }

/* ---------- Form feedback ---------- */
.alert {
  border-radius: var(--radius); padding: 14px 16px;
  font-size: 15px; margin-bottom: 22px;
}
.alert-error { background: rgba(204,51,51,0.07); color: #a02626; border: 1px solid rgba(204,51,51,0.28); }
.btn[disabled] { opacity: .55; cursor: default; pointer-events: none; }
.form-success { text-align: center; padding: 26px 6px; }
.form-success .rule { margin: 0 auto 24px; background: var(--green); }
.form-success h3 { margin-bottom: 12px; }
.form-success p { color: var(--muted); font-size: 16px; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px;
  font-weight: 500; font-size: 14px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible, .hamburger:focus-within {
  outline: 3px solid rgba(204,51,51,0.45); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .phases { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .field-2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  section { padding: 64px 0; }
  .container { padding: 0 22px; }
  .hero { padding: 72px 0 60px; }

  /* CSS-only mobile menu — single drawer holding links + CTA */
  .hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
  .hamburger span { width: 24px; height: 2px; background: var(--ink); transition: .2s; }
  .nav__drawer {
    display: none;
    position: fixed; left: 0; right: 0; top: 74px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 18px;
    padding: 24px 22px 30px;
    box-shadow: 0 14px 22px rgba(0,0,0,.06);
  }
  .nav__toggle:checked ~ .nav__drawer { display: flex; }
  .nav__menu { flex-direction: column; align-items: flex-start; gap: 18px; }
  .nav__cta { flex-direction: column; align-items: flex-start; gap: 18px; width: 100%; }
  .nav__cta .btn { width: 100%; justify-content: center; }

  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .form { padding: 30px 22px; }
  .stat-row { gap: 30px; }
}
