/* FlexFare custom layer on top of Tailwind CDN */

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

/* Navigation */
.nav-link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .8rem; border-radius: .75rem;
  font-weight: 600; font-size: .9rem; color: #13315C;
  transition: background .15s, color .15s;
}
.nav-link:hover { background: #EAF4FC; color: #0B2545; }

.mega {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%) translateY(8px);
  background: #fff; border-radius: 1.1rem; border: 1px solid #eef2f7;
  box-shadow: 0 24px 60px -20px rgba(11,37,69,.25);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 60;
}
.group:hover .mega, .group:focus-within .mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(4px);
}

.mnav { display:block; padding:.7rem .5rem; font-weight:600; border-radius:.6rem; }
.mnav:hover { background:#EAF4FC; }

/* Buttons */
.btn-flame {
  display: inline-flex; align-items: center; gap: .55rem;
  background: linear-gradient(180deg, #FF7A2E, #FF6B1A 55%, #F25E0E);
  color: #fff; font-weight: 700; letter-spacing: .01em;
  padding: .8rem 1.6rem; border-radius: 999px;
  box-shadow: 0 12px 26px -10px rgba(255,107,26,.55), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s;
}
.btn-flame:hover { transform: translateY(-2px); filter: brightness(1.04); }
.btn-flame:active { transform: translateY(0); }
.btn-flame:focus-visible { outline: 3px solid #0B2545; outline-offset: 2px; }

/* Eyebrow labels */
.eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase;
}

/* Section heading kit */
.sec-title { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; }

/* ---- Signature: boarding pass search card ---- */
.boarding-pass {
  position: relative;
  background: #fff;
  border-radius: 1.4rem;
  box-shadow: 0 30px 70px -25px rgba(11,37,69,.45);
}
.boarding-pass::before, .boarding-pass::after {
  content: ""; position: absolute; top: 50%; width: 26px; height: 26px;
  background: transparent; border-radius: 50%; transform: translateY(-50%);
  box-shadow: 0 0 0 200px transparent; /* keep simple */
}
.bp-perforation {
  background-image: repeating-linear-gradient(90deg, #CBD5E1 0 10px, transparent 10px 20px);
  height: 2px;
}

/* Dashed flight route motif */
.route-line {
  position: relative; height: 2px; flex: 1;
  background-image: repeating-linear-gradient(90deg, #3E92CC 0 8px, transparent 8px 16px);
}
.route-line::after {
  content: "✈"; position: absolute; right: -6px; top: 50%;
  transform: translateY(-58%); color: #FF6B1A; font-size: 1rem;
}

/* Deal row (fare board style) */
.fare-row { transition: background .15s, transform .15s; }
.fare-row:hover { background: #F5FAFF; transform: translateX(4px); }

/* Image hover zoom */
.zoom-img { overflow: hidden; }
.zoom-img img { transition: transform .5s ease; }
.zoom-img:hover img { transform: scale(1.06); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* FAQ */
details.faq { border-bottom: 1px solid #e7edf5; }
details.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; padding: 1.1rem 0; font-weight: 700; color: #0B2545;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; font-size: 1.4rem; color: #3E92CC; transition: transform .2s;
}
details.faq[open] summary::after { transform: rotate(45deg); color: #FF6B1A; }
details.faq p { padding-bottom: 1.1rem; color: #475569; line-height: 1.65; }

/* Footer */
.footer-h { font-size:.72rem; font-weight:700; letter-spacing:.2em; text-transform:uppercase; color:#94a3b8; margin-bottom:1rem; }
.footer-ul { display:grid; gap:.55rem; font-size:.9rem; }

/* Header shadow on scroll */
#siteHeader.scrolled { box-shadow: 0 10px 30px -18px rgba(11,37,69,.35); }

/* Sticky mobile call button clearance */
@media (max-width:1023px){ footer { padding-bottom: 5.5rem; } }

/* ---- Contrail: plane gliding across the hero ---- */
.contrail{
  position:absolute; left:0; right:0; top:24%; height:2px;
  pointer-events:none; z-index:5; overflow:visible;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.30) 12%, rgba(255,255,255,.30) 88%, transparent);
}
.contrail .ct-plane{
  position:absolute; top:50%; left:-10%; transform:translateY(-50%);
  color:#FF6B1A; line-height:0;
  animation:ct-fly 18s linear infinite;
  filter:drop-shadow(0 2px 6px rgba(11,37,69,.45));
}
.contrail .ct-plane svg{ transform:rotate(90deg); }
.contrail .ct-plane::before{
  content:""; position:absolute; right:100%; top:50%; height:2px; width:150px;
  transform:translateY(-50%); margin-right:4px;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.95));
}
@keyframes ct-fly{ from{ left:-10%; } to{ left:106%; } }
@media (prefers-reduced-motion:reduce){
  .contrail .ct-plane{ animation:none; left:60%; }
}

/* Trip type pills */
.trip-pill input { position:absolute; opacity:0; pointer-events:none; }
.trip-pill span {
  display:inline-flex; align-items:center; padding:.45rem 1.1rem; border-radius:999px;
  font-size:.82rem; font-weight:700; color:#64748B; background:#F1F5F9; cursor:pointer;
  border:1.5px solid transparent; transition:all .15s;
}
.trip-pill input:checked + span { background:#0B2545; color:#fff; }
.trip-pill input:focus-visible + span { outline:3px solid #3E92CC; outline-offset:2px; }

/* Compact sidebar form fields */
.side-form .field-label{display:block;font-size:.65rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#94a3b8;margin-bottom:.3rem}
.side-form .field-input{width:100%;border:1.5px solid #E2E8F0;border-radius:.7rem;padding:.55rem .75rem;font-weight:600;font-size:.9rem;color:#0B2545;background:#fff}
.side-form .field-input:focus{outline:none;border-color:#3E92CC;box-shadow:0 0 0 3px rgba(62,146,204,.18)}

/* ---- Airport autocomplete ---- */
.ac-anchor { position: relative; }
.ac-panel {
  position: absolute; left: 0; top: calc(100% + 4px); z-index: 80;
  width: max(100%, 300px);
  background: #fff; border: 1px solid #E2E8F0; border-radius: .9rem;
  box-shadow: 0 24px 50px -18px rgba(11,37,69,.3);
  max-height: 280px; overflow-y: auto; overflow-x: hidden; padding: .35rem;
}
.ac-anchor:last-child .ac-panel, .ac-panel.ac-right { left: auto; right: 0; }
.ac-item {
  display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left;
  padding: .55rem .7rem; border-radius: .6rem; cursor: pointer; border: 0; background: none;
  min-width: 0;
}
.ac-text { min-width: 0; flex: 1; }
.ac-text .ac-city, .ac-text .ac-sub {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-item:hover, .ac-item.ac-active { background: #EAF4FC; }
.ac-code {
  flex-shrink: 0; width: 3.1rem; text-align: center; font-weight: 800; font-size: .78rem;
  color: #0B2545; background: #F1F5F9; border-radius: .45rem; padding: .3rem 0;
  font-family: "Bricolage Grotesque", sans-serif;
}
.ac-item.ac-active .ac-code, .ac-item:hover .ac-code { background: #0B2545; color: #fff; }
.ac-city { font-weight: 700; font-size: .88rem; color: #0B2545; line-height: 1.2; }
.ac-sub { font-size: .72rem; color: #94A3B8; line-height: 1.25; }

/* Mobile input sizing: prevents iOS auto-zoom on focus and improves touch targets */
@media (max-width: 767px) {
  .field-input, .side-form .field-input { font-size: 16px; padding: .7rem .85rem; }
  .ac-panel { max-height: 240px; }
}

/* Clip the flying plane at the viewport edge without breaking sticky sidebars */
html, body { overflow-x: clip; }
/* Defensive box-sizing so form fields never exceed their column */
.field-input, .side-form .field-input, .ac-panel { box-sizing: border-box; }
*, *::before, *::after { box-sizing: border-box; }

/* ================= Boarding-pass ticket (sidebar query form) ================= */
.ticket { border-radius: 1.3rem; overflow: visible; filter: drop-shadow(0 22px 40px rgba(11,37,69,.22)); }
.ticket-top {
  background: linear-gradient(135deg, #13315C, #0B2545 70%);
  color: #fff; border-radius: 1.3rem 1.3rem 0 0; padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.ticket-top .t-brand { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; letter-spacing: .02em; }
.ticket-top .t-label { font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: #9DC3E6; }
.ticket-mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .68rem; letter-spacing: .12em; color: #FFD9BF; text-align: right; line-height: 1.5; }
.ticket-body { background: #fff; padding: 1.15rem 1.25rem 1.25rem; }
.ticket-perf { position: relative; background: #fff; height: 22px; }
.ticket-perf::before, .ticket-perf::after {
  content: ""; position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%;
  background: #f7fafc; transform: translateY(-50%);
  box-shadow: inset 0 0 0 1px #E5EBF2;
}
.ticket-perf::before { left: -11px; }
.ticket-perf::after { right: -11px; }
.ticket-perf i {
  position: absolute; left: 22px; right: 22px; top: 50%; height: 0;
  border-top: 2px dashed #CBD5E1;
}
.ticket-stub { background: #fff; border-radius: 0 0 1.3rem 1.3rem; padding: 1.15rem 1.25rem 1.35rem; }
.ticket-route { display: flex; align-items: center; gap: .6rem; margin-top: .35rem; }
.ticket-route .rt { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1rem; color: #0B2545; }
.barcode {
  height: 34px; margin-top: 1rem; border-radius: .3rem;
  background: repeating-linear-gradient(90deg,
    #0B2545 0 2px, transparent 2px 4px, #0B2545 4px 7px, transparent 7px 9px,
    #0B2545 9px 10px, transparent 10px 14px, #0B2545 14px 17px, transparent 17px 19px);
  opacity: .85;
}
.barcode-meta { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .6rem; letter-spacing: .3em; color: #94A3B8; text-align: center; margin-top: .4rem; }

/* ================= Full-screen mobile call takeover ================= */
.cp-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  flex-direction: column; justify-content: center; padding: 2rem 1.5rem;
  background: radial-gradient(120% 90% at 80% 0%, #1B3F74 0%, #0B2545 55%, #071A33 100%);
  color: #fff; text-align: center;
  animation: cp-in .45s cubic-bezier(.2,.9,.3,1);
}
.cp-overlay.cp-show { display: flex; }
@media (min-width: 1024px) { .cp-overlay.cp-show { display: none; } }
@keyframes cp-in { from { opacity: 0; transform: translateY(6%); } to { opacity: 1; transform: none; } }
.cp-close {
  position: absolute; top: max(1rem, env(safe-area-inset-top)); right: 1rem;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: #fff; font-size: 1.1rem; line-height: 1;
}
.cp-plane {
  position: absolute; top: 18%; left: -12%; color: #FF6B1A; opacity: .9;
  animation: cp-fly 7s linear infinite;
}
.cp-plane svg { transform: rotate(90deg); width: 30px; height: 30px; }
.cp-plane::before {
  content: ""; position: absolute; right: 100%; top: 50%; height: 2px; width: 110px;
  transform: translateY(-50%); margin-right: 4px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.8));
}
@keyframes cp-fly { from { left: -14%; } to { left: 108%; } }
.cp-badge {
  display: inline-flex; align-items: center; gap: .45rem; margin: 0 auto;
  font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: #FFB98A; border: 1px solid rgba(255,185,138,.4); border-radius: 999px; padding: .45rem 1rem;
}
.cp-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; animation: cp-pulse 1.6s ease-in-out infinite; }
@keyframes cp-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); } 55% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } }

/* ================= Micro-animations ================= */
/* Slow Ken Burns drift on hero photography */
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08) translateY(-1.5%); } }
.kenburns { animation: kenburns 22s ease-in-out infinite alternate; will-change: transform; }

/* Occasional ring-ring wiggle on call-button phone icons */
@keyframes ringring {
  0%, 88%, 100% { transform: rotate(0); }
  90% { transform: rotate(-14deg); } 92% { transform: rotate(12deg); }
  94% { transform: rotate(-9deg); } 96% { transform: rotate(6deg); } 98% { transform: rotate(0); }
}
.btn-flame svg { animation: ringring 6s ease-in-out infinite; transform-origin: 50% 50%; }

/* Gentle attention pulse on the sticky mobile call bar */
@keyframes glowpulse {
  0%, 100% { box-shadow: 0 12px 26px -10px rgba(255,107,26,.55), 0 0 0 0 rgba(255,107,26,.35); }
  60% { box-shadow: 0 12px 26px -10px rgba(255,107,26,.55), 0 0 0 12px rgba(255,107,26,0); }
}
a[href^="tel"].fixed { animation: glowpulse 2.8s ease-out infinite; }

/* Eyebrow underline sweep on section reveal */
.reveal.in .eyebrow { position: relative; }
.reveal.in .eyebrow::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 34px;
  background: currentColor; opacity: .5; transform-origin: left;
  animation: sweep .6s .2s ease both;
}
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ================= Ambient aviation decorations (purely additive) ================= */
.amb-host { position: relative; overflow: hidden; }
.amb { position: absolute; pointer-events: none; user-select: none; line-height: 0; z-index: 0; }

/* Drifting clouds */
.amb-cloud { color: #CFE4F7; animation: amb-drift linear infinite; }
.amb-cloud.amb-dark { color: rgba(255,255,255,.09); }
@keyframes amb-drift {
  from { transform: translateX(-140px); }
  to   { transform: translateX(calc(100vw + 140px)); }
}

/* Paper plane on a gentle wave */
.amb-paper { color: #3E92CC; opacity: .55; animation: amb-paper-x linear infinite; }
.amb-paper.amb-dark { color: rgba(255,255,255,.35); }
.amb-paper-in { display: inline-block; animation: amb-paper-y 3.6s ease-in-out infinite; }
.amb-paper-in svg { transform: rotate(12deg); }
@keyframes amb-paper-x {
  from { transform: translateX(-80px); }
  to   { transform: translateX(calc(100vw + 80px)); }
}
@keyframes amb-paper-y {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-16px) rotate(5deg); }
}

/* Hot-air balloon: slow rise-and-bob with a sway */
.amb-balloon { animation: amb-bob 9s ease-in-out infinite; }
.amb-balloon svg { animation: amb-sway 7s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes amb-bob  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
@keyframes amb-sway { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

/* Radar ping dots */
.amb-ping { width: 8px; height: 8px; border-radius: 50%; background: #3E92CC; opacity: .4; animation: amb-ping 3.2s ease-out infinite; }
.amb-ping.amb-dark { background: #FF6B1A; opacity: .5; }
@keyframes amb-ping {
  0%   { box-shadow: 0 0 0 0 rgba(62,146,204,.4); }
  70%  { box-shadow: 0 0 0 14px rgba(62,146,204,0); }
  100% { box-shadow: 0 0 0 0 rgba(62,146,204,0); }
}

/* Keep it tasteful on small screens: fewer moving pieces */
@media (max-width: 767px) {
  .amb-paper, .amb-balloon { display: none; }
}
