/* Breathe Schools campaign styles. Colours and type follow the Design canvas mockups. */

:root {
  --ink: #1A1F2E;
  --navy: #0D3A5C;
  --blue: #1A6FA8;
  --blue-mid: #3D8EC4;
  --teal: #3A9E8A;
  --teal-dark: #22564C;
  --teal-text: #2C7C6C;
  --aqua: #6BD4C2;
  --mist: #E8F3FA;
  --mint: #E0F4F1;
  --paper: #F7F9FB;
  --line: #E2ECF4;
  --line-strong: #C9D9E6;
  --body: #2C3A4B;
  --muted: #4A5568;
  --faint: #6B7A8C;
  --error: #B42318;
  --error-bg: #FEF3F2;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad-x: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; } /* keeps anchor jumps and focused fields clear of the sticky header */
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #FFFFFF; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; } /* headings focused by script when a step changes */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; background: #FFFFFF; color: var(--navy); padding: 10px 16px; border-radius: 6px; z-index: 10; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; }
.wrap-narrow { max-width: 760px; margin: 0 auto; }
.wrap-mid { max-width: 1000px; margin: 0 auto; }
.section { padding: 72px var(--pad-x); }
.bg-paper { background: var(--paper); }
.bg-navy { background: var(--navy); color: #FFFFFF; }
.bg-mist { background: var(--mist); }

/* Top bar, header, footer */
.topbar { background: var(--navy); color: #CFE4F2; font-size: 13.5px; text-align: center; padding: 9px 20px; line-height: 1.5; }
.topbar .accent { color: var(--aqua); }
.site-header { position: sticky; top: 0; z-index: 50; background: #FFFFFF; border-bottom: 1px solid var(--line); padding: 14px var(--pad-x); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-name { font-family: var(--serif); font-size: 19px; color: var(--navy); }
.site-nav { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; font-size: 14.5px; }
.site-nav a { color: var(--body); text-decoration: none; }
.site-nav a:hover { color: var(--blue); }
.site-nav .nav-cta { background: var(--blue); color: #FFFFFF; padding: 9px 20px; border-radius: 6px; font-size: 14px; font-weight: 500; }
.site-nav .nav-cta:hover { background: var(--navy); color: #FFFFFF; }
.site-footer { background: var(--ink); color: #9FB3C8; padding: 36px var(--pad-x); font-size: 13.5px; line-height: 1.6; }
.site-footer .inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.site-footer .about { flex: 1 1 380px; }
.site-footer .footer-name { font-family: var(--serif); font-size: 17px; color: #FFFFFF; margin-bottom: 8px; }
.site-footer p { margin: 0; max-width: 520px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.site-footer a { color: #9FB3C8; text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }

/* Type */
.eyebrow { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); font-weight: 700; }
.eyebrow-aqua { color: var(--aqua); }
.h1 { font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1.16; margin: 0; }
.h2 { font-family: var(--serif); font-weight: 400; color: var(--navy); margin: 14px 0 0; font-size: 38px; line-height: 1.2; }
.h3 { font-family: var(--serif); font-weight: 400; color: var(--navy); font-size: 22px; margin: 18px 0 10px; }
.lead { font-size: 17px; line-height: 1.6; }
.pill { display: inline-block; border-radius: 999px; padding: 6px 14px; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; }

/* Buttons */
.btn { display: inline-block; background: var(--teal); color: #FFFFFF; border: 0; padding: 14px 30px; border-radius: 7px; font-size: 15.5px; font-weight: 500; cursor: pointer; font-family: inherit; text-decoration: none; text-align: center; line-height: 1.3; }
.btn:hover { background: #2F8676; color: #FFFFFF; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-blue { background: var(--blue); }
.btn-blue:hover { background: var(--navy); }
.btn-ghost { background: #FFFFFF; color: var(--body); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--paper); color: var(--navy); }
.btn-outline-light { background: transparent; color: #FFFFFF; border: 1px solid rgba(255,255,255,0.45); }
.btn-outline-light:hover { background: rgba(255,255,255,0.08); }
.btn-aqua { background: var(--aqua); color: var(--navy); font-weight: 700; }
.btn-aqua:hover { background: #8EE0D2; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Cards and grids */
.card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.span-2 { grid-column: span 2; }
.icon-tile { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.check-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 10px; }
.check-list svg { flex-shrink: 0; margin-top: 3px; }

.partner-lead { margin: 32px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 700; color: var(--navy); }
.partner-lead span { margin-left: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-text); }
/* Pipe-separated names. Each name carries a leading pipe; the list is shifted left and clipped so the pipe at the start of every line is hidden. */
.partner-list { list-style: none; margin: 16px 0 0 -21px; padding: 0; clip-path: inset(0 0 0 21px); display: flex; flex-wrap: wrap; row-gap: 8px; font-size: 15px; font-weight: 500; color: var(--navy); line-height: 1.5; }
.partner-list li { white-space: nowrap; }
.partner-list li::before { content: "|"; display: inline-block; width: 21px; text-align: center; color: var(--line-strong); font-weight: 400; }

/* Hero photo. The navy overlay keeps text readable; if the image is missing it falls back to plain navy. */
.hero-photo { background-color: var(--navy); background-image: linear-gradient(100deg, rgba(13,58,92,0.95) 0%, rgba(13,58,92,0.88) 55%, rgba(13,58,92,0.74) 100%), url("/assets/img/classroom-1600.jpg"); background-image: linear-gradient(100deg, rgba(13,58,92,0.95) 0%, rgba(13,58,92,0.88) 55%, rgba(13,58,92,0.74) 100%), image-set(url("/assets/img/classroom-1600.webp") type("image/webp"), url("/assets/img/classroom-1600.jpg") type("image/jpeg")); background-size: cover; background-position: center 60%; }
@media (max-width: 720px) { .hero-photo { background-image: linear-gradient(rgba(13,58,92,0.9), rgba(13,58,92,0.9)), url("/assets/img/classroom-900.webp"); } }

details.faq {background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; }
details.faq summary { font-size: 17px; font-weight: 500; color: var(--navy); cursor: pointer; }
details.faq p { font-size: 15px; line-height: 1.65; color: var(--muted); margin: 12px 0 0; }

/* Forms */
input, select, textarea, button { font-family: inherit; }
input, select, textarea { font-size: 16px; color: var(--ink); } /* 16px stops iOS zooming on focus */
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field input[type="url"], .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 7px; background: #FFFFFF; outline: none; line-height: 1.4;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,111,168,0.15); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.lbl { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: var(--body); margin-bottom: 6px; line-height: 1.45; }
legend.lbl { margin-bottom: 8px; }
.hint { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.hint-above { margin: -2px 0 11px; }
.opt { font-weight: 400; color: var(--faint); letter-spacing: 0; }
.req { color: var(--error); font-weight: 700; }
.choices { display: flex; flex-direction: column; gap: 9px; }
.choices-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choices-row > .choice { flex: 1 1 150px; }
.choices-row.wide > .choice { flex: 1 1 240px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border: 1px solid #DCE7F0; border-radius: 7px; background: #FFFFFF; font-size: 15px; line-height: 1.45; cursor: pointer; color: var(--ink); }
.chips .choice { padding: 8px 14px; }
.choice input { width: auto; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--teal); }
.choice:hover { border-color: var(--line-strong); }
.choice:has(input:checked) { border-color: var(--teal); background: var(--mint); }
.choice:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.reveal { margin-top: 16px; margin-left: 16px; padding: 18px 20px; border-left: 3px solid var(--teal); background: #F7FCFB; border-radius: 0 8px 8px 0; }
.reveal-quiet { border-left-color: var(--line-strong); background: var(--paper); font-size: 14px; line-height: 1.55; color: var(--muted); padding: 14px 18px; }

.sec { background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; padding: 30px 34px; }
.sech { font-family: var(--serif); font-weight: 400; font-size: 25px; color: var(--navy); margin: 0 0 6px; }
.secs { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin: 0 0 24px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.divider-top { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 22px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }

/* Errors: always text plus an icon and a thicker border, never colour alone. */
.field-error { display: none; align-items: flex-start; gap: 6px; color: var(--error); font-size: 13.5px; font-weight: 500; margin-top: 7px; line-height: 1.45; }
.field-error::before { content: "!"; display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: var(--error); color: #FFFFFF; font-size: 11px; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.has-error .field-error { display: flex; }
.has-error input[type="text"], .has-error input[type="email"], .has-error input[type="number"], .has-error input[type="url"], .has-error select, .has-error textarea { border: 2px solid var(--error) !important; }
.has-error .choice { border-color: var(--error); }
.error-summary { border: 2px solid var(--error); background: var(--error-bg); border-radius: 10px; padding: 18px 22px; color: var(--ink); }
.error-summary h2 { font-size: 17px; margin: 0 0 8px; color: var(--error); }
.error-summary ul { margin: 0; padding-left: 20px; line-height: 1.7; font-size: 14.5px; }
.error-summary a { color: var(--error); font-weight: 500; }
.notice { border-radius: 9px; padding: 16px 20px; font-size: 14.5px; line-height: 1.6; }
.notice-info { background: var(--mist); color: #14486F; }

/* Stepper */
.stepper { background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; }
.stepper-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.stepper-label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.stepper-time { font-size: 13px; color: var(--faint); }
.stepper-bars { display: flex; gap: 6px; }
.stepper-bars span { flex: 1; height: 6px; border-radius: 3px; background: #DCE7F0; }
.stepper-bars span.on { background: var(--teal); }

.school { border: 1px solid #DCE7F0; border-radius: 9px; padding: 20px; margin-bottom: 14px; background: #FCFDFE; }
.school-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.school-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; cursor: pointer; font-size: 14px; }
.add-school { display: flex; align-items: center; justify-content: center; gap: 9px; background: #FFFFFF; border: 1px dashed #9FBDD4; color: var(--blue); border-radius: 8px; padding: 13px 20px; font-size: 14.5px; font-weight: 500; cursor: pointer; width: 100%; }
.add-school:hover { background: var(--paper); }

.helper { background: var(--navy); border-radius: 10px; padding: 24px 28px; color: #CFE4F2; }
.helper h2 { font-family: var(--serif); font-weight: 400; font-size: 21px; color: #FFFFFF; margin: 0 0 8px; }
.helper p { font-size: 14.5px; line-height: 1.6; margin: 0 0 16px; }
.helper .link-btn { color: #9FC2DC; }
.helper .draft { margin-top: 16px; background: #FFFFFF; border-radius: 8px; padding: 18px 20px; font-size: 13.5px; line-height: 1.6; color: var(--body); white-space: pre-line; }
.helper .copy-status { font-size: 13.5px; color: var(--aqua); margin-left: 6px; }

.panel { flex: 1 1 260px; border-radius: 9px; padding: 18px 20px; }
.panel-title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.panel ul { margin: 0; padding-left: 18px; font-size: 14.5px; line-height: 1.75; }
.panel p { margin: 12px 0 0; font-size: 13.5px; line-height: 1.55; }

.form-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 4px; }
.form-nav .save-note { font-size: 13.5px; color: var(--faint); flex: 1 1 200px; }
.turnstile-box { margin-top: 22px; min-height: 65px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Responsive */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  :root { --pad-x: 20px; }
  html { scroll-padding-top: 92px; }
  .section { padding-top: 52px; padding-bottom: 52px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .h1 { font-size: 34px; }
  .h2 { font-size: 30px; }
  .sec { padding: 22px 18px; }
  .school { padding: 16px; }
  .helper { padding: 20px; }
  /* Phones: logo and "Apply Now" share the top row, section links sit in a
     compact second row, so the sticky header stays short. */
  .site-header { padding-top: 10px; padding-bottom: 10px; gap: 8px 18px; }
  .site-nav { margin-left: 0; width: 100%; gap: 6px 18px; font-size: 14px; }
  .site-nav .nav-cta { position: absolute; top: 10px; right: var(--pad-x); padding: 6px 14px; font-size: 13.5px; }
  .reveal { margin-left: 0; }
  .btn-row .btn { flex: 1 1 100%; }
}
