/* ================================================================
   THE FLIGHTS CLUB — GLOBAL DESIGN SYSTEM
   www.iflyflat.com.au · Custom HTML/CSS rebuild
   Brand tokens sourced from official Brand Guidelines PDF
   ================================================================ */

/* ===== GOOGLE FONTS (brand-compliant web equivalents) ===== */
/* Butler → Cormorant Garamond (closest free serif with high contrast) */
/* Avenir Next → Nunito Sans (closest geometric sans-serif) */
/* Fonts loaded via <link> in each page <head> for performance (no render-blocking @import) */

/* ===== OFFICIAL BRAND COLOUR TOKENS ===== */
:root {
  /* Primary Palette */
  --midnight-sky:     #120A8F;   /* Go-to anchor — nav, footers, headings */
  --altitude-pine:    #143D20;   /* Dark luxe green — secondary backgrounds */
  --cloud-white:      #F3E8DC;   /* Elegant neutral — section backgrounds */
  --blackout-runway:  #000000;   /* Pure black — maximum contrast */

  /* Secondary Palette */
  --jetstream-blue:   #022FA7;   /* Rich navy — hero sections, overlays */
  --priority-orange:  #FE6F00;   /* THE CTA colour — all primary buttons */
  --lounge-lime:      #C4FE98;   /* Status tags, accents, success states */

  /* Semantic aliases */
  --navy:             var(--midnight-sky);
  --navy-deep:        #0d0768;
  --navy-mid:         #1a12a8;
  --blue:             var(--jetstream-blue);
  --orange:           var(--priority-orange);
  --orange-hover:     #e05e00;
  --lime:             var(--lounge-lime);
  --lime-dark:        #a8e878;
  --green:            var(--altitude-pine);
  --cream:            var(--cloud-white);
  --black:            var(--blackout-runway);
  --white:            #ffffff;
  --gold:             #f5c842;

  /* Text */
  --text-on-dark:         rgba(255,255,255,0.94);
  --text-on-dark-muted:   rgba(255,255,255,0.68);
  --text-on-cream:        var(--midnight-sky);
  --text-body:            #1a1a2e;

  /* Borders */
  --border-dark:      rgba(255,255,255,0.14);
  --border-cream:     rgba(18,10,143,0.12);
  --border-orange:    rgba(254,111,0,0.35);
  --border-lime:      rgba(196,254,152,0.35);

  /* Spacing & shape */
  --radius:     14px;
  --radius-lg:  22px;
  --radius-xl:  32px;
  --shadow:     0 4px 24px rgba(18,10,143,0.10);
  --shadow-lg:  0 12px 48px rgba(18,10,143,0.20);
  --shadow-xl:  0 24px 80px rgba(18,10,143,0.28);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Nunito Sans', 'Avenir Next', Avenir, sans-serif;
  color: var(--text-body);
  background: var(--cloud-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 72px; /* offset for fixed nav */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 9999;
  background: var(--priority-orange); color: #fff;
  padding: 10px 20px; border-radius: 0 0 8px 8px;
  font-weight: var(--fw-bold); font-size: var(--fs-sm); text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ===== FOCUS ===== */
*:focus { outline: none; }
*:focus-visible { outline: 3px solid var(--priority-orange); outline-offset: 3px; border-radius: 4px; }

/* ================================================================
   TYPOGRAPHY — Brand Spec
   ================================================================ */

/*
  TYPE SCALE — 8 steps, modular ratio ~1.25
  ─────────────────────────────────────────
  Step 1 (xs)     11px  — labels, badges, meta
  Step 2 (sm)     13px  — captions, secondary UI
  Step 3 (base)   16px  — body copy (default)
  Step 4 (md)     18px  — lead / intro paragraphs
  Step 5 (lg)     22px  — card headings, sub-headings
  Step 6 (xl)     28px  — section sub-headings, h3
  Step 7 (2xl)    clamp(28px,4vw,48px)  — section headings, h2
  Step 8 (3xl)    clamp(36px,5.5vw,68px) — page headings, h1
  Display         clamp(44px,7vw,88px)  — hero display text
  ─────────────────────────────────────────
  Serif (headings): Cormorant Garamond
  Sans  (body/UI):  Nunito Sans
*/
:root {
  --fs-xs:      11px;
  --fs-sm:      13px;
  --fs-base:    16px;
  --fs-md:      18px;
  --fs-lg:      22px;
  --fs-xl:      28px;
  --fs-2xl:     clamp(28px, 4vw, 48px);
  --fs-3xl:     clamp(36px, 5.5vw, 68px);
  --fs-display: clamp(44px, 7vw, 88px);

  --lh-tight:   1.05;
  --lh-snug:    1.2;
  --lh-normal:  1.5;
  --lh-relaxed: 1.7;

  --fw-regular: 400;
  --fw-medium:  600;
  --fw-bold:    700;
  --fw-black:   800;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', 'Butler', Georgia, serif;
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}
body, p, li, td, input, textarea, select, button {
  font-family: 'Nunito Sans', 'Avenir Next', Avenir, sans-serif;
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
}

/* Semantic type classes — use these instead of raw px values */
.t-display {
  font-size: var(--fs-display);
  font-weight: var(--fw-bold); line-height: 1.0; letter-spacing: -0.03em;
}
.t-h1 {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold); line-height: var(--lh-tight); letter-spacing: -0.025em;
}
.t-h2 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-medium); line-height: 1.1; letter-spacing: -0.02em;
}
.t-h3 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-medium); line-height: var(--lh-snug);
}
.t-h4 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium); line-height: var(--lh-snug);
}
.t-lead {
  font-size: var(--fs-md);
  font-weight: var(--fw-regular); line-height: var(--lh-relaxed); color: var(--text-on-dark-muted);
}
.t-body {
  font-size: var(--fs-base); line-height: var(--lh-relaxed);
}
.t-sm {
  font-size: var(--fs-sm); line-height: var(--lh-normal);
}
/* Alias for backwards compat */
.t-small { font-size: var(--fs-sm); line-height: var(--lh-normal); }
.t-label {
  font-family: 'Nunito Sans', sans-serif;
  font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: 0.14em; text-transform: uppercase;
}

/* ================================================================
   UTILITIES
   ================================================================ */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-cream { color: var(--cloud-white); }
.text-orange { color: var(--priority-orange); }
.text-lime { color: var(--lounge-lime); }
.text-muted { color: var(--text-on-dark-muted); }
.italic { font-style: italic; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Section spacing */
.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }
.section--lg { padding: 128px 0; }
.section--cream { background: var(--cloud-white); }
.section--white { background: #fff; }
.section--navy { background: var(--midnight-sky); }
.section--blue { background: var(--jetstream-blue); }
.section--green { background: var(--altitude-pine); }
.section--dark { background: #0a0820; }

/* Section labels */
.section-label {
  display: block; font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 14px;
  color: var(--priority-orange);
}
.section-label--light { color: rgba(255,255,255,0.5); }
.section-label--lime { color: var(--lounge-lime); }

/* ================================================================
   BUTTONS — Priority Orange is primary CTA per brand guidelines
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 32px; border-radius: 6px;
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--fs-md); font-weight: var(--fw-medium); letter-spacing: 0.01em;
  cursor: pointer; text-decoration: none; border: none;
  transition: all 0.22s ease; white-space: nowrap;
  position: relative; overflow: hidden;
}
/* Primary — Priority Orange (THE CTA colour per brand guide) */
.btn-primary {
  background: var(--priority-orange); color: #fff;
  border: 0.5px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 20px rgba(254,111,0,0.30);
}
.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(254,111,0,0.40);
}
/* Secondary — Navy outline */
.btn-secondary {
  background: transparent; color: var(--midnight-sky);
  border: 1.5px solid var(--midnight-sky);
}
.btn-secondary:hover {
  background: var(--midnight-sky); color: #fff;
  transform: translateY(-1px);
}
/* Ghost — for dark backgrounds */
.btn-ghost {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
}
/* Navy solid */
.btn-navy {
  background: var(--midnight-sky); color: #fff;
  border: 0.5px solid rgba(255,255,255,0.1);
}
.btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
}
/* Lime accent */
.btn-lime {
  background: var(--lounge-lime); color: var(--midnight-sky);
  font-weight: 700;
}
.btn-lime:hover {
  background: var(--lime-dark);
  transform: translateY(-1px);
}
/* Sizes */
.btn-sm { padding: 12px 22px; font-size: var(--fs-base); }
.btn-lg { padding: 20px 44px; font-size: var(--fs-md); }
.btn-full { width: 100%; justify-content: center; }

/* ================================================================
   PILL / BADGE LABELS
   ================================================================ */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 100px;
  font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: 0.1em; text-transform: uppercase;
  font-family: 'Nunito Sans', sans-serif;
}
.pill-orange { background: rgba(254,111,0,0.12); color: var(--priority-orange); border: 1px solid var(--border-orange); }
.pill-lime   { background: rgba(196,254,152,0.15); color: #2a6a00; border: 1px solid var(--border-lime); }
.pill-navy   { background: rgba(18,10,143,0.10); color: var(--midnight-sky); border: 1px solid rgba(18,10,143,0.2); }
.pill-white  { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.2); }
.pill-gold   { background: rgba(245,200,66,0.15); color: #a07800; border: 1px solid rgba(245,200,66,0.3); }
.pill-green  { background: rgba(20,61,32,0.10); color: var(--altitude-pine); border: 1px solid rgba(20,61,32,0.2); }

/* ================================================================
   FADE-UP ANIMATION
   ================================================================ */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
/* Fallback: if JS hasn't run within 1s, show all content */
@keyframes fadeInFallback { to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeInFallback 0.01s 1.5s forwards; }
.delay-1 { transition-delay: 0.10s; }
.delay-2 { transition-delay: 0.20s; }
.delay-3 { transition-delay: 0.30s; }
.delay-4 { transition-delay: 0.40s; }
.delay-5 { transition-delay: 0.50s; }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .marquee-track, .ticker-track { animation: none !important; }
}

/* ================================================================
   NAVIGATION
   ================================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0 24px;
  background: rgba(18,10,143,0.97);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border-dark);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
nav.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,0.35);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; height: 72px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo img { height: 40px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 0; list-style: none;
  flex: 1; justify-content: center;
}
.nav-links > li > a {
  font-family: 'Nunito Sans', sans-serif;
  font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-on-dark-muted);
  text-decoration: none; transition: color 0.2s;
  padding: 8px 9px; border-radius: 8px; display: block; white-space: nowrap;
}
.nav-links > li > a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-links > li > a.active { color: var(--priority-orange); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 13px; opacity: 0.65; vertical-align: middle; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: rgba(10,8,32,0.98); backdrop-filter: blur(20px);
  border: 1px solid var(--border-dark); border-radius: var(--radius);
  padding: 8px 8px 8px; min-width: 220px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: dropIn 0.18s ease;
  /* Invisible top padding so cursor can travel from link to menu without gap */
  padding-top: 16px;
  margin-top: -8px;
  z-index: 300;
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover { display: block; }
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 8px;
  font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-on-dark-muted);
  white-space: nowrap; text-decoration: none;
  transition: all 0.15s;
}
.nav-dropdown-menu a:hover { color: var(--priority-orange); background: rgba(255,255,255,0.05); }
.nav-dropdown-menu .menu-price {
  margin-left: auto; font-size: var(--fs-xs); font-weight: var(--fw-bold);
  color: var(--lounge-lime); opacity: 0.8;
}

/* menu-divider */
.menu-divider { height: 1px; background: var(--border-dark); margin: 4px 8px; list-style: none; }

/* Nav CTA */
.nav-cta { margin-left: 6px; flex-shrink: 0; }
/* Green "Book a Points Flight" tertiary nav button */
.nav-cta-tertiary {
  flex-shrink: 0;
  color: var(--midnight-sky);
  border: 1.5px solid var(--lounge-lime);
  background: var(--lounge-lime);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  font-family: 'Nunito Sans', sans-serif;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
}
.nav-cta-tertiary:hover {
  background: var(--lime-dark);
  border-color: var(--lime-dark);
  transform: translateY(-1px);
}
@media(max-width:1200px) { .nav-cta-tertiary { display: none; } }
.nav-cta-secondary {
  flex-shrink: 0;
  color: rgba(255,255,255,0.88);
  border: 1.5px solid rgba(255,255,255,0.38);
  background: transparent;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  font-family: 'Nunito Sans', sans-serif;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
}
.nav-cta-secondary:hover {
  border-color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: space-between;
  width: 26px; height: 18px; background: none; border: none; cursor: pointer;
  padding: 0; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 100%; height: 2px; background: #fff; border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s ease;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Mobile nav overlay ─────────────────────────────────────────────────── */
.mobile-nav-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 300;
  background: rgba(12,8,60,0.98);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: overlayIn 0.28s cubic-bezier(0.4,0,0.2,1);
}
.mobile-nav-overlay.open { display: flex; }
@keyframes overlayIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px; border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.mobile-nav-close {
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-size: 22px; cursor: pointer; padding: 8px; line-height: 1;
  min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; transition: color 0.2s, background 0.2s;
}
.mobile-nav-close:hover { color: #fff; background: rgba(255,255,255,0.1); }
.mobile-nav-body {
  flex: 1; padding: 8px 0;
  overflow-y: auto;
}
.mobile-nav-list {
  list-style: none; padding: 0; margin: 0;
}
.mobile-nav-list > li > a {
  display: block; padding: 16px 24px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: var(--fs-base); font-weight: var(--fw-semibold);
  color: rgba(255,255,255,0.85);
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s, padding-left 0.2s;
  min-height: 44px;
}
.mobile-nav-list > li > a:hover { color: var(--priority-orange); padding-left: 32px; }
/* Accordion groups */
.mobile-nav-group { border-bottom: 1px solid rgba(255,255,255,0.06); }
.mobile-nav-group-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 16px 24px;
  background: none; border: none; cursor: pointer;
  font-family: 'Nunito Sans', sans-serif;
  font-size: var(--fs-base); font-weight: var(--fw-semibold);
  color: rgba(255,255,255,0.85);
  text-align: left; min-height: 44px;
  transition: color 0.2s;
}
.mobile-nav-group-toggle:hover { color: #fff; }
.mobile-nav-group-toggle .toggle-arrow {
  font-size: 11px; opacity: 0.5; transition: transform 0.25s;
}
.mobile-nav-group-toggle[aria-expanded="true"] .toggle-arrow { transform: rotate(180deg); }
.mobile-nav-sub {
  display: none; list-style: none; padding: 0; margin: 0;
  background: rgba(255,255,255,0.03);
}
.mobile-nav-sub.open { display: block; }
.mobile-nav-sub li a {
  display: block; padding: 13px 24px 13px 36px;
  font-size: var(--fs-sm); font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.65);
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.2s; min-height: 44px;
}
.mobile-nav-sub li a:hover { color: var(--priority-orange); }
.mobile-nav-footer {
  padding: 20px 24px 32px; border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.mobile-nav-backdrop {
  display: none; position: fixed; inset: 0; z-index: 299;
  background: rgba(0,0,0,0.5);
}
.mobile-nav-backdrop.open { display: block; }

@media(max-width: 1100px) {
  .nav-cta-secondary { display: none; }
}
@media(max-width: 960px) {
  .nav-hamburger { display: flex; }
  .nav-links { display: none !important; }
  nav .nav-cta { display: none; }
  .nav-cta-secondary { display: none; }
  .nav-cta-tertiary { display: none !important; }
}

/* ── Back-to-top button ─────────────────────────────────────────────────── */
#back-to-top {
  position: fixed; bottom: 88px; right: 20px; z-index: 150;
  width: 44px; height: 44px;
  background: var(--midnight-sky); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { background: var(--priority-orange); border-color: var(--priority-orange); transform: translateY(-3px); }

/* ================================================================
   FLIGHT BOARD TICKER
   ================================================================ */
.flight-ticker {
  background: var(--midnight-sky);
  border-bottom: 1px solid rgba(196,254,152,0.12);
  padding: 11px 0; overflow: hidden;
}
/* ticker-inner is now just a scroll mask — no flex badge inside it */
.ticker-inner { display: block; overflow: hidden; width: 100%; }
.ticker-badge {
  /* Badge hidden from scroll row; shown as absolute overlay on desktop only */
  display: none;
}
@media (min-width: 768px) {
  .flight-ticker { position: relative; }
  .ticker-badge {
    display: inline-flex; align-items: center; gap: 5px;
    position: absolute; left: 24px; top: 50%; transform: translateY(-50%);
    z-index: 2;
    background: var(--priority-orange); color: #fff;
    font-size: var(--fs-xs); font-weight: var(--fw-black); letter-spacing: 0.1em; text-transform: uppercase;
    padding: 4px 12px; border-radius: 4px;
  }
  .ticker-inner { padding-left: 100px; }
}
.ticker-track {
  display: flex; align-items: center; gap: 48px;
  width: max-content; animation: marquee 200s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--fs-sm); color: rgba(255,255,255,0.75); white-space: nowrap; flex-shrink: 0;
  font-family: 'Nunito Sans', sans-serif;
}
.ticker-item .route { font-weight: 800; color: #fff; }
.ticker-item .saving { color: var(--lounge-lime); font-weight: 700; }
.ticker-item .pax { color: rgba(255,255,255,0.5); font-size: var(--fs-xs); }
.ticker-item .retail { color: rgba(255,255,255,0.4); font-size: var(--fs-xs); text-decoration: line-through; }
.ticker-item .cabin { color: rgba(255,255,255,0.5); font-size: var(--fs-xs); }
.ticker-item .dot { color: rgba(255,255,255,0.2); }

/* ================================================================
   MEDIA MARQUEE
   ================================================================ */
.media-bar {
  background: var(--midnight-sky);
  padding: 24px 0; overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.media-bar-label {
  text-align: center; font-size: var(--fs-xs); font-weight: var(--fw-bold);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 18px;
  font-family: 'Nunito Sans', sans-serif;
}
.marquee-wrap { overflow: hidden; }
.marquee-track {
  display: flex; align-items: center; gap: 56px;
  width: max-content; animation: marquee 120s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.media-logo {
  opacity: 0.45; transition: opacity 0.2s; flex-shrink: 0;
  font-family: 'Nunito Sans', sans-serif;
  font-size: var(--fs-base); font-weight: var(--fw-black); color: #fff; letter-spacing: 0.05em;
  text-transform: uppercase; white-space: nowrap;
}
.media-logo:hover { opacity: 0.85; }

/* ================================================================
   STAT ROW
   ================================================================ */
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--midnight-sky);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
@media(max-width: 640px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat-item {
  padding: 36px 24px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.stat-item:last-child { border-right: none; }
@media(max-width: 640px) { .stat-item:nth-child(2) { border-right: none; } }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4.5vw, 56px); font-weight: var(--fw-bold); color: var(--priority-orange);
  line-height: 1; margin-bottom: 6px;
}
.stat-label { font-size: var(--fs-sm); color: var(--text-on-dark-muted); line-height: var(--lh-snug); }

/* ================================================================
   REVIEW / TESTIMONIAL CARDS
   ================================================================ */
.review-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  border: 1px solid rgba(18,10,143,0.07);
  box-shadow: 0 2px 16px rgba(18,10,143,0.05);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.review-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(18,10,143,0.12); }
.review-stars { color: var(--priority-orange); font-size: var(--fs-base); letter-spacing: 2px; }
.review-text { font-size: var(--fs-base); line-height: var(--lh-relaxed); color: #2a2a3a; font-style: italic; flex: 1; }
.review-author { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(18,10,143,0.06); }
.review-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--midnight-sky); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-sm); font-weight: var(--fw-black); font-family: 'Cormorant Garamond', serif;
}
.review-name { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--midnight-sky); }
.review-meta { font-size: var(--fs-xs); color: #888; margin-top: 2px; }
.review-saving {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 100px; margin-top: 8px;
  background: rgba(196,254,152,0.2); border: 1px solid var(--border-lime);
  font-size: var(--fs-xs); font-weight: var(--fw-bold); color: #2a6a00;
}

/* ================================================================
   PAGE HERO (inner pages)
   ================================================================ */
.page-hero {
  background: var(--midnight-sky);
  background-image:
    radial-gradient(ellipse 70% 60% at 65% -10%, var(--jetstream-blue) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 95% 90%, rgba(196,254,152,0.06) 0%, transparent 60%);
  padding: 148px 24px 88px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.022'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-inner { max-width: 1120px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero-title {
  font-size: clamp(40px, 6vw, 72px); font-weight: var(--fw-bold); line-height: 1.04;
  letter-spacing: -0.03em; color: #fff; margin-bottom: 20px;
}
.page-hero-title em { font-style: italic; color: var(--lounge-lime); }
.page-hero-sub {
  font-size: var(--fs-md); line-height: var(--lh-relaxed); color: var(--text-on-dark-muted);
  max-width: 580px; margin-bottom: 36px;
}
.page-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
/* Cabin photo hero override */
.page-hero--cabin {
  background-image: url('https://iflyflat.com.au/wp-content/uploads/2025/12/hero-image-4-converted.webp');
  background-size: cover;
  background-position: center 40%;
}
.page-hero--cabin::before {
  background: linear-gradient(to bottom, rgba(10,8,32,0.72) 0%, rgba(10,8,32,0.82) 60%, rgba(10,8,32,0.95) 100%) !important;
}

/* ================================================================
   SCARCITY / CTA BANNER
   ================================================================ */
.cta-banner {
  background: var(--midnight-sky);
  background-image: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(2,47,167,0.5) 0%, transparent 65%);
  padding: 96px 24px; text-align: center;
}
.cta-banner h2 {
  font-size: clamp(30px, 4.5vw, 52px); font-weight: var(--fw-bold); color: #fff;
  letter-spacing: -0.025em; margin-bottom: 16px;
}
.cta-banner h2 em { font-style: italic; color: var(--lounge-lime); }
.cta-banner p { font-size: var(--fs-md); color: var(--text-on-dark-muted); max-width: 540px; margin: 0 auto 32px; line-height: var(--lh-relaxed); }
.scarcity-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(254,111,0,0.15); border: 1px solid var(--border-orange);
  color: var(--priority-orange); font-size: 13px; font-weight: 700;
  padding: 8px 18px; border-radius: 100px; margin-bottom: 28px;
  font-family: 'Nunito Sans', sans-serif;
}

/* ================================================================
   ACCORDION / FAQ
   ================================================================ */
.accordion-item {
  border-bottom: 1px solid rgba(18,10,143,0.10);
}
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; background: none; border: none; cursor: pointer;
  font-family: 'Nunito Sans', sans-serif; font-size: var(--fs-base); font-weight: var(--fw-bold);
  color: var(--midnight-sky); text-align: left; gap: 16px;
}
.accordion-trigger .acc-icon {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(18,10,143,0.08); display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-base); color: var(--midnight-sky); transition: transform 0.3s, background 0.2s;
}
.accordion-trigger[aria-expanded="true"] .acc-icon {
  transform: rotate(45deg); background: var(--priority-orange); color: #fff;
}
.accordion-body {
  overflow: hidden; max-height: 0;
  transition: max-height 0.35s ease;
}
.accordion-body-inner {
  padding: 0 0 20px;
  font-size: var(--fs-base); line-height: var(--lh-relaxed); color: #444;
}

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  background: #070518;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 72px 24px 36px; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 56px;
}
@media(max-width: 768px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media(max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--fs-xl); font-weight: var(--fw-bold); color: #fff; margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.footer-tagline {
  font-size: var(--fs-sm); color: rgba(255,255,255,0.45); line-height: var(--lh-relaxed);
  max-width: 280px; margin-bottom: 22px;
}
.footer-trust { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.footer-trust-badge {
  font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 4px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.45); font-family: 'Nunito Sans', sans-serif;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45); text-decoration: none;
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--priority-orange); color: #fff; border-color: var(--priority-orange); }

.footer-col-title {
  font-size: var(--fs-xs); font-weight: var(--fw-black); letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 18px;
  font-family: 'Nunito Sans', sans-serif;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a {
  font-size: var(--fs-sm); color: rgba(255,255,255,0.5); text-decoration: none;
  transition: color 0.2s; font-family: 'Nunito Sans', sans-serif;
}
.footer-links a:hover { color: var(--priority-orange); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: var(--fs-xs); color: rgba(255,255,255,0.25);
  font-family: 'Nunito Sans', sans-serif;
}
.footer-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; }
.footer-bottom a:hover { color: var(--priority-orange); }

/* ================================================================
   RESPONSIVE HELPERS
   ================================================================ */
@media(max-width: 768px) {
  .hide-mobile { display: none !important; }
  .section { padding: 64px 0; }
  .section--lg { padding: 80px 0; }
  .btn { padding: 14px 26px; font-size: var(--fs-base); }
  .btn-lg { padding: 16px 32px; font-size: var(--fs-md); }
}
@media(min-width: 769px) {
  .hide-desktop { display: none !important; }
}
@media(max-width: 480px) {
  .container { padding: 0 16px; }
  .page-hero { padding: 120px 16px 64px; }
}

/* ================================================================
   PERSISTENT BOTTOM CTA BAR (desktop only, hide-on-scroll-down)
   ================================================================ */
.cta-bar {
  display: none; /* hidden on mobile by default */
}

@media(min-width: 769px) {
  .cta-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10001; /* above cookie banner (9999) and nav (1000) */
    background: var(--midnight-sky);
    border-top: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.30);
    padding: 10px 24px;
    height: 62px;
    transform: translateY(0);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }

  /* Hidden state — slides down out of view */
  .cta-bar--hidden {
    transform: translateY(100%);
  }

  /* Suppressed on specific pages (e.g. book.html) */
  .cta-bar--suppress {
    display: none !important;
  }

  /* Label text before the buttons */
  .cta-bar__label {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.40);
    white-space: nowrap;
    margin-right: 4px;
  }

  /* Divider between label and buttons */
  .cta-bar__divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.12);
    margin: 0 8px;
    flex-shrink: 0;
  }

  /* Button overrides inside the bar */
  .cta-bar .btn {
    padding: 10px 22px;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .cta-bar .btn-ghost {
    border-color: rgba(255,255,255,0.30);
    color: rgba(255,255,255,0.80);
    font-size: 14px;
  }

  .cta-bar .btn-ghost:hover {
    border-color: rgba(255,255,255,0.70);
    color: #fff;
    background: rgba(255,255,255,0.06);
  }

  .cta-bar .btn-primary {
    font-size: 14px;
  }

  /* Add bottom padding to main so footer isn't hidden behind bar */
  main {
    padding-bottom: 62px;
  }
}

/* ── Coming Soon nav dropdown ──────────────────────────────────── */
.nav-coming-soon-label {
  color: rgba(255,255,255,0.45) !important;
  cursor: default !important;
  pointer-events: none !important;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: var(--fw-medium);
}
.nav-coming-soon-label::after {
  content: ' ▾';
  font-size: 9px;
  opacity: 0.5;
}
/* Grey background for Coming Soon dropdown — overrides the dark global style */
.nav-coming-soon-dropdown .nav-dropdown-menu {
  background: rgba(90,90,115,0.95) !important;
  backdrop-filter: blur(16px);
  border-color: rgba(255,255,255,0.15) !important;
}
.nav-coming-soon-item {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.45) !important;
  cursor: default !important;
  pointer-events: none !important;
  font-style: italic;
  white-space: nowrap;
}
.nav-coming-soon-item::after {
  content: ' — soon';
  font-size: 11px;
  opacity: 0.6;
}
/* Mobile coming soon group */
.mobile-coming-soon-toggle {
  color: rgba(255,255,255,0.45) !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  opacity: 0.7;
}
.mobile-coming-soon-toggle .toggle-arrow {
  opacity: 0.6;
}
.mobile-nav-coming-soon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 16px 36px;
  color: rgba(255,255,255,0.5) !important;
  cursor: default !important;
  pointer-events: none !important;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  min-height: 52px;
  letter-spacing: 0.01em;
}
.mobile-nav-coming-soon-item::after {
  content: 'Soon';
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  padding: 3px 8px;
  border-radius: 100px;
  flex-shrink: 0;
}

/* ── Mobile hidden sections ─────────────────────────────────────── */
@media(max-width:768px){
  .mobile-hidden { display:none !important; }
}

/* Coming-soon nav badge */
.nav-badge-soon {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--priority-orange);
  background: rgba(255,140,0,0.12);
  border: 1px solid rgba(255,140,0,0.3);
  border-radius: 3px;
  padding: 1px 5px;
  margin-left: 5px;
  vertical-align: middle;
  line-height: 1.6;
}

/* ===== MOBILE FIXES: Neuroscience cards + Simon Bowen model ===== */
@media (max-width: 640px) {
  .neuro-cards-grid {
    grid-template-columns: 1fr !important;
    overflow: hidden !important;
  }
  .bowen-model-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .bowen-model-grid > div {
    padding: 0 8px !important;
  }
  .bowen-connector-line {
    display: none !important;
  }
  /* Simon Bowen container: no horizontal overflow */
  .bowen-model-container {
    padding: 32px 20px !important;
    overflow: hidden !important;
  }
}
