/* ==========================================================================
   Beach Cities Aviation — flight school site
   Aesthetic: SpaceX-style — near-black, huge condensed type, full-bleed
   imagery, minimal chrome. Brand navy #1E3A5F (see brand/brand.yaml).
   Image slots: .media-slot[data-shot] renders a labeled placeholder until
   the real photo/video drops in — see the shot list in README.md.
   Design-review pass applied 2026-07-06 (mobile header/menu, scrims, a11y).
   ========================================================================== */

:root {
  --black: #0b0d10;
  --black-2: #101319;
  --navy: #1e3a5f;
  --navy-bright: #3a6ea5;
  --white: #f4f6f8;
  --gray: #9aa3ad;
  --line: rgba(244, 246, 248, 0.18);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible { outline: 2px solid var(--navy-bright); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--white); color: var(--black); padding: 0.5rem 1rem;
}
.skip-link:focus { left: 0; }

.container { width: min(1200px, 92vw); margin-inline: auto; }
.container.narrow { width: min(820px, 92vw); }

/* ---- Type scale ---------------------------------------------------------- */

.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1.1rem;
}

h1, h2, .display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.7rem, 9vw, 7rem); }
h2 { font-size: clamp(2.1rem, 5.5vw, 4.2rem); margin-bottom: 1.2rem; }
h3 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.body-lg { font-size: 1.15rem; color: var(--white); }
.statement .body-lg { max-width: 62ch; }
.lede { font-size: 1.15rem; max-width: 34rem; color: rgba(244,246,248,0.9); }
.muted, .fine-print { color: var(--gray); font-size: 0.85rem; }

/* ---- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.95rem 2.1rem;
  border: 1.5px solid var(--white);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.btn-solid { background: var(--white); color: var(--black); }
.btn-solid:hover { background: transparent; color: var(--white); }
.btn-line { background: transparent; color: var(--white); }
.btn-line:hover { background: var(--white); color: var(--black); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn:disabled:hover { background: var(--white); color: var(--black); }

/* ---- Nav ------------------------------------------------------------------ */

.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  /* permanent top scrim so nav text survives bright imagery underneath */
  background: linear-gradient(180deg, rgba(11, 13, 16, 0.72), rgba(11, 13, 16, 0));
  transition: background 0.3s;
}
.site-nav.scrolled { background: rgba(11, 13, 16, 0.92); backdrop-filter: blur(8px); }

.brand { display: flex; align-items: center; gap: 0.65rem; min-width: 0; flex: 1 1 auto; overflow: hidden; }
.brand-mark { flex: 0 0 auto; height: 34px; width: auto; }  /* Corsair mark, 3.55:1 */
/* Two-line stack ("BEACH CITIES" / "AVIATION") is only as wide as the longer
   word — always fits without truncating, unlike the single-line wordmark. */
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
  flex-shrink: 1;
}
.brand-line1, .brand-line2 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  color: var(--white);
}

.site-nav nav { min-width: 0; }
.nav-links { display: flex; gap: 1.4rem; list-style: none; align-items: center; flex-wrap: nowrap; }
.nav-links a { white-space: nowrap; }
.site-nav a:not(.brand) {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.nav-links a { opacity: 0.85; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }

.nav-right { display: flex; align-items: center; gap: 0.8rem; flex: 0 0 auto; min-width: 0; }
.cta-link { border: 1.5px solid var(--white); padding: 0.5rem 1rem; white-space: nowrap; }
.cta-link:hover { background: var(--white); color: var(--black); }

/* Mobile disclosure menu (hidden on desktop) */
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; padding: 0.4rem; }
.nav-menu summary::-webkit-details-marker { display: none; }
.menu-icon { display: block; width: 22px; }
.menu-icon i {
  display: block; height: 2px; background: var(--white);
  margin: 4px 0; border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-menu[open] summary .menu-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-menu[open] summary .menu-icon i:nth-child(2) { opacity: 0; }
.nav-menu[open] summary .menu-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-menu ul {
  position: fixed; left: 0; right: 0; top: 3.6rem;
  list-style: none;
  background: rgba(11, 13, 16, 0.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0;
}
.nav-menu ul a {
  display: block; padding: 0.85rem clamp(1rem, 6vw, 2rem);
  opacity: 0.9;
}
.nav-menu ul a:hover { opacity: 1; background: rgba(244,246,248,0.05); }

/* 1200px: below this the full 7-link row + brand + CTA can't fit without
   wrapping (seen live at ~995px) — switch to the hamburger early. */
@media (max-width: 1200px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
}
@media (max-width: 560px) {
  .site-nav { padding-top: 0.75rem; padding-bottom: 0.75rem; padding-left: 0.75rem; padding-right: 0.75rem; gap: 0.5rem; }
  .brand { gap: 0.4rem; }
  .brand-mark { height: 20px; }
  .brand-line1, .brand-line2 { font-size: 0.66rem; letter-spacing: 0.04em; }
  .hide-sm { display: none; }               /* CTA shortens to "Waitlist" */
  .nav-right { gap: 0.5rem; }
  .cta-link { padding: 0.4rem 0.6rem; font-size: 0.66rem; }
  .nav-menu summary { padding: 0.3rem; }
}
/* Deep safety net for very narrow/old devices: icon-only branding. The
   two-line stack above should fit well before this, but it costs nothing to keep. */
@media (max-width: 340px) {
  .brand-name { display: none; }
}

/* ---- Media slots (placeholders until real assets land) -------------------- */

.media-slot {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% 10%, rgba(30, 58, 95, 0.55), transparent 60%),
    linear-gradient(180deg, #141a24 0%, #0b0d10 100%);
  overflow: hidden;
}
.media-slot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Shot label pinned top-left so it never collides with CTAs, captions, or the
   scroll cue (which live at the bottom of full-bleed sections). */
.media-slot[data-shot]::after {
  content: attr(data-shot);
  position: absolute; inset: 4.5rem auto auto 1rem;
  max-width: min(46ch, 62%);
  font-size: 0.72rem; letter-spacing: 0.08em;
  color: rgba(244, 246, 248, 0.45);
  border: 1px dashed rgba(244, 246, 248, 0.25);
  padding: 0.45rem 0.7rem;
}
.card-media::after, .wide-media::after { inset: 1rem auto auto 1rem; }
@media (max-width: 600px) {
  .media-slot::after { display: none; }  /* labels are a desktop-review aid */
}

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

.hero { position: relative; min-height: 100svh; display: flex; align-items: center; }
.hero-media { position: absolute; inset: 0; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,13,16,0.55) 0%, rgba(11,13,16,0.2) 45%, rgba(11,13,16,0.85) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 clamp(1rem, 6vw, 5rem);
}
.hero-content h1 { margin: 0.4rem 0 1.4rem; max-width: 12ch; }
.hero-cta { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%);
  z-index: 2;
}
.scroll-cue span {
  display: block; width: 1px; height: 52px;
  background: linear-gradient(var(--white), transparent);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0%,100% { opacity: 0.25 } 50% { opacity: 1 } }

/* ---- Statement sections ----------------------------------------------------- */

.statement { padding: clamp(5rem, 12vh, 9rem) 0; }
.statement.alt { background: var(--black-2); }
.statement .display { margin-bottom: 1.6rem; }
.wide-media { aspect-ratio: 21 / 9; margin-top: 3rem; }

/* ---- Full-bleed feature sections --------------------------------------------
   min-height sits at 72svh while sections hold placeholders; raise to ~88svh
   once real full-bleed imagery lands and the void becomes a photograph. */

.feature {
  position: relative;
  /* 640px floor keeps the shot label clear of the content block on short
     laptop viewports (1366×768 class) while placeholders are in play */
  min-height: max(72svh, 640px);
  display: flex; align-items: flex-end;
}
.feature-media { position: absolute; inset: 0; }
.feature-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,13,16,0.45) 0%, rgba(11,13,16,0.15) 30%, rgba(11,13,16,0.85) 100%);
}
.feature-content {
  position: relative; z-index: 2;
  padding: 0 clamp(1rem, 6vw, 5rem) clamp(3rem, 8vh, 5rem);
  max-width: 40rem;
}
.feature-content.right { margin-left: auto; text-align: right; }
.feature-content p { margin-bottom: 1.6rem; color: rgba(244,246,248,0.88); }

/* ---- Programs ----------------------------------------------------------------- */

.programs { padding: clamp(5rem, 12vh, 9rem) 0; background: var(--black-2); }
.program-grid {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 3rem;
}
.program-grid article { background: var(--black-2); padding: 2.2rem 1.8rem; }
.program-grid article p { color: var(--gray); font-size: 0.95rem; }
.program-grid article.soon h3 { color: var(--navy-bright); }

/* ---- Fleet ---------------------------------------------------------------------- */

.fleet { padding: clamp(5rem, 12vh, 9rem) 0; }
.fleet-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-top: 3rem;
}
.card-media { aspect-ratio: 16 / 10; margin-bottom: 1.4rem; }
.fleet-role {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--navy-bright); margin-bottom: 0.7rem;
}
.fleet-card p:last-child { color: var(--gray); font-size: 0.98rem; }
.fleet-note {
  margin-top: 3rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--gray); max-width: 62ch;
}

/* ---- Waitlist -------------------------------------------------------------------- */

.waitlist {
  padding: clamp(6rem, 14vh, 10rem) 0;
  background:
    radial-gradient(90% 70% at 50% 100%, rgba(30, 58, 95, 0.5), transparent 65%),
    var(--black);
  text-align: center;
}
.waitlist .body-lg { max-width: 36rem; margin: 0 auto 2.6rem; }
.waitlist-mark { width: min(260px, 60vw); margin: 0 auto 2rem; opacity: 0.95; }
.waitlist-form {
  display: grid; gap: 0.8rem;
  grid-template-columns: 1fr 1fr;
  max-width: 560px; margin: 0 auto;
}
.waitlist-form select, .waitlist-form button { grid-column: 1 / -1; }
.waitlist-form input, .waitlist-form select {
  background: rgba(244,246,248,0.06);
  border: 1px solid var(--line);
  color: var(--white);
  font-family: var(--body); font-size: 0.95rem;
  padding: 0.95rem 1.1rem;
}
.waitlist-form input::placeholder { color: var(--gray); }
.waitlist-form select {
  appearance: none;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path d="M1 1l5 5 5-5" fill="none" stroke="%239aa3ad" stroke-width="1.6"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  padding-right: 2.6rem;
  color: var(--gray);
}
.waitlist-form input:disabled, .waitlist-form select:disabled { opacity: 0.6; }
.waitlist-form .hp { position: absolute; left: -5000px; }  /* honeypot */
.form-status { grid-column: 1 / -1; color: #e8a0a0; font-size: 0.88rem; min-height: 1.2em; margin: 0; }
.fine-print { margin-top: 1.2rem; }
@media (max-width: 560px) { .waitlist-form { grid-template-columns: 1fr; } }

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

.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; }
.footer-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.4rem;
}
.footer-brand { font-size: 1.05rem; }
.site-footer nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-footer nav a {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gray);
}
.site-footer nav a:hover { color: var(--white); }
.footer-address { font-style: normal; color: var(--gray); font-size: 0.9rem; margin-bottom: 0.4rem; }

/* ---- Reduced motion ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue span { animation: none; opacity: 0.6; }
  * { transition-duration: 0.01ms !important; }
}
