/* Rotary Youth Exchange — District 9920 */
:root {
  --navy: #0C2A5C;
  --blue: #17458F;
  --gold: #F7A81B;
  --gold-hover: #FFC04A;
  --ink: #2A3446;
  --body: #3A4558;
  --muted: #566176;
  --line: #DCE3EE;
  --tint: #F5F8FC;
  --tint-2: #EAF0F9;
  --on-blue: #DCE6F7;
  --on-navy: #B9C7E0;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
section[id] { scroll-margin-top: 16px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > .main { flex: 999 1 460px; min-width: 0; }
.split > .side { flex: 1 1 320px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

/* Type */
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -.02em; color: var(--navy); }
.h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.2; color: var(--navy); }
.lede { margin: 0; font-size: 18px; line-height: 1.6; color: var(--body); max-width: 60ch; }
.note { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 80ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-hover); color: var(--navy); }
.btn-line { border-color: #fff; color: #fff; }
.btn-line:hover { background: #fff; color: var(--blue); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--navy); color: #fff; }

/* Header */
.site-header { background: var(--navy); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 15px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 17px; }
.brand-text span { font-size: 13px; color: var(--on-navy); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.site-nav a:not(.btn) { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 4px; }
.site-nav a:not(.btn):hover { color: var(--gold); }
.site-nav .btn { min-height: 44px; font-size: 15px; }

/* Hero */
.hero { background: var(--blue); color: #fff; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pill { margin: 0; align-self: flex-start; background: var(--gold); color: var(--navy); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6.4vw, 84px); line-height: .98; letter-spacing: -.03em; }
.hero-lede { margin: 0; font-size: 20px; line-height: 1.55; color: var(--on-blue); max-width: 52ch; }
.glance { flex: 1 1 300px; min-width: 0; background: var(--navy); border-radius: 20px; padding: 28px; }
.glance .eyebrow { color: var(--gold); padding-bottom: 12px; }
.glance dl { margin: 0; }
.glance div { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid #23457E; }
.glance div:last-child { border-bottom: 0; }
.glance dt { width: 92px; flex: none; color: var(--gold); font-weight: 700; }
.glance dd { margin: 0; color: var(--on-blue); }

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-blue { background: var(--blue); color: #fff; }
.section-apply { padding: 104px 0; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.card-plain { padding: 24px; border-radius: 16px; border: 1px solid var(--line); }
.panel { padding: 24px; border-radius: 16px; background: var(--tint); }

.quote { margin: 12px 0 0; padding: 24px 28px; background: var(--tint); border-radius: 16px; font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.3; color: var(--navy); }
.quote p { margin: 0; }
.quote footer { padding-top: 10px; font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--muted); }

.countries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.countries li { padding: 14px; border-radius: 12px; background: var(--tint-2); font-weight: 700; color: var(--navy); }

.tick { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tick li { position: relative; padding-left: 30px; line-height: 1.55; color: var(--ink); }
.tick li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); }

/* Apply */
.apply-head { display: flex; flex-wrap: wrap; gap: 24px 56px; align-items: flex-end; justify-content: space-between; }
.apply-head .stack { flex: 999 1 460px; min-width: 0; gap: 16px; }
.district { display: flex; flex-wrap: wrap; gap: 24px; padding: 28px; border-radius: 16px; background: #FFF6E3; border: 1px solid #F3D28C; }
.district-copy { flex: 999 1 380px; min-width: 0; }
.district-copy p { margin: 0; }
.district-title { font-weight: 700; font-size: 18px; color: var(--navy); }
.district-links { flex: 1 1 280px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; align-content: start; margin: 0; padding: 0; list-style: none; }
.district-links a { display: block; padding: 12px 14px; border-radius: 10px; background: #fff; font-weight: 700; text-decoration: none; }

.step { display: flex; flex-direction: column; gap: 20px; }
.step-1 { border-top: 6px solid var(--gold); }
.step-2 { border-top: 6px solid var(--blue); }
.step-head { display: flex; align-items: center; gap: 14px; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex: none; }
.step ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.callout { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--tint-2); font-size: 15px; font-weight: 600; color: var(--navy); }

.downloads { display: flex; flex-direction: column; gap: 10px; }
.dl { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--navy); background: var(--tint); min-height: 56px; }
.dl:hover { border-color: var(--blue); background: var(--tint-2); color: var(--navy); }
.dl svg { flex: none; }
.dl strong { display: block; }
.dl small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }

.timeline-item { padding: 24px; border-radius: 16px; background: var(--tint); display: flex; flex-direction: column; gap: 8px; }
.timeline-item strong { color: var(--blue); }
.timeline-item p { margin: 0; }

.send-to { display: flex; flex-wrap: wrap; gap: 24px; }
.send-to > .card-plain { flex: 1 1 340px; min-width: 0; }
.send-to > .panel { flex: 999 1 420px; min-width: 0; }
.send-to strong { color: var(--navy); }
address { font-style: normal; line-height: 1.6; }

/* Costs */
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th:last-child, td:last-child { text-align: right; white-space: nowrap; font-weight: 700; color: var(--navy); padding-left: 16px; }
th { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
tr:last-child td { border-bottom: 0; }

/* Hosting */
.section-blue .eyebrow { color: var(--gold); }
.section-blue .h2 { color: #fff; }
.section-blue .split { align-items: center; }
.on-blue { margin: 0; font-size: 18px; line-height: 1.6; color: var(--on-blue); max-width: 58ch; }
.quote-dark { margin: 0; padding: 32px; background: var(--navy); border-radius: 20px; font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.25; color: #fff; }
.quote-dark p { margin: 0; }
.quote-dark footer { padding-top: 14px; font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--on-navy); }

/* Contact */
.contact-card { display: flex; flex-direction: column; gap: 14px; }
.contact-card strong { color: var(--navy); font-size: 18px; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: center; padding-top: 32px; padding-bottom: 32px; font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold); }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section-apply { padding: 72px 0; }
  .hero .wrap { padding-top: 56px; padding-bottom: 64px; }
  .card, .district { padding: 22px; }
  .site-nav { gap: 0 16px; }
}

@media print {
  .site-header, .actions, .hero .btn { display: none; }
  .hero, .section-blue { background: #fff; color: var(--ink); }
  .hero-lede, .on-blue, .glance dd { color: var(--body); }
  .section-blue .h2 { color: var(--navy); }
}
