/* ==========================================================================
   Flightnab landing page
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy: #0f2f57;
  --navy-soft: #4a5b73;
  --teal: #0b9aa5;
  --teal-dark: #087f89;
  --teal-tint: #e3f4f5;
  --panel: #f1f9fa;
  --orange: #ff7a2b;
  --orange-dark: #e9651a;
  --white: #fff;
  --line: #dbe7ea;

  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;

  --fs-h1: clamp(2.6rem, 1.6rem + 3.8vw, 4.4rem);
  --fs-h2: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
  --fs-sub: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 1.25rem;
  --header-h: 4.5rem;

  --fade-x: linear-gradient(90deg,
    rgba(0,0,0,0) 0%, rgba(0,0,0,.02) 6%, rgba(0,0,0,.07) 12%, rgba(0,0,0,.16) 18%,
    rgba(0,0,0,.30) 25%, rgba(0,0,0,.48) 32%, rgba(0,0,0,.67) 40%, rgba(0,0,0,.83) 48%,
    rgba(0,0,0,.94) 57%, rgba(0,0,0,.99) 66%, #000 76%);
  --fade-y-in: linear-gradient(180deg,
    rgba(0,0,0,0) 0%, rgba(0,0,0,.04) 8%, rgba(0,0,0,.14) 16%, rgba(0,0,0,.32) 25%,
    rgba(0,0,0,.54) 34%, rgba(0,0,0,.76) 44%, rgba(0,0,0,.92) 56%, #000 70%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2 * var(--gutter), 75rem); margin-inline: auto; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: .5rem;
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow {
  font-size: .75rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: 1rem;
}
.script { font-family: var(--font-script); font-weight: 600; color: var(--navy); line-height: 1.1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: .9rem; line-height: 1;
  padding: .85rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 16px -8px rgba(11,154,165,.7); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-cta {
  background: var(--orange); color: #fff; font-size: 1.05rem; padding: 1.15rem 1.75rem;
  box-shadow: 0 12px 24px -12px rgba(255,122,43,.8);
}
.btn-cta:hover { background: var(--orange-dark); }
.btn-cta .icon-arrow { margin-left: .25rem; }

.text-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--teal-dark); }
.text-link .icon { transition: transform .2s; }
.text-link:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,47,87,.06);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: block; flex: none; }
.brand img { width: 14rem; margin-inline: -1.1rem; }

.primary-nav { flex: 1; display: flex; justify-content: center; }
.primary-nav ul { display: flex; gap: 2.75rem; }
.primary-nav a, .footer-nav a { font-size: .8rem; font-weight: 500; position: relative; padding-block: .5rem; }
.primary-nav a::after, .footer-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--teal); transform: scaleX(0); transition: transform .2s;
}
.primary-nav a:hover::after, .primary-nav a.is-active::after,
.footer-nav a:hover::after, .footer-nav a.is-active::after { transform: scaleX(1); }
.primary-nav a.is-active, .footer-nav a.is-active { font-weight: 700; }

.header-actions { display: flex; gap: .75rem; flex: none; }
.header-actions .btn { font-size: .8rem; padding: .7rem 1.25rem; }
.nav-actions-mobile { display: none; }
.call-fab {
  display: none; margin-left: auto; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  align-items: center; justify-content: center; background: var(--teal); color: #fff;
  box-shadow: 0 6px 16px -8px rgba(11,154,165,.8);
}

.nav-toggle {
  display: none; margin-left: auto; width: 2.75rem; height: 2.75rem; border: 0; background: transparent;
  cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { width: 1.4rem; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f7fbfc 100%);
}
.hero-inner { min-height: clamp(28rem, 44vw, 36rem); display: flex; align-items: center; }
.hero-copy { position: relative; z-index: 2; max-width: 33rem; padding-block: 3.5rem; }
.hero h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.hero-sub { font-family: var(--font-head); font-size: var(--fs-sub); font-weight: 600; letter-spacing: -0.02em; margin-top: 1.1rem; }
.hero-text { color: var(--navy-soft); margin-top: 1.5rem; max-width: 28rem; }
.hero .btn-cta { margin-top: 2rem; }
.hero-note { margin-top: .85rem; font-size: .78rem; line-height: 1.45; color: var(--navy-soft); max-width: 24rem; }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.4rem; margin-top: 1.5rem; font-size: .8rem; color: var(--navy-soft); }
.hero-trust li { display: flex; align-items: center; gap: .5rem; }
.hero-trust .icon { color: var(--teal-dark); width: 1.15rem; height: 1.15rem; }

.hero-media {
  position: absolute; z-index: 1; top: 0; bottom: 0; right: 0; width: 56%;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 100% 45%;
  /* eased fade: many stops approximate a smooth curve instead of a linear ramp */
  -webkit-mask-image: var(--fade-x);
          mask-image: var(--fade-x);
}
.script-hero {
  position: absolute; top: 14%; left: 20%; font-size: clamp(1.3rem, .8rem + 1.5vw, 2rem);
  transform: rotate(-9deg); color: var(--navy); text-shadow: 0 1px 8px rgba(255,255,255,.55);
}
.script-hero::before {
  content: ""; position: absolute; left: -2.2rem; top: -1.6rem; width: 2.2rem; height: 2.2rem;
  background:
    linear-gradient(var(--teal), var(--teal)) 0 100% / 2px 1.1rem no-repeat,
    linear-gradient(var(--teal), var(--teal)) 40% 100% / 2px .9rem no-repeat;
  transform: rotate(-12deg);
}

/* ---------- Feature / trust strips ---------- */
.features { padding-block: 2.25rem; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature { display: flex; align-items: center; gap: .9rem; padding-inline: 1.25rem; position: relative; }
.feature:first-child { padding-left: 0; }
.feature + .feature::before {
  content: ""; position: absolute; left: 0; top: 50%; height: 4.2rem; width: 1px; background: var(--line); transform: translateY(-50%);
}
.feature h2 { font-size: .9rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.feature p { font-size: .8rem; color: var(--navy-soft); line-height: 1.45; margin-top: .2rem; }

.icon-circle {
  flex: none; display: grid; place-items: center; width: 3.75rem; height: 3.75rem; border-radius: 50%;
  background: var(--teal-tint); color: var(--navy);
}
.icon-circle .icon { width: 1.5rem; height: 1.5rem; }
.icon-circle-lg { width: 5.25rem; height: 5.25rem; }
.icon-circle-lg .icon { width: 2rem; height: 2rem; color: var(--teal-dark); }

/* ---------- How it works ---------- */
.how { padding-block: 1.5rem 3rem; }
.how-panel {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 2rem;
  background: var(--panel); border-radius: var(--radius); padding: 2.5rem clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: 0 0 0 1px rgba(11,154,165,.05);
}
.how-intro h2 { font-size: var(--fs-h2); font-weight: 800; }
.how-intro p:not(.eyebrow) { color: var(--navy-soft); margin-top: 1.1rem; max-width: 18rem; }
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: .5rem; }
.step {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem;
  padding: .5rem .5rem 0;
}
.step-tile {
  position: relative; display: grid; place-items: center; width: 4.75rem; height: 4.75rem; margin-bottom: .6rem;
  border-radius: 1.35rem; color: #fff;
  background: linear-gradient(145deg, #19b5bf 0%, var(--teal-dark) 100%);
  box-shadow: 0 12px 22px -12px rgba(11,154,165,.8), inset 0 1px 0 rgba(255,255,255,.35);
}
.step-tile .icon { width: 2.1rem; height: 2.1rem; stroke-width: 1.6; }
.step-num {
  position: absolute; top: -.55rem; right: -.55rem; display: grid; place-items: center;
  width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--navy); color: #fff;
  border: 2px solid #fff; font: 700 .78rem var(--font-head);
}
.step h3 { font-size: .98rem; font-weight: 700; letter-spacing: -0.01em; }
.step p { font-size: .82rem; color: var(--navy-soft); line-height: 1.5; max-width: 12.5rem; }
.step-link { display: grid; place-items: center; }
.step-link .icon {
  width: 2rem; height: 2rem; padding: .4rem; border-radius: 50%; background: var(--teal-tint); color: var(--teal-dark);
}

/* ---------- Services ---------- */
.services { padding-block: 2rem 3.5rem; }
.section-head { max-width: 40rem; margin-bottom: 2.25rem; }
.section-head h2 { font-size: var(--fs-h2); font-weight: 800; }
.section-head h2 + p { margin-top: .75rem; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--teal-dark); }
.section-head p:last-child { color: var(--navy-soft); margin-top: .9rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service {
  display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1.6rem 1.5rem 1.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service:hover { transform: translateY(-3px); border-color: rgba(11,154,165,.35); box-shadow: 0 18px 34px -24px rgba(15,47,87,.45); }
.service .icon-circle { margin-bottom: .4rem; }
.service h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.service p { font-size: .9rem; color: var(--navy-soft); line-height: 1.55; flex: 1; }
.btn-soft { margin-top: .6rem; background: var(--teal-tint); color: var(--teal-dark); font-size: .85rem; padding: .75rem 1.15rem; }
.btn-soft:hover { background: var(--teal); color: #fff; }

/* ---------- Destinations ---------- */
.destinations { padding-block: 1.5rem 3rem; }
.destinations-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.dest-media { position: relative; border-radius: .9rem; overflow: hidden; aspect-ratio: 3 / 1.35; box-shadow: 0 20px 40px -24px rgba(15,47,87,.45); }
.dest-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.script-dest { position: absolute; top: 12%; left: 6%; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); transform: rotate(-9deg); color: var(--navy); text-shadow: 0 1px 6px rgba(255,255,255,.5); }
.dest-copy h2 { font-size: var(--fs-h2); font-weight: 800; }
.dest-copy p:not(.eyebrow) { color: var(--navy-soft); margin-block: 1.1rem 1.4rem; }

/* ---------- FAQ ---------- */
.faq { padding-block: 3rem 4.5rem; background: linear-gradient(180deg, #fff, var(--panel)); }
.faq-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-intro h2 { font-size: var(--fs-h2); font-weight: 800; }
.faq-intro p:not(.eyebrow) { color: var(--navy-soft); margin-block: 1.1rem 1.6rem; }
.faq-list { display: grid; gap: .75rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 1rem; transition: box-shadow .2s, border-color .2s; }
.faq-item[open] { border-color: rgba(11,154,165,.4); box-shadow: 0 12px 28px -20px rgba(15,47,87,.4); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none;
  padding: 1.1rem 1.4rem; font-family: var(--font-head); font-weight: 600; font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--teal-dark); transition: transform .25s; }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item p { padding: 0 1.4rem 1.25rem; color: var(--navy-soft); max-width: 40rem; }

.contact { padding-block: 2.5rem 4.5rem; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; max-width: 50rem; }
.contact-grid .service h2 { font-size: 1.2rem; font-weight: 700; }
.contact-grid .service .btn { margin-top: .6rem; }
.inline-link { color: var(--teal-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: #f5fafb; padding-block: 2rem 1.75rem; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.footer-brand .brand img { width: 12.5rem; margin: -.4rem -1rem -.2rem; }
.footer-brand p { font-size: .8rem; color: var(--navy-soft); margin-top: .1rem; }
.footer-nav ul { display: flex; gap: 2.5rem; }
.disclaimer { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); text-align: center; font-size: .72rem; color: var(--navy-soft); }

/* ---------- Inner pages (FAQ, Privacy, Terms) ---------- */
.page-hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
  background: linear-gradient(180deg, var(--panel) 0%, #fff 100%);
  border-bottom: 1px solid rgba(15,47,87,.05);
}
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); font-weight: 800; }
.page-hero p:not(.eyebrow) { color: var(--navy-soft); margin-top: 1rem; max-width: 38rem; }
.page-hero .meta { font-size: .8rem; margin-top: .75rem; }

.legal { padding-block: 2.5rem 4.5rem; }
.legal-body { max-width: 46rem; }
.legal-body h2 { font-size: 1.3rem; font-weight: 700; margin: 2.25rem 0 .6rem; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--navy-soft); }
.legal-body p + p { margin-top: .85rem; }
.legal-body ul { list-style: disc; padding-left: 1.25rem; margin-top: .75rem; display: grid; gap: .35rem; }
.legal-body a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 2px; }

.faq-page { padding-block: 2.5rem 4.5rem; }
.faq-page .faq-list { max-width: 50rem; }
.cta-band {
  margin-top: 3rem; max-width: 50rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.75rem 2rem; border-radius: var(--radius); background: var(--panel); border: 1px solid rgba(11,154,165,.14);
}
.cta-band h2 { font-size: 1.3rem; font-weight: 800; }
.cta-band p { color: var(--navy-soft); margin-top: .25rem; font-size: .9rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .primary-nav ul { gap: 1.75rem; }
  .header-inner { gap: 1.25rem; }
  .how-panel { grid-template-columns: 1fr; gap: 1.75rem; }
  .how-intro p:not(.eyebrow) { max-width: 30rem; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 4rem; }

  /* mobile nav */
  .nav-toggle { display: flex; margin-left: 0; }
  .call-fab { display: inline-flex; }
  .header-inner { gap: .5rem; }
  .header-actions:not(.footer-actions) { display: none; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; justify-content: flex-start;
    background: #fff; padding: .5rem var(--gutter) 1.5rem; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(15,47,87,.3);
    visibility: hidden; opacity: 0; transform: translateY(-.5rem); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .primary-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav li a { display: block; padding: 1rem 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .primary-nav a::after { display: none; }
  .nav-actions-mobile { display: flex; margin-top: 1.25rem; }
  .nav-actions-mobile .btn { flex: 1; padding-block: 1rem; }

  /* hero: copy first, image below fading in from the top */
  .hero-inner { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-copy { max-width: none; padding-block: 2rem 1rem; }
  .hero-media { position: relative; width: auto; height: clamp(15rem, 52vw, 24rem); margin-inline: calc(-1 * var(--gutter)); }
  .hero-media img {
    object-position: 100% 45%;
    -webkit-mask-image: var(--fade-y-in); mask-image: var(--fade-y-in);
  }
  .script-hero { left: 12%; top: 22%; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.75rem; }
  .feature:nth-child(odd) { padding-left: 0; }
  .feature:nth-child(3)::before { display: none; }

  /* how it works: stacked cards joined by a down arrow */
  .how-panel { padding: 1.75rem 1.1rem; }
  .steps { grid-template-columns: 1fr; gap: .25rem; }
  .step {
    display: grid; grid-template-columns: auto 1fr; column-gap: 1.1rem; row-gap: .15rem; align-items: center;
    text-align: left; padding: .6rem 0;
  }
  .step-tile { grid-row: 1 / span 2; margin-bottom: 0; width: 4rem; height: 4rem; border-radius: 1.1rem; }
  .step-tile .icon { width: 1.8rem; height: 1.8rem; }
  .step h3 { align-self: end; }
  .step p { align-self: start; max-width: none; }
  .step-link .icon { transform: rotate(90deg); width: 1.8rem; height: 1.8rem; }

  .destinations-inner, .faq-inner { grid-template-columns: 1fr; }
  .dest-media { aspect-ratio: 16 / 10; }
  .footer-row { flex-direction: column; text-align: center; gap: 1.25rem; }
  .footer-actions { order: -1; }
  .footer-nav ul { gap: 1.25rem 1.75rem; flex-wrap: wrap; justify-content: center; }
  .footer-brand .brand img { margin-inline: auto; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  :root { --gutter: 1.25rem; }
  .feature-grid { grid-template-columns: 1fr; row-gap: 1.25rem; }
  .feature { padding-inline: 0; }
  .feature + .feature::before { display: none; }
  .features { padding-block: 1.5rem; }
  .btn-cta { width: 100%; font-size: .95rem; padding-inline: 1rem; }
  .hero-note { max-width: none; }
  .hero-trust { gap: .6rem 1.1rem; }
  .brand img { width: 11.5rem; margin-inline: -.9rem; }
  .footer-actions, .footer-actions .btn { width: 100%; }
  .how, .destinations { padding-bottom: 2rem; }
  .service-grid, .contact-grid { grid-template-columns: 1fr; gap: 1rem; }
  .service { padding: 1.35rem 1.25rem; }
  .service .btn { width: 100%; }
  .section-head { margin-bottom: 1.5rem; }
  .icon-circle { width: 3.25rem; height: 3.25rem; }
  .faq-item summary { padding: 1rem 1.1rem; font-size: .95rem; }
  .faq-item p { padding-inline: 1.1rem; }
  .cta-band { padding: 1.4rem 1.25rem; }
  .cta-band .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
