/* Student Athlete Network — site styles */

/* ---------- Fonts (self-hosted, SIL Open Font License: see assets/fonts/OFL.txt) ---------- */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: italic; font-display: swap; src: url("../fonts/barlow-condensed-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --navy: #120C33;
  --navy-2: #1A1245;
  --navy-line: #3A3268;
  --chip-line: #4A4279;
  --footer: #0B0722;
  --red: #D21F33;
  --red-dark: #9C1424;
  --pink: #FF7A86;
  --ink: #120C33;
  --muted: #3B3660;
  --label: #55507A;
  --on-navy: #DCD8EE;
  --on-navy-2: #C9C4E0;
  --paper: #FFFFFF;
  --paper-2: #F4F3F8;
  --rule: #D9D6E4;
  --field: #CFCBDC;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 3vw, 32px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
input, select, textarea, button { font: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 12px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.display { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: 0.9; letter-spacing: 0; }
.display-xl { font-size: clamp(64px, 8.6vw, 128px); line-height: 0.88; }
.display-lg { font-size: clamp(44px, 5vw, 72px); line-height: 0.95; }
.display-md { font-size: clamp(36px, 4.4vw, 60px); line-height: 0.95; }
.dot { color: var(--red); }
.eyebrow { font-size: 15px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); max-width: 580px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 28px; border: 0; border-radius: 4px; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .15s ease, transform .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #251A5C; color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--paper-2); color: var(--navy); }
.btn-sm { min-height: 44px; font-size: 20px; padding: 8px 22px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 3px solid var(--navy); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; padding-top: 12px; padding-bottom: 12px; }
.brand { margin-right: auto; display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand picture { display: block; flex: none; }
.brand img { width: 56px; height: auto; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; text-transform: uppercase; letter-spacing: 0.02em; }
.brand:hover { color: var(--ink); }
.main-nav { display: flex; flex-wrap: wrap; gap: 0 28px; font-family: var(--display); font-weight: 600; font-size: 19px; text-transform: uppercase; letter-spacing: 0.04em; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 10px 0; border-bottom: 3px solid transparent; }
.main-nav a:hover { color: var(--red); }
.main-nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }

@media (max-width: 760px) {
  .brand img { width: 44px; }
  .brand span { font-size: 18px; }
  .site-header .wrap { gap: 4px 16px; }
  .main-nav { order: 3; width: 100%; gap: 0 20px; font-size: 17px; overflow-x: auto; }
  .header-cta { font-size: 18px; min-height: 44px; padding: 8px 16px; }
}
@media (max-width: 400px) { .brand span { display: none; } }

/* ---------- Hero ---------- */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: stretch; gap: 56px; padding-top: 72px; padding-bottom: 88px; }
.hero-copy { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 30px; }
.hero-art { flex: 1 1 380px; position: relative; min-height: 520px; }
.hero-art::before { content: ""; position: absolute; top: 40px; right: 0; bottom: 0; left: 40px; background: var(--red); transform: skewX(-6deg); }
.hero-art .panel { position: absolute; top: 0; left: 0; width: calc(100% - 40px); height: calc(100% - 40px); background: var(--navy); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-art .panel::before, .hero-art .panel::after { content: ""; position: absolute; top: -10%; bottom: -10%; background: var(--navy-2); transform: skewX(-18deg); }
.hero-art .panel::before { left: 18%; width: 22%; }
.hero-art .panel::after { left: 46%; width: 6%; }
.hero-art .panel picture { position: relative; z-index: 1; display: block; width: 76%; max-width: 380px; }
.hero-art .panel picture img { width: 100%; height: auto; }
.hero-art .panel.court::before, .hero-art .panel.court::after { display: none; }
.hero-art .panel.court > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero { overflow-x: clip; }
@media (max-width: 760px) {
  .hero .wrap { padding-top: 40px; padding-bottom: 56px; gap: 40px; }
  .hero-art { min-height: 280px; }
  .hero-art .panel picture { width: 56%; }
}

/* Stat line */
.statline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 3px solid var(--navy); border-bottom: 3px solid var(--navy); }
.statline > div { padding: 18px 16px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; border-right: 1px solid var(--rule); }
.statline > div:first-child { padding-left: 0; }
.statline > div:last-child { border-right: 0; }
.statline dt { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--label); }
.statline dd { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 5vw, 64px); line-height: 1; }
.statline dd.red { color: var(--red); }

/* ---------- Sports rail ---------- */
.rail { background: var(--navy); color: #fff; }
.rail .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 32px; padding-bottom: 32px; }
.rail-label { font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; color: var(--pink); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1.5px solid var(--chip-line); padding: 6px 14px; border-radius: 4px; font-weight: 600; font-size: 16px; }
.rail-note { font-size: 15px; color: var(--on-navy-2); }
.rail-note a { color: #FF9AA3; }

/* ---------- Sections ---------- */
.section { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); }
.section-tint { background: var(--paper-2); border-top: 3px solid var(--navy); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head p { font-size: 17px; color: var(--muted); max-width: 460px; }

/* Why cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; margin-top: 48px; }
.card { display: flex; flex-direction: column; gap: 16px; }
.card picture { display: block; }
.card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--navy); }
.card h3 { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; text-transform: uppercase; border-top: 3px solid var(--red); padding-top: 14px; }
.card p { color: var(--muted); }

/* Numbered steps */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-top: 3px solid var(--navy); }
.steps li { padding: 24px 20px 24px 0; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--rule); }
.steps .num { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1.1; color: var(--red); }
.steps .title { font-weight: 700; font-size: 18px; }
.steps .text { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.quote { border-top: 6px solid var(--red); background: var(--paper-2); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.quote blockquote { font-size: 19px; line-height: 1.55; }
.quote figcaption { font-family: var(--display); font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--label); }

/* ---------- FAQ ---------- */
.faq .wrap { display: flex; flex-wrap: wrap; gap: 48px; }
.faq-intro { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; }
.faq-intro p { color: var(--muted); }
.faq-groups { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.faq-group h3 { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.faq-group details { border-bottom: 1px solid var(--rule); }
.faq-group summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 0; font-size: 19px; font-weight: 700; line-height: 1.35; }
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary::after { content: "+"; flex: none; color: var(--red); font-size: 28px; line-height: 0.9; transition: transform .2s ease; }
.faq-group details[open] summary::after { transform: rotate(45deg); }
.faq-group details p { padding: 0 40px 20px 0; color: var(--muted); line-height: 1.65; }

/* ---------- Bands ---------- */
.band-red { background: var(--red); color: #fff; }
.band-red .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.band-red .eyebrow { color: #fff; }
.band-red .band-copy { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.band-navy { background: var(--navy); color: #fff; }
.closing .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding-top: clamp(64px, 8vw, 96px); padding-bottom: clamp(64px, 8vw, 96px); }
.closing .dot { color: #FF5A68; }
.closing p { font-size: 19px; color: var(--on-navy-2); max-width: 520px; }

/* Erasmus: who / what */
.split { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 88px; padding-bottom: 88px; }
.split > :first-child { flex: 1 1 340px; display: flex; flex-direction: column; gap: 16px; }
.split > :last-child { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split p { font-size: 18px; color: var(--on-navy); }
.split .small { font-size: 15px; color: var(--on-navy-2); }
.facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 3px solid #fff; }
.facts li { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--navy-line); font-size: 17px; line-height: 1.5; }
.facts strong { display: block; font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; color: var(--pink); }

/* ---------- Forms ---------- */
.form-layout .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 64px; padding-bottom: 96px; }
.form-aside { flex: 1 1 300px; display: flex; flex-direction: column; gap: 24px; }
.form-aside p { color: var(--muted); }
.next-box { background: var(--navy); color: #fff; padding: 28px; display: flex; flex-direction: column; gap: 14px; border-top: 6px solid var(--red); }
.next-box h2 { font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; }
.next-box ol { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.5; color: var(--on-navy); }

.form-card { flex: 999 1 640px; min-width: 0; background: #fff; border-top: 6px solid var(--navy); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 40px; }
.form-card.alt { border-top-color: var(--red); }
.on-tint { background: var(--paper-2); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-family: var(--display); font-weight: 800; font-size: 30px; text-transform: uppercase; padding: 0 0 16px; }
legend span { color: var(--red); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 15px; font-weight: 600; }
.req { color: var(--red); }
.hint { font-size: 14px; color: var(--label); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--field); border-radius: 4px; font-size: 16px; color: var(--ink); background: #fff; }
.field select { padding-right: 36px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23120C33' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field textarea { resize: vertical; min-height: 110px; }
[aria-invalid="true"] { border-color: var(--red) !important; background-color: #FFF7F8 !important; }
.check:has([aria-invalid="true"]) { color: var(--red-dark); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid rgba(210, 31, 51, .25); outline-offset: 0; }
.pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.options { display: flex; flex-wrap: wrap; gap: 12px; border: 0; }
.option { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border: 2px solid var(--field); border-radius: 4px; font-size: 16px; cursor: pointer; }
.option input { width: 20px; height: 20px; accent-color: var(--red); }
.option:has(input:checked) { border-color: var(--navy); background: var(--paper-2); }
.callout { background: var(--paper-2); border-left: 6px solid var(--red); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.callout strong { font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; }
.callout span { color: var(--muted); line-height: 1.6; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.5; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--red); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-top: 3px solid var(--navy); padding-top: 28px; }
.form-foot p { font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 420px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #FDECEE; border-left: 6px solid var(--red); padding: 16px 18px; font-size: 16px; }
.form-done { display: flex; flex-direction: column; gap: 16px; padding: 8px 0; }
.form-done h2 { font-family: var(--display); font-weight: 800; font-style: italic; font-size: clamp(40px, 5vw, 60px); line-height: 0.95; text-transform: uppercase; }
.form-done p { font-size: 18px; color: var(--muted); max-width: 560px; }
.form-card:has(.form-done) { border-top-color: var(--red); }

/* ---------- Prose pages (privacy, 404) ---------- */
.prose { max-width: 760px; }
.prose h1 { margin-bottom: 24px; }
.prose h2 { font-family: var(--display); font-weight: 800; font-size: 28px; text-transform: uppercase; margin: 40px 0 12px; }
.prose p, .prose ul { margin-bottom: 14px; color: var(--muted); }
.prose ul { padding-left: 22px; }
.todo { background: #FFF4CC; padding: 0 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: var(--on-navy-2); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 32px; padding-bottom: 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-footer a { color: #fff; padding: 10px 0; display: inline-block; }
.site-footer a:hover { color: var(--pink); }
