/* refont: source-sans-3 */
/* 54 (Eastbourne) Squadron: shared styles for every page.
   Taken from Lewis's "54 Sqn Website" Claude Design canvas (navy, crest gold,
   chequer blue, red, shirt blue). Font: Myriad Pro via Adobe Fonts when FONT_KIT is set in tools/site_parts.py,
   otherwise Source Sans 3 from fonts/. The home page keeps the canvas's own inline styles; the other pages
   are built from the components below. See tools/COMPONENTS.md for the markup of each one. */

:root {
  --navy: #0d2341; --navy-2: #173761; --deep: #08172c;
  --sky: #dde8f4; --muted: #a9bdd6; --paper: #f4f8fc;
  --gold: #f2b524; --blue: #1a5ead; --red: #cf2a2e; --red-ink: #b3191d; --white: #ffffff;
  --display: myriad-pro, 'Source Sans 3', Arial, sans-serif;
  --text: myriad-pro, 'Source Sans 3', Arial, sans-serif;
  --section: clamp(72px, 9vw, 120px);
  --eyebrow: var(--gold);
  --line: rgba(221, 232, 244, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--navy); color: var(--sky); font-family: var(--text); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:target { scroll-margin-top: 84px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--gold); color: var(--navy); font-weight: 600; text-decoration: none; border-radius: 3px; }
.skip:focus { top: 12px; }

/* ---------- header (all pages) ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--navy); border-bottom: 1px solid rgba(221, 232, 244, 0.12); color: var(--sky); }
.head-row { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; font-family: var(--display); text-transform: uppercase; line-height: 1.05; letter-spacing: 0.04em; }
.wm-name { font-weight: 700; font-size: 19px; color: var(--white); }
.wm-sub { font-weight: 600; font-size: 13px; color: var(--muted); letter-spacing: 0.14em; }
.nav-links { display: flex; gap: 24px; font-size: 15px; font-weight: 500; }
.navlink { text-decoration: none; opacity: 0.85; }
.navlink:hover, .navlink[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.navlink[aria-current="page"] { text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 2px solid rgba(255, 255, 255, 0.6); border-radius: 3px; font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 14px); width: min(320px, calc(100vw - 32px)); padding: 12px 0; background: var(--deep); border-radius: 4px; box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6); display: flex; flex-direction: column; }
.menu-panel a { padding: 12px 22px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; color: var(--white); }
.menu-panel a[aria-current="page"] { color: var(--gold); }
.menu-panel a:hover { background: var(--navy-2); }
.menu-panel .menu-cta { margin: 10px 22px 6px; padding: 0; min-height: 52px; display: flex; align-items: center; justify-content: center; background: var(--gold); color: var(--navy); border-radius: 3px; font-size: 19px; letter-spacing: 0.06em; }
.menu-panel .menu-cta:hover { background: var(--gold); filter: brightness(1.1); }
.menu .ic-close { display: none; }
.menu[open] .ic-open { display: none; }
.menu[open] .ic-close { display: block; }
@media (max-width: 1300px) { .nav-links { display: none; } .menu { display: block; } }
@media (max-width: 480px) {
  .head-row { gap: 10px; min-height: 64px; }
  .wm-name { font-size: 16px; }
  .wm-sub { display: none; }
  .site-head .head-row > .btn-sm { display: none; }
  .menu summary span { display: none; }
}

/* ---------- type ---------- */
.eyebrow { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--eyebrow); }
.display { font-family: var(--display); font-weight: 800; font-size: clamp(43px, 6.5vw, 100px); line-height: 0.88; letter-spacing: -0.01em; text-transform: uppercase; color: var(--white); }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(33px, 3.8vw, 55px); line-height: 0.92; text-transform: uppercase; }
.h3 { font-family: var(--display); font-weight: 700; font-size: 23px; line-height: 1.05; text-transform: uppercase; }
.h4 { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; max-width: 44ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.prose p { max-width: 62ch; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 14px; }
.prose ul { padding-left: 20px; max-width: 60ch; }
.prose li + li { margin-top: 6px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }

/* ---------- grounds ---------- */
.section { padding: var(--section) 0; }
.bg-navy { background: var(--navy); color: var(--sky); }
.bg-navy2 { background: var(--navy-2); color: var(--sky); }
.bg-deep { background: var(--deep); color: var(--sky); }
.bg-sky { background: var(--sky); color: var(--navy); --eyebrow: var(--blue); --line: rgba(13, 35, 65, 0.2); }
.bg-paper { background: var(--paper); color: var(--navy); --eyebrow: var(--blue); --line: rgba(13, 35, 65, 0.2); }
.bg-blue { background: var(--blue); color: var(--white); --eyebrow: var(--sky); --line: rgba(255, 255, 255, 0.25); }
.bg-gold { background: var(--gold); color: var(--navy); --eyebrow: var(--navy); --line: rgba(13, 35, 65, 0.25); }
.bg-red { background: var(--red); color: var(--white); --eyebrow: var(--white); --line: rgba(255, 255, 255, 0.3); }
.bg-navy .h2, .bg-navy2 .h2, .bg-deep .h2 { color: var(--white); }
.chequer { height: 14px; background: repeating-conic-gradient(var(--blue) 0 25%, var(--gold) 0 50%) 0 0 / 14px 14px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; border-radius: 3px; white-space: nowrap; transition: filter 0.18s ease, transform 0.14s ease; }
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 16px; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--gold); }
.btn-white { background: var(--white); color: var(--red-ink); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-outline { border: 2px solid rgba(255, 255, 255, 0.75); color: var(--white); }
.bg-sky .btn-outline, .bg-gold .btn-outline, .bg-paper .btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.text-link { font-weight: 600; text-underline-offset: 5px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .tile img { transition: none; } }

/* ---------- page hero (photo banner) ---------- */
.page-hero { position: relative; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; background: var(--navy-2); }
.page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 23, 44, 0.94) 0%, rgba(8, 23, 44, 0.6) 40%, rgba(8, 23, 44, 0.1) 75%); }
.page-hero__body { position: relative; padding-top: 160px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 22px; }
.page-hero .lead { color: var(--white); }
.page-hero--short { min-height: 400px; }
.page-hero--plain { min-height: 0; background: var(--navy); }
.page-hero--plain .page-hero__body { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(48px, 6vw, 80px); }
/* the small line over a photo: a navy tag on phones and tablets so it reads over any part of it (same as .hero-tag on the home page; About has its own dark band) */
@media (max-width: 900px) { .page-hero:not(.page-hero--plain):not(.about-hero) .eyebrow { align-self: flex-start; padding: 7px 12px; background: var(--navy); border-radius: 2px; letter-spacing: 0.14em; line-height: 1.3; } }

/* ---------- layout helpers ---------- */
.head-split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.head-split > p { max-width: 46ch; font-size: 18px; }
.split { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split--top { align-items: flex-start; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split > .wide { flex: 1.35 1 520px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- photos ---------- */
.photo { display: flex; flex-direction: column; gap: 10px; }
.photo img { width: 100%; height: auto; aspect-ratio: var(--ratio, 4 / 3); object-fit: cover; border-radius: 4px; }
.photo figcaption { font-size: 14px; color: var(--muted); }
.bg-sky .photo figcaption, .bg-gold .photo figcaption, .bg-paper .photo figcaption { color: inherit; opacity: 0.8; }
.bg-red .photo figcaption { color: #ffe3e3; }
.label-photo { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: var(--ratio, 4 / 3); background: var(--navy-2); }
.label-photo img { width: 100%; height: 100%; object-fit: cover; }
.label-photo span { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; background: var(--navy); color: var(--white); font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 2px; }

/* ---------- photo tiles with captions (the home page's What we do grid) ---------- */
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 300px; gap: 12px; }
.tile { position: relative; margin: 0; overflow: hidden; border-radius: 4px; background: var(--navy-2); grid-column: span 4; color: var(--white); }
.tile--wide { grid-column: span 8; }
.tile--half { grid-column: span 6; }
.tile--tall { grid-row: span 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 23, 44, 0.92) 0%, rgba(8, 23, 44, 0) 65%); }
.tile figcaption { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 24px 28px; display: flex; flex-direction: column; gap: 6px; }
.tile .tile__title { font-family: var(--display); font-weight: 800; font-size: 35px; line-height: 0.9; text-transform: uppercase; }
.tile p { max-width: 46ch; font-size: 15px; line-height: 1.45; color: var(--sky); }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr; grid-auto-rows: 320px; } .tile, .tile--wide, .tile--half { grid-column: auto; } .tile--tall { grid-row: auto; } }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--navy-2); border-radius: 4px; }
.card .h3 { color: var(--white); }
.card p { font-size: 16px; line-height: 1.5; }
.bg-red .card, .bg-blue .card { background: rgba(8, 23, 44, 0.2); }
.bg-red .card .h3, .bg-blue .card .h3 { color: var(--white); }
.bg-sky .card, .bg-paper .card { background: var(--white); }
.bg-sky .card .h3, .bg-paper .card .h3, .bg-gold .card .h3 { color: var(--navy); }
.bg-gold .card { background: rgba(255, 255, 255, 0.35); }

/* ---------- key facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.fact { padding: 28px 24px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { font-family: var(--display); font-weight: 700; font-size: 31px; line-height: 1; text-transform: uppercase; color: var(--white); }
.fact span { font-size: 15px; color: var(--muted); }
.bg-sky .fact strong, .bg-gold .fact strong, .bg-paper .fact strong { color: var(--navy); }
.bg-sky .fact span, .bg-gold .fact span, .bg-paper .fact span { color: inherit; opacity: 0.8; }
@media (max-width: 560px) { .fact { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } .fact:first-child { border-top: 0; } }

/* ---------- dotted-leader rows (the joining slip) ---------- */
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: baseline; gap: 10px; }
.row .leader { flex: 1; min-width: 16px; border-bottom: 2px dotted currentColor; opacity: 0.35; }
.row .val { white-space: nowrap; font-weight: 600; }
.slip { background: var(--paper); color: var(--navy); border-radius: 4px; box-shadow: 0 40px 80px -30px rgba(8, 23, 44, 0.6); overflow: hidden; }
.slip__body { padding: 28px 32px; display: flex; flex-direction: column; gap: 22px; font-size: 16px; }
.slip .h4 { color: var(--blue); }
.slip__end { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 32px; background: var(--navy); color: var(--white); font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- numbered steps ---------- */
.steps { list-style: none; padding: 0; display: flex; flex-direction: column; }
.steps > li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-top: 2px solid var(--line); }
.steps > li:last-child { border-bottom: 2px solid var(--line); }
.steps__n { font-family: var(--display); font-weight: 800; font-size: 49px; line-height: 0.85; color: var(--gold); }
.bg-sky .steps__n, .bg-paper .steps__n { color: var(--blue); }
.bg-gold .steps__n { color: var(--navy); }
.steps .h3 { margin-bottom: 8px; }
.steps p { max-width: 60ch; }
@media (max-width: 560px) { .steps > li { grid-template-columns: 56px minmax(0, 1fr); gap: 16px; } .steps__n { font-size: 44px; } }

/* ---------- square-bullet list ---------- */
.ticks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; font-weight: 500; }
.ticks--one { grid-template-columns: 1fr; }
.ticks li { display: flex; align-items: baseline; gap: 10px; }
.ticks li::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--gold); transform: translateY(-2px); }
.bg-sky .ticks li::before, .bg-paper .ticks li::before { background: var(--blue); }
.bg-gold .ticks li::before, .bg-red .ticks li::before, .bg-blue .ticks li::before { background: currentColor; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; border-bottom: 2px solid var(--line); }
.faq details { border-top: 2px solid var(--line); padding: 18px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 32px; font-size: 21px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 20px; height: 20px; background: currentColor; clip-path: polygon(45% 0, 55% 0, 55% 45%, 100% 45%, 100% 55%, 55% 55%, 55% 100%, 45% 100%, 45% 55%, 0 55%, 0 45%, 45% 45%); transition: transform 0.24s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > *:not(summary) { margin-top: 10px; max-width: 60ch; }

/* ---------- note / call-out ---------- */
.callout { padding: 22px 26px; border: 1px solid rgba(242, 181, 36, 0.55); border-radius: 4px; font-size: 19px; }
.bg-sky .callout, .bg-paper .callout, .bg-gold .callout { border-color: rgba(13, 35, 65, 0.4); }
.todo { background: rgba(242, 181, 36, 0.18); outline: 1px dashed var(--gold); padding: 0 4px; border-radius: 2px; }

/* ---------- call-to-action band ---------- */
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.cta-band .h2 { max-width: 16ch; }

/* ---------- footer (all pages) ---------- */
.site-foot { background: var(--deep); padding: 64px 0 32px; color: var(--sky); }
.foot-top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 16px; text-decoration: none; flex: 1 1 300px; }
.foot-brand img { width: 72px; height: auto; }
.foot-brand .brand-text .wm-name { font-weight: 800; font-size: 28px; }
.foot-brand .brand-text .wm-sub { font-size: 15px; display: block; }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 16px; flex: 0 1 200px; }
.foot-col .eyebrow { font-size: 14px; letter-spacing: 0.16em; }
.foot-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(221, 232, 244, 0.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 14px; color: var(--muted); }
.foot-legal a { color: var(--sky); }

/* ---------- small shared fixes (from the page builds) ---------- */
.bg-gold .todo { background: rgba(13, 35, 65, 0.12); outline-color: var(--navy); }
.faq details { padding: 12px 0; }
.faq summary { min-height: 44px; }
.btn-row .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 16px; }
.field select, .field input, .field textarea { min-height: 52px; padding: 0 14px; border: 0; border-radius: 3px; background: var(--white); color: var(--navy); font: inherit; font-weight: 400; font-size: 17px; }
@media (min-width: 901px) { .sticky-col { position: sticky; top: 100px; } }
@media (max-width: 480px) { .btn-row > .btn { width: 100%; white-space: normal; text-align: center; padding: 12px 20px; } }

/* ---------- cookie bar (js/consent.js, 25 Nov 2026) ---------- */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--deep); color: var(--white); border-top: 3px solid var(--gold); padding: 14px 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35); }
.cookie-bar__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.cookie-bar p { margin: 0; max-width: 68ch; font-size: 16px; line-height: 1.45; }
.cookie-bar a { color: var(--gold); }
.cookie-bar__btns { display: flex; gap: 10px; }
.cookie-bar button { cursor: pointer; }
.cookie-bar .btn-gold { border: 0; }
.cookie-bar .btn-outline { background: transparent; }
@media (max-width: 560px) { .cookie-bar__btns { width: 100%; } .cookie-bar__btns .btn { flex: 1; } }
