/* 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; }
.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: 100;
  padding: 22px 0; border-bottom: 1px solid transparent;
  transition: transform .35s ease, background .35s ease, padding .3s ease, border-color .35s ease;
}
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;
}
.logo span { color: var(--gold); }
.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; }
@media (max-width: 640px) { .lead-row { grid-template-columns: 1fr; } }

/* ---- 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); }
.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 { color: var(--muted); font-size: 0.9rem; text-decoration: none; display: block; margin-bottom: 10px; }
.footer-col a:hover { color: var(--text); }
.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; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: 1fr; gap: 40px; }
  .diff-image { aspect-ratio: 16/10; }
  .media-band { background-attachment: scroll; min-height: 60vh; }
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
