/* Stallion Flight Support — "Skyline × media" theme.
   Dark-luxe / gold / serif base, merged with a full-bleed image+video layout
   and a scroll-up (hide-on-down / show-on-up) header. */

:root {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --gold: #c8a25b;
  --gold-bright: #e6c885;
  --text: #f5f5f0;
  --muted: #9a958c;
  --line: #2a2520;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* Nav inner stretches the full viewport width — logo hard-left, links hard-right. */
nav .container { max-width: none; padding: 0 5vw; }
.eyebrow {
  font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
}

/* ---- Scroll-up header ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 102;
  padding: 22px 0; border-bottom: 1px solid transparent;
  transition: transform .35s ease, background .35s ease, padding .3s ease, border-color .35s ease;
}
/* Checkbox-hack driver — hidden, but checked state drives burger + overlay via CSS. */
.nav-toggle-input { display: none; }

/* Solid nav + override hide-on-scroll when mobile overlay is open. */
#nav-toggle:checked ~ nav {
  background: rgba(10, 10, 10, 0.97);
  border-bottom-color: var(--line);
}
#nav-toggle:checked ~ nav.nav--hidden { transform: none; }
nav.nav--solid {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line); padding: 13px 0;
}
nav.nav--hidden { transform: translateY(-100%); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text); text-decoration: none;
  display: inline-flex; align-items: center; gap: 12px;
}
.logo-text span { color: var(--gold); }
/* Full lockup as the footer brand sign-off. */
.footer-logo { margin-bottom: 20px; }
.logo-full { width: 220px; height: auto; max-width: 100%; color: var(--gold); display: block; }
.nav-links { display: flex; gap: 40px; }
.nav-links a {
  color: var(--text); text-decoration: none; font-size: 0.85rem;
  letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500; transition: color .2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  border: 1px solid var(--gold); color: var(--gold); padding: 10px 24px;
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; transition: all .2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--gold); color: var(--bg); }

/* ---- Hero with background video ---- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; padding: 170px 0 90px; background: var(--bg-2);
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.5) 35%, rgba(10,10,10,0.92) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 840px; }
.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3rem, 7vw, 6rem); font-weight: 400;
  line-height: 1.04; margin: 24px 0 28px; letter-spacing: -0.01em;
}
.hero h1 em { color: var(--gold); font-style: italic; font-weight: 500; }
.hero p {
  font-size: 1.15rem; color: #d8d3c8; max-width: 600px;
  margin-bottom: 44px; font-weight: 300;
}
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* Bouncing scroll-down cue (flyfcfa.com) */
.scroll-cue {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 3; color: var(--gold); animation: cue-bounce 1.8s ease-in-out infinite;
}
.scroll-cue svg {
  display: block; width: 32px; height: 32px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
@keyframes cue-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }

.btn-primary {
  background: var(--gold); color: var(--bg); padding: 16px 36px; text-decoration: none;
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
  transition: all .2s; display: inline-block; border: 1px solid var(--gold);
}
.btn-primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn-ghost {
  color: var(--text); padding: 16px 0; text-decoration: none; font-size: 0.8rem;
  letter-spacing: 0.2em; text-transform: uppercase; border-bottom: 1px solid var(--line); padding-bottom: 4px;
}
.btn-ghost:hover { border-color: var(--gold); }

/* ---- Stats ---- */
.stats { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { text-align: center; }
/* Scroll-triggered fade-up reveal for the stats row (staggered). */
.stat.draw-on-scroll { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.stat.draw-on-scroll.is-drawn { opacity: 1; transform: none; }
.stats-grid .stat:nth-child(2) { transition-delay: .1s; }
.stats-grid .stat:nth-child(3) { transition-delay: .2s; }
.stats-grid .stat:nth-child(4) { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .stat.draw-on-scroll { opacity: 1; transform: none; transition: none; }
}
.stat .num { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.75rem; color: var(--gold); font-weight: 500; line-height: 1; }
.stat .label { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }

/* ---- Sections ---- */
section { padding: 120px 0; }
.section-header { text-align: center; max-width: 760px; margin: 0 auto 80px; }
.section-header h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 3.25rem; font-weight: 400; line-height: 1.1; margin: 16px 0 24px; }
.section-header h2 em { color: var(--gold); font-style: italic; }
.section-header p { color: var(--muted); font-size: 1.05rem; }

/* ---- Differentiator (image + text) ---- */
.differentiator { background: var(--bg-2); }
.diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.diff-image {
  aspect-ratio: 4/5; background-size: cover; background-position: center;
  border: 1px solid var(--line); position: relative;
}
.diff-image::after { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(200,162,91,0.35); }
.diff-content h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 3rem; font-weight: 400; margin: 16px 0 28px; line-height: 1.1; }
.diff-content h2 em { color: var(--gold); font-style: italic; }
.diff-content p { color: var(--muted); margin-bottom: 18px; }
.diff-list { list-style: none; margin-top: 32px; }
.diff-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 20px; }
.diff-list li::before { content: '—'; color: var(--gold); font-size: 1.25rem; }

/* ---- Full-bleed parallax media band ---- */
.media-band {
  position: relative; min-height: 72vh; display: flex; align-items: center;
  background-size: cover; background-position: center; background-attachment: fixed;
  text-align: center;
}
.media-band::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.55), rgba(10,10,10,0.78));
}
.media-band .container { position: relative; z-index: 2; max-width: 820px; }
.media-band h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 400; line-height: 1.08; margin: 16px 0 20px; }
.media-band h2 em { color: var(--gold); font-style: italic; }
.media-band p { color: #d8d3c8; font-size: 1.1rem; max-width: 620px; margin: 0 auto; }

/* ---- Services ---- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.service { background: var(--bg); padding: 52px 38px; transition: background .3s; }
.service:hover { background: var(--bg-2); }
.service-num { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.25rem; color: var(--gold); margin-bottom: 24px; }

/* ---- Draw-on-scroll line icons (flyfcfa.com effect) ----
   Each drawable element has pathLength="1"; we hide the stroke with a full
   dash-offset, then transition it to 0 when the card scrolls into view. */
.draw-icon { display: block; color: var(--gold); overflow: visible; }
.service-icon { width: 96px; height: 96px; margin-bottom: 30px; }
.stat-icon { width: 64px; height: 64px; margin: 0 auto 18px; }
.draw-icon > * {
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
/* Stat icons use a 24 viewBox, so trim stroke weight to match the 48-viewBox service icons. */
.stat-icon > * { stroke-width: 1.5; }
.draw-on-scroll.is-drawn .draw-icon > * {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .9s cubic-bezier(.65, 0, .35, 1);
  transition-delay: var(--icon-delay, 0s);
}
/* Shapes within one icon draw in quick sequence (~1s total); the whole icon is
   offset by --icon-delay so a row draws left-to-right (each begins midway through
   the previous). */
.draw-on-scroll.is-drawn .draw-icon > *:nth-child(2) { transition-delay: calc(var(--icon-delay, 0s) + .06s); }
.draw-on-scroll.is-drawn .draw-icon > *:nth-child(3) { transition-delay: calc(var(--icon-delay, 0s) + .12s); }
.draw-on-scroll.is-drawn .draw-icon > *:nth-child(4) { transition-delay: calc(var(--icon-delay, 0s) + .18s); }
.draw-on-scroll.is-drawn .draw-icon > *:nth-child(5) { transition-delay: calc(var(--icon-delay, 0s) + .24s); }
.draw-on-scroll.is-drawn .draw-icon > *:nth-child(6) { transition-delay: calc(var(--icon-delay, 0s) + .30s); }
.draw-on-scroll.is-drawn .draw-icon > *:nth-child(7) { transition-delay: calc(var(--icon-delay, 0s) + .36s); }
/* Left-to-right cascade across the stat row: each icon begins ~halfway into the prior. */
.stats-grid .stat:nth-child(2) .draw-icon { --icon-delay: .55s; }
.stats-grid .stat:nth-child(3) .draw-icon { --icon-delay: 1.1s; }
.stats-grid .stat:nth-child(4) .draw-icon { --icon-delay: 1.65s; }
@media (prefers-reduced-motion: reduce) {
  .draw-icon > * { stroke-dashoffset: 0; transition: none; }
}
.service h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.6rem; font-weight: 500; margin-bottom: 16px; }
.service p { color: var(--muted); font-size: 0.95rem; }

/* ---- Pillars ---- */
.pillars { background: var(--bg-2); text-align: center; }
.pillars-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 24px; }
.pillar { background: var(--bg); padding: 48px 20px; }
.pillar .pillar-num { font-family: 'Cormorant Garamond', Georgia, serif; color: var(--gold); font-size: 1.1rem; }
.pillar h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: 1.4rem; margin-top: 16px; }

/* ---- CTA ---- */
.cta-section { text-align: center; background: radial-gradient(circle at 50% 50%, rgba(200,162,91,0.08) 0%, transparent 70%), var(--bg); border-top: 1px solid var(--line); }
.cta-section h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 3.75rem; font-weight: 400; line-height: 1.05; margin-bottom: 28px; }
.cta-section h2 em { color: var(--gold); font-style: italic; }
.cta-body { color: var(--muted); max-width: 620px; margin: 0 auto 40px; }
.cta-body p { margin-bottom: 16px; }

/* ---- Lead form ---- */
.lead-form { max-width: 640px; margin: 0 auto; text-align: left; }
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form input, .lead-form textarea {
  width: 100%; margin-bottom: 16px; padding: 14px 16px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  color: var(--text); font-family: inherit; font-size: 0.95rem; border-radius: 2px;
  transition: border-color .2s;
}
.lead-form input::placeholder, .lead-form textarea::placeholder { color: #6f6a60; }
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--gold); }
.lead-form textarea { resize: vertical; }
.lead-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.lead-actions { display: flex; align-items: center; gap: 20px; margin-top: 4px; }
.lead-actions .btn-primary { border: none; cursor: pointer; }
.lead-actions .btn-primary:disabled { opacity: .6; cursor: default; }
.lead-alt { color: var(--muted); font-size: 0.85rem; text-decoration: none; }
.lead-alt:hover { color: var(--gold); }
.lead-status { margin-top: 18px; font-size: 0.9rem; min-height: 1.2em; color: var(--muted); }
.lead-status.is-success { color: var(--gold-bright); }
.lead-status.is-error { color: #e0816b; }
/* ---- Footer ---- */
footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line); align-items: center; }
.footer-grid--two { grid-template-columns: 2fr 1fr; }
.footer-col h4 { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; font-weight: 500; }
.footer-col p, .footer-col a, .footer-col span { color: var(--muted); font-size: 0.9rem; text-decoration: none; display: block; margin-bottom: 10px; }
.footer-col a:hover { color: var(--text); }
/* Higher specificity than ".footer-col a" above, so ".logo"'s inline-flex isn't overridden. */
.footer-col a.footer-logo { display: inline-flex; align-items: center; }
.footer-bottom { padding-top: 32px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.1em; }

/* ---- Mobile nav overlay (flyfcfa.com style — full-screen, large links) ---- */
.nav-right { display: flex; align-items: center; gap: 20px; }

.nav-burger {
  display: none;
  cursor: pointer;
  width: 28px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
}

.nav-burger .bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}

.nav-burger .bar:nth-child(1) { top: 0; }
.nav-burger .bar:nth-child(2) { top: 8px; }
.nav-burger .bar:nth-child(3) { top: 16px; }

/* Checked → animate bars to X */
#nav-toggle:checked ~ nav .bar:nth-child(1) { top: 8px; transform: rotate(45deg); }
#nav-toggle:checked ~ nav .bar:nth-child(2) { opacity: 0; }
#nav-toggle:checked ~ nav .bar:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* Block body scroll when menu is open (progressive enhancement — no-op on old browsers) */
body:has(#nav-toggle:checked) { overflow: hidden; }

.nav-mobile {
  position: fixed; inset: 0; z-index: 101;
  background: rgba(10, 10, 10, 0.97);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 32px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
#nav-toggle:checked ~ .nav-mobile { opacity: 1; pointer-events: all; }

.nav-mobile a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 9vw, 3.75rem);
  color: var(--text); text-decoration: none;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: color .2s;
}
.nav-mobile a:hover { color: var(--gold); }

.nav-mobile-cta {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.22em !important;
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  padding: 12px 32px;
  margin-top: 8px;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablet landscape */
@media (max-width: 1100px) {
  .nav-links { gap: 28px; }
  .nav-links a { font-size: 0.78rem; }
  section { padding: 96px 0; }
  .section-header { margin-bottom: 64px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { gap: 20px; }
  .diff-grid { gap: 56px; }
}

/* Tablet portrait — hamburger replaces nav */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  nav .container { padding: 0 6vw; }

  section { padding: 72px 0; }
  .section-header { margin-bottom: 48px; }
  .section-header h2 { font-size: 2.5rem; }

  .hero { padding: 130px 0 72px; }
  .hero p { font-size: 1rem; margin-bottom: 32px; }

  .diff-grid { grid-template-columns: 1fr; gap: 36px; }
  .diff-image { aspect-ratio: 16/9; }
  .diff-content h2 { font-size: 2.25rem; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .service { padding: 40px 28px; }

  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar { padding: 36px 16px; }
  /* An odd number of pillars (e.g. 5) leaves the last one alone in a 2-col
     row — span it full width instead of leaving a blank cell beside it. */
  .pillars-grid .pillar:nth-last-child(1):nth-child(odd) { grid-column: 1 / -1; }

  .media-band { min-height: 55vh; background-attachment: scroll; }
  .media-band .container { max-width: none; }

  .cta-section h2 { font-size: 2.75rem; }

  .stats { padding: 40px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  footer { padding: 48px 0 24px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* Mobile */
@media (max-width: 480px) {
  .container { padding: 0 20px; }
  nav .container { padding: 0 20px; }

  section { padding: 56px 0; }
  .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: 2rem; }

  .hero { padding: 110px 0 60px; }
  .hero h1 { margin: 14px 0 18px; }
  .hero p { font-size: 0.95rem; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .btn-primary { padding: 14px 28px; text-align: center; }

  .stats { padding: 32px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat .num { font-size: 2.25rem; }
  .stat-icon { width: 52px; height: 52px; }

  .diff-content h2 { font-size: 1.875rem; }

  .services-grid { grid-template-columns: 1fr; }
  .service { padding: 36px 24px; }
  .service-icon { width: 72px; height: 72px; }

  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .pillar { padding: 28px 14px; }
  .pillar h3 { font-size: 1.1rem; }
  .pillars-grid .pillar:nth-last-child(1):nth-child(odd) { grid-column: 1 / -1; }

  .cta-section h2 { font-size: 2rem; }

  .lead-row { grid-template-columns: 1fr; }
  .lead-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .lead-actions .btn-primary { text-align: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  footer { padding: 40px 0 20px; }
  .footer-bottom { flex-direction: column; gap: 6px; font-size: 0.75rem; }

  .logo { font-size: 1.1rem; gap: 8px; }
}
