/* ========== FONTS ========== */
/* #1: Removed Google Fonts (unused Caveat, Dancing Script, Inter) */
/* #2: Removed Acumin Variable (1MB for 50 characters) -- using Gotham Light instead */

@font-face {
    font-family: 'Gotham';
    src: url('assets/fonts/Gotham-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/fonts/Gotham-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham Narrow';
    src: url('assets/fonts/GothamNarrow-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ========== RESET & VARIABLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #222C2F;
    --bg-dark: #0A0B0C;
    --gold: #AA8E30;
    --gold-light: #D1AB5A;
    --pink: #EC008C;
    --red: #ED1C24;
    --white: #FFFFFF;
    --text: #FFFFFF;
    --text-muted: #A8A9A9; /* #3: Fixed contrast -- was #8C8D8D (3.8:1), now 5.1:1 WCAG AA */
    --card-bg: #222C2F;
    --card-border: rgba(255, 255, 255, 0.06);
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Gotham', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== TOP BAR: medals-left + logo + medals-right ========== */
.top-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 48px;
    position: relative;
    z-index: 1;
}

.top-bar__medals {
    display: flex;
    gap: 8px;
    align-items: center;
    align-self: flex-start;
    margin-top: 30px;
    flex: 1;
}

.top-bar__medals--left {
    justify-content: flex-end;
}

.top-bar__medals--right {
    justify-content: flex-start;
}

.top-bar__logo {
    text-align: center;
    flex-shrink: 0;
}

.top-bar__logo img {
    height: clamp(108px, 11.7vw, 243px);
    width: auto;
    margin: 0 auto;
}

.top-bar__brand {
    font-size: clamp(0.85rem, 1.1vw, 1.95rem);
    font-weight: 600;
    letter-spacing: clamp(0.12em, 0.18vw, 0.25em);
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: -4px;
}

/* #6: Medals with clamp() for smooth scaling */
.medal {
    width: clamp(60px, 8vw, 160px);
    height: clamp(60px, 8vw, 160px);
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.medal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.medal {
    position: relative;
    overflow: hidden;
}

.medal::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );
    transform: skewX(-20deg);
    animation: medal-shine 21s ease-in-out infinite;
    animation-delay: var(--shine-delay, 0s);
}

@keyframes medal-shine {
    0% { left: -75%; opacity: 1; }
    9% { left: 125%; opacity: 1; }
    9.5% { opacity: 0; }
    10% { left: -75%; opacity: 0; }
    99% { left: -75%; opacity: 0; }
    100% { left: -75%; opacity: 1; }
}

/* ========== HERO ROW: [25% product] [50% hero] [25% product] ========== */
.hero-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 18px;
    padding: 0 48px;
    margin-top: -100px; /* #8: Reduced from -136px */
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 24px;
    gap: 16px;
}

/* Hero with PNG images (no scaleY hacks) */
.hero__title {
    margin-top: 20px;
    line-height: 0;
}

.hero__title img {
    width: 92%;
    max-width: 920px;
    height: auto;
}

.hero__tagline-wrap {
    position: relative;
    display: inline-block;
    width: 82%;
    max-width: 810px;
}

.hero__tagline {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
}

.hero__tagline-shadow {
    position: absolute;
    top: -35px;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 1;
}

.hero__values {
    display: flex;
    justify-content: center;
    margin-top: -20px;
}

.hero__values img {
    width: 90%;
    max-width: 990px;
    height: auto;
}

/* ========== PRODUCT CARD ========== */
.product-card {
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.product-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(170, 142, 48, 0.08);
}

.product-card__buy {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    color: #1a1a1a;
    font-family: 'Gotham', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 20px;
    border-radius: 36px;
    z-index: 2;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    cursor: pointer;
}

.product-card__buy::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    transform: skewX(-20deg);
    animation: shine-sweep 4s ease-in-out infinite;
}

@keyframes shine-sweep {
    0%, 100% { left: -75%; }
    50% { left: 125%; }
}

.product-card__buy:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.product-card__image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-height: 260px;
    overflow: hidden;
}

.product-card__image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.1s linear;
    will-change: transform;
}

.product-card__label {
    padding: 10px 12px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* #2 + #9: Using Gotham Light instead of Acumin, removed font-stretch */
.product-card__type {
    font-family: 'Gotham', sans-serif;
    font-size: 1.37rem;
    font-weight: 300;
    letter-spacing: 0.85em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* #9: Removed font-stretch: expanded (not supported by Gotham Narrow) */
.product-card__name {
    font-family: 'Gotham Narrow', 'Gotham', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

/* ========== PRODUCTS ROW: 4 x 25% ========== */
.products-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 18px 48px 0;
}

/* ========== FOOTER ========== */
/* #10: Footer enabled with 21+ warning */
.footer {
    background: var(--bg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 32px 48px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.8;
}

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

/* #6: Large desktop -- medals and padding scale down */
@media (max-width: 1440px) {
    .top-bar__logo {
        flex-shrink: 1;
        min-width: 0;
    }

    .top-bar__medals {
        justify-content: center !important;
    }

    .medal {
        width: clamp(45px, 6vw, 100px);
        height: clamp(45px, 6vw, 100px);
    }

    .hero-row {
        margin-top: -120px;
    }
}

@media (max-width: 1200px) {
    .top-bar {
        padding: 20px 24px;
    }

    .hero-row,
    .products-row {
        padding-left: 24px;
        padding-right: 24px;
    }

    .hero-row {
        margin-top: -80px;
    }

    .product-card__buy {
        font-size: 1.6rem;
        padding: 4px 16px;
    }

    .product-card__type {
        font-size: 1.1rem;
        letter-spacing: 0.5em;
    }

    .product-card__name {
        font-size: 1.6rem;
        letter-spacing: 0.1em;
    }

    .footer {
        padding: 24px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .top-bar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .top-bar__logo {
        flex-basis: 100%;
        order: 1;
    }

    .top-bar__logo img {
        height: 180px;
    }

    .top-bar__medals {
        flex: none;
        justify-content: center !important;
        margin-top: 0;
        order: 0;
    }

    .hero-row {
        grid-template-columns: 1fr 1fr;
        margin-top: -30px;
    }

    .hero {
        grid-column: 1 / -1;
        order: -1;
        padding: 15px 20px;
    }

    .hero-row .product-card__image {
        min-height: 200px;
    }

    .products-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card__type {
        font-size: 1.1rem;
        letter-spacing: 0.5em;
    }

    .product-card__name {
        font-size: 1.6rem;
        letter-spacing: 0.1em;
    }

    .product-card__buy {
        font-size: 1.5rem;
        padding: 4px 16px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .top-bar {
        padding: 12px 8px;
        overflow: hidden;
        flex-wrap: wrap;
    }

    .top-bar__medals {
        margin-top: 0;
        justify-content: center !important;
        gap: 4px;
        flex: none;
        order: 0;
    }

    .top-bar__logo {
        flex-basis: 100%;
        order: 1;
    }

    .top-bar__logo img {
        height: 140px;
    }

    .medal {
        width: clamp(32px, 11vw, 48px);
        height: clamp(32px, 11vw, 48px);
    }

    .hero {
        padding: 10px 8px;
        overflow: hidden;
    }

    .hero-row,
    .products-row {
        padding-left: 16px;
        padding-right: 16px;
        overflow: hidden;
    }

    .product-card__label {
        overflow: hidden;
    }

    .hero-row {
        grid-template-columns: 1fr;
        margin-top: -20px;
    }

    .hero__title {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .hero__title img {
        width: 100%;
        transform: scale(1.05);
    }

    .hero__tagline-shadow {
        top: -20px;
    }

    .products-row {
        grid-template-columns: 1fr;
    }

    .product-card__buy {
        font-size: 1.2rem;
        padding: 4px 14px;
        top: 12px;
        right: 12px;
    }

    .product-card__type {
        font-size: 1rem;
        letter-spacing: 0.6em;
    }

    .product-card__name {
        font-size: 1.4rem;
        letter-spacing: 0.2em;
    }

    .footer {
        padding: 20px 16px;
    }
}

/* ========== AGE GATE OVERLAY ========== */
.age-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 11, 12, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

.age-gate--hidden {
    opacity: 0;
    pointer-events: none;
}

.age-gate__card {
    background: rgba(34, 44, 47, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 48px 56px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.age-gate__logo {
    height: 120px;
    width: auto;
    margin: 0 auto 32px;
}

.age-gate__question {
    font-family: 'Gotham', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    margin-bottom: 32px;
}

.age-gate__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.age-gate__btn {
    font-family: 'Gotham', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 40px;
    border-radius: 36px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid var(--white);
}

.age-gate__btn:hover {
    transform: scale(1.05);
}

.age-gate__btn--yes {
    background: var(--white);
    color: #1a1a1a;
}

.age-gate__btn--yes:hover {
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.age-gate__btn--no {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--text-muted);
}

.age-gate__btn--no:hover {
    color: var(--white);
    border-color: var(--white);
}

@media (max-width: 600px) {
    .age-gate__card {
        padding: 36px 28px;
    }

    .age-gate__logo {
        height: 90px;
        margin-bottom: 24px;
    }

    .age-gate__question {
        font-size: 1.2rem;
        margin-bottom: 24px;
    }

    .age-gate__btn {
        padding: 10px 32px;
        font-size: 1rem;
    }
}
