/* ASAAP Event (Premium) Page Template — vanilla CSS, tokens matching hero-premium.css */
.asaap-ep-page {
    --ep-orange: #F15A24;
    --ep-orange-dark: #d94b19;
    --ep-forest: #1b4332;
    --ep-dark: #0a1914;
    --ep-surface: #f5f7f6;
    --ep-border: #dce4df;
    --ep-text: #16221c;
    --ep-muted: #4b5c53;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--ep-text);
    background: #ffffff;
}

.asaap-ep-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.asaap-ep-sec {
    padding: 72px 0;
}

.asaap-ep-sec--soft {
    background: var(--ep-surface);
}

.asaap-ep-sec--dark {
    background: var(--ep-forest);
    color: #ffffff;
}

.asaap-ep-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ep-orange);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.asaap-ep-eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--ep-orange);
}

.asaap-ep-h2 {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 600;
    font-size: clamp(1.85rem, 3.6vw, 2.75rem);
    line-height: 1.08;
    text-transform: uppercase;
    margin: 0 0 12px;
    color: inherit;
}

.asaap-ep-lead {
    color: var(--ep-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 680px;
    margin: 0 0 36px;
}

.asaap-ep-sec--dark .asaap-ep-lead {
    color: rgba(255, 255, 255, 0.88);
}

/* 1. Hero */
.asaap-ep-hero {
    position: relative;
    width: 100%;
    --asaap-header-h: 72px;
    min-height: 560px;
    height: clamp(560px, calc(100svh - var(--asaap-header-h)), 820px);
    overflow: hidden;
    background: var(--ep-dark);
    color: #ffffff;
    display: flex;
    align-items: flex-end;
}

.asaap-ep-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.asaap-ep-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: asaapEpZoom 16s ease-out forwards;
}

@keyframes asaapEpZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.asaap-ep-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(75deg, rgba(10, 25, 20, 0.94) 0%, rgba(10, 25, 20, 0.65) 42%, rgba(10, 25, 20, 0.25) 100%);
    pointer-events: none;
}

.asaap-ep-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 56px;
    box-sizing: border-box;
}

.asaap-ep-hero-content {
    max-width: 680px;
}

.asaap-ep-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ep-orange);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 14px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.asaap-ep-kicker::before {
    content: "";
    width: 32px;
    height: 2px;
    background: var(--ep-orange);
    flex-shrink: 0;
}

.asaap-ep-title {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 500;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 16px;
    text-wrap: balance;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.5);
}

.asaap-ep-sub {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.55;
    margin: 0 0 22px;
}

/* Countdown */
.asaap-ep-countdown-wrap {
    margin: 0 0 26px;
}

.asaap-ep-countdown {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
}

.asaap-ep-cd-box {
    min-width: 74px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(10, 25, 20, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: center;
}

.asaap-ep-cd-num {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.1;
    color: #ffffff;
}

.asaap-ep-cd-lbl {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
}

.asaap-ep-cd-status {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(241, 90, 36, 0.92);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
}

.asaap-ep-cd-status[hidden] {
    display: none !important;
}

.asaap-ep-cd-note {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.82);
}

.asaap-ep-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.asaap-ep-btn {
    min-height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    box-sizing: border-box;
    transition: transform 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

.asaap-ep-btn--primary {
    background: var(--ep-orange);
    color: #ffffff;
    border: 1.5px solid var(--ep-orange);
    box-shadow: 0 8px 24px rgba(241, 90, 36, 0.35);
}

.asaap-ep-btn--primary:hover {
    background: var(--ep-orange-dark);
    color: #ffffff;
    transform: translateY(-1px);
}

.asaap-ep-btn--glass {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid #ffffff;
    color: #ffffff;
}

.asaap-ep-btn--glass:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
    transform: translateY(-1px);
}

.asaap-ep-btn--outline {
    background: transparent;
    border: 1.5px solid var(--ep-forest);
    color: var(--ep-forest);
}

.asaap-ep-btn--outline:hover {
    background: var(--ep-forest);
    color: #ffffff;
}

/* 2. Quick-facts bar */
.asaap-ep-facts {
    background: var(--ep-forest);
    color: #ffffff;
    padding: 20px 0;
}

.asaap-ep-facts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.asaap-ep-fact {
    border-left: 2px solid rgba(241, 90, 36, 0.85);
    padding-left: 14px;
}

.asaap-ep-fact-k {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: rgba(255, 255, 255, 0.75);
}

.asaap-ep-fact-v {
    font-weight: 700;
    font-size: 0.98rem;
    margin-top: 2px;
}

/* 3. Race cards */
.asaap-ep-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.asaap-ep-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--ep-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 6px 20px rgba(10, 25, 20, 0.05);
}

.asaap-ep-card--featured {
    border-color: var(--ep-orange);
    box-shadow: 0 10px 28px rgba(241, 90, 36, 0.14);
}

.asaap-ep-badge {
    display: inline-block;
    align-self: flex-start;
    background: var(--ep-orange);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.asaap-ep-card-dist {
    font-family: 'Oswald', sans-serif;
    font-size: 1.45rem;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--ep-dark);
}

.asaap-ep-card-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ep-forest);
    margin: 0 0 10px;
}

.asaap-ep-card-who {
    color: var(--ep-muted);
    font-size: 0.94rem;
    line-height: 1.5;
    margin: 0 0 20px;
}

/* 4. Why-different */
.asaap-ep-why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.asaap-ep-why-card {
    background: #ffffff;
    border: 1px solid var(--ep-border);
    border-radius: 16px;
    padding: 24px;
}

.asaap-ep-why-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(241, 90, 36, 0.12);
    color: var(--ep-orange);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.asaap-ep-why-icon svg {
    width: 22px;
    height: 22px;
}

.asaap-ep-why-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    margin: 0 0 8px;
}

.asaap-ep-why-card p {
    margin: 0;
    color: var(--ep-muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

/* 5. Weekend timeline (3+2 centered on desktop, vertical on mobile) */
.asaap-ep-timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    position: relative;
}

.asaap-ep-tl-step {
    position: relative;
    flex: 0 1 calc(33.333% - 14px);
    min-width: 260px;
    box-sizing: border-box;
    background: var(--ep-surface);
    border: 1px solid var(--ep-border);
    border-radius: 16px;
    padding: 24px;
}

.asaap-ep-tl-time {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--ep-orange);
    margin-bottom: 8px;
}

.asaap-ep-tl-step h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    margin: 0 0 8px;
}

.asaap-ep-tl-step p {
    margin: 0;
    color: var(--ep-muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

/* 6. Stay options */
.asaap-ep-stay-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.asaap-ep-stay-card {
    background: #ffffff;
    border: 1px solid var(--ep-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.asaap-ep-stay-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    margin: 0 0 6px;
}

.asaap-ep-stay-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ep-forest);
    margin: 0 0 10px;
}

.asaap-ep-stay-price span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ep-muted);
}

.asaap-ep-stay-note {
    font-size: 0.92rem;
    color: var(--ep-muted);
    line-height: 1.5;
    margin: 0 0 18px;
}

.asaap-ep-stays-limit {
    margin: 24px 0 0;
    font-size: 0.95rem;
    color: var(--ep-muted);
    font-weight: 500;
}

/* 7. Gallery strip */
.asaap-ep-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.asaap-ep-gal-item {
    border: none;
    padding: 0;
    background: var(--ep-dark);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    cursor: pointer;
}

.asaap-ep-gal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.asaap-ep-gal-item:hover img {
    transform: scale(1.04);
}

.asaap-ep-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 25, 20, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.asaap-ep-lightbox.is-open {
    display: flex;
}

.asaap-ep-lightbox img {
    max-width: 92vw;
    max-height: 86vh;
    border-radius: 12px;
}

.asaap-ep-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 8. Getting there */
.asaap-ep-travel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #ffffff;
    border: 1px solid var(--ep-border);
    border-radius: 16px;
    padding: 28px;
}

/* 9. FAQ Accordion */
.asaap-ep-faq-list {
    display: grid;
    gap: 12px;
    max-width: 820px;
}

.asaap-ep-faq-item {
    background: #ffffff;
    border: 1px solid var(--ep-border);
    border-radius: 12px;
    overflow: hidden;
}

.asaap-ep-faq-btn {
    width: 100%;
    text-align: left;
    padding: 18px 20px;
    background: transparent;
    border: none;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ep-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.asaap-ep-faq-panel {
    padding: 0 20px 18px;
    color: var(--ep-muted);
    line-height: 1.6;
    font-size: 0.96rem;
}

.asaap-ep-faq-panel[hidden] {
    display: none;
}

/* 10. Final CTA */
.asaap-ep-final {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* 11. Mobile sticky bar */
.asaap-ep-sticky {
    display: none;
}

@media (max-width: 1023px) {
    .asaap-ep-cards,
    .asaap-ep-why-grid,
    .asaap-ep-stay-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .asaap-ep-facts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .asaap-ep-timeline {
        flex-direction: column;
    }
    .asaap-ep-tl-step {
        flex: 1 1 100%;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .asaap-ep-hero {
        height: auto;
        min-height: 82svh;
    }
    .asaap-ep-hero-overlay {
        background: linear-gradient(to top, rgba(10, 25, 20, 0.92) 0%, rgba(10, 25, 20, 0.56) 55%, rgba(10, 25, 20, 0.2) 100%);
    }
    .asaap-ep-sec {
        padding: 48px 0;
    }
    .asaap-ep-cards,
    .asaap-ep-why-grid,
    .asaap-ep-stay-grid,
    .asaap-ep-gallery {
        grid-template-columns: 1fr;
    }
    .asaap-ep-actions .asaap-ep-btn {
        width: 100%;
    }
    .asaap-ep-sticky {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        background: var(--ep-dark);
        color: #ffffff;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        padding: 10px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        transform: translateY(110%);
        transition: transform 0.25s ease;
    }
    .asaap-ep-sticky.is-visible {
        transform: translateY(0);
    }
    .asaap-ep-sticky-price {
        font-weight: 700;
        font-size: 0.92rem;
    }
    .asaap-ep-sticky .asaap-ep-btn {
        min-height: 40px;
        padding: 0 18px;
        font-size: 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .asaap-ep-hero-bg img {
        animation: none !important;
    }
    .asaap-ep-sticky,
    .asaap-ep-btn,
    .asaap-ep-gal-item img {
        transition: none !important;
    }
}
