/* ============================================
   VIMANIA V5 — Hero Section
   "Gradient Mesh" concept: rich dark bg,
   glassmorphism cards, vibrant color glows.
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + var(--space-12)) var(--space-8) var(--space-12);
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 60% at 12% 25%, rgba(109, 40, 217, 0.28) 0%, transparent 55%),
        radial-gradient(ellipse 60% 70% at 88% 75%, rgba(234, 88, 12, 0.22) 0%, transparent 50%),
        radial-gradient(ellipse 50% 45% at 55% 5%, rgba(16, 185, 129, 0.12) 0%, transparent 45%),
        linear-gradient(150deg, #050B1A 0%, #0A1930 55%, #060E1C 100%);
}

/* Grid pattern background */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask: radial-gradient(ellipse at 30% 40%, black 0%, transparent 70%);
    mask: radial-gradient(ellipse at 30% 40%, black 0%, transparent 70%);
}

/* Animated scan line */
.hero-scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(234, 88, 12, 0.03) 48%,
        rgba(234, 88, 12, 0.06) 50%,
        rgba(234, 88, 12, 0.03) 52%,
        transparent 100%
    );
    animation: heroScan 6s ease-in-out infinite;
}

@keyframes heroScan {
    0%, 100% { transform: translateY(-50%); }
    50%      { transform: translateY(50%); }
}


/* Legacy dots background compat */
.hero-dots {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask: radial-gradient(ellipse at 30% 40%, black 0%, transparent 70%);
    mask: radial-gradient(ellipse at 30% 40%, black 0%, transparent 70%);
    animation: none;
    opacity: 1;
}

/* Subtle noise texture layer for premium feel */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0.4;
    pointer-events: none;
}

/* ---- Layout ---- */
.hero-content,
.hero-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ---- Live badge ---- */
.hero-live,
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--text-on-navy-muted);
    margin-bottom: var(--space-6);
}

.hero-live strong,
.hero-badge strong {
    color: var(--accent);
}

.hero-pulse,
.live-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50%      { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* ---- Title ---- */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-3xl), 5.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-on-navy);
    margin-bottom: var(--space-4);
}

.hero-title span,
.hero-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title em {
    font-style: normal;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--text-on-navy-muted);
    line-height: var(--leading-relaxed);
    max-width: 480px;
    margin-bottom: var(--space-8);
}

/* ---- Inline Metrics ---- */
.hero-metrics,
.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
    padding: var(--space-4) var(--space-5);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
}

.hero-metric-value,
.hero-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-on-navy);
    line-height: 1.2;
}

.hero-metric-label,
.hero-stat-label {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-on-navy-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    margin-top: 2px;
}

.hero-metric-divider {
    width: 1px;
    height: 40px;
    background: var(--border-default);
    flex-shrink: 0;
}

/* ---- CTAs ---- */
.hero-cta,
.hero-actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* ---- Featured / Showcase ---- */
.hero-featured,
.hero-showcase {
    position: relative;
}

.featured-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    position: relative;
    transform: perspective(800px) rotateY(-3deg);
    transition: transform var(--duration-slow) var(--ease-out);
    box-shadow: var(--shadow-xl);
}

.featured-card:hover {
    transform: perspective(800px) rotateY(0);
}

.featured-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.featured-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-surface), transparent);
}

.featured-hot-badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: var(--gradient-danger);
    color: white;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    display: flex;
    align-items: center;
    gap: var(--space-1);
    z-index: 10;
}

.featured-countdown {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: var(--bg-base);
    color: var(--text-secondary);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    z-index: 10;
}

.featured-body {
    padding: var(--space-5);
}

.featured-route {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.featured-city {
    text-align: center;
}

.featured-city-code {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
}

.featured-city-name {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.featured-plane {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.featured-plane svg {
    width: 24px;
    height: 24px;
}

.featured-plane-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.seats-warning {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-4);
}

.featured-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-subtle);
}

.featured-price {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--success);
    line-height: 1;
}

.featured-price-currency {
    font-size: var(--text-xl);
    opacity: 0.8;
}

/* Legacy floating planes — hide them, replaced by grid */
.hero-planes,
.floating-plane {
    display: none;
}

/* ============================================
   HERO WITH DEALS — Layout modifier (2fr / 3fr)
   Used for market landings with deal preview.
   ============================================ */

.hero-content--with-deals,
.hero-inner--with-deals {
    grid-template-columns: 2fr 3fr;
    gap: var(--space-12);
}

@media (max-width: 1024px) {
    .hero-content--with-deals,
    .hero-inner--with-deals {
        grid-template-columns: 1fr;
        gap: var(--space-10);
        text-align: center;
    }
}

/* ============================================
   DARK HERO — Glassmorphism deal cards
   Applied when hero is dark (no hero-light class)
   ============================================ */

.hero:not(.hero-light) .hero-deal-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero:not(.hero-light) .hero-deal-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero:not(.hero-light) .hero-deal-card.tier-exceptional {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.45),
        0 0 24px rgba(16, 185, 129, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero:not(.hero-light) .hero-deal-card.tier-great {
    border-color: rgba(234, 88, 12, 0.4);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.45),
        0 0 24px rgba(234, 88, 12, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero:not(.hero-light) .hero-deal-iata {
    color: rgba(255, 255, 255, 0.95);
}

.hero:not(.hero-light) .hero-deal-cities {
    color: rgba(255, 255, 255, 0.45);
}

.hero:not(.hero-light) .hero-deal-price {
    color: white;
}

.hero:not(.hero-light) .hero-deal-price.is-exceptional {
    color: #34D399;
}

.hero:not(.hero-light) .hero-deals-header {
    color: rgba(255, 255, 255, 0.45);
}

.hero:not(.hero-light) .hero-deals-viewall {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all var(--duration-base) var(--ease-out);
}

.hero:not(.hero-light) .hero-deals-viewall:hover {
    color: white;
    background: rgba(255, 255, 255, 0.12);
    gap: var(--space-2);
}

/* Date chip on dark */
.hero:not(.hero-light) .hero-deal-bottom span[style] {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* ============================================
   HERO LIGHT — Market pages V5
   Deals-first. Warm cream background.
   Replaces the dark navy hero for market landings.
   ============================================ */

.hero-light {
    background: var(--bg-base);
    min-height: 80vh;
    min-height: 80dvh;
}

/* Remove dark decorative layers that only work on navy */
.hero-light .hero-grid,
.hero-light .hero-scan,
.hero-light .hero-dots {
    display: none;
}

/* Replace dark radial glows with subtle light-mode accent */
.hero-light::before {
    background:
        radial-gradient(ellipse at 5% 50%, rgba(234, 88, 12, 0.05) 0%, transparent 40%),
        radial-gradient(ellipse at 95% 20%, rgba(22, 163, 74, 0.03) 0%, transparent 40%);
}

/* --- Badge / Live indicator --- */
.hero-light .hero-badge,
.hero-light .hero-live {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
}

.hero-light .hero-live strong,
.hero-light .hero-badge strong {
    color: var(--accent);
}

/* --- Title --- */
.hero-light .hero-title {
    color: var(--text-primary);
}

/* Keep gradient text for the accent span */
.hero-light .hero-title span,
.hero-light .hero-title em,
.hero-light .hero-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Subtitle --- */
.hero-light .hero-subtitle {
    color: var(--text-secondary);
}

/* --- Stats bar --- */
.hero-light .hero-stats,
.hero-light .hero-metrics {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
}

.hero-light .hero-stat-value,
.hero-light .hero-metric-value {
    color: var(--text-primary);
}

.hero-light .hero-stat-label,
.hero-light .hero-metric-label {
    color: var(--text-muted);
}

.hero-light .hero-metric-divider {
    background: var(--border-default);
}

/* --- Ghost button on light bg --- */
.hero-light .btn-ghost {
    border-color: var(--border-strong);
    color: var(--text-secondary);
}

.hero-light .btn-ghost:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: transparent;
}

/* --- Layout: text 40% / deals 60% --- */
.hero-light .hero-content,
.hero-light .hero-inner {
    grid-template-columns: 2fr 3fr;
    gap: var(--space-12);
}

/* ---- Mini Deals Grid (right column in hero) ---- */
.hero-deals-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.hero-deals-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

.hero-deals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

.hero-deal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    text-decoration: none;
    display: block;
    box-shadow: var(--shadow-card);
    transition:
        border-color var(--duration-base) var(--ease-out),
        box-shadow var(--duration-base) var(--ease-out),
        transform var(--duration-base) var(--ease-out);
    overflow: hidden;
}

.hero-deal-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

.hero-deal-card.tier-exceptional {
    border-color: rgba(22, 163, 74, 0.25);
}

.hero-deal-card.tier-great {
    border-color: rgba(234, 88, 12, 0.25);
}

.hero-deal-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-1);
}

.hero-deal-route {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.hero-deal-iata {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    color: var(--text-primary);
}

.hero-deal-arrow {
    color: var(--accent);
    font-size: var(--text-sm);
    flex-shrink: 0;
}

.hero-deal-cities {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-deal-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-2);
}

.hero-deal-price {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.hero-deal-savings-badge {
    padding: 3px var(--space-2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-deal-savings-badge.savings-exceptional {
    background: var(--success-soft);
    color: var(--success);
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.hero-deal-savings-badge.savings-great,
.hero-deal-savings-badge.savings-good {
    background: var(--accent-soft);
    color: var(--accent-600);
    border: 1px solid rgba(234, 88, 12, 0.2);
}

.hero-deal-savings-badge.savings-chollo {
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.hero-deals-footer {
    text-align: right;
}

.hero-deals-viewall {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: gap var(--duration-fast);
}

.hero-deals-viewall:hover {
    gap: var(--space-2);
    color: var(--accent-600);
}

/* Light hero responsive overrides */
@media (max-width: 1024px) {
    .hero-light .hero-content,
    .hero-light .hero-inner {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }

    .hero-light .hero-stats,
    .hero-light .hero-metrics {
        justify-content: center;
    }

    .hero-light .hero-cta,
    .hero-light .hero-actions {
        justify-content: center;
    }

    .hero-light .hero-subtitle {
        margin-inline: auto;
    }

    .hero-deals-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .hero-deals-footer {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-deals-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero-content,
    .hero-inner {
        grid-template-columns: 1fr;
        gap: var(--space-10);
        text-align: center;
    }

    .hero-title {
        font-size: clamp(var(--text-2xl), 6vw, var(--text-4xl));
    }

    .hero-subtitle {
        margin-inline: auto;
    }

    .hero-metrics,
    .hero-stats {
        justify-content: center;
    }

    .hero-cta,
    .hero-actions {
        justify-content: center;
    }

    .hero-featured,
    .hero-showcase {
        max-width: 400px;
        margin: 0 auto;
    }

    .featured-card {
        transform: none;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: calc(var(--header-height) + var(--space-8)) var(--space-4) var(--space-8);
    }

    .hero-metrics,
    .hero-stats {
        flex-direction: column;
        gap: var(--space-3);
        align-items: stretch;
        text-align: center;
    }

    .hero-metric-divider {
        width: 100%;
        height: 1px;
    }

    .featured-card {
        border-radius: var(--radius-xl);
    }
}
