/* =========================================================
   Human Ballistics - shared stylesheet
   "Flight deck at dusk" aviation palette, sales-forward.
   Deep sky-blue gradients + sunset glow, with a punchy
   sunset-orange call-to-action colour.
   To rebrand: change the palette values in :root below and
   the wordmark text in each page header.
   ========================================================= */

:root {
  /* Deep sky (backgrounds, headers, gradients) */
  --navy: #061733;
  --navy-2: #0c2a57;
  --slate: #123f7d;

  /* Sky blue (aviation accent) */
  --sky: #2f90ea;
  --sky-light: #6bb8ff;
  --sky-dark: #1663b3;

  /* Sunset orange (the sales / call-to-action colour) */
  --accent: #ff6a2b;
  --accent-dark: #e2530f;

  /* Instrument amber (numbers, highlights). --amber kept as an
     alias so any older references still resolve. */
  --gold: #ffb224;
  --gold-dark: #d98a00;
  --amber: #ffb224;
  --amber-dark: #d98a00;

  --cream: #eef4fb;
  --ink: #0f1d31;
  --muted: #536178;
  --line: #d5e1f0;
  --white: #ffffff;

  --maxw: 1140px;
  --radius: 14px;
  --shadow: 0 12px 42px rgba(6, 23, 51, 0.16);
  --shadow-soft: 0 5px 20px rgba(6, 23, 51, 0.10);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

p { margin: 0 0 1.1em; text-align: justify; }

a { color: var(--sky-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 0.8rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(255, 106, 43, 0.34);
}
.btn-primary:hover { background: var(--accent-dark); color: var(--white); box-shadow: 0 10px 26px rgba(255, 106, 43, 0.42); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.btn-dark { background: var(--sky); color: var(--white); }
.btn-dark:hover { background: var(--sky-dark); color: var(--white); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 23, 51, 0.96);
  backdrop-filter: blur(8px);
  color: var(--white);
  border-bottom: 1px solid rgba(107,184,255,0.16);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%);
  color: var(--white);
  font-weight: 800;
  font-family: var(--font-body);
  box-shadow: 0 4px 12px rgba(255,106,43,0.35);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--white); text-decoration: none; }
.nav-links a.active { color: var(--sky-light); }
.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 480px at 78% -15%, rgba(255,106,43,0.30), transparent 60%),
    radial-gradient(900px 520px at 8% 8%, rgba(47,144,234,0.34), transparent 58%),
    linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 46%, var(--slate) 100%);
  color: var(--white);
  padding: 96px 0 104px;
  position: relative;
  overflow: hidden;
}
.hero h1 { color: var(--white); max-width: 15ch; }
.hero .lead {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.88);
  max-width: 56ch;
  margin-bottom: 1.8em;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--gold);
}
.hero-stats .stat span { color: rgba(255,255,255,0.78); font-size: 0.95rem; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section.alt { background: var(--white); }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(47,144,234,0.14);
  color: var(--sky-dark);
  display: grid; place-items: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--muted); margin-bottom: 0; }

/* Price cards */
.price-card { display: flex; flex-direction: column; }
.price-card .price {
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--navy);
  margin: 6px 0 2px;
}
.price-card .price small { font-size: 0.9rem; color: var(--muted); font-family: var(--font-body); }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.price-card li { padding: 7px 0 7px 28px; position: relative; color: var(--ink); }
.price-card li::before {
  content: "\2713";
  position: absolute; left: 0; top: 7px;
  color: var(--accent); font-weight: 700;
}
.price-card .btn { margin-top: auto; text-align: center; }
.price-card.featured { border-color: var(--accent); border-width: 2px; box-shadow: var(--shadow); position: relative; }
.badge-pop {
  position: absolute; top: -13px; right: 22px;
  background: var(--accent); color: var(--white);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(255,106,43,0.35);
}

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split .panel {
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(255,106,43,0.24), transparent 60%),
    linear-gradient(155deg, var(--navy) 0%, var(--slate) 100%);
  color: var(--white); border-radius: var(--radius); padding: 40px;
  min-height: 260px; display: flex; flex-direction: column; justify-content: center;
}
.split .panel h3 { color: var(--white); }
.split .panel p { color: rgba(255,255,255,0.85); }

/* ---------- Testimonials ---------- */
.quote-grid { columns: 3; column-gap: 26px; }
.quote {
  break-inside: avoid;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sky);
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-soft);
}
.quote p { font-size: 1rem; color: var(--ink); margin-bottom: 12px; }
.quote .who { font-size: 0.85rem; color: var(--sky-dark); font-weight: 600; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .num {
  counter-increment: step;
  flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky) 0%, var(--slate) 100%);
  color: var(--white);
  display: grid; place-items: center; font-weight: 700;
}
.step .num::before { content: counter(step); }
.step h4 { margin-bottom: 0.2em; }
.step p { color: var(--muted); margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(800px 380px at 80% 0%, rgba(255,106,43,0.28), transparent 60%),
    radial-gradient(700px 380px at 12% 100%, rgba(47,144,234,0.28), transparent 60%),
    linear-gradient(155deg, var(--navy) 0%, var(--slate) 100%);
  color: var(--white); text-align: center; padding: 72px 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.88); max-width: 52ch; margin: 0 auto 1.6em; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 10px; padding: 4px 22px; margin-bottom: 14px;
}
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--navy);
  padding: 16px 0; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent-dark); font-size: 1.3rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,0.75);
  padding: 56px 0 28px; margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; }
.site-footer a { color: rgba(255,255,255,0.75); display: block; margin-bottom: 8px; font-size: 0.95rem; }
.site-footer a:hover { color: var(--sky-light); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(107,184,255,0.16);
  margin-top: 36px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.lead { font-size: 1.15rem; color: var(--muted); }
.pill {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: rgba(47,144,234,0.14); color: var(--sky-dark);
  font-size: 0.8rem; font-weight: 600; margin-bottom: 12px;
}
.note {
  background: rgba(255,178,36,0.12);
  border: 1px solid rgba(255,178,36,0.42);
  border-radius: 10px; padding: 16px 20px; color: var(--ink);
}

/* ---------- Photo hero (a real image behind the brand gradient) ----------
   Each page sets its own background-image inline on the .hero--photo section,
   for example: <section class="hero hero--photo" style="background-image:url('assets/xxx.jpg')">
   The ::before overlay keeps the same darkening gradient and orange glow on
   every page, so the heroes feel uniform while each photo differs.            */
.hero--photo {
  position: relative;
  isolation: isolate;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}
.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 480px at 80% -12%, rgba(255,106,43,0.30), transparent 60%),
    linear-gradient(155deg, rgba(6,23,51,0.90) 0%, rgba(10,32,66,0.82) 48%, rgba(16,52,104,0.72) 100%);
}
.hero--photo > .container { position: relative; z-index: 1; }

/* ---------- Images ---------- */
.figure-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
.figure-cap {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}
/* Dark frame for diagrams that have a black background (e.g. the performance curve) */
.figure-dark {
  background: linear-gradient(160deg, var(--navy) 0%, var(--slate) 100%);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.figure-dark img { width: 100%; border-radius: 8px; display: block; }
.media-round { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
/* Wide cinematic banner (e.g. an airliner across the top of a page) */
.banner-img {
  width: 100%; aspect-ratio: 3 / 1; object-fit: cover; object-position: center 45%;
  border-radius: var(--radius); box-shadow: var(--shadow); display: block;
}
@media (max-width: 700px) { .banner-img { aspect-ratio: 16 / 10; } }

/* Small country flag next to a heading */
.flag {
  width: 26px; height: auto; border-radius: 4px;
  vertical-align: middle; margin-right: 9px;
  box-shadow: 0 1px 3px rgba(6,23,51,0.25);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .quote-grid { columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: var(--navy); padding: 18px 22px; gap: 16px;
    border-bottom: 1px solid rgba(107,184,255,0.16);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-stats { gap: 28px; }
}
@media (max-width: 560px) {
  .quote-grid { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 68px 0 76px; }
  .section { padding: 56px 0; }
}
