html { scroll-behavior: smooth; }
body { color: #24324f; transition: opacity .22s ease; }
/* AOS side-entrances start off-screen. clip keeps position: sticky working, unlike hidden. */
main { overflow-x: clip; }
body.is-leaving { opacity: 0; }
main section[id] { scroll-margin-top: 6rem; }

/* Loader auto-hides via animation in case JS never runs */
#loader {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: #fff;
  transition: opacity .4s ease, visibility .4s;
  animation: loader-out .4s ease 3s forwards;
}
#loader.is-done { opacity: 0; visibility: hidden; }
#loader img { width: 130px; animation: pulse-logo 1s ease-in-out infinite alternate; }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
@keyframes pulse-logo { from { transform: scale(.94); } to { transform: scale(1.04); } }

#scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, #D3121F, #D4A437, #1E88E5);
}
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 60; background: #fff; padding: .5rem 1rem; border-radius: .5rem; }
:focus-visible { outline: 3px solid #D4A437; outline-offset: 2px; }

.eyebrow { font-family: Montserrat, sans-serif; font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #D3121F; }
.section-title { font-family: Montserrat, sans-serif; font-weight: 800; color: #0B2A6F; font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.15; }

/* Buttons */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .2s ease, box-shadow .2s ease; cursor: pointer;
}
.btn::after {
  content: ''; position: absolute; inset: 0; left: -120%; width: 60%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transition: left .55s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(11, 42, 111, .5); }
.btn:hover::after { left: 130%; }
.btn-red { background: #D3121F; color: #fff; }
.btn-navy { background: #0B2A6F; color: #fff; }
.btn-wa { background: #128C4B; color: #fff; }
.btn-ghost { background: #fff; color: #0B2A6F; border: 1.5px solid rgba(11, 42, 111, .2); }

/* Nav */
.nav-link { position: relative; font-size: .88rem; font-weight: 500; color: #0B2A6F; padding: .5rem 0; white-space: nowrap; }
.nav-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #D3121F; transform: scaleX(0); transition: transform .25s ease; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: #D3121F; }

#mobile-menu {
  position: fixed; inset: 80px 0 0 0; z-index: 39; background: #fff; padding: 1.5rem 1rem; overflow-y: auto;
  transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility .35s;
}
#mobile-menu.is-open { transform: none; visibility: visible; }
.mobile-link {
  display: block; padding: .85rem 1rem; border-radius: .9rem; font-family: Montserrat, sans-serif; font-weight: 700; color: #0B2A6F;
  opacity: 0; transform: translateX(24px); transition: opacity .3s ease, transform .3s ease;
  transition-delay: calc(var(--i) * 35ms);
}
#mobile-menu.is-open .mobile-link { opacity: 1; transform: none; }
.mobile-link.is-active { background: #EAF5FF; color: #D3121F; }

.foot-link { transition: color .2s; }
.foot-link:hover { color: #D4A437; }
.social { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; background: rgba(255, 255, 255, .1); transition: background .2s, transform .2s; }
.social:hover { background: #D3121F; transform: translateY(-3px); }

/* Floating actions */
#wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 999px; background: #128C4B; color: #fff; box-shadow: 0 10px 24px -6px rgba(18, 140, 75, .7);
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(18, 140, 75, .55); } 100% { box-shadow: 0 0 0 20px rgba(18, 140, 75, 0); } }
#to-top {
  position: fixed; right: 20px; bottom: 84px; z-index: 30; width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 999px; background: #0B2A6F; color: #fff; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease;
}
#to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* Cards */
.card { background: #fff; border-radius: 1.25rem; box-shadow: 0 10px 30px -12px rgba(11, 42, 111, .22); transition: box-shadow .25s ease, transform .25s ease; }
.card:hover { box-shadow: 0 24px 48px -16px rgba(11, 42, 111, .35); }
[data-tilt] { transform-style: preserve-3d; will-change: transform; }
.icon-chip { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 999px; color: #fff; box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(212, 164, 55, .8); }

/* Hero */
.hero-bg { background: linear-gradient(160deg, #EAF5FF 0%, #BFE3FF 55%, #8CC7F7 100%); }
.hero-word { display: inline-block; }
.hero-arch { border-radius: 48% 48% 1.5rem 1.5rem / 38% 38% 1.5rem 1.5rem; }
.float-pill {
  position: absolute; display: flex; align-items: center; gap: .6rem; background: #fff; color: #0B2A6F; font-weight: 600; font-size: .8rem;
  padding: .5rem .9rem .5rem .5rem; border-radius: 999px; box-shadow: 0 14px 28px -12px rgba(11, 42, 111, .5);
  animation: float 5s ease-in-out infinite alternate;
}
@keyframes float { from { transform: translateY(-7px); } to { transform: translateY(7px); } }
.ribbon { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 3s ease-out .4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.page-hero { position: relative; overflow: hidden; background: #0B2A6F; color: #fff; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7, 29, 79, .95), rgba(11, 42, 111, .5)); }
.page-hero > div { position: relative; z-index: 1; }

/* Marquee */
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Timeline */
.timeline { position: relative; }
.timeline::before, .timeline-fill { content: ''; position: absolute; left: 27px; top: 0; bottom: 0; width: 3px; border-radius: 3px; }
.timeline::before { background: #BFE3FF; }
.timeline-fill { background: linear-gradient(#D3121F, #1E88E5); transform-origin: top; }

/* Accordion */
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-a > div { overflow: hidden; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); background: #D3121F; color: #fff; }
.faq-icon { transition: transform .25s ease, background .25s; }

/* Tabs, stepper, chips */
.tab-btn { min-height: 48px; padding: .6rem 1.5rem; border-radius: 999px; font-weight: 600; color: #0B2A6F; transition: background .2s, color .2s; }
.tab-btn[aria-selected="true"] { background: #0B2A6F; color: #fff; }
.chip { min-height: 44px; padding: .45rem 1.1rem; border-radius: 999px; background: #fff; border: 1.5px solid rgba(11, 42, 111, .15); color: #0B2A6F; font-weight: 500; font-size: .875rem; transition: all .2s; }
.chip[aria-pressed="true"] { background: #D3121F; border-color: #D3121F; color: #fff; }
.stage-btn { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .25rem; color: rgba(255, 255, 255, .6); font-size: .72rem; font-weight: 600; text-align: center; transition: color .2s; }
.stage-btn .dot { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 999px; background: rgba(255, 255, 255, .12); transition: background .25s, transform .25s; }
.stage-btn[aria-selected="true"] { color: #fff; }
.stage-btn[aria-selected="true"] .dot { background: #D3121F; transform: scale(1.1); }

/* Forms */
.field label { display: block; font-size: .85rem; font-weight: 600; color: #0B2A6F; margin-bottom: .35rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .7rem 1rem; border-radius: .8rem; border: 1.5px solid rgba(11, 42, 111, .18); background: #fff; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #1E88E5; box-shadow: 0 0 0 4px rgba(30, 136, 229, .18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #D3121F; }
.field-error { display: none; color: #A80E19; font-size: .8rem; margin-top: .3rem; }
.field.has-error .field-error { display: block; }

/* Quiz */
.quiz-opt { width: 100%; min-height: 52px; text-align: left; padding: .8rem 1.1rem; border-radius: .9rem; border: 1.5px solid rgba(11, 42, 111, .15); font-weight: 500; color: #0B2A6F; transition: all .2s; }
.quiz-opt:hover { border-color: #1E88E5; background: #EAF5FF; transform: translateX(4px); }
.step-in { animation: step-in .35s ease both; }
@keyframes step-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.bar { height: 8px; border-radius: 8px; background: #EAF5FF; overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, #D3121F, #1E88E5); border-radius: 8px; transition: width .35s ease; }

dialog#guide-modal { width: min(720px, calc(100vw - 32px)); max-height: 88vh; border-radius: 1.25rem; padding: 0; color: inherit; margin: auto; }
dialog#guide-modal::backdrop { background: rgba(7, 29, 79, .65); backdrop-filter: blur(3px); }
dialog#guide-modal[open] { animation: step-in .3s ease both; }

.swiper-pagination-bullet-active { background: #D3121F !important; }

@media (max-width: 640px) {
  .float-pill { font-size: .7rem; }
}
/* The flight path would cross the stacked hero text on small screens */
@media (max-width: 1023px) {
  #flight, .flight { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ribbon { stroke-dashoffset: 0; }
  #loader { display: none; }
  .mobile-link { opacity: 1; transform: none; }
}
