/* ==========================================================================
   Fusion Air — Global Stylesheet
   Organisation: variables -> reset -> layout -> components -> utilities
   ========================================================================== */

:root {
    --navy-950: #050f1c;
    --navy-900: #0a1f38;
    --navy-800: #0d3a66;
    --navy-700: #144a80;
    --navy-600: #1a5a99;
    --blue-500: #2f8fd1;
    --sky-400: #4fc3e8;
    --sky-300: #86dbf5;
    --white: #ffffff;
    --grey-100: #f5f8fb;
    --grey-200: #e6edf3;
    --grey-400: #9fb2c4;
    --grey-600: #5c7188;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --shadow-soft: 0 20px 50px rgba(5, 15, 28, 0.25);
    --max-width: 1200px;
    --font-body: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--navy-900);
    background: var(--grey-100);
    line-height: 1.55;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; color: var(--navy-900); }
p { margin: 0 0 1em; }
button, input, select, textarea { font-family: inherit; font-size: 1rem; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

section { position: relative; padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--dark {
    background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
    color: var(--grey-100);
}
.section--dark h2, .section--dark h3 { color: var(--white); }
.eyebrow {
    display: inline-block;
    color: var(--sky-400);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 0.75em;
}
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head p { color: var(--grey-600); }
.section--dark .section-head p { color: var(--grey-400); }

/* ---- Animated sky background (behind everything, fixed) ---- */
.sky-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-800) 100%);
}
.sky-bg__gradient {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 20% 20%, rgba(79, 195, 232, 0.18), transparent 55%),
                radial-gradient(circle at 80% 70%, rgba(47, 143, 209, 0.15), transparent 50%);
    animation: sky-drift 18s ease-in-out infinite alternate;
}
.sky-bg__cloud {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    filter: blur(10px);
}
.sky-bg__cloud--1 { top: 8%; left: -10%; animation: cloud-drift 60s linear infinite; }
.sky-bg__cloud--2 { top: 40%; right: -15%; width: 560px; height: 560px; animation: cloud-drift 80s linear infinite reverse; }
.sky-bg__cloud--3 { bottom: -10%; left: 30%; width: 340px; height: 340px; animation: cloud-drift 70s linear infinite; }

/* ---- Header / Nav ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 15, 28, 0.55);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s ease;
}
.site-header__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 34px; height: 34px; border-radius: 8px; }
.brand__mark--small { width: 28px; height: 28px; border-radius: 6px; }
.brand__word { font-size: 1.25rem; font-weight: 700; color: var(--white); }
.brand__word--accent { color: var(--sky-400); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 22px; }
.site-nav a { color: var(--grey-200); font-weight: 500; padding: 6px 2px; position: relative; }
.site-nav a.is-active, .site-nav a:hover { color: var(--white); }
.site-nav a.is-active::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
    background: var(--sky-400); border-radius: 2px;
}
.site-nav__account { display: flex; gap: 10px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, var(--sky-400), var(--blue-500)); color: var(--navy-950); box-shadow: 0 10px 24px rgba(47, 143, 209, 0.35); }
.btn--outline { border-color: rgba(255, 255, 255, 0.35); color: var(--grey-100); }
.btn--ghost { color: var(--grey-100); }
.btn--ghost:hover { color: var(--sky-300); }
.btn--block { width: 100%; }
.btn--lg { padding: 15px 30px; font-size: 1.05rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(5,15,28,0.55), rgba(5,15,28,0.85)), url('/assets/img/hero-a321-departure.jpg') center 60% / cover no-repeat;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(120deg, rgba(10,31,56,0.9), rgba(10,31,56,0.35) 60%, transparent);
}
.hero__inner { position: relative; z-index: 2; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.hero__content { max-width: 620px; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
.hero p.lead { font-size: 1.15rem; color: var(--grey-200); max-width: 480px; }
.hero__actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 36px; margin-top: 56px; flex-wrap: wrap; }
.hero__stats div strong { display: block; font-size: 1.6rem; color: var(--sky-300); }
.hero__stats div span { color: var(--grey-400); font-size: 0.9rem; }
.hero__plane {
    position: absolute;
    top: 22%;
    right: 6%;
    width: 46%;
    max-width: 560px;
    opacity: 0.9;
    animation: plane-hover 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.4));
}

/* ---- Route map ---- */
.route-map {
    position: relative;
    background: var(--navy-900);
    border-radius: var(--radius-lg);
    padding: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.route-map svg { width: 100%; height: auto; display: block; }
.route-map__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-top: 28px;
}
.route-map__legend-item { display: flex; align-items: center; gap: 10px; color: var(--grey-200); font-size: 0.95rem; }
.route-map__legend-item strong { color: var(--white); }
.route-map__legend-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sky-400); }
.route-map__legend-dot--mystery { background: var(--grey-400); }
.route-node { fill: var(--sky-300); }
.route-node-label { fill: var(--grey-100); font-size: 13px; font-family: var(--font-body); }
.route-line { fill: none; stroke: rgba(134, 219, 245, 0.35); stroke-width: 2; stroke-dasharray: 6 8; }
.route-line--mystery { stroke: rgba(159, 178, 196, 0.35); }
.route-plane { transform-box: fill-box; transform-origin: center; }

/* ---- Cards / grids ---- */
.grid {
    display: grid;
    gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(10, 31, 56, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(10, 31, 56, 0.15); }
.card__image { height: 190px; background-size: cover; background-position: center 65%; position: relative; }
.card__image--placeholder {
    background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
    display: flex; align-items: center; justify-content: center;
    color: var(--grey-400);
    font-weight: 600;
}
.card__body { padding: 22px; }
.card__body h3 { font-size: 1.2rem; }
.card__specs { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 14px; font-size: 0.85rem; color: var(--grey-600); }
.card__specs strong { color: var(--navy-800); }

.feature {
    text-align: center;
    padding: 28px 20px;
}
.feature__icon {
    width: 56px; height: 56px; margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sky-400), var(--blue-500));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: var(--navy-950);
}

.tier-card {
    background: linear-gradient(160deg, var(--navy-900), var(--navy-950));
    color: var(--white);
    border-radius: var(--radius-md);
    padding: 26px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.3s ease;
}
.tier-card:hover { transform: translateY(-6px); }
.tier-card.is-current { border-color: var(--sky-400); box-shadow: 0 0 0 1px var(--sky-400), var(--shadow-soft); }
.tier-card h3 { color: var(--sky-300); }
.tier-card ul { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.tier-card li { padding-left: 20px; position: relative; color: var(--grey-200); font-size: 0.92rem; }
.tier-card li::before { content: '\2713'; position: absolute; left: 0; color: var(--sky-400); }

/* ---- Forms ---- */
.form-panel {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px;
    max-width: 520px;
    margin: 0 auto;
    box-shadow: var(--shadow-soft);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; color: var(--navy-800); }
.form-row input, .form-row select, .form-row textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--grey-200);
    background: var(--grey-100);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: none;
    border-color: var(--sky-400);
    box-shadow: 0 0 0 3px rgba(79, 195, 232, 0.2);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form-note { font-size: 0.85rem; color: var(--grey-600); margin-top: 4px; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.92rem; }
.alert--error { background: #fdecea; color: #a4231c; border: 1px solid #f5c2bd; }
.alert--success { background: #e8f7ef; color: #1c6b45; border: 1px solid #bfe8d3; }
.alert--info { background: #eaf5fc; color: #16577e; border: 1px solid #c6e5f5; }

/* ---- Stepper (booking / check-in flow) ---- */
.stepper { display: flex; justify-content: center; gap: 6px; margin-bottom: 40px; flex-wrap: wrap; }
.stepper__step {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem; color: var(--grey-400); padding: 6px 12px;
    border-radius: 999px;
}
.stepper__step.is-active { background: rgba(79, 195, 232, 0.15); color: var(--sky-300); font-weight: 700; }
.stepper__step.is-done { color: var(--sky-400); }
.stepper__num {
    width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08); font-size: 0.75rem;
}
.stepper__step.is-active .stepper__num, .stepper__step.is-done .stepper__num { background: var(--sky-400); color: var(--navy-950); }

.flight-option {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    background: var(--white); border-radius: var(--radius-md); padding: 20px 24px;
    margin-bottom: 16px; box-shadow: 0 8px 24px rgba(10,31,56,0.06);
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.flight-option:hover { transform: translateY(-3px); }
.flight-option.is-selected { border-color: var(--sky-400); }
.flight-option__route { font-weight: 700; font-size: 1.05rem; }
.flight-option__meta { color: var(--grey-600); font-size: 0.88rem; margin-top: 4px; }
.flight-option__seats { font-size: 0.85rem; color: var(--blue-500); font-weight: 600; }

.placeholder-panel {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(160deg, var(--navy-900), var(--navy-950));
    color: var(--white);
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(255,255,255,0.25);
}
.placeholder-panel__icon { font-size: 2.6rem; margin-bottom: 14px; }

.boarding-pass {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    max-width: 640px;
    margin: 0 auto;
}
.boarding-pass__main { flex: 1; padding: 28px; }
.boarding-pass__stub {
    width: 160px;
    background: var(--navy-900);
    color: var(--white);
    padding: 28px 18px;
    display: flex; flex-direction: column; justify-content: space-between;
    border-left: 2px dashed rgba(255,255,255,0.3);
}
.boarding-pass__row { display: flex; justify-content: space-between; margin-bottom: 14px; }
.boarding-pass__row span { display: block; font-size: 0.75rem; text-transform: uppercase; color: var(--grey-600); letter-spacing: 0.05em; }
.boarding-pass__row strong { font-size: 1.1rem; }

/* ---- Chat widget ---- */
.chat-widget { position: fixed; bottom: 22px; right: 22px; z-index: 999; font-family: var(--font-body); }
.chat-widget__toggle {
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, var(--sky-400), var(--blue-500));
    color: var(--navy-950); border: none; border-radius: 999px;
    padding: 14px 20px; font-weight: 700; cursor: pointer;
    box-shadow: 0 12px 28px rgba(47, 143, 209, 0.4);
    animation: pulse-glow 3s ease-in-out infinite;
}
.chat-widget__panel {
    position: absolute; bottom: 70px; right: 0;
    width: 340px; max-width: 90vw; height: 460px;
    background: var(--white); border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    display: flex; flex-direction: column; overflow: hidden;
}
.chat-widget__header {
    background: var(--navy-900); color: var(--white); padding: 14px 18px;
    display: flex; align-items: center; justify-content: space-between; font-weight: 700;
}
.chat-widget__close { background: none; border: none; color: var(--white); font-size: 1.3rem; cursor: pointer; }
.chat-widget__messages { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 0.9rem; line-height: 1.4; }
.chat-msg--bot { background: var(--grey-100); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg--user { background: var(--navy-800); color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-widget__form { display: flex; border-top: 1px solid var(--grey-200); padding: 10px; gap: 8px; }
.chat-widget__form input { flex: 1; border: 1px solid var(--grey-200); border-radius: 999px; padding: 10px 14px; }
.chat-widget__form .btn { padding: 10px 18px; }

/* ---- Footer ---- */
.site-footer { background: var(--navy-950); color: var(--grey-400); padding: 60px 0 20px; }
.site-footer__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.site-footer__brand { max-width: 260px; }
.site-footer__brand p { margin-top: 12px; }
.site-footer__links { display: flex; gap: 48px; flex-wrap: wrap; }
.site-footer__links h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 12px; }
.site-footer__links a { display: block; margin-bottom: 8px; color: var(--grey-400); }
.site-footer__links a:hover { color: var(--sky-300); }
.site-footer__bottom { text-align: center; margin-top: 40px; font-size: 0.82rem; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge {
    display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.badge--open { background: #e8f7ef; color: #1c6b45; }
.badge--closed { background: #fdecea; color: #a4231c; }
.badge--mystery { background: rgba(159, 178, 196, 0.2); color: var(--grey-600); }

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--navy-950); flex-direction: column; align-items: stretch;
        padding: 20px 24px; gap: 18px;
        display: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .site-nav.is-open { display: flex; }
    .site-nav ul { flex-direction: column; gap: 14px; }
    .site-nav__account { flex-direction: column; }
    .hero__plane { display: none; }
    .boarding-pass { flex-direction: column; }
    .boarding-pass__stub { width: auto; border-left: none; border-top: 2px dashed rgba(255,255,255,0.3); flex-direction: row; }
}
