/* Vamos Swim — mobile-first, no framework, no build step.

   Colours come from the client's brand sheet: blue #1D4ED8, red #E31B37,
   white. The logo and every photo come from the client's own asset set. Red
   is the brand's energy colour, so the "stop" colour used for warnings is a
   separate, darker red rather than the same one. */

@font-face {
  font-family: "Montserrat";
  src: url("/static/fonts/Montserrat-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/static/fonts/Montserrat-italic-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* The brand sheet. */
  --blue: #1D4ED8;
  --red: #E31B37;
  /* Darker steps of the same two, for hover and for text over photos. */
  --blue-deep: #1638A6;
  --red-dark: #B8142B;

  --ground: #F3F6FD;
  --surface: #FFFFFF;
  --ink: #0B1A45;
  --ink-2: #34426B;
  --ink-3: #5E6A92;
  --line: #D6DEF2;
  --line-soft: #E5EAF7;
  --on-blue: #E3EAFF;
  --on-blue-soft: #D3DDFB;
  --stop: #A3121E;
  --stop-soft: #FDF1F2;
  --warn: #8A5A12;
  --warn-soft: #F6EBD8;

  /* Reserved for values a person may have to retype -- a payment reference,
     a UEN. Labels and headings are not data and do not get it. */
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 36rem;
  --pad: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
}

img { max-width: 100%; }

h1, h2, h3, .status-code {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; text-wrap: pretty; }
strong { font-weight: 700; }

a { color: var(--blue); font-weight: 600; text-decoration: none; }
a:hover { color: var(--blue-deep); text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* ── shell ─────────────────────────────────────────────────────────── */

/* White, because the logo artwork is the full-colour version on white. */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
  padding: 0.35rem var(--pad);
  background: var(--surface);
}

.logo { display: inline-flex; }
.logo:hover { text-decoration: none; }
.logo img { display: block; height: 64px; width: auto; }

.nav { display: flex; gap: 1.1rem; font-size: 0.92rem; }
.nav a { color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

/* The lane rope: one solid blue line over a thinner red one. The dashes it
   replaced read as airmail edging rather than a swimming lane -- the white
   gaps were doing the damage, so there are none. */
.rope {
  height: 6px;
  background: linear-gradient(var(--blue) 0 4px, var(--red) 4px 6px);
}

.main { padding: 1.5rem var(--pad) 2.5rem; }

/* ── brand pieces ──────────────────────────────────────────────────── */

/* The red brush-stroke banner the posters put the tagline on. */
.tagline {
  display: inline-block;
  align-self: flex-start;
  padding: 0.4rem 1.2rem 0.4rem 0.95rem;
  background: var(--red);
  color: #FFFFFF;
  font: italic 800 0.8rem/1.2 var(--sans);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  clip-path: polygon(1.5% 4%, 100% 0, 97.5% 100%, 0 94%);
}

.wave { display: block; width: 100%; height: 32px; margin-bottom: -1px; color: var(--blue); }

/* ── prose ─────────────────────────────────────────────────────────── */

.prose { max-width: var(--measure); margin: 0 auto; }
.prose.narrow { max-width: 26rem; }

.prose h1 { font-size: 2rem; font-weight: 900; color: var(--blue); }
.prose h2 {
  font-size: 1.2rem;
  margin: 2.25rem 0 0.65rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.prose p + p { margin-top: 0.9rem; }
.prose ul { padding-left: 1.2rem; }

.lede { font-size: 1.05rem; color: var(--ink-2); margin-top: 0.7rem; }
.aside-note { font-size: 0.88rem; color: var(--ink-3); margin-top: 0.6rem; }

.status-code {
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 0.5rem;
}

/* ── notices ───────────────────────────────────────────────────────── */

.notice {
  padding: 0.9rem 1rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  line-height: 1.55;
  border-left: 4px solid var(--ink-3);
  border-radius: 0 10px 10px 0;
  background: var(--surface);
}
.notice-warn { border-left-color: var(--warn); background: var(--warn-soft); }
.notice-stop { border-left-color: var(--stop); background: var(--stop-soft); }

/* ── data ──────────────────────────────────────────────────────────── */

.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin-top: 0.9rem; }
.data-table th {
  text-align: left;
  font: 700 0.7rem/1.4 var(--sans);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0.6rem 0.7rem 0.6rem 0;
  border-bottom: 2px solid var(--blue);
}
.data-table td {
  padding: 0.7rem 0.7rem 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  color: var(--ink-2);
}
.data-table td:first-child { color: var(--ink); font-weight: 600; }

.entity-block, .entity { margin: 0.9rem 0 0; font-size: 0.93rem; }
.entity-block dt, .entity dt {
  font: 700 0.7rem/1.4 var(--sans);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 0.7rem;
}
.entity-block dd, .entity dd { margin: 0.15rem 0 0; color: var(--ink-2); }
.entity dd.unset { color: var(--stop); }

.never { padding-left: 1.1rem; margin-top: 0.9rem; }
.never li { margin-bottom: 0.6rem; color: var(--ink-2); }

.version {
  font-size: 0.8rem;
  color: var(--ink-3);
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* ── footer ────────────────────────────────────────────────────────── */

.footer { background: var(--blue); color: var(--on-blue); padding: 1.25rem var(--pad) 2rem; }
.footer a { color: #FFFFFF; }
.footer a:focus-visible { outline-color: #FFFFFF; }

/* An invitation, then the brand, then the small print. */
.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.footer-lede { font: italic 900 1.45rem/1.15 var(--sans); color: #FFFFFF; text-transform: uppercase; }
.footer .cta-row { margin-top: 0.6rem; }

.footer-brand { display: flex; align-items: center; gap: 1rem; }
/* The round badge, clipped to its circle and ringed so its own blue reads
   as a badge on the footer's blue. */
.footer-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #FFFFFF;
  flex-shrink: 0;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.25rem; font-size: 0.9rem; }

.smallprint { margin-top: 1.25rem; font-size: 0.8rem; line-height: 1.7; color: var(--on-blue-soft); }
.smallprint p + p { margin-top: 0.5rem; }
.smallprint a { font-weight: 500; text-decoration: underline; }
/* The registration number is small print, not a warning light. */
.reg { white-space: nowrap; }

/* ── buttons ───────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.35rem;
  background: var(--red);
  color: #FFFFFF;
  border: 2px solid var(--red);
  border-radius: 999px;
  font: italic 800 0.88rem/1.2 var(--sans);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.btn:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #FFFFFF;
  text-decoration: none;
}
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue); border-color: var(--blue); color: #FFFFFF; }

/* On blue or over a photo, the outline button turns white. */
.hero-copy .btn-ghost, .band.dark .btn-ghost, .footer .btn-ghost {
  color: #FFFFFF;
  border-color: #FFFFFF;
}
.hero-copy .btn-ghost:hover, .band.dark .btn-ghost:hover, .footer .btn-ghost:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--blue);
}

.btn-small { min-height: 36px; padding: 0.35rem 0.9rem; font-size: 0.76rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }

/* One enquiry button for a whole page of cards, centred under them. */
.page-cta { display: flex; justify-content: center; margin-top: 1.6rem; }
.page-cta .cta-row { justify-content: center; margin-top: 0; }

/* ── public pages ──────────────────────────────────────────────────── */

/* The words set the height and the photo, if there is one, fills in behind
   them, so the box grows with the copy on a narrow phone instead of
   clipping it. Without a photo it is a plain blue band. */
.hero { position: relative; overflow: hidden; background: var(--blue-deep); }
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-copy {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 2.5rem var(--pad) var(--pad);
  background: linear-gradient(180deg, rgba(22, 56, 166, 0.05) 0%, rgba(12, 32, 105, 0.88) 100%);
  color: #FFFFFF;
}
.hero.short .hero-copy { min-height: 190px; }
/* A banner whose subject sits low in the frame: keep the water, not the sky. */
.hero.wide-banner img { object-position: 50% 78%; }
.hero.wide-banner .hero-copy { min-height: 260px; }
.hero-copy h1 { color: #FFFFFF; font-size: 1.95rem; font-weight: 900; text-transform: uppercase; }
.hero-copy h2 { color: #FFFFFF; font-size: 1.45rem; font-weight: 900; }
.hero-copy .lede { color: var(--on-blue); font-size: 0.98rem; margin-top: 0; }
.hero-copy .cta-row { margin-top: 0.35rem; }

.band { padding: 2rem var(--pad); }
.band h2 { font-size: 1.55rem; font-weight: 900; text-transform: uppercase; color: var(--blue); }
.band-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.band.dark { background: var(--blue); color: var(--on-blue); }
.band.light { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* The trial offer. Loud on purpose, and it removes itself when the promotion
   ends, because the copy comes from the policy. */
.promo { background: var(--red); color: #FFFFFF; padding: 1.5rem var(--pad); text-align: center; }
.promo-line {
  font: italic 900 clamp(1.45rem, 4.5vw, 2.1rem)/1.15 var(--sans);
  text-transform: uppercase;
}
.promo-extra { font: italic 800 1.05rem/1.3 var(--sans); margin-top: 0.4rem; }
.promo .cta-row { justify-content: center; }
.promo .btn { background: #FFFFFF; color: var(--red); border-color: #FFFFFF; }
.promo .btn:hover { background: var(--ground); border-color: var(--ground); color: var(--red-dark); }
.promo .btn-ghost { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
.promo .btn-ghost:hover { background: #FFFFFF; color: var(--red); }
.promo-note { font-size: 0.78rem; margin-top: 0.85rem; color: rgba(255, 255, 255, 0.88); }
.band.dark h2, .band.dark strong { color: #FFFFFF; }
.band.dark .lede { color: var(--on-blue); }

/* Steps read as advice, with the action first. */
.steps {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.steps li { padding-left: 2.7rem; position: relative; line-height: 1.6; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.9rem;
  height: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red);
  color: #FFFFFF;
  font: italic 900 0.95rem/1 var(--sans);
}
.steps strong { display: block; font: italic 800 1.05rem/1.3 var(--sans); margin-bottom: 0.15rem; }

.rope-note {
  border-left: 3px solid var(--red);
  padding: 0.2rem 0 0.2rem 0.9rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-3);
}
.band.dark .rope-note { color: var(--on-blue); }

/* What we teach: one card per programme actually offered. */
.offers {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.offer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.offer:nth-child(even) { border-top-color: var(--red); }
.offer h3 { font-size: 1.08rem; color: var(--ink); margin-bottom: 0.3rem; }
.offer p { font-size: 0.92rem; color: var(--ink-2); }
/* An offer inside a programme card, e.g. the award scholarship. */
.offer .offer-note { margin-top: 0.55rem; font-weight: 700; color: var(--red); }

.venue-list, .cards, .staff, .kit { list-style: none; padding: 0; margin: 0; }
.venue-list { display: flex; flex-direction: column; gap: 1.1rem; }
.venue h3 { font-size: 1.12rem; margin: 0.4rem 0 0.3rem; }
.venue p { font-size: 0.93rem; color: var(--ink-2); }

.cards { display: flex; flex-direction: column; gap: 1.25rem; padding: 0 var(--pad); margin-top: 1.25rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: 14px;
  overflow: hidden;
}
.card-body { padding: 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.card-body h2 { font-size: 1.18rem; }

/* Pills say what a parent can do, so they read as labels not status codes. */
.pill {
  display: inline-block;
  align-self: flex-start;
  font: 700 0.68rem/1.4 var(--sans);
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--ink-3);
  border-radius: 999px;
  color: var(--ink-3);
}
.pill-go { color: #FFFFFF; background: var(--blue); border-color: var(--blue); }
.pill-warn { color: var(--warn); background: var(--warn-soft); border-color: var(--warn); }

.split { display: flex; flex-direction: column; background: var(--surface); border-top: 1px solid var(--line); }
.split img { width: 100%; height: 240px; object-fit: cover; display: block; }
/* A head-and-shoulders portrait crops from the top, not the middle. */
.split img.portrait { object-position: 50% 20%; }
.split > div { padding: 1.75rem var(--pad); }
.split h1, .split h2 { font-size: 1.55rem; font-weight: 900; text-transform: uppercase; color: var(--blue); }

/* The coach's qualifications: a plain list, ticked in brand red. */
.credentials {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.93rem;
}
.credentials li { position: relative; padding-left: 1.6rem; color: var(--ink-2); }
.credentials li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.kit { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.kit li {
  border: 2px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  padding: 0.3rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.price-table {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.price-table li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--pad);
  border-bottom: 1px solid var(--line-soft);
}
.price-label { display: block; font-weight: 700; font-size: 1rem; }
.price-note { display: block; font-size: 0.85rem; color: var(--ink-3); margin-top: 0.2rem; }
.price-amount {
  font: italic 900 1.2rem/1.2 var(--sans);
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price-amount.accent { color: var(--red); }

.qa { margin: 1rem 0 0; }
.qa dt {
  font: 700 0.72rem/1.4 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 1rem;
}
.qa dd { margin: 0.2rem 0 0; color: var(--ink-2); }

.cap-block {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--blue);
  color: var(--on-blue);
  margin: 1.5rem var(--pad);
  padding: 1.25rem;
  border-radius: 14px;
}
.cap-number { font: italic 900 2.8rem/1 var(--sans); color: #FFFFFF; }
.cap-block p { font-size: 0.9rem; }

.request-note { font-size: 0.88rem; line-height: 1.65; color: var(--ink-3); margin-top: 0.7rem; }

.staff { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.25rem; }
.staff li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-soft);
}
.staff-role {
  font: 700 0.66rem/1.4 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  width: 100%;
}
.staff-name { font-weight: 700; font-size: 1rem; }
.unset { font-size: 0.85rem; color: var(--ink-3); font-style: italic; }
.pending { font-size: 0.85rem; color: var(--ink-3); font-style: italic; }

/* Supporting notes read as an aside, not a compliance banner. */
.note {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink-3);
  margin-top: 1.25rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--line);
}
.band.dark .note { color: var(--on-blue); border-left-color: rgba(255, 255, 255, 0.3); }

@media (min-width: 40rem) {
  :root { --pad: 2.5rem; }
  .logo img { height: 76px; }
  .prose h1 { font-size: 2.5rem; }
  .hero-copy { min-height: 460px; padding: 3rem var(--pad) 2.25rem; }
  .hero.short .hero-copy { min-height: 230px; }
  .hero-copy h1 { font-size: 3rem; max-width: 17ch; }
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .split img { height: 100%; min-height: 320px; }
}
