/* ===========================================================
   Kodiak Aviation — shared stylesheet
   Light-blue & white flight-training brand · Falcon Field, Mesa AZ
   =========================================================== */

:root {
  --navy-900: #0f3a5a;   /* darkest blue — text + deep bg */
  --navy-800: #15486f;   /* band / footer / featured bg */
  --navy-700: #1d5e8c;
  --navy-600: #2a7cb5;
  --steel:    #5a7791;   /* muted text */
  --mist:     #cadcec;   /* light text on dark */
  --paper:    #eef7fe;   /* light blue-white page bg */
  --white:    #ffffff;
  --gold:     #2477b0;   /* primary accent / buttons (medium blue) */
  --gold-bright: #6fc0ee;/* accent on dark surfaces (pale sky) */
  --sky:      #3a9bd8;
  --sky-soft: #7fd1f0;
  --line:     rgba(255,255,255,0.12);
  --line-dark: rgba(15,58,90,0.10);
  --shadow:   0 24px 60px -20px rgba(21,72,111,0.30);
  --shadow-sm: 0 10px 30px -14px rgba(21,72,111,0.22);
  --radius:   18px;
  --radius-lg: 28px;
  --max:      1180px;
  --ease: cubic-bezier(.16,.84,.44,1);
  font-synthesis: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  color: var(--navy-900);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
}
.eyebrow.light { color: var(--gold-bright); }

.section { padding: 110px 0; }
.section-sm { padding: 70px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 15px 30px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  text-transform: uppercase;
}
.btn-gold { background: var(--gold); color: var(--white); box-shadow: 0 14px 30px -12px rgba(36,119,176,.6); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -12px rgba(58,155,216,.7); background: var(--sky); }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: rgba(15,58,90,.28); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.btn-dark { background: var(--navy-800); color: var(--white); }
.btn-dark:hover { transform: translateY(-3px); background: var(--navy-700); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 38px;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(14px);
  padding: 14px 38px;
  box-shadow: 0 10px 30px -16px rgba(21,72,111,.35);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy-900); }
.brand .mark { width: 38px; height: 38px; }
.brand-logo { height: 40px; width: auto; display: block; }
.nav.scrolled .brand-logo { height: 36px; }
.footer .brand-logo { height: 44px; filter: brightness(0) invert(1); }

/* Home page: transparent nav over dark photo hero — white logo/links until scrolled */
.home .nav:not(.scrolled) .brand-logo { filter: brightness(0) invert(1); }
.home .nav:not(.scrolled) .nav-links a { color: rgba(255,255,255,.86); }
.home .nav:not(.scrolled) .nav-links a:hover,
.home .nav:not(.scrolled) .nav-links a.active { color: #fff; background: rgba(255,255,255,.14); }
.home .nav:not(.scrolled) .nav-toggle span { background: #fff; }
.brand .name { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.18rem; letter-spacing: -.01em; }
.brand .name small { display: block; font-size: .58rem; letter-spacing: .34em; font-weight: 500; color: var(--gold); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  color: rgba(15,58,90,.80);
  font-size: .88rem; font-weight: 500;
  padding: 9px 10px; border-radius: 100px;
  transition: color .25s, background .25s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy-900); background: rgba(15,58,90,.06); }
.nav-links a.active { color: var(--gold); }
.nav .btn { padding: 11px 22px; font-size: .82rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: .3s; }

/* ---------- Hero shared ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background:
    radial-gradient(1100px 650px at 78% 10%, rgba(58,155,216,.22), transparent 60%),
    radial-gradient(820px 560px at 8% 92%, rgba(111,192,238,.26), transparent 55%),
    linear-gradient(165deg, #ffffff, #dceffb 58%, #c4e4f7);
  color: var(--navy-900);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,58,90,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,58,90,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 40%, black, transparent 75%);
  pointer-events: none;
}
.page-hero { min-height: 64vh; }

/* Full-bleed photo hero (home landing) */
.hero-photo {
  background:
    linear-gradient(95deg, rgba(7,20,36,.93) 0%, rgba(7,20,36,.80) 48%, rgba(7,20,36,.58) 100%),
    url("images/aircraft-front.jpg") center 40% / cover no-repeat;
  color: #fff;
}
.hero-photo::after { display: none; }
.hero-photo .hero-inner > * { text-shadow: 0 1px 16px rgba(0,0,0,.45); }
.hero-photo .eyebrow { color: var(--gold-bright); }
.hero-photo h1 { color: #fff; }
.hero-photo h1 .accent { color: var(--gold-bright); }
.hero-photo p.lead { color: #f2f7fc; }
.hero-photo .hero-stats .stat .num { color: #fff; }
.hero-photo .hero-stats .stat .lbl { color: #b9cde0; }
.hero-photo .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero-photo .btn-ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
@media (max-width: 760px) {
  .hero-photo { background:
    linear-gradient(180deg, rgba(8,24,42,.80), rgba(8,24,42,.55)),
    url("images/aircraft-front.jpg") center / cover no-repeat; }
}

.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero h1 { font-size: clamp(2.7rem, 7vw, 5.6rem); font-weight: 700; }
.hero h1 .accent { color: var(--gold); }
.hero p.lead { max-width: 540px; margin-top: 24px; font-size: 1.18rem; color: var(--steel); }
.hero-actions { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 44px; margin-top: 64px; flex-wrap: wrap; }
.hero-stats .stat .num { font-family: "Space Grotesk", sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--navy-900); }
.hero-stats .stat .lbl { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }

/* floating plane illustration */
.hero-plane { position: absolute; right: -4%; top: 50%; transform: translateY(-50%); width: 52%; max-width: 720px; z-index: 1; opacity: .98; animation: float 7s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(21,72,111,.18)); }
@keyframes float { 0%,100% { transform: translateY(calc(-50% - 10px)); } 50% { transform: translateY(calc(-50% + 10px)); } }

/* ---------- Section headers ---------- */
.shead { max-width: 720px; margin-bottom: 56px; }
.shead.center { margin: 0 auto 56px; text-align: center; }
.shead h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-top: 14px; }
.shead p { margin-top: 18px; color: var(--steel); font-size: 1.08rem; }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.fcard {
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.fcard:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.fcard .ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(150deg, var(--navy-700), var(--navy-600)); color: var(--white); margin-bottom: 22px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.3rem; }
.fcard h3 { font-size: 1.28rem; margin-bottom: 10px; }
.fcard p { color: var(--steel); font-size: .98rem; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  position: relative;
  box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.split-media svg { width: 80%; }
.split-media img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; display: block; }
img.hero-plane { border-radius: 22px; object-fit: cover; }

/* photo gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.gallery a, .gallery .g { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 3 / 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.gallery .g:hover img { transform: scale(1.06); }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; } }
.split h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
/* Consistent vertical rhythm for every split text column (fixes the global margin reset) */
.split > div:not(.split-media), .split-copy { display: flex; flex-direction: column; align-items: flex-start; }
.split > div:not(.split-media) > *, .split-copy > * { margin: 0; }
.split > div:not(.split-media) > h2, .split-copy > h2 { margin-top: 14px; }
.split > div:not(.split-media) > p, .split-copy > p { margin-top: 16px; max-width: 46ch; }
.split > div:not(.split-media) > ul.ticks, .split-copy > ul.ticks { margin: 24px 0 0; }
.split > div:not(.split-media) > .btn, .split-copy > .btn { margin-top: 32px; }
.split .price-tag { display: inline-flex; align-items: baseline; gap: 8px; margin: 22px 0; }
.split .price-tag .amt { font-family: "Space Grotesk", sans-serif; font-size: 2.6rem; font-weight: 700; color: var(--navy-900); }
.split .price-tag .per { color: var(--steel); font-weight: 500; }
.split ul.ticks { list-style: none; margin: 24px 0 30px; display: grid; gap: 12px; }
.split ul.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--navy-800); }
.split ul.ticks li::before { content: ""; flex: 0 0 22px; height: 22px; margin-top: 2px; background: var(--gold); border-radius: 50%; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.5z'/></svg>") center/16px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.5z'/></svg>") center/16px no-repeat; }

/* ---------- Dark band ---------- */
.band { background: var(--navy-800); color: var(--white); }
.band .shead p { color: var(--mist); }
.band .fcard { background: rgba(255,255,255,.06); border-color: var(--line); color: var(--white); }
.band .fcard p { color: var(--mist); }

/* ---------- Spec cards ---------- */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 20px; }
.specs .spec { background: var(--white); padding: 30px 28px; border: 1px solid var(--line-dark); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.specs .spec:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.specs .spec .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); font-weight: 600; }
.specs .spec .v { font-family: "Space Grotesk", sans-serif; font-size: 1.32rem; font-weight: 600; margin-top: 10px; color: var(--navy-900); line-height: 1.25; }

/* ---------- Pricing cards ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 28px; align-items: stretch; }
.pcard {
  background: var(--white); border-radius: var(--radius-lg); padding: 40px 34px;
  border: 1px solid var(--line-dark); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.pcard:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.pcard.featured { background: linear-gradient(160deg, var(--navy-800), var(--navy-700)); color: var(--white); border: 0; }
.pcard.featured .price, .pcard.featured h3 { color: var(--white); }
.pcard.featured ul li { color: var(--mist); }
.pcard.featured .badge { background: var(--sky); color: var(--navy-900); }
.pcard .tier { font-family: "Space Grotesk", sans-serif; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: var(--gold); font-weight: 600; }
.pcard.featured .tier { color: var(--gold-bright); }
.pcard .badge { align-self: flex-start; background: var(--gold); color: var(--white); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; margin-bottom: 14px; }
.pcard h3 { font-size: 1.5rem; margin: 8px 0 4px; }
.pcard .price { font-family: "Space Grotesk", sans-serif; font-size: 2.6rem; font-weight: 700; margin: 12px 0; }
.pcard .price small { font-size: .9rem; font-weight: 500; color: var(--steel); }
.pcard ul { list-style: none; margin: 18px 0 30px; display: grid; gap: 12px; }
.pcard ul li { display: flex; gap: 10px; color: var(--navy-800); font-size: .96rem; }
.pcard ul li::before { content: "✓"; color: var(--gold); font-weight: 700; }
.pcard.featured ul li::before { color: var(--gold-bright); }
.pcard .btn { margin-top: auto; justify-content: center; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--white); border-radius: var(--radius-lg);
  padding: 70px 56px; text-align: center;
}
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% 0%, rgba(111,192,238,.30), transparent 60%); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 14px; }
.cta p { color: var(--mist); margin: 18px auto 34px; max-width: 540px; }
.cta .eyebrow { margin-bottom: 2px; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); border: 1px solid var(--line-dark); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--navy-800); margin-bottom: 8px; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid #cfe2f2; border-radius: 12px;
  font: inherit; font-size: .96rem; background: #f8fbfe; transition: border .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(58,155,216,.16); }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- Contact info list ---------- */
.cinfo { display: grid; gap: 22px; }
.cinfo .item { display: flex; gap: 16px; align-items: flex-start; }
.cinfo .item .ic { flex: 0 0 46px; height: 46px; border-radius: 12px; background: rgba(58,155,216,.14); display: grid; place-items: center; color: var(--sky); }
.band .cinfo .item .ic { background: rgba(255,255,255,.10); color: var(--gold-bright); }
.cinfo .item .k { font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: var(--steel); }
.band .cinfo .item .k { color: var(--mist); }
.cinfo .item .v { font-size: 1.05rem; font-weight: 500; margin-top: 3px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: var(--mist); padding: 80px 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand { color: var(--white); margin-bottom: 18px; }
.footer .brand .name small { color: var(--gold-bright); }
.footer p.about { max-width: 300px; font-size: .95rem; color: var(--mist); }
.footer h4 { color: var(--white); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer ul a { color: var(--mist); font-size: .95rem; transition: color .2s; }
.footer ul a:hover { color: var(--gold-bright); }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--mist); transition: .25s; }
.socials a:hover { border-color: var(--gold-bright); color: var(--gold-bright); transform: translateY(-3px); }
.footer-bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: .85rem; color: var(--mist); }
.footer-bottom .legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom .legal a:hover { color: var(--gold-bright); }

/* ---------- Pricing table ---------- */
.ptable-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line-dark); }
.ptable { width: 100%; border-collapse: collapse; background: var(--white); min-width: 560px; }
.ptable thead th { background: var(--navy-800); color: var(--white); font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; text-align: left; padding: 18px 24px; }
.ptable thead th:not(:first-child) { text-align: right; }
.ptable tbody td { padding: 18px 24px; border-top: 1px solid var(--line-dark); font-size: 1rem; }
.ptable tbody td:not(:first-child) { text-align: right; }
.ptable tbody tr:hover { background: var(--paper); }
.ptable .blk { font-family: "Space Grotesk", sans-serif; font-weight: 600; }
.ptable .rate { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--gold); }
.ptable .save { color: #1f7a4d; font-weight: 600; }
.ptable tr.best td { background: rgba(58,155,216,.10); }
.ptable .pill { display: inline-block; background: var(--navy-800); color: var(--white); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; margin-left: 8px; vertical-align: middle; }

/* ---------- Blog grid ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 28px; }
.bcard {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.bcard::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--sky), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.bcard:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.bcard:hover::before { transform: scaleX(1); }
.bcard .tag { font-family: "Space Grotesk", sans-serif; text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; font-weight: 600; color: var(--gold); margin-bottom: 14px; }
.bcard h3 { font-size: 1.24rem; line-height: 1.25; margin-bottom: 12px; }
.bcard p { color: var(--steel); font-size: .96rem; flex: 1; }
.bcard .read { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--navy-700); transition: gap .25s, color .25s; }
.bcard .read svg { transition: transform .25s; }
.bcard:hover .read { color: var(--gold); }
.bcard:hover .read svg { transform: translateX(4px); }
.bcard.featured { background: linear-gradient(160deg, var(--navy-800), var(--navy-700)); color: var(--white); border: 0; grid-column: span 1; }
.bcard.featured .tag { color: var(--gold-bright); }
.bcard.featured h3 { color: var(--white); font-size: 1.5rem; }
.bcard.featured p { color: var(--mist); }
.bcard.featured .read { color: var(--gold-bright); }

/* ---------- Legal / prose pages ---------- */
.legal-content {
  max-width: 800px; margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 56px clamp(28px, 5vw, 64px);
  font-size: 1.02rem;
  line-height: 1.78;
}
.legal-content > p:first-of-type { font-size: 1.12rem; color: var(--navy-800); }
.legal-content .updated {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  color: var(--gold); background: rgba(36,119,176,.08);
  padding: 7px 14px; border-radius: 100px; margin-bottom: 30px;
}
.legal-content h2 {
  font-size: 1.32rem; margin: 46px 0 14px; padding-top: 30px;
  border-top: 1px solid var(--line-dark);
}
.legal-content h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 8px; }
.legal-content h3 { font-size: 1.02rem; margin: 24px 0 6px; color: var(--navy-700); font-weight: 600; }
.legal-content p { color: var(--steel); margin-bottom: 16px; }
.legal-content ul { margin: 6px 0 22px; display: grid; gap: 11px; list-style: none; }
.legal-content ul li { color: var(--steel); padding-left: 26px; position: relative; }
.legal-content ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.legal-content a:not(.btn):not(.back-link) { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.legal-content .btn { color: var(--white); text-decoration: none; }
.legal-content .contact-block .btn { margin-top: 6px; }
.legal-content .contact-block { margin-top: 34px; padding: 24px 26px; background: var(--paper); border: 1px solid var(--line-dark); border-radius: var(--radius); }
.legal-content .contact-block p { color: var(--navy-800); }
.legal-content blockquote { margin: 30px 0; padding: 22px 28px; background: var(--paper); border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; font-size: 1.08rem; color: var(--navy-800); font-style: italic; }
.legal-content blockquote cite { display: block; margin-top: 10px; font-style: normal; font-weight: 600; font-size: .92rem; color: var(--navy-700); }
.legal-content table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: .95rem; }
.legal-content table th { background: var(--navy-800); color: #fff; text-align: left; padding: 12px 14px; font-family: "Space Grotesk", sans-serif; font-size: .82rem; }
.legal-content table td { padding: 12px 14px; border-top: 1px solid var(--line-dark); color: var(--navy-800); }
.legal-content table tr:nth-child(even) td { background: var(--paper); }
.article-meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 18px; color: var(--steel); font-size: .92rem; }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--steel); }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: .85rem; letter-spacing: .03em; text-transform: uppercase; color: var(--navy-700); }
.back-link:hover { color: var(--gold); }

/* ---------- Contact grid ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Notice / callout ---------- */
.notice { background: linear-gradient(150deg, var(--navy-800), var(--navy-700)); color: var(--white); border-radius: var(--radius-lg); padding: 44px 48px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.notice::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 0%, rgba(111,192,238,.22), transparent 60%); }
.notice > * { position: relative; z-index: 1; }
.notice .eyebrow { color: var(--gold-bright); }
.notice h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 12px; }
.notice p { color: var(--mist); margin-top: 16px; max-width: 70ch; }
.notice p + p { margin-top: 12px; }

/* ---------- Instructor cards ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; }
.tcard { background: var(--white); border: 1px solid var(--line-dark); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 36px 32px; display: flex; flex-direction: column; align-items: flex-start; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.tcard:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.tcard .avatar { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.45rem; color: #fff; background: linear-gradient(150deg, var(--navy-700), var(--sky)); margin-bottom: 22px; }
.tcard .avatar.has-photo { background: none; padding: 0; overflow: hidden; }
.tcard .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tcard h3 { font-size: 1.25rem; }
.tcard .role { font-family: "Space Grotesk", sans-serif; text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; font-weight: 600; color: var(--gold); margin-top: 8px; }
.tcard .tpill { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 14px; background: rgba(58,155,216,.12); color: var(--navy-700); border: 1px solid rgba(58,155,216,.30); font-family: "Space Grotesk", sans-serif; font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 100px; }
.tcard .tpill svg { color: var(--gold); flex: 0 0 auto; }
.tcard p { color: var(--steel); font-size: .95rem; margin-top: 16px; }
.tcard p { min-height: 3.2em; }
.tcard .tcontact { margin: 20px 0 24px; display: grid; gap: 10px; width: 100%; font-size: .9rem; }
.tcard .tcontact a { color: var(--navy-800); display: flex; align-items: flex-start; gap: 9px; overflow-wrap: anywhere; line-height: 1.35; }
.tcard .tcontact a svg { flex: 0 0 auto; color: var(--gold); margin-top: 2px; }
.tcard .tcontact a:hover { color: var(--gold); }
.tcard .tcontact .muted { color: var(--steel); }
.tcard .btn { margin-top: auto; width: 100%; justify-content: center; }

/* ---------- Instructor contact modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(8,24,42,.55); backdrop-filter: blur(3px); }
.modal-card { position: relative; z-index: 1; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); width: min(440px, 100%); max-height: 90vh; overflow-y: auto; padding: 38px 34px; animation: modalIn .3s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.modal-card h3 { font-size: 1.5rem; margin-top: 10px; }
.modal-card .modal-sub { color: var(--steel); margin: 10px 0 20px; font-size: .96rem; }
.modal-card .field:last-of-type { margin-bottom: 22px; }
.modal-card .btn { width: 100%; justify-content: center; }
.modal-close { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border: 0; background: var(--paper); border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--navy-800); display: grid; place-items: center; transition: background .2s; }
.modal-close:hover { background: #dcebf8; color: var(--gold); }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 14px; max-width: 840px; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid var(--line-dark); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 26px; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--navy-900); display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: "Space Grotesk", sans-serif; font-size: 1.5rem; font-weight: 600; color: var(--gold); transition: transform .3s var(--ease); line-height: 1; flex: 0 0 auto; }
.faq details[open] summary { color: var(--gold); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 26px 24px; color: var(--steel); line-height: 1.72; }
.faq .a a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

/* Collapse the nav to a slide-out menu early enough for tablets & small laptops */
@media (max-width: 1080px) {
  .nav { padding: 16px 22px; }
  .nav.scrolled { padding: 12px 22px; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); height: 100vh;
    background: var(--white); flex-direction: column; align-items: flex-start;
    justify-content: flex-start; gap: 4px; padding: 88px 30px 32px;
    transform: translateX(100%); transition: transform .4s var(--ease);
    box-shadow: -20px 0 60px -20px rgba(21,72,111,.45); overflow-y: auto;
  }
  .nav-links.open { transform: none; }
  .nav-links a { width: 100%; font-size: 1.05rem; padding: 13px 14px; color: var(--navy-900); }
  .nav-links a:hover, .nav-links a.active { background: rgba(15,58,90,.06); color: var(--gold); }
  /* keep panel links readable even on the home page (panel is white) */
  .home .nav:not(.scrolled) .nav-links a { color: var(--navy-900); }
  .nav-toggle { display: flex; z-index: 120; }
  /* hamburger turns dark whenever the white menu panel is open (overrides home white) */
  .nav .nav-links.open ~ .nav-toggle span { background: var(--navy-900); }
  /* surface the Book button inside the mobile menu */
  .nav .btn.nav-cta { display: inline-flex; width: 100%; justify-content: center; margin-top: 12px; font-size: .95rem; }
}

@media (max-width: 920px) {
  .split, .footer-top { grid-template-columns: 1fr; gap: 38px; }
  .split.reverse .split-media { order: 0; }
  .hero-plane { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 78px 0; }
  .section-sm { padding: 56px 0; }
  .cta { padding: 54px 26px; }
  .notice { padding: 30px 24px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; margin-top: 44px; }
  .hero p.lead { font-size: 1.08rem; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 20px; }
  .nav { padding: 14px 18px; }
  .hero-stats { gap: 18px 30px; }
  .hero-stats .stat .num { font-size: 2rem; }
  .legal-content { padding: 40px 22px; }
  .form-card { padding: 28px 22px; }
}
