/* ============================================
   HERO CAROUSEL — Horizontal sliding cards
   Matches existing card/site aesthetic:
   light bg, white cards, orange accent, Geist font
   ============================================ */

/* Stage: contains the visible window */
.hero-carousel-stage {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0 10px;
}

/* Track: the sliding ribbon that holds all cards */
.hero-carousel-track {
    display: flex;
    gap: 28px;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    padding: 10px 0 20px;
}

/* Individual cards — match site card language */
.hero-card {
    flex-shrink: 0;
    width: 520px;
    background: var(--bg-white, #fff);
    border-radius: 16px;
    border: 1px solid var(--border-light, #e5e7eb);
    padding: 36px 36px 30px;
    cursor: pointer;
    position: relative;
    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.4s ease,
        opacity 0.5s ease;
    opacity: 0.45;
    transform: scale(0.92);
    filter: none;
    user-select: none;
}

/* Active (center) card — elevated, full brightness */
.hero-card.active {
    opacity: 1;
    transform: scale(1);
    border-color: var(--primary-orange, #C65000);
    box-shadow:
        0 20px 50px -12px rgba(198, 80, 0, 0.12),
        0 8px 24px -8px rgba(0, 0, 0, 0.08);
}

/* Side card hover — partially wake up */
.hero-card:not(.active):hover {
    opacity: 0.7;
    transform: scale(0.95);
    border-color: #d1d5db;
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
}

/* Top accent stripe — thin colored bar */
.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    transition: opacity 0.4s ease;
    opacity: 0.3;
}

.hero-card.active::before {
    opacity: 1;
}

.hero-card[data-segment="business"]::before {
    background: var(--primary-orange, #C65000);
}

.hero-card[data-segment="academic"]::before {
    background: var(--accent-blue, #0077CC);
}

.hero-card[data-segment="explore"]::before {
    background: var(--tier-green, #059669);
}

/* Segment pill badge */
.hero-card-segment {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.hero-card[data-segment="business"] .hero-card-segment {
    background: rgba(198, 80, 0, 0.08);
    color: var(--primary-orange, #C65000);
}

.hero-card[data-segment="academic"] .hero-card-segment {
    background: rgba(0, 119, 204, 0.08);
    color: var(--accent-blue, #0077CC);
}

.hero-card[data-segment="explore"] .hero-card-segment {
    background: rgba(5, 150, 105, 0.08);
    color: var(--tier-green, #059669);
}

/* Card title */
.hero-card-title {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary, #1a1a1a);
    margin: 0 0 4px 0;
}

/* Subtitle — the accent punchline */
.hero-card-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    font-style: italic;
    margin: 0 0 18px 0;
}

.hero-card[data-segment="business"] .hero-card-subtitle {
    color: var(--primary-orange, #C65000);
}

.hero-card[data-segment="academic"] .hero-card-subtitle {
    color: var(--accent-blue, #0077CC);
}

.hero-card[data-segment="explore"] .hero-card-subtitle {
    color: var(--tier-green, #059669);
}

/* Description */
.hero-card-description {
    font-size: 0.92rem;
    color: var(--text-secondary, #4b5563);
    line-height: 1.7;
    margin: 0 0 22px 0;
}

/* Trust chips at bottom of card */
.hero-card-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.hero-card-trust .trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-light, #636b74);
    background: var(--bg-light, #f9fafb);
    border: 1px solid var(--border-light, #e5e7eb);
    border-radius: 20px;
    padding: 4px 12px;
    white-space: nowrap;
}

.hero-card-trust .trust-chip .chip-icon {
    font-size: 0.8rem;
}

/* ============================================
   CTA ROW — below the cards
   ============================================ */
.hero-carousel-cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

/* ============================================
   NAV ROW — progress segments + labels
   ============================================ */
.hero-carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 28px;
}

.hero-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

.hero-nav-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-light, #636b74);
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
}

.hero-nav-item.active .hero-nav-label {
    color: var(--text-primary, #1a1a1a);
    font-weight: 700;
}

.hero-nav-item:hover .hero-nav-label {
    color: var(--text-primary, #1a1a1a);
}

/* Progress track per segment */
.hero-nav-track {
    width: 80px;
    height: 3px;
    border-radius: 3px;
    background: var(--border-light, #e5e7eb);
    overflow: hidden;
    position: relative;
}

.hero-nav-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: none;
}

.hero-nav-item.active .hero-nav-fill {
    /* width is animated via JS */
}

.hero-nav-item[data-segment="business"] .hero-nav-fill {
    background: var(--primary-orange, #C65000);
}

.hero-nav-item[data-segment="academic"] .hero-nav-fill {
    background: var(--accent-blue, #0077CC);
}

.hero-nav-item[data-segment="explore"] .hero-nav-fill {
    background: var(--tier-green, #059669);
}

/* Active segment gets a colored dot */
.hero-nav-item.active .hero-nav-label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.hero-nav-item.active[data-segment="business"] .hero-nav-label::before {
    background: var(--primary-orange, #C65000);
}

.hero-nav-item.active[data-segment="academic"] .hero-nav-label::before {
    background: var(--accent-blue, #0077CC);
}

.hero-nav-item.active[data-segment="explore"] .hero-nav-label::before {
    background: var(--tier-green, #059669);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .hero-card {
        width: 440px;
        padding: 30px 28px 24px;
    }
    .hero-card-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .hero-carousel-stage {
        overflow: hidden;
        padding: 10px 0;
    }

    .hero-carousel-track {
        /* On mobile: cards stack, only active shows via opacity */
        flex-direction: column;
        gap: 0;
        transform: none !important;
        position: relative;
    }

    .hero-card {
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        transform: none !important;
        pointer-events: none;
        transition: opacity 0.5s ease;
    }

    .hero-card.active {
        position: relative;
        opacity: 1;
        pointer-events: auto;
        transform: none !important;
        box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
    }

    .hero-card:not(.active):hover {
        transform: none !important;
    }

    .hero-card-title {
        font-size: 1.5rem;
    }

    .hero-card-subtitle {
        font-size: 1rem;
    }

    .hero-card-description {
        font-size: 0.85rem;
    }

    .hero-card-trust {
        gap: 6px;
    }

    .hero-card-trust .trust-chip {
        font-size: 0.68rem;
        padding: 3px 10px;
    }

    .hero-carousel-nav {
        gap: 20px;
        margin-top: 20px;
    }

    .hero-nav-track {
        width: 55px;
    }

    .hero-carousel-cta .btn {
        font-size: 0.85rem;
        padding: 10px 18px;
    }
}

@media (max-width: 480px) {
    .hero-card {
        padding: 24px 20px 20px;
    }

    .hero-card-title {
        font-size: 1.35rem;
    }

    .hero-carousel-cta {
        flex-direction: column;
        align-items: center;
    }
}
