/* =========================================================
   BANANA AIRWAYS — one-page promo (no scroll)
   Real official art hero + real gameplay "postcards".
   Type: Bricolage Grotesque (claim) · Poppins (brand fallback)
         Space Grotesk (UI) · DM Mono (flight data)
   ========================================================= */

:root{
  --navy:#1e3d58;       /* headings / ink (matches logo) */
  --navy-2:#15304a;     /* search button */
  --gold:#f2b81d;       /* accents */
  --gold-2:#ffd046;
  --ink:#213b52;
  --go:#2fc46b;
  --scarf:#e0463c;

  /* one shared left margin so logo, headline, booking + gallery
     all hang off the same grid line */
  --edge:clamp(20px,5vw,56px);

  /* spacing scale (used deliberately, not ad-hoc) */
  --s1:6px; --s2:10px; --s3:16px; --s4:22px; --s5:32px; --s6:46px;

  /* corner radii — restrained, not everything-round */
  --r-sm:8px; --r-md:12px; --r-lg:14px; --r-pill:999px;

  /* two intentional elevation levels + one hero level */
  --e1:0 1px 3px rgba(20,50,90,.16);
  --e2:0 6px 18px rgba(20,50,90,.18);
  --e3:0 14px 34px rgba(20,50,90,.24);
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:"Space Grotesk",system-ui,-apple-system,sans-serif;
  color:var(--ink);
  background:#bcdcef url("assets/sky.jpg") center 32%/cover no-repeat fixed;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow:hidden;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.mono{font-family:"DM Mono","SFMono-Regular",ui-monospace,monospace}

/* ================= STAGE ================= */
.stage{position:relative;width:100%;height:100svh;min-height:600px;overflow:hidden;isolation:isolate}
.stage__sky{
  position:fixed;inset:0;z-index:0;
  background:url("assets/sky.jpg") center 32%/cover no-repeat;
}
/* Directional scrim — NOT a floating fog.
   1) a soft light wash on the left, seating the navy headline, fading
      out before it reaches the bright plane;
   2) a quiet navy ground at the very bottom, seating the postcards. */
.stage__scrim{
  position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    linear-gradient(90deg,
      rgba(240,247,251,.70) 0%,
      rgba(240,247,251,.46) 22%,
      rgba(240,247,251,.12) 42%,
      rgba(240,247,251,0)   54%),
    linear-gradient(0deg,
      rgba(18,42,66,.30) 0%,
      rgba(18,42,66,.06) 16%,
      rgba(18,42,66,0)   28%);
}

/* ================= TOP BAR ================= */
.topbar{
  position:absolute;top:0;left:0;right:0;z-index:8;
  display:flex;align-items:center;justify-content:space-between;gap:var(--s4);
  padding:var(--s4) var(--edge);
}
.brand{display:inline-flex}
.brand img{
  height:clamp(54px,6.6vw,82px);width:auto;
  /* one quiet shadow to lift off the sky — no white halo */
  filter:drop-shadow(0 2px 5px rgba(18,40,72,.30));
}
.nav{display:flex;align-items:center;gap:var(--s2);flex-wrap:wrap;justify-content:flex-end}
.pill{
  display:inline-flex;align-items:center;gap:6px;
  background:#fff;color:var(--navy);
  font-weight:600;font-size:14.5px;letter-spacing:.1px;
  padding:10px 17px;border-radius:var(--r-pill);
  box-shadow:var(--e1);
  border:1px solid rgba(20,50,90,.08);
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.pill:hover{transform:translateY(-1px);box-shadow:var(--e2)}
.pill:focus-visible{outline:3px solid var(--navy);outline-offset:2px}
.pill__star{color:var(--scarf);font-size:12px;line-height:1}
.pill--go{background:var(--gold);color:var(--navy-2);border-color:rgba(150,100,10,.28);box-shadow:0 2px 8px rgba(190,140,20,.34)}
.pill--go:hover{background:var(--gold-2);box-shadow:0 6px 16px rgba(190,140,20,.40)}
/* parked pills ("coming soon") */
.pill--soon{cursor:default;opacity:.7}
.pill--soon:hover{transform:none;box-shadow:var(--e1)}
.pill__soon{font-style:normal;font-family:"DM Mono",monospace;font-size:9px;letter-spacing:.6px;
  text-transform:uppercase;background:rgba(20,45,75,.10);color:#5a6b7d;padding:2px 6px;border-radius:5px;margin-left:3px}
.pill--go.pill--soon{opacity:.9}
.pill--go.pill--soon .pill__soon{background:rgba(120,80,0,.16);color:#7a5b12}

/* ================= HERO COPY ================= */
.hero{
  position:absolute;z-index:5;
  left:var(--edge);
  top:clamp(104px,15.5vh,156px);
  width:min(548px,52vw);
}
.eyebrow{
  display:flex;align-items:center;gap:9px;
  font-family:"DM Mono",monospace;font-size:12px;letter-spacing:1.6px;
  color:var(--navy);margin-bottom:var(--s3);
  text-shadow:0 1px 2px rgba(255,255,255,.55);
}
.beacon{width:8px;height:8px;border-radius:50%;background:var(--go);flex:none;
  box-shadow:0 0 0 0 rgba(47,196,107,.6);animation:beacon 2.2s ease-out infinite}
@keyframes beacon{0%{box-shadow:0 0 0 0 rgba(47,196,107,.5)}70%{box-shadow:0 0 0 8px rgba(47,196,107,0)}100%{box-shadow:0 0 0 0 rgba(47,196,107,0)}}

.claim{
  font-family:"Bricolage Grotesque",sans-serif;font-weight:800;
  font-size:clamp(44px,6.6vw,88px);line-height:.9;letter-spacing:-.025em;
  color:var(--navy);
  text-shadow:0 1px 1px rgba(255,255,255,.35);
}
.claim em{font-style:normal;color:var(--gold);
  /* seat the gold on the bright sky with a single crisp edge — no glow */
  text-shadow:0 1px 1px rgba(90,60,0,.45),0 2px 3px rgba(90,60,0,.28)}
.tagline{
  margin-top:var(--s4);max-width:45ch;
  font-size:clamp(14.5px,1.4vw,16.5px);line-height:1.55;font-weight:500;
  color:var(--ink);text-shadow:0 1px 2px rgba(255,255,255,.55);
}

/* ---- booking bar ---- */
.booking{
  margin-top:var(--s5);display:flex;align-items:stretch;gap:0;
  background:#fff;border-radius:var(--r-lg);padding:7px 7px 7px 4px;
  box-shadow:var(--e3);
  border:1px solid rgba(20,50,90,.06);
  max-width:560px;
}
.field{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:2px;
  padding:8px 18px;cursor:text;border-right:1px solid #ece7db}
.field__k{font-family:"DM Mono",monospace;font-size:10.5px;letter-spacing:1.4px;color:#a1957e}
.field input{border:none;outline:none;background:transparent;width:100%;
  font-family:inherit;font-size:15px;font-weight:600;color:var(--navy);cursor:text;text-overflow:ellipsis}
.field input:focus-visible{outline:none}
.field--to:focus-within{border-radius:var(--r-md)}
.search{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;margin-left:7px;padding:0 22px;border-radius:var(--r-md);
  background:var(--navy-2);color:#fff;font-weight:600;font-size:15px;
  font-family:inherit;letter-spacing:.1px;white-space:nowrap;border:none;cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14);
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
}

/* ---- destination search dropdown ---- */
.field--to{position:relative}
.to-input::placeholder{color:#b4ac9a;font-weight:500}
.dest{
  position:absolute;top:calc(100% + 12px);left:-4px;
  width:min(336px,86vw);max-height:min(320px,50vh);overflow-y:auto;
  background:#fff;border-radius:var(--r-md);padding:6px;list-style:none;z-index:30;
  border:1px solid rgba(20,50,90,.08);
  box-shadow:var(--e3);
}
.dest__item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:9px;cursor:pointer}
.dest__item:hover,.dest__item.active{background:#eef3f8}
.dest__txt{display:flex;flex-direction:column;gap:1px;min-width:0}
.dest__name{font-weight:600;font-size:14.5px;color:var(--navy)}
.dest__sub{font-size:11px;color:#8a93a0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dest__go{margin-left:auto;color:#b7c0cd;font-weight:700}
.dest__item:hover .dest__go,.dest__item.active .dest__go{color:var(--navy)}
.dest__item.is-soon{cursor:default;opacity:.6}
.dest__item.is-soon:hover{background:transparent}
.dest__tag{margin-left:auto;font-family:"DM Mono",monospace;font-size:10px;letter-spacing:.6px;
  background:#efe6c4;color:#7a5b12;padding:3px 7px;border-radius:5px}
@keyframes shake{10%,90%{transform:translateX(-1px)}30%,70%{transform:translateX(2px)}50%{transform:translateX(-3px)}}
.to-input.shake{animation:shake .35s}
.search__star{color:var(--gold-2);font-size:15px;line-height:1}
.search:hover{transform:translateY(-1px);background:#1a3855;box-shadow:var(--e2),inset 0 1px 0 rgba(255,255,255,.14)}
.search:active{transform:translateY(0)}
.search:focus-visible{outline:3px solid #fff;outline-offset:2px;box-shadow:0 0 0 5px rgba(21,48,74,.5)}
/* armed = a destination is selected → green "Fly now" */
.search.is-ready{background:var(--go)}
.search.is-ready .search__star{color:#fff}
.search.is-ready:hover{background:#28b862;box-shadow:var(--e2),inset 0 1px 0 rgba(255,255,255,.2)}
.fineline{margin-top:var(--s3);font-size:12px;letter-spacing:.2px;color:#2c5074;text-shadow:0 1px 2px rgba(255,255,255,.6)}

/* ================= GALLERY (real gameplay postcards) ================= */
.gallery{
  position:absolute;z-index:4;left:0;right:0;bottom:clamp(20px,3.4vh,38px);
  display:flex;justify-content:center;align-items:flex-end;gap:clamp(14px,1.8vw,26px);
  padding:0 var(--edge);
}
/* clean, aligned photo prints — even borders, one consistent shadow,
   no random scatter. Reads art-directed, not templated. */
.pc{
  background:#fff;padding:6px 6px 0;border-radius:var(--r-sm);
  box-shadow:var(--e2);
  width:clamp(150px,17vw,232px);
  transition:transform .18s ease, box-shadow .18s ease;
}
.pc img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:4px;display:block}
.pc figcaption{
  font-family:"DM Mono",monospace;font-size:11px;letter-spacing:.3px;color:#5a6b7d;
  text-align:center;padding:8px 4px 8px;
}
.pc:hover{transform:translateY(-6px);box-shadow:var(--e3);z-index:2}

/* carousel dots — mobile only */
.dots{display:none}

/* ================= RESPONSIVE ================= */
@media (max-width:1080px){
  .hero{width:min(520px,56vw)}
  .pc{width:clamp(128px,19vw,180px)}
}

/* --- tablet & mobile: stack, scroll, big touch targets --- */
@media (max-width:840px){
  /* let the DOCUMENT scroll: height:100% + overflow on <body> turns body into
     its own scroll container and traps the page at exactly one screen */
  html,body{height:auto;min-height:100%}
  body{overflow-x:clip;overflow-y:visible}
  /* overflow must not clip the search dropdown once the page can scroll */
  .stage{height:auto;min-height:100svh;overflow:visible;padding-bottom:8px}
  /* portrait crops the art so the fuselage sits right behind the copy —
     seat the text on a clean light field, let the plane re-emerge lower */
  .stage__scrim{background:linear-gradient(180deg,
    rgba(243,249,252,.92) 0%,
    rgba(243,249,252,.74) 46%,
    rgba(243,249,252,0)   74%,
    rgba(18,42,66,.16)    100%)}

  /* Stay in normal flow, but stay POSITIONED: the sky (fixed, z0) and the
     scrim (absolute, z1) are painted layers, so static content would fall
     behind them. relative + z-index keeps the content on top. */
  /* centred masthead reads better than a lone left-hung logo on a phone */
  .topbar{position:relative;z-index:8;flex-direction:column;align-items:center;gap:var(--s3);padding:22px var(--edge) 0}
  .brand{align-self:center}
  .brand img{height:64px}
  .nav{justify-content:center;gap:8px}
  .nav .pill{padding:12px 16px;font-size:14px;min-height:44px}

  .hero{position:relative;z-index:5;width:auto;max-width:none;padding:24px var(--edge) 0;top:auto;left:auto}
  .claim{font-size:clamp(42px,11vw,64px)}
  .tagline{max-width:44ch;font-size:16px}
  .booking{max-width:none}
  /* it sits past the scrim's fade, so give it its own contrast.
     fluid size + nbsp before the arrow keeps it on one line down to 360px. */
  .fineline{color:#173a5c;font-weight:500;font-size:clamp(9.5px,2.75vw,11px);letter-spacing:0;
    text-shadow:0 1px 3px rgba(255,255,255,.92)}

  /* postcards → a real swipe carousel: each card snaps to centre, next peeks */
  .gallery{
    --card:clamp(236px,76vw,320px);
    position:relative;z-index:4;
    justify-content:flex-start;align-items:flex-start;flex-wrap:nowrap;
    overflow-x:auto;overscroll-behavior-x:contain;
    scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;
    gap:14px;margin-top:30px;
    /* side padding = half the leftover, so first & last card can reach centre */
    padding:6px calc(50% - var(--card)/2) 12px;
  }
  .gallery::-webkit-scrollbar{display:none}
  .pc{flex:0 0 var(--card);width:auto;scroll-snap-align:center;scroll-snap-stop:always}
  .pc:hover{transform:none}
  .pc figcaption{font-size:12px;padding:9px 4px}

  .dots{display:flex;position:relative;z-index:4;justify-content:center;align-items:center;
    gap:2px;padding:0 0 22px}
  .dots button{width:26px;height:26px;display:grid;place-items:center;
    background:none;border:0;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
  .dots button::before{content:"";width:7px;height:7px;border-radius:99px;
    background:rgba(23,58,92,.30);transition:width .2s ease,background .2s ease}
  .dots button[aria-current="true"]::before{width:20px;background:var(--navy)}
  .dots button:focus-visible{outline:2px solid var(--navy);outline-offset:1px;border-radius:8px}
}

/* --- phones: stack the booking bar into full-width rows --- */
@media (max-width:560px){
  .booking{flex-direction:column;align-items:stretch;padding:8px;gap:0}
  .field{border-right:none;border-bottom:1px solid #ece7db;padding:13px 16px;min-height:52px}
  .field--to{position:relative}
  .dest{left:0;right:0;width:auto;top:calc(100% + 8px);max-height:min(320px,46vh)}
  .dest__item{padding:14px;min-height:52px}
  .dest__name{font-size:16px}
  .search{margin:8px 0 0;width:100%;justify-content:center;padding:16px;font-size:16px;min-height:52px}
  .claim{font-size:clamp(38px,13vw,54px)}
  /* tighter so the flight number doesn't orphan onto a second line */
  .eyebrow{font-size:10.5px;letter-spacing:.8px}
}

/* ================= MOTION ================= */
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
