/* ============================================================
   Causey Aviation Unmanned — Design Option B: "Flight Manual"
   Editorial-technical: paper + ink + precision red.
   Type: Newsreader (display serif) + IBM Plex Sans (text)
         + IBM Plex Mono (labels, data, wayfinding)
   Same markup as Option A — different visual language.
   ============================================================ */

:root {
  --ink: #14151a;
  --ink-soft: #2b2d34;
  --surface-dark: #26242c;
  --gray: #63666e;
  --gray-light: #9b9ea6;
  --paper: #faf8f4;
  --paper-deep: #f1ede5;
  --hairline: #ddd8ce;
  --hairline-dark: rgba(255, 255, 255, 0.14);
  --red: #c8102e;
  --red-deep: #9e0c24;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }

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

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--red);
}

.lede {
  font-size: 1.16rem;
  color: var(--gray);
  max-width: 44em;
  font-weight: 400;
}

.on-dark, .on-dark h1, .on-dark h2, .on-dark h3 { color: var(--paper); }
.on-dark .lede, .on-dark p { color: rgba(250, 248, 244, 0.75); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface-dark);
  border-bottom: 1px solid var(--hairline-dark);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 16px 28px;
}

.nav .brand img { height: 42px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }

.nav-links a {
  color: rgba(250, 248, 244, 0.82);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-links a:hover { color: #fff; border-bottom: 1px solid var(--red); }

.nav-links .dropdown { position: relative; }
.nav-links .dropdown > a::after { content: " ↓"; font-size: 0.75em; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: -16px;
  background: var(--surface-dark); border: 1px solid var(--hairline-dark);
  min-width: 300px; padding: 10px 0; list-style: none;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 11px 18px;
  border-bottom: none !important;
}
.dropdown-menu a:hover { background: rgba(255,255,255,0.06); color: #fff; }

.btn {
  display: inline-block;
  background: var(--red); color: #fff !important;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 13px 28px;
  border: 1px solid var(--red);
  border-radius: 0;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn.ghost { background: transparent; border-color: rgba(250,248,244,0.5); }
.btn.ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.btn.dark { background: var(--surface-dark); border-color: var(--ink); }
.btn.dark:hover { background: #000; }

.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ---------- Hero ---------- */

.hero {
  position: relative; background: var(--surface-dark); overflow: hidden;
  border-bottom: 3px solid var(--red);
}
.hero .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 1;
  filter: contrast(1.03) saturate(1.04);
}
.hero .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(18,19,23,0.82) 0%, rgba(18,19,23,0.50) 42%, rgba(18,19,23,0.10) 100%);
}
.hero-inner {
  position: relative; max-width: var(--max); margin: 0 auto;
  padding: 120px 28px 100px;
}
.hero-inner { text-shadow: 0 2px 22px rgba(0,0,0,0.55); }
.hero-inner h1 { max-width: 14em; }
.hero-inner .lede { margin: 26px 0 38px; color: rgba(250,248,244,0.82); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero.compact .hero-inner { padding: 84px 28px 64px; }

/* ---------- Stat bar : ruled columns on paper ---------- */

.stats {
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}
.stats-inner {
  max-width: var(--max); margin: 0 auto; padding: 46px 28px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.stat { padding: 0 28px; border-left: 1px solid var(--hairline); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat .num {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 500; line-height: 1;
  color: var(--red);
}
.stat .label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray); margin-top: 10px; line-height: 1.5;
}

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section.off { background: var(--paper-deep); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section.dark { background: var(--surface-dark); }
.section.dark .eyebrow { border-color: var(--red); }

.section-head { max-width: 720px; margin-bottom: 52px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }

/* Cards form a ruled row: hairline separators, no boxes */
.grid-3 > .card, .grid-4 > .card {
  border: none;
  border-left: 1px solid var(--hairline);
  padding: 8px 28px 8px;
}
.grid-3 > .card:first-child, .grid-4 > .card:first-child { border-left: none; padding-left: 0; }
.grid-2 > .card { border: 1px solid var(--hairline); padding: 32px; }

/* ---------- Cards ---------- */

.card { background: transparent; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--gray); font-size: 0.97rem; }
.card .card-link {
  display: inline-block; margin-top: 18px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.card .kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--red); margin-bottom: 12px;
}
.section.dark .card p { color: rgba(250,248,244,0.7); }
.section.dark .card h3 { color: var(--paper); }
.section.dark .grid-3 > .card, .section.dark .grid-4 > .card { border-color: var(--hairline-dark); }

/* ---------- Quick facts : specification sheet ---------- */

.quick-facts {
  border: 1px solid var(--ink);
  padding: 0;
  background: var(--paper);
}
.quick-facts h2, .quick-facts h3 {
  font-size: 1.25rem; padding: 22px 32px;
  border-bottom: 1px solid var(--ink);
  background: var(--surface-dark); color: var(--paper);
  font-weight: 500;
}
.quick-facts dl { display: block; padding: 10px 0; }
.quick-facts dt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); padding: 16px 32px 2px;
}
.quick-facts dd {
  color: var(--ink-soft); font-size: 0.97rem;
  padding: 0 32px 16px; border-bottom: 1px solid var(--hairline);
}
.quick-facts dd:last-child { border-bottom: none; }

/* ---------- Checklist : manifest style ---------- */

.checklist { list-style: none; margin: 22px 0; counter-reset: item; }
.checklist li {
  counter-increment: item;
  padding: 12px 0 12px 52px; position: relative;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--hairline);
}
.checklist li:first-child { border-top: 1px solid var(--hairline); }
.checklist li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute; left: 0; top: 13px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem; color: var(--red);
}
.section.dark .checklist li { color: rgba(250,248,244,0.85); border-color: var(--hairline-dark); }

/* ---------- Figures ---------- */

.figure { border: 1px solid var(--hairline); padding: 10px; background: #fff; }
.section.dark .figure { border-color: var(--hairline-dark); background: transparent; }
.figure img { width: 100%; height: auto; filter: contrast(1.02); }
.figure figcaption {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--gray); padding: 12px 4px 4px;
}
.section.dark .figure figcaption { color: rgba(250,248,244,0.6); }

/* ---------- Logo strip ---------- */

.logo-strip {
  display: flex; align-items: center; justify-content: center;
  gap: 64px; flex-wrap: wrap;
  padding: 34px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.logo-strip img { height: 40px; width: auto; filter: grayscale(1) opacity(0.65); transition: 0.2s; }
.logo-strip img:hover { filter: none; }

/* ---------- FAQ ---------- */

.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item:first-of-type { border-top: 1px solid var(--hairline); }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 24px 4px;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500; font-size: 1.2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: "IBM Plex Mono", monospace;
  font-size: 1.1rem; color: var(--red); flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer { padding: 0 4px 26px; color: var(--gray); max-width: 58em; }

/* ---------- Table : timetable style ---------- */

.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; border: 1px solid var(--ink); }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--hairline); }
.compare thead th {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--surface-dark); color: var(--paper); font-weight: 500;
  border-bottom: 1px solid var(--ink);
}
.compare td:first-child { font-weight: 600; }
.compare tbody tr:first-child { background: rgba(200, 16, 46, 0.05); }
.compare .yes { color: var(--red); font-weight: 600; }

/* ---------- CTA band : red seal ---------- */

.cta-band { background: var(--red); border-top: 3px solid var(--ink); }
.cta-inner {
  max-width: var(--max); margin: 0 auto; padding: 84px 28px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255,255,255,0.85); margin-top: 14px; }
.cta-inner .actions { display: flex; gap: 14px; justify-content: flex-end; flex-wrap: wrap; }
.cta-band .btn { background: var(--surface-dark); border-color: var(--ink); }
.cta-band .btn:hover { background: #000; }
.cta-band .btn.ghost { background: transparent; border-color: rgba(255,255,255,0.6); }
.cta-band .btn.ghost:hover { border-color: #fff; }

/* ---------- Forms ---------- */

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form .full { grid-column: 1 / -1; }
.form label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 500; display: block; margin-bottom: 8px; color: var(--ink-soft);
}
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 0.95rem;
  border: 1px solid var(--hairline); border-radius: 0; background: #fff;
  color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--red); box-shadow: inset 0 -2px 0 var(--red);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--surface-dark); color: rgba(250,248,244,0.68);
  font-size: 0.92rem; border-top: 3px solid var(--red);
}
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 76px 28px 34px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 44px;
}
.footer-inner h4 {
  font-family: "IBM Plex Mono", monospace;
  color: var(--paper); text-transform: uppercase;
  font-size: 0.72rem; letter-spacing: 0.2em; margin-bottom: 18px; font-weight: 500;
}
.footer-inner ul { list-style: none; }
.footer-inner li { margin-bottom: 11px; }
.footer-inner a { color: rgba(250,248,244,0.68); text-decoration: none; }
.footer-inner a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { height: 50px; margin-bottom: 20px; }
.footer-tagline { font-family: "Newsreader", Georgia, serif; font-style: italic; font-size: 1.05rem; color: rgba(250,248,244,0.55); }
.footer-tagline .accent { color: var(--red); }
.footer-bottom {
  border-top: 1px solid var(--hairline-dark);
  max-width: var(--max); margin: 0 auto; padding: 24px 28px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem; letter-spacing: 0.04em; color: rgba(250,248,244,0.4);
}
.footer-bottom a { color: rgba(250,248,244,0.55); }

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gray-light); padding: 20px 0 0;
}
.breadcrumbs ol { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; }
.breadcrumbs li + li::before { content: "/"; margin-right: 10px; color: var(--hairline); }
.breadcrumbs a { color: var(--gray); text-decoration: none; }
.breadcrumbs a:hover { color: var(--red); }

/* ---------- Utilities ---------- */

.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 26px; } .mt-3 { margin-top: 44px; }
.center { text-align: center; }
.center .section-head { margin-left: auto; margin-right: auto; }

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

@media (max-width: 900px) {
  .grid-2, .cta-inner, .footer-inner { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-3 > .card, .grid-4 > .card {
    border-left: none; padding: 22px 0;
    border-top: 1px solid var(--hairline);
  }
  .grid-3 > .card:first-child, .grid-4 > .card:first-child { border-top: none; padding-top: 0; }
  .section.dark .grid-3 > .card, .section.dark .grid-4 > .card { border-color: var(--hairline-dark); }
  .stats-inner { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .stat { padding: 0 20px; }
  .stat:nth-child(odd) { border-left: none; padding-left: 0; }
  .cta-inner .actions { justify-content: flex-start; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--surface-dark); padding: 12px 28px 26px;
    border-bottom: 1px solid var(--hairline-dark);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 11px 0; }
  .nav-toggle { display: block; }
  .dropdown-menu { position: static; display: block; background: transparent; border: 0; padding-left: 18px; min-width: 0; }
  .section { padding: 64px 0; }
  .hero-inner { padding: 84px 28px 64px; }
  .form { grid-template-columns: 1fr; }
}
