/* ==================================================================
   MedAdmit v2 — design tokens
   Warm cream + deep navy. One typeface. One radius scale.
   Every rule in the site derives from this file.
   ================================================================== */

:root {
  /* ---- colour ---- */
  --cream:      #FAF7F0;
  --cream-2:    #F2EEE4;
  --cream-3:    #EAE4D6;
  --surface:    #FFFFFF;

  --navy:       #16305C;
  --navy-deep:  #0E1F3D;
  --navy-lift:  #1E3E73;
  --navy-soft:  #5B7BB4;
  --navy-wash:  #E8EEF8;

  --ink:        #111A2E;
  --ink-mute:   #5A6478;
  --ink-faint:  #8A92A3;

  --gold:       #E8B33C;
  --gold-wash:  #FBF1DA;
  --coral:      #D6452F;
  --coral-wash: #FBEAE6;
  --green:      #1E8E4A;

  --line:       #E3DDD0;
  --line-soft:  #EFEAE0;
  --line-dark:  rgba(255,255,255,.14);

  /* ---- type ---- */
  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --t-hero:  clamp(32px, 8.4vw, 56px);
  --t-h1:    clamp(28px, 6.6vw, 44px);
  --t-h2:    clamp(24px, 5.4vw, 36px);
  --t-h3:    clamp(19px, 3.4vw, 24px);
  --t-lede:  clamp(16px, 2.9vw, 19px);
  --t-body:  16px;
  --t-small: 14px;
  --t-tiny:  12.5px;

  /* ---- shape ---- */
  --r-card:  24px;
  --r-panel: 18px;
  --r-input: 14px;
  --r-pill:  999px;

  /* ---- space ---- */
  --gut:     20px;
  --wrap:    1140px;
  --narrow:  760px;
  --sec:     64px;
  --sec-lg:  96px;

  /* ---- depth ---- */
  --sh-sm: 0 1px 2px rgba(17,26,46,.05);
  --sh:    0 6px 22px -12px rgba(17,26,46,.28);
  --sh-lg: 0 20px 48px -22px rgba(17,26,46,.40);
}

@media (min-width: 900px) {
  :root { --gut: 32px; --sec: 88px; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--navy); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- type ---------- */
h1, h2, h3, h4 {
  margin: 0 0 .45em;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: -.02em; line-height: 1.2; }
h4 { font-size: 16px; letter-spacing: -.01em; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.hero-type { font-size: var(--t-hero); }

/* The small uppercase label that sits above every heading. */
.eyebrow {
  display: inline-block;
  font-size: var(--t-tiny);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy-soft);
  margin: 0 0 14px;
}
.on-dark .eyebrow { color: var(--navy-soft); }

/* Two-tone headline: second line drops to a muted blue. */
.two-tone .soft { color: var(--navy-soft); }
.on-dark .two-tone .soft { color: #6E8CC4; }

.lede { font-size: var(--t-lede); color: var(--ink-mute); line-height: 1.6; max-width: 56ch; }
.on-dark .lede { color: #A9BBD8; }

.small { font-size: var(--t-small); }
.tiny  { font-size: var(--t-tiny); }
.mute  { color: var(--ink-mute); }
.faint { color: var(--ink-faint); }
.nowrap { white-space: nowrap; }

/* ---------- layout ---------- */
.wrap   { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.narrow { width: 100%; max-width: var(--narrow); margin-inline: auto; padding-inline: var(--gut); }

.section    { padding: var(--sec) 0; }
.section-lg { padding: var(--sec-lg) 0; }
.band-cream { background: var(--cream); }
.band-alt   { background: var(--cream-2); }
.band-white { background: var(--surface); }

.band-navy {
  background: linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-lift) 100%);
  color: #fff;
}
.band-navy h1, .band-navy h2, .band-navy h3 { color: #fff; }

.grid  { display: grid; gap: 18px; }
@media (min-width: 640px) { .g-2 { grid-template-columns: repeat(2, 1fr); }
                            .g-3 { grid-template-columns: repeat(2, 1fr); }
                            .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .g-3 { grid-template-columns: repeat(3, 1fr); }
                            .g-4 { grid-template-columns: repeat(4, 1fr); } }

.stack-head { max-width: 22ch; }
.head-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 28px;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  font-size: 15.5px; font-weight: 600; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-lift); color: #fff; }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }

.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line-soft); }
.btn-light:hover { background: var(--cream-2); }

.on-dark .btn-outline { color: #fff; border-color: rgba(255,255,255,.28); }
.on-dark .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.07); }
.on-dark .btn-ghostfill { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.18); }
.on-dark .btn-ghostfill:hover { background: rgba(255,255,255,.17); color: #fff; }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}
.card-pad { padding: 22px; }
@media (min-width: 720px) { .card-pad { padding: 26px; } }
.card-media { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--cream-3); }

.card-hover { transition: transform .18s ease, box-shadow .18s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--sh); }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: var(--r-pill);
  font-size: var(--t-tiny); font-weight: 600; letter-spacing: -.005em;
}
.badge-gold  { background: var(--gold);      color: #3A2A05; }
.badge-navy  { background: var(--navy);      color: #fff; }
.badge-soft  { background: var(--navy-wash); color: var(--navy); }
.badge-green { background: #DFF3E6;          color: #14683A; }
.badge-coral { background: var(--coral-wash);color: var(--coral); }
.badge-line  { background: transparent; border: 1px solid var(--line); color: var(--ink-mute); }

/* Pill that floats on a card corner, as on a discount tag. */
.badge-float { position: absolute; top: 16px; left: 16px; z-index: 2; box-shadow: var(--sh-sm); }

/* ---------- horizontal scroll rail ---------- */
.rail {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px var(--gut) 20px;
  margin-inline: calc(var(--gut) * -1);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: 0 0 82%; max-width: 330px; }
@media (min-width: 720px) { .rail > * { flex-basis: 46%; } }
@media (min-width: 1040px) { .rail > * { flex-basis: 31%; } }

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
.field > label { display: block; font-size: var(--t-small); font-weight: 600; margin-bottom: 7px; }
.field .hint { display: block; font-weight: 400; font-size: var(--t-tiny); color: var(--ink-faint); margin-top: 5px; }
.input, .field input[type=text], .field input[type=email], .field input[type=tel],
.field input[type=password], .field input[type=number], .field input[type=date],
.field select, .field textarea {
  width: 100%; padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-input);
  font-size: 15.5px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px var(--navy-wash);
}
.field-error .input, .field-error input, .field-error select { border-color: var(--coral); }
.err { color: var(--coral); font-size: var(--t-tiny); margin-top: 6px; }

.check { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }

/* ---------- accordion ---------- */
.acc { border-bottom: 1px solid var(--line); }
.acc > summary {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 600; letter-spacing: -.015em;
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.acc[open] > summary::after { transform: rotate(-135deg) translate(-4px, -4px); }
.acc-body { padding: 0 0 22px; color: var(--ink-mute); max-width: 62ch; }

/* ---------- misc ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.on-dark .divider { background: var(--line-dark); }

.stat b { display: block; font-size: clamp(26px, 6vw, 36px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.stat span { font-size: var(--t-tiny); color: var(--ink-faint); }
.on-dark .stat span { color: #8FA5C8; }

.empty {
  border: 1.5px dashed var(--line);
  border-radius: var(--r-card);
  padding: 44px 24px; text-align: center; color: var(--ink-mute);
}

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 200; background: #fff; padding: 12px 18px; border-radius: var(--r-pill); }
