/* ============================================================
   SHARED STYLESHEET — Starlight Hangars detail pages
   All common styles shared across detail page templates.
============================================================ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── CSS VARIABLES ── */
:root {
  --navy: #071424;
  --navy-mid: #0E2336;
  --blue: #4F7186;
  --blue-dark: #3B5A6D;
  --blue-faint: #B7CAD6;
  --accent: #B8C2CB;
  --accent-hover: #7D93A2;
  --accent-background: rgba(184,194,203,0.12);
  --muted: #657586;
  --text: #071424;
  --bg: #FFFFFF;
  --light-bg: #EEF3F6;
  --card-bg: rgba(246,248,250,0.9);
  --card-border: rgba(7,20,36,0.1);
  --navy-glass: rgba(7,20,36,0.97);
  --text-light-muted: rgba(255,255,255,0.6);
  --font: Inter, ui-sans-serif, system-ui, sans-serif;
}

/* ── BASE ── */
html { font-size: 16px; overflow-x: hidden; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1,h2,h3,h4,p { margin: 0; }
a { text-decoration: none; }
button { background: none; border: none; cursor: pointer; }
img { display: block; max-width: 100%; }
video { display: block; width: 100%; }

/* ── NAV ── */
.nav_wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(7,20,36,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav_contain {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.125rem 2.5rem;
  max-width: 1200px; margin: 0 auto;
}
.nav_logo a { display: flex; align-items: center; gap: 0.5rem; color: #fff; text-decoration: none; }
.nav_logo img { height: 36px; filter: brightness(0) invert(1); }
.nav_logo span { font-size: 1rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; }
.nav_links { display: flex; align-items: center; gap: 1.5rem; }
.nav_link {
  font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.75);
  transition: color 0.2s; padding: 0.4rem 0.75rem; border-radius: 6px;
}
.nav_link:hover { color: #fff; }
.nav_link.cta {
  background: var(--blue); color: #fff; padding: 0.45rem 1.1rem;
  border-radius: 7px; font-weight: 600;
}
.nav_link.cta:hover { background: var(--blue-dark); }
@media (max-width: 640px) {
  .nav_contain { padding: 1rem 1.25rem; }
  .nav_links .nav_link:not(.cta) { display: none; }
}

/* ── DETAIL HERO ── */
.detail-hero {
  background: var(--navy);
  padding: 9rem 2rem 5rem;
  text-align: center;
}
.detail-hero-icon {
  width: 64px; height: 64px; margin: 0 auto 1.5rem;
  background: rgba(79,113,134,0.15);
  border: 1px solid rgba(79,113,134,0.3);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-faint);
}
.detail-hero-tag {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue-faint);
  margin-bottom: 1rem;
}
.detail-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800; color: #fff;
  line-height: 1.12; letter-spacing: 0;
  max-width: 700px; margin: 0 auto 1.25rem;
}
.detail-hero p {
  font-size: 1.0625rem; line-height: 1.75;
  color: rgba(255,255,255,0.65);
  max-width: 580px; margin: 0 auto 2rem;
}
.back-link {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 6px;
  padding: 0.4rem 0.85rem; transition: all 0.2s;
}
.back-link:hover { color: #fff; border-color: rgba(255,255,255,0.35); }

/* ── SECTION BASES ── */
.section-dark { background: var(--navy); padding: 5rem 2rem; }
.section-dark-mid { background: var(--navy-mid); padding: 5rem 2rem; }
.section-light { background: var(--light-bg); padding: 5rem 2rem; }
.section-white { background: #fff; padding: 5rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }

/* === Readable overrides for light sections === */
/* Ensure headings, labels, and cards are visible on light backgrounds */
.section-light .section-label { color: var(--blue); }
.section-light .section-heading { color: var(--navy); }
.section-light .section-subheading { color: var(--muted); }

.section-light .feature-card {
  background: #fff;
  border: 1px solid var(--card-border);
  color: var(--text);
}
.section-light .feature-card h3 { color: var(--navy); }
.section-light .feature-card p { color: var(--muted); }
.section-light .feature-icon {
  background: rgba(79,113,134,0.06);
  border: 1px solid rgba(79,113,134,0.08);
  color: var(--blue);
}

.section-light .benefit-card { background: #fff; border: 1px solid var(--card-border); }
.section-light .benefit-card p { color: var(--muted); }

.section-light .faq-question { color: var(--navy); }
.section-light .faq-answer { color: var(--muted); }


.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue-faint);
  margin-bottom: 0.75rem;
}
.section-label.dark-mode { color: var(--blue); }
.section-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800; color: #fff;
  line-height: 1.18; letter-spacing: 0;
  margin-bottom: 0.875rem;
}
.section-heading.light { color: var(--navy); }
.section-subheading {
  font-size: 1rem; line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 560px; margin-bottom: 3rem;
}
.section-subheading.light { color: var(--muted); }

/* ── COMING SOON (Light + Dark variants) ── */
.coming-soon-section { padding: 5rem 2rem; }
.coming-soon-section.section-light { background: var(--light-bg); }
.coming-soon-section.section-dark { background: var(--navy-mid); }
.coming-soon-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 768px) { .coming-soon-inner { grid-template-columns: 1fr; } }
.coming-soon-text h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 700; line-height: 1.22; letter-spacing: 0; margin-bottom: 1rem; }
.coming-soon-text p { font-size: 0.9375rem; line-height: 1.75; }
.coming-soon-section.section-light .coming-soon-text h2 { color: var(--navy); }
.coming-soon-section.section-light .coming-soon-text p { color: var(--muted); }
.coming-soon-section.section-dark .coming-soon-text h2 { color: #fff; }
.coming-soon-section.section-dark .coming-soon-text p { color: rgba(255,255,255,0.6); }
.coming-soon-visual {
  border-radius: 14px; overflow: hidden;
  background: var(--navy);
  border: 1px solid var(--navy);
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.coming-soon-visual svg { width: 100%; height: 100%; }
.coming-soon-badge {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: var(--accent-background); border: 1px solid rgba(184,194,203,0.4);
  color: var(--accent); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.35rem 0.9rem; border-radius: 20px;
}


/* ── VIDEO SECTION ── */
/* Colors from collision-prevention.html */
.video-section { background: var(--light-bg); padding: 5rem 2rem; }
.video-section.dark { background: var(--navy); padding: 5rem 2rem; }
.video-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px; margin: 0 auto;
}
.video-split.reverse { direction: rtl; }
.video-split.reverse > * { direction: ltr; }
@media (max-width: 768px) {
  .video-split, .video-split.reverse { grid-template-columns: 1fr; direction: ltr; }
  .video-split.reverse > * { direction: ltr; }
}
.video-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700; color: #000; line-height: 1.22;
  letter-spacing: 0; margin-bottom: 1rem;
}
.video-text p { font-size: 0.9375rem; line-height: 1.75; color: var(--muted); }
.video-wrap {
  border-radius: 14px; overflow: hidden;
  background: var(--navy);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  position: relative;
}
.video-wrap video { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.video-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7,20,36,0.35);
  cursor: pointer; transition: background 0.2s;
}
.video-play-overlay:hover { background: rgba(7,20,36,0.15); }
.video-play-overlay svg {
  width: 52px; height: 52px;
  fill: rgba(255,255,255,0.9);
}
.video-play-overlay.hidden { display: none; }

/* ── FEATURE CARDS — centered, responsive flex layout ── */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  align-items: stretch;
}
.feature-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 1.75rem;
  transition: background 0.2s, transform 0.2s;
  flex: 1 1 240px;
  max-width: 320px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
}
.feature-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-3px); }
.feature-icon {
  width: 44px; height: 44px; margin-bottom: 1rem;
  background: rgba(79,113,134,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-faint);
}
.feature-card h3 {
  font-size: 1.0625rem; font-weight: 700;
  color: #fff; margin-bottom: 0.5rem;
}
.feature-card p { font-size: 0.9rem; line-height: 1.65; color: rgba(255,255,255,0.55); }

/* ── BENEFIT GRID — centered, responsive flex layout ── */
.benefit-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: stretch;
}
.benefit-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 14px; padding: 2rem;
  display: flex; align-items: flex-start; gap: 1rem;
  transition: box-shadow 0.2s, transform 0.2s;
  flex: 1 1 300px;
  max-width: 500px;
}
.benefit-card:hover { box-shadow: 0 8px 32px rgba(7,20,36,0.1); transform: translateY(-3px); }
.benefit-check {
  width: 36px; height: 36px; flex-shrink: 0;
  background: rgba(79,113,134,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
}
.benefit-card p { font-size: 0.9375rem; line-height: 1.65; color: var(--muted); font-weight: 500; }
.span_blue {
  color: var(--navy);
  font-weight: 700;
  background: rgba(79,113,134,0.12);
  border-bottom: 2px solid rgba(79,113,134,0.45);
  padding: 0 0.12em;
}
.span_accent {
  display: inline-block;
  color: var(--navy);
  font-weight: 800;
  background: linear-gradient(180deg, rgba(255,255,255,0) 40%, rgba(184,194,203,0.5) 40%);
  border-radius: 6px;
  padding: 0 0.18em;
}
.section-heading .span_accent {
  display: inline-flex;
  align-items: center;
  margin: 0 0.12em;
  padding: 0.12em 0.28em 0.16em;
  background: linear-gradient(135deg, #071424 0%, #0E2336 100%);
  color: #F6F8FA;
  border: 1px solid rgba(184,194,203,0.55);
  box-shadow: 0 12px 30px rgba(7,20,36,0.16);
  line-height: 1;
  white-space: nowrap;
}
.benefit-card .span_accent {
  background: rgba(184,194,203,0.26);
  border: 1px solid rgba(184,194,203,0.48);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset;
}

/* ── FAQ ── */
.faq-section { background: var(--navy); padding: 5rem 2rem; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.faq-question {
  width: 100%; text-align: left;
  padding: 1.25rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: 0.9375rem; font-weight: 600; color: rgba(255,255,255,0.85);
  cursor: pointer; background: none; border: none;
  transition: color 0.2s;
}
.faq-question:hover { color: #fff; }
.faq-question .faq-icon {
  font-size: 1.25rem; font-weight: 300; color: rgba(255,255,255,0.4);
  flex-shrink: 0; transition: transform 0.3s;
}
.faq-item.open .faq-question .faq-icon { transform: rotate(45deg); color: var(--blue-faint); }
.faq-answer {
  height: 0; overflow: hidden;
  font-size: 0.9rem; line-height: 1.75; color: rgba(255,255,255,0.55);
  transition: height 0.3s ease, padding 0.3s ease;
}
.faq-answer-inner { padding-bottom: 1.25rem; }

/* ── ALPHA BADGE ── */
.alpha-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  background: var(--accent-background);
  border: 1px solid rgba(184,194,203,0.45);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
}
.alpha-badge svg { flex-shrink: 0; }

/* ── CTA STRIP ── */
.cta-strip {
  background: var(--navy-mid);
  padding: 4rem 2rem;
  text-align: center;
}
.cta-strip h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800; color: #fff; margin-bottom: 0.75rem;
}
.cta-strip p { font-size: 1rem; color: rgba(255,255,255,0.6); margin-bottom: 2rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--blue); color: #fff;
  padding: 0.75rem 1.75rem; border-radius: 8px;
  font-size: 0.9375rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }

/* ============================================================
   CTA STRIP — Light Variant
   Use on pages that need a white / light background for the CTA
============================================================ */
.cta-strip.light,
.cta-strip-light {
  background: var(--light-bg);
  color: var(--text);
  padding: 4rem 2rem;
  text-align: center;
}
.cta-strip.light h2,
.cta-strip-light h2 {
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.cta-strip.light p,
.cta-strip-light p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.cta-strip.light .btn-primary,
.cta-strip-light .btn-primary {
  background: var(--blue);
  color: #fff;
}
