/* Club Aero — brand navy and red from the logo; navy home page, light inner pages.
   Layout: wide left-aligned column; full-bleed photo bands; aircraft shown as spec sheets with tabular data. */
:root {
  --paper: #f6f7f4;
  --paper-2: #e9eef0;
  --footer: #001a42;
  --ink: #0f1a24;
  --muted: #4f5e6b;
  --line: rgba(15, 26, 36, 0.14);
  --blue: #002760;
  --magenta: #d00d19;
  --link: #002760;
  --on-accent: #ffffff;
  --shade: rgba(9, 16, 24, 0.55);
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: 74rem;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.8rem;
  --step-3: clamp(2rem, 4.2vw, 2.9rem);
  --step-4: clamp(2.6rem, 7vw, 5.4rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1218; --paper-2: #121c25; --ink: #e8edf0; --muted: #9aa9b5; --line: rgba(232, 237, 240, 0.14);
    --blue: #8db0ee; --magenta: #ff5c63; --link: #8db0ee; --on-accent: #0b1218; --shade: rgba(5, 9, 13, 0.6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1218; --paper-2: #121c25; --ink: #e8edf0; --muted: #9aa9b5; --line: rgba(232, 237, 240, 0.14);
  --blue: #8db0ee; --magenta: #ff5c63; --link: #8db0ee; --on-accent: #0b1218; --shade: rgba(5, 9, 13, 0.6); color-scheme: dark;
}
/* Home page: Club Aero navy with brand red accents */
body.home {
  --paper: #001a42; --paper-2: #0a2a5e; --footer: #00112c; --ink: #eef2f7; --muted: #b3c1d6;
  --line: rgba(238, 242, 247, 0.16); --blue: #e20613; --magenta: #ff5c63; --link: #9fbef0; --on-accent: #ffffff;
  color-scheme: dark;
}
body.home .signup { background: #e20613; }
body.home::before { background: var(--paper); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-0)/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 750; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; font-stretch: 112%; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; padding-block: 0.8rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); font: 800 1.25rem/1 var(--display); font-stretch: 118%; letter-spacing: 0.01em; flex: none; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.15rem; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.94rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--magenta); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font: 600 0.95rem var(--body); padding: 0.5rem 0.8rem; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.35rem; border-radius: 4px; border: 1.5px solid var(--blue); background: var(--blue); color: var(--on-accent); font: 700 0.95rem/1 var(--body); text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s; }
.btn:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { border-color: #fff; background: #fff; color: #0f1a24; }
.btn--light:hover { background: transparent; color: #fff; }
.nav .btn { padding: 0.6rem 1rem; color: var(--on-accent); }
.nav .btn:hover { color: var(--ink); }

/* Photo placeholders, shown until the real images are added */
.ph { position: relative; display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--paper-2) 0 14px, transparent 14px 28px), var(--paper-2); color: var(--muted); font: 500 0.8rem/1.3 var(--mono); text-align: center; padding: 1rem; min-height: 12rem; }
.photo { width: 100%; height: 100%; object-fit: cover; }

/* Hero */
.hero { position: relative; isolation: isolate; color: #fff; background: #13293f; overflow: hidden; }
.hero > .media { position: absolute; inset: 0; z-index: -2; }
.hero > .media .photo, .hero > .media .ph { width: 100%; height: 100%; min-height: 0; }
.hero > .media .ph { background: linear-gradient(160deg, #0b3a8a 0%, #002760 55%, #00122e 100%); color: rgba(255, 255, 255, 0.45); place-items: end end; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(9, 16, 24, 0.72) 0%, rgba(9, 16, 24, 0.35) 55%, rgba(9, 16, 24, 0.1) 100%); }
.hero .wrap { padding-block: clamp(5rem, 13vw, 10rem) clamp(4rem, 9vw, 7rem); display: grid; gap: 1.25rem; justify-items: start; }
.hero h1 { font-size: var(--step-4); font-weight: 800; font-stretch: 120%; letter-spacing: -0.015em; max-width: 14ch; text-transform: uppercase; }
.hero .sub { font: 600 var(--step-1)/1.35 var(--body); max-width: 36ch; color: rgba(255, 255, 255, 0.92); }
.hero--page .wrap { padding-block: clamp(4rem, 10vw, 7.5rem) clamp(3rem, 7vw, 5rem); }
.hero--page h1 { font-size: var(--step-3); text-transform: none; max-width: 22ch; font-stretch: 112%; }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section + .section { border-top: 1px solid var(--line); }
.section--tint { background: var(--paper-2); }
.section-head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: var(--step-3); }
.kicker { font: 600 0.8rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--magenta); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 42rem; }
.prose { display: grid; gap: 1rem; max-width: 42rem; }
.prose h3 { font-size: var(--step-2); margin-top: 1rem; }
.prose h4 { font: 600 var(--step-1)/1.4 var(--body); color: var(--muted); }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.7rem; }
.prose strong { font-weight: 700; }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--flip > :first-child { order: 2; }
.split .frame { aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; max-width: 100%; }
.split .frame .ph { height: 100%; }

/* Home: what membership gives you */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 2.5rem 1.75rem; }
.feature { display: grid; gap: 0.9rem; align-content: start; }
.feature .frame { aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; }
.feature .frame .ph { height: 100%; min-height: 0; }
.feature p { font-size: 1.02rem; }
.quote { font: 750 var(--step-3)/1.15 var(--display); font-stretch: 112%; max-width: 24ch; }
.quote em { font-style: normal; color: var(--magenta); }

/* Signup band */
.signup { background: var(--blue); color: var(--on-accent); }
.signup .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding-block: clamp(3rem, 7vw, 4.5rem); }
.signup h2 { font-size: var(--step-2); }
.signup p { opacity: 0.9; margin-top: 0.6rem; }
.signup form { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.signup input[type="email"] { flex: 1 1 14rem; min-width: 0; font: inherit; padding: 0.8rem 0.9rem; border-radius: 4px; border: 1.5px solid transparent; background: #ffffff; color: #0f1a24; }
.signup .btn { background: #ffffff; border-color: #ffffff; color: #001a42; }
.signup .btn:hover { background: transparent; color: #ffffff; border-color: #ffffff; }
.signup .note { flex-basis: 100%; font-size: var(--step--1); opacity: 0.85; min-height: 1.3em; }

/* Aircraft */
.fleet-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.fleet-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 44rem; }
.fleet-table th, .fleet-table td { padding: 0.75rem 0.9rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.fleet-table thead th { font: 600 0.75rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--paper-2); }
.fleet-table td { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.88rem; }
.fleet-table td:first-child { font: 700 0.98rem var(--body); }
.fleet-table td:first-child a { color: var(--ink); text-decoration: none; }
.fleet-table td:first-child a:hover { color: var(--magenta); }
.fleet-table tbody tr:last-child td { border-bottom: 0; }

.aircraft { padding-block: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--line); scroll-margin-top: 5rem; }
.aircraft-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.25rem; margin-bottom: 1.5rem; }
.aircraft-head h2 { font-size: var(--step-3); text-transform: uppercase; font-stretch: 118%; }
.class-tag { font: 600 0.78rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--magenta); border: 1.5px solid currentColor; border-radius: 3px; padding: 0.35rem 0.5rem; }
.aircraft-note { color: var(--muted); margin: -0.75rem 0 1.5rem; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 0.6rem; aspect-ratio: 16 / 7; margin-bottom: 2rem; max-width: 100%; }
.gallery > * { border-radius: 5px; overflow: hidden; min-height: 0; }
.gallery > :first-child { grid-row: span 2; }
.gallery .ph { height: 100%; min-height: 0; }
.aircraft-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.specs { margin: 0; display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); border-top: 2px solid var(--ink); }
.specs dt, .specs dd { margin: 0; padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); padding-right: 1.5rem; font-size: 0.95rem; }
.specs dd { font: 500 0.92rem/1.5 var(--mono); font-variant-numeric: tabular-nums; }
.specs dd.price { color: var(--magenta); font-weight: 600; }
.range h3 { font: 600 var(--step-0)/1.3 var(--body); margin-bottom: 0.75rem; }
.range .frame { border: 1px solid var(--line); border-radius: 5px; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; }
.range .frame .ph { height: 100%; min-height: 0; }
.range .frame .photo { object-fit: contain; background: var(--paper-2); }

/* Card list (why choose us, highlights) */
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.5rem 2rem; }
.points li { border-top: 2px solid var(--magenta); padding-top: 0.9rem; display: grid; gap: 0.4rem; align-content: start; }
.points strong { font: 700 var(--step-1)/1.25 var(--display); font-stretch: 108%; }

/* CTA band */
.cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.cta h2 { font-size: var(--step-3); max-width: 20ch; }
.cta p { color: var(--muted); margin-top: 0.6rem; max-width: 40rem; }

/* Contact form */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.form { display: grid; gap: 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: clamp(1.25rem, 4vw, 2.25rem); color: var(--ink); }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 4px; padding: 0.75rem 0.85rem; }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--link); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form .btn { justify-self: start; }
.form-status { font-size: var(--step--1); color: var(--link); min-height: 1.4em; }
.hp { position: absolute; left: -9999px; }
.contact-facts { display: grid; gap: 1.25rem; margin-top: 2rem; }
.contact-facts div { display: grid; gap: 0.15rem; }
.contact-facts span { font: 600 0.75rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* Legal */
.legal { max-width: 46rem; padding-block: clamp(3rem, 8vw, 5rem); }
.legal h1 { font-size: var(--step-3); margin-bottom: 1.5rem; }
.legal h2 { font-size: var(--step-1); margin: 2.25rem 0 0.75rem; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 0.8rem; }
.legal strong { color: var(--ink); }
.legal ul, .legal ol { padding-left: 1.2rem; display: grid; gap: 0.6rem; margin: 0.75rem 0; }

/* Footer */
.site-footer { background: var(--footer); color: #dfe6ea; padding-block: 3.5rem 2rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 2rem; }
.footer-brand { font: 800 1.4rem/1 var(--display); font-stretch: 118%; color: #fff; }
.footer-brand img { height: 56px; width: auto; }
.site-footer h3 { font: 600 0.75rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: #9aa9b5; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.footer-base { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: var(--step--1); color: #9aa9b5; }

.not-found { padding-block: clamp(5rem, 14vw, 9rem); display: grid; gap: 1.5rem; justify-items: start; }
.not-found h1 { font-size: var(--step-4); }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 0.5rem max(20px, env(safe-area-inset-right, 0px)) 1.25rem max(20px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; border-bottom: 1.5px solid var(--blue); }
  .site-header .wrap { position: relative; }
}
@media (max-width: 820px) {
  .split, .aircraft-body, .contact-layout, .signup .wrap { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
  .gallery { aspect-ratio: auto; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery > :first-child { grid-row: auto; grid-column: span 2; aspect-ratio: 16 / 10; }
  .gallery > * { aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: span 2; }
}
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } .brand img { height: 38px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.section--tint .ph { background: repeating-linear-gradient(135deg, var(--paper) 0 14px, transparent 14px 28px), var(--paper); }

.brand picture { display: contents; }
.footer-brand img { height: 48px; }

/* Hero background video sits over its still frame */
.hero > .media .bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .hero > .media .bg-video { display: none; } }
