/* ==========================================================
   cycle24.org shared stylesheet
   Recolor the whole site by editing the variables in :root
   ========================================================== */
:root {
  --navy: #002244;        /* primary: text, headings, dark bands */
  --green: #69BE28;       /* accent fills, ring, highlights (not text on white) */
  --green-deep: #2E6B14;  /* text-safe green on white */
  --green-tint: #E4F3D8;  /* tag backgrounds */
  --grey: #A5ACAF;        /* borders, rules */
  --mist: #EEF2F5;        /* light section background */
  --white: #FFFFFF;
  --ink-soft: #3D5166;    /* secondary text */
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Atkinson Hyperlegible", Verdana, Tahoma, sans-serif;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--navy); background: var(--white); }
img { max-width: 100%; height: auto; }
a { color: var(--green-deep); }
a:focus-visible, .btn:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }
.placeholder { color: var(--ink-soft); font-style: italic; }

/* ---------- Header / nav (CSS-only toggle) ---------- */
header { position: sticky; top: 0; z-index: 5; background: var(--white); border-bottom: 4px solid var(--green); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--navy); text-decoration: none; letter-spacing: -.5px; }
.logo span { color: var(--green-deep); }
nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
nav a { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--navy); text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
nav a:hover, nav a[aria-current="page"] { border-bottom-color: var(--green); }
#menu-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
#menu-toggle:focus-visible + .menu-btn { outline: 3px solid var(--green); outline-offset: 3px; }
.menu-btn { display: none; cursor: pointer; font-family: var(--display); font-weight: 700; border: 2px solid var(--navy); border-radius: 6px; padding: 6px 12px; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  nav { position: absolute; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 4px solid var(--green); display: none; }
  nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--mist); }
  nav a[aria-current="page"] { border-bottom: 1px solid var(--mist); color: var(--green-deep); }
  #menu-toggle:checked ~ nav { display: block; }
}

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 17px; text-decoration: none; padding: 13px 24px; border-radius: 6px; border: 0; cursor: pointer; }
.btn-primary { background: var(--green); color: var(--navy); }
.btn-primary:hover { background: #7ED23A; }
.btn-secondary { border: 2px solid var(--navy); color: var(--navy); background: transparent; }
.btn-secondary:hover { background: var(--navy); color: var(--white); }

/* ---------- Home hero ---------- */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 58px); font-weight: 800; letter-spacing: -1px; max-width: 14ch; }
.hero p { font-size: 19px; color: var(--ink-soft); max-width: 52ch; }

/* ---------- Cycle diagram ---------- */
.cycle { width: 100%; max-width: 380px; display: block; margin: 0 auto; }
.cycle .node circle { fill: var(--white); stroke: var(--navy); stroke-width: 3; }
.cycle .node text { font-family: var(--display); font-weight: 700; font-size: 15px; fill: var(--navy); }
.cycle .node:hover circle, .cycle .node:focus circle { fill: var(--green); }
.cycle .traveler { offset-path: path("M180,40 A140,140 0 0 1 180,320 A140,140 0 0 1 180,40"); animation: travel 4s ease-in-out .4s 1 both; }
@keyframes travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@media (prefers-reduced-motion: reduce) { .cycle .traveler { animation: none; } html { scroll-behavior: auto; } }
.cycle-caption { text-align: center; font-size: 15px; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Page heading band (inner pages) ---------- */
.page-head { padding: 56px 0 40px; border-bottom: 1px solid var(--mist); }
.page-head h1 { font-size: clamp(34px, 4.6vw, 50px); font-weight: 800; letter-spacing: -.8px; }
.page-head .lead { font-size: 19px; color: var(--ink-soft); max-width: 60ch; margin: 0; }
.crumb { font-size: 15px; margin: 0 0 12px; }

/* ---------- Sections ---------- */
section.block { padding: 64px 0; }
.band-mist { background: var(--mist); }
.head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.head-row h2, .section-title { font-size: 34px; font-weight: 800; margin: 0; }
.section-title { margin-bottom: 20px; }
.head-row a { font-weight: 700; }

/* ---------- Three doors ---------- */
.doors { background: var(--navy); color: var(--white); padding: 40px 0; }
.doors .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.door { padding: 8px 28px; border-left: 1px solid rgba(255,255,255,.25); }
.door:first-child { border-left: 0; padding-left: 0; }
.door h2 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.door a { color: var(--green); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Project cards ---------- */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.project { border-top: 6px solid var(--green); padding-top: 18px; }
.project h3 { font-size: 22px; }
.project h3 a { color: var(--navy); text-decoration: none; }
.project h3 a:hover { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 3px; }
.project p { margin: 0 0 12px; color: var(--ink-soft); }
.project .audience { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { font-size: 14px; font-weight: 700; color: var(--green-deep); background: var(--green-tint); border-radius: 4px; padding: 2px 10px; }
.outcome { font-size: 15px; border-left: 3px solid var(--grey); padding-left: 12px; margin-top: 14px !important; }

/* ---------- Navy call-to-action band ---------- */
.cta-band { background: var(--navy); color: var(--white); padding: 48px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: 28px; margin: 0 0 4px; }
.cta-band p { margin: 0; color: #C9D3DC; }
.cta-band .btns { margin-top: 0; }
.cta-band .btn-secondary { border-color: var(--white); color: var(--white); }
.cta-band .btn-secondary:hover { background: var(--white); color: var(--navy); }

/* ---------- Notes lists ---------- */
.notes { list-style: none; margin: 0; padding: 0; }
.notes li { display: grid; grid-template-columns: 140px 1fr 110px; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--grey); }
.notes li:first-child { border-top: 1px solid var(--grey); }
.notes .stage { font-weight: 700; color: var(--green-deep); font-size: 15px; }
.notes a { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--navy); text-decoration: none; }
.notes a:hover { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 3px; }
.notes time { font-size: 15px; color: var(--ink-soft); text-align: right; }
.notes .summary { display: block; font-family: var(--body); font-weight: 400; font-size: 16px; color: var(--ink-soft); margin-top: 4px; }

.stage-nav { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 28px 0 0; }
.stage-nav a { display: inline-block; font-family: var(--display); font-weight: 700; text-decoration: none; color: var(--navy); border: 2px solid var(--navy); border-radius: 999px; padding: 6px 18px; }
.stage-nav a:hover { background: var(--green); border-color: var(--green); }
.stage-section { padding: 48px 0 8px; scroll-margin-top: 80px; }
.stage-section h2 { font-size: 30px; font-weight: 800; }
.stage-section > .wrap > p { color: var(--ink-soft); max-width: 62ch; margin-top: -4px; }

/* ---------- Case study ---------- */
.cs-layout { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(240px, 1fr); gap: 56px; align-items: start; padding-top: 48px; padding-bottom: 64px; }
.facts { position: sticky; top: 96px; background: var(--mist); border-top: 6px solid var(--green); padding: 24px; }
.facts h2 { font-size: 20px; }
.facts dl { margin: 0; }
.facts dt { font-weight: 700; font-size: 15px; margin-top: 14px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 2px 0 0; color: var(--ink-soft); }
.prose { max-width: 68ch; }
.prose h2 { font-size: 28px; font-weight: 800; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; margin-top: 1.4em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 5px solid var(--green); font-size: 19px; }
.prose pre { background: var(--navy); color: #E8EEF3; padding: 18px; border-radius: 6px; overflow-x: auto; font-size: 15px; }
.prose code { font-family: Consolas, Monaco, monospace; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 56px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--white); font-family: var(--display); font-weight: 800; display: grid; place-items: center; }
.steps strong { font-family: var(--display); font-size: 19px; display: block; }
.figure-ph { margin: 1.5em 0; }
.figure-ph .box { aspect-ratio: 16 / 9; border: 2px dashed var(--grey); border-radius: 6px; display: grid; place-items: center; color: var(--ink-soft); background: var(--mist); text-align: center; padding: 16px; }
.figure-ph figcaption { font-size: 15px; color: var(--ink-soft); margin-top: 8px; }
.pager { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--grey); padding-top: 24px; margin-top: 40px; font-weight: 700; flex-wrap: wrap; }
.post-meta { color: var(--ink-soft); font-size: 16px; margin: 0; }
.post-meta .tag { font-weight: 700; color: var(--green-deep); }

/* ---------- Services ---------- */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.offer { border: 1px solid var(--grey); border-top: 6px solid var(--green); border-radius: 0 0 6px 6px; padding: 24px; display: flex; flex-direction: column; }
.offer h3 { font-size: 23px; }
.offer > p { color: var(--ink-soft); margin: 0 0 16px; }
.offer dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 20px; font-size: 16px; }
.offer dt { font-weight: 700; }
.offer dd { margin: 0; color: var(--ink-soft); }
.offer .btn { margin-top: auto; align-self: flex-start; }
.how { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.faq details { border-bottom: 1px solid var(--grey); padding: 16px 0; }
.faq details:first-child { border-top: 1px solid var(--grey); }
.faq summary { font-family: var(--display); font-weight: 700; font-size: 19px; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); max-width: 70ch; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.photo-ph { aspect-ratio: 4 / 5; border: 2px dashed var(--grey); background: var(--mist); display: grid; place-items: center; color: var(--ink-soft); border-radius: 6px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--grey); position: relative; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 12px; background: var(--green); border-radius: 2px; }
.check-list strong { display: block; }
.check-list span { color: var(--ink-soft); font-size: 16px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
form .field { margin-bottom: 20px; }
form label { display: block; font-weight: 700; margin-bottom: 6px; }
form .hint { font-weight: 400; color: var(--ink-soft); font-size: 15px; }
form input, form select, form textarea { width: 100%; font: inherit; color: var(--navy); padding: 12px 14px; border: 2px solid var(--grey); border-radius: 6px; background: var(--white); }
form input:focus, form select:focus, form textarea:focus { border-color: var(--navy); }
form input, form select { height: 48px; }
textarea { min-height: 170px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.side-box { background: var(--mist); border-top: 6px solid var(--green); padding: 24px; }
.side-box h2 { font-size: 21px; }
.side-box ul { list-style: none; padding: 0; margin: 0 0 20px; }
.side-box li { margin-bottom: 10px; }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: var(--white); padding: 48px 0 32px; border-top: 4px solid var(--green); }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
footer h2 { font-size: 24px; }
footer p { color: #C9D3DC; max-width: 46ch; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 8px; }
footer a { color: var(--green); font-weight: 700; }
.fine { grid-column: 1 / -1; font-size: 14px; color: #9FB0C0 !important; border-top: 1px solid rgba(255,255,255,.2); padding-top: 20px; margin: 8px 0 0; max-width: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .how, .cs-layout, .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .cycle { max-width: 300px; }
  .work { grid-template-columns: 1fr 1fr; }
  .facts { position: static; }
  .about-grid .photo-ph { max-width: 260px; }
}
@media (max-width: 760px) {
  .doors .wrap, .work, footer .wrap, .offers, .two-col, .field-row { grid-template-columns: 1fr; }
  .door { border-left: 0; border-top: 1px solid rgba(255,255,255,.25); padding: 18px 0; }
  .door:first-child { border-top: 0; padding-top: 0; }
  .notes li { grid-template-columns: 1fr; gap: 4px; }
  .notes time { text-align: left; }
  .offer dl { grid-template-columns: 1fr; gap: 0; }
  .offer dd { margin-bottom: 8px; }
}
