/* =========================================================
   HERO
   Canonical sitewide hero system
   Markup:
   .hero > .hero-overlay > .hero-inner > .container > .hero-content
========================================================= */

.site-main {
    padding-top: var(--headerH);
}

/* =========================================================
   HERO SHELL
========================================================= */

.hero {
    width: 100%;
    /* Shared baseline hero height with room for image composition across templates */
    min-height: calc(var(--heroMinH) + var(--headerH)) !important;
    margin-top: calc(var(--headerH) * -1);
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    position: relative !important;
    align-items: center;

    background-position: center 21%;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #1a0a0f;

    border-radius: 0;
    overflow: hidden;
}

.hero + * {
    display: flow-root;
    position: relative;
    isolation: isolate;
}

.hero + *::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: clamp(120px, 14vw, 220px);
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg,
            rgba(90, 0, 17, .19) 0%,
            rgba(90, 0, 17, .11) 34%,
            rgba(90, 0, 17, .03) 70%,
            rgba(90, 0, 17, 0) 100%);
}

.hero + * > * {
    position: relative;
    z-index: 1;
}

/* =========================================================
   HERO OVERLAYS
========================================================= */

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background:
        radial-gradient(1100px 620px at 45% 35%, rgba(0, 0, 0, .10), rgba(0, 0, 0, .48) 78%),
        linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .18) 55%, rgba(0, 0, 0, .48) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .10) 40%, rgba(0, 0, 0, .36) 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background:
        radial-gradient(120% 85% at 50% 40%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .55) 100%);
}

/* =========================================================
   HERO FILM GRAIN — subtle cinematic texture
========================================================= */

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .05;

    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

/* =========================================================
   HERO LAYOUT / POSITIONING
========================================================= */

.hero .hero-inner {
    width: 100%;
    padding-top: calc(var(--heroPadY, 60px) + var(--headerH));
    padding-bottom: var(--heroPadY, 60px);
    position: relative;
    z-index: 2;
}

.hero .container {
    position: relative;
}

.hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    color: #fff;
}

.hero .hero-actions,
.hero .event-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

.hero .hero-actions .btn,
.hero .event-actions .btn {
    min-height: 46px;
    padding: 0 22px;
    font-size: 15px;
}

/* =========================================================
   HERO TYPOGRAPHY & PILL
========================================================= */

.hero-title {
    margin: 0 0 12px;
    font-size: clamp(44px, 4.6vw, 74px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 18px 55px rgba(0, 0, 0, .42);
}

.hero-accent {
    color: var(--yellow);
}

.hero-sub {
    max-width: 720px;
    margin: 0 0 18px;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 900;
    font-size: 12.5px;
    line-height: 1.35;
    color: var(--yellow);
    opacity: .95;
    text-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

.hero .pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 10px;
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(90, 0, 17, .64), rgba(45, 8, 18, .46));
    border: 1px solid rgba(246, 199, 76, .36);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff6d8;
    margin-bottom: 22px;
}

.hero .pill-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--yellow);
    color: #3f000c;
    font-size: 12px;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(120, 70, 0, .25);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 980px) {
    .hero {
        min-height: calc(var(--heroMinH) + var(--headerH)) !important;
    }

    .hero .hero-actions,
    .hero .event-actions {
        margin-top: 24px;
        gap: 10px;
    }
}

@media (max-width: 640px) {
    .hero .hero-actions,
    .hero .event-actions {
        margin-top: 22px;
        gap: 10px;
    }

    .hero .hero-actions .btn,
    .hero .event-actions .btn {
        min-height: 44px;
        padding: 0 20px;
    }
}
