/* ============================================================
   Causey Aviation — Design System v2
   Brand: matches the building — white metal, charcoal trim,
   Causey red (CA swoosh, awnings). Photography-forward.
   Type: Archivo (display) + Inter (text)
   ============================================================ */

:root {
  --red: #c41230;
  --red-dark: #9c0e26;
  --char: #16181d;
  --char-2: #1f232a;
  --char-3: #2a2f38;
  --paper: #ffffff;
  --paper-2: #f4f5f7;
  --line: #e3e5e9;
  --ink: #14171b;
  --grey: #5c6672;
  --silver: #aeb6bf;
  --max-w: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink); background: var(--paper);
  line-height: 1.65; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Archivo', 'Inter', sans-serif;
  font-weight: 700; line-height: 1.08; letter-spacing: -0.02em;
}

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

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 22px; }

.kicker {
  display: block; color: var(--red);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  margin-bottom: 14px;
}
.kicker::before { content: ""; display: inline-block; width: 26px; height: 2px; background: var(--red); vertical-align: middle; margin-right: 10px; }

/* ---------- Utility bar ---------- */
.utility-bar { background: var(--char); color: var(--silver); font-size: 12.5px; letter-spacing: 0.03em; }
.utility-bar .wrap { display: flex; justify-content: space-between; align-items: center; padding: 7px 22px; gap: 8px; }
.utility-bar a { color: #fff; text-decoration: none; font-weight: 600; }
.utility-bar a:hover { color: var(--red); }

/* ---------- Header ---------- */
header.site {
  background: rgba(255,255,255,0.97); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 90;
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 46px; width: auto; }
nav.main { display: flex; gap: 26px; align-items: center; }
nav.main a {
  color: var(--ink); text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
nav.main a:hover, nav.main a.active { color: var(--red); border-color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 26px; cursor: pointer; line-height: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: 'Archivo', sans-serif; font-size: 13.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 15px 30px; border: 2px solid var(--red);
  transition: background .15s, color .15s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--char); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--char); overflow: hidden; }
.hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero .scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,15,19,0.88) 15%, rgba(13,15,19,0.42) 65%, rgba(13,15,19,0.25) 100%); }
.hero .wrap { position: relative; padding-top: 120px; padding-bottom: 120px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); font-weight: 800; max-width: 16ch; color: #fff; text-wrap: balance; }
.hero p.lede { max-width: 52ch; margin: 22px 0 34px; font-size: 18px; color: #d4d8dd; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; background: var(--char); color: #fff; overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.35; }
.page-hero .wrap { position: relative; padding-top: 84px; padding-bottom: 84px; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; color: #fff; max-width: 18ch; }
.page-hero p { max-width: 58ch; margin-top: 18px; color: #d4d8dd; font-size: 17px; }

/* ---------- Sections ---------- */
section { padding: 92px 0; }
.section-dark { background: var(--char-2); color: #e8eaed; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-tint { background: var(--paper-2); }
h2.section-title { font-size: clamp(28px, 3.6vw, 44px); max-width: 24ch; margin-bottom: 18px; text-wrap: balance; }
.section-intro { max-width: 64ch; color: var(--grey); font-size: 17px; }
.section-dark .section-intro { color: #b9bec6; }

/* ---------- Stat band ---------- */
.stat-band { background: var(--char); color: #fff; padding: 0; }
.stat-band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 20px; text-align: center; border-left: 1px solid rgba(255,255,255,0.08); }
.stat:first-child { border-left: 0; }
.stat .num { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 40px; letter-spacing: -0.02em; }
.stat .num span { color: var(--red); }
.stat .label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 6px; color: var(--silver); }

/* ---------- Service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 52px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(20,23,27,0.13); }
.card .thumb { aspect-ratio: 16/9; background-size: cover; background-position: center; }
.card .body { padding: 28px; flex: 1; display: flex; flex-direction: column; border-top: 3px solid var(--red); }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--grey); font-size: 15px; flex: 1; }
.card .link { margin-top: 18px; color: var(--red); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.card .link::after { content: " →"; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .media { overflow: hidden; }
.split .media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 3px; background: var(--red); }

/* ---------- Spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.spec-table th, .spec-table td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec-table th { width: 42%; color: var(--grey); font-weight: 500; }
.spec-table td { font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

/* ---------- Comparison table ---------- */
.compare-scroll { overflow-x: auto; margin-top: 40px; }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; background: #fff; font-size: 15px; color: var(--ink); }
.compare th, .compare td { padding: 15px 18px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: var(--char); color: #fff; font-weight: 700; border-color: var(--char-3); }
.compare thead th.hl { background: var(--red); }
.compare td.hl { background: #fbeef0; font-weight: 600; }
.compare tbody th { font-weight: 600; width: 20%; background: var(--paper-2); }

/* ---------- FAQ ---------- */
.faq { margin-top: 40px; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); padding: 20px 24px; }
.section-dark .faq details { background: var(--char-3); border-color: rgba(255,255,255,0.1); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; position: relative; padding-right: 34px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; color: var(--red); font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--grey); font-size: 15px; }
.section-dark .faq details p { color: #b9bec6; }

/* ---------- Forms ---------- */
.form-panel { background: #fff; padding: 40px; border: 1px solid var(--line); border-top: 4px solid var(--red); box-shadow: 0 14px 44px rgba(20,23,27,0.08); }
.form-panel h3 { font-size: 22px; margin-bottom: 6px; }
.form-panel > p { color: var(--grey); font-size: 14px; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { font-size: 13px; font-weight: 600; letter-spacing: 0.03em; display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit;
  border: 1px solid #c9ced5; background: var(--paper-2); border-radius: 0;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: -1px; }
.honeypot { position: absolute; left: -9999px; }

/* ---------- Route strip ---------- */
.routes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.route { background: #fff; border: 1px solid var(--line); padding: 24px; text-decoration: none; transition: border-color .15s; }
.route:hover { border-color: var(--red); }
.route .pair { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 19px; letter-spacing: 0.01em; }
.route .pair span { color: var(--red); }
.route .meta { color: var(--grey); font-size: 13px; margin-top: 6px; }

/* ---------- Contact strip ---------- */
.contact-strip { background: var(--red); color: #fff; padding: 58px 0; }
.contact-strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.contact-strip h2 { font-size: clamp(24px, 3vw, 32px); color: #fff; }
.contact-strip p { opacity: 0.92; margin-top: 6px; }
.contact-strip .btn { border-color: #fff; background: #fff; color: var(--red); }
.contact-strip .btn:hover { background: var(--char); border-color: var(--char); color: #fff; }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.person { text-align: center; max-width: 300px; margin: 0 auto; }
.person img { width: 150px; height: 150px; aspect-ratio: 1/1; border-radius: 50%; object-fit: cover; object-position: 50% 30%; margin: 0 auto; }
.person .name { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 19px; margin-top: 16px; }
.person .role { color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 3px; }
.person p { color: var(--grey); font-size: 14.5px; margin-top: 10px; }

/* ---------- Timeline ---------- */
.timeline { margin-top: 52px; border-left: 2px solid var(--line); display: grid; gap: 36px; padding-left: 32px; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -39px; top: 6px; width: 12px; height: 12px; background: var(--red); }
.tl-item .year { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 22px; color: var(--red); }
.tl-item h3 { font-size: 18px; margin: 4px 0 6px; }
.tl-item p { color: var(--grey); font-size: 15px; max-width: 62ch; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 48px; }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery img.wide { grid-column: 1 / -1; aspect-ratio: 21/9; }

/* ---------- Footer ---------- */
footer.site { background: var(--char); color: #b9bec6; padding: 64px 0 0; font-size: 14px; }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
footer.site h4 { color: #fff; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 16px; }
footer.site h4::after { content: ""; display: block; width: 22px; height: 2px; background: var(--red); margin-top: 8px; }
footer.site a { color: #b9bec6; text-decoration: none; display: block; margin-bottom: 10px; }
footer.site a:hover { color: #fff; }
footer.site .footer-logo { height: 42px; width: auto; margin-bottom: 18px; }
.nap { font-style: normal; line-height: 1.8; }
footer.site .legal { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; font-size: 12px; color: #7a828c; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
footer.site .legal a { display: inline; margin: 0 0 0 14px; }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  section { padding: 60px 0; }
  .hero .wrap { padding-top: 76px; padding-bottom: 76px; }
  .page-hero .wrap { padding-top: 60px; padding-bottom: 60px; }
  .card-grid, .card-grid.cols-3, .people { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .routes { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .stat-band .wrap { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; border-top: 1px solid rgba(255,255,255,0.08); }
  .form-grid { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .utility-bar .wrap { justify-content: center; }
  .utility-bar .aog { display: none; }
  nav.main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 22px; gap: 16px; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(20,23,27,0.12);
  }
  nav.main.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .routes, .gallery { grid-template-columns: 1fr; }
}

/* ---------- Story media (heritage photos) ---------- */
.story-media { margin: 40px 0 0; }
.story-media + .timeline { margin-top: 40px; }
.story-media img { width: 100%; height: auto; display: block; border: 1px solid var(--line); }
.story-media figcaption { margin-top: 12px; font-size: 14px; color: var(--grey); line-height: 1.55; max-width: 820px; }

/* ---------- Media pair (side-by-side figures) ---------- */
.media-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 40px; }
.media-pair .story-media { margin: 0; }
.media-pair .story-media img { aspect-ratio: 3/2; object-fit: cover; }
@media (max-width: 940px) { .media-pair { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Form thank-you / fallback ---------- */
.form-thanks { text-align: center; padding: 24px 8px; }
.form-thanks h3 { font-size: 22px; margin-bottom: 8px; }
.form-thanks p { color: var(--grey); font-size: 15px; }


/* ---------- Carolina Core corridor ---------- */
.corridor-figure { margin: 42px 0 6px; }
.corridor-figure .corridor-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.corridor-figure svg { display: block; width: 100%; min-width: 640px; max-width: 1040px; height: auto; margin: 0 auto; }
.corridor-figure figcaption { color: var(--grey); font-size: 13px; margin-top: 12px; text-align: center; max-width: 70ch; margin-left: auto; margin-right: auto; }
.corridor-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.corridor-two h3 { font-size: 19px; margin-bottom: 8px; }
.corridor-two p { color: var(--grey); font-size: 16px; max-width: 48ch; }
.corridor-partner { margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--line); }
.corridor-partner p { margin: 0; }
@media (max-width: 940px) { .corridor-two { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- Homepage corridor credential strip ---------- */
.cred-strip { background: var(--char-2); color: #e8eaed; }
.cred-strip .wrap { padding: 22px; }
.cred-strip .cs-eyebrow { display: block; text-align: center; color: var(--silver); font-size: 11px; font-weight: 700; letter-spacing: 2px; margin-bottom: 12px; }
.cred-strip .cs-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; }
.cred-strip .cs-item { font-size: 14.5px; color: #e8eaed; white-space: nowrap; }
.cred-strip .cs-item b { color: #fff; font-weight: 600; }
.cred-strip .cs-dot { color: var(--red); font-weight: 700; }
.cred-strip .cs-link { display: block; text-align: center; margin-top: 14px; }
.cred-strip .cs-link a { color: #fff; font-size: 13.5px; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 2px; }
@media (max-width: 700px) { .cred-strip .cs-item { font-size: 13.5px; } }


/* ---------- Legal pages ---------- */
.legal-copy { max-width: 820px; }
.legal-copy h2 { font-size: 20px; margin: 32px 0 10px; }
.legal-copy p, .legal-copy li { color: var(--grey); font-size: 16px; line-height: 1.75; }
.legal-copy p { margin: 0 0 14px; }
.legal-copy ul { margin: 0 0 16px; padding-left: 20px; }
.legal-copy li { margin-bottom: 8px; }
.legal-copy a { color: var(--red); border-bottom: 1px solid rgba(196,18,48,.25); }
.legal-copy strong { color: var(--ink); }
