/* override accent red in base.css*/
:root {
    --accent-red: #b95656;
}

/* ============================================
   MODELS HERO - DARK THEME
   ============================================ */

.models-hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 14vh 6vw 10vh;
    overflow: hidden;
    background:
        linear-gradient(rgba(0,0,0,0.52), rgba(0,0,0,0.60)),
        url('images/grand-opening.webp') center / cover no-repeat;
}

/* Ensure all hero content sits above pseudo-element */
.models-hero > * {
    position: relative;
    z-index: 1;
}

/* Hero always sits over a dark photo — keep text white in both themes */
html[data-theme="light"] .models-hero-eyebrow { color: rgba(255,255,255,0.5); }
html[data-theme="light"] .models-hero-title    { color: #ffffff; }
html[data-theme="light"] .models-hero-subtitle { color: rgba(255,255,255,0.65); }
html[data-theme="light"] .hero-stat-number     { color: #ffffff; }
html[data-theme="light"] .hero-stat-label      { color: rgba(255,255,255,0.45); }
html[data-theme="light"] .scroll-hint span     { color: rgba(255,255,255,0.45); }
html[data-theme="light"] .scroll-hint-line     { background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent); }

.models-hero-eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 1.5rem;
}

.models-hero-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--text-white);
    margin-bottom: 1.25rem;
}

.models-hero-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    font-weight: 400;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.models-hero-stats {
    display: flex;
    gap: 3.5rem;
    margin-bottom: 3rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-family: 'Sora', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1;
}

.hero-stat-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-top: 0.5rem;
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-hint-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--border-light), transparent);
}

.scroll-hint span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.5625rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ============================================
   BRANDS SHOWCASE SECTION
   ============================================ */

.brands-showcase {
    padding: 6rem 4vw 8rem;
    background: var(--bg-dark);
    overflow: visible;
}

.showcase-header {
    text-align: center;
    margin-bottom: 4rem;
}

.showcase-eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 1rem;
}

.showcase-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.showcase-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 420px;
    margin: 0 auto;
}

/* ============================================
   FILTER TABS
   ============================================ */

.brand-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    overflow: visible;
    position: relative;
    z-index: 10;
}

.filter-tab {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-tab:hover {
    border-color: var(--border-light);
    color: var(--text-white);
}

.filter-tab.active {
    background: var(--text-white);
    border-color: var(--text-white);
    color: var(--bg-dark);
}

/* ============================================
   BRANDS GRID
   ============================================ */

.showcase-brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    /* Cards must not create a new stacking context that fights the dropdown */
    position: relative;
    z-index: 1;
}

.showcase-brand-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.showcase-brand-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-subtle);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.showcase-brand-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-darker);
}

.showcase-brand-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-brand-card:hover .showcase-brand-card-image img {
    transform: scale(1.03);
}

.showcase-brand-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.5625rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.375rem 0.75rem;
    background: var(--bg-dark);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    color: var(--bg-white);
}

.showcase-brand-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.showcase-brand-card-name {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.showcase-brand-card-tagline {
    font-size: 0.875rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 0.875rem;
}

.showcase-brand-card-desc {
    font-size: 0.8125rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 1rem;
    min-height: 4.25rem;
}

.showcase-brand-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1.25rem;
    min-height: 5.5rem;
    align-content: flex-start;
}

.showcase-brand-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3125rem 0.625rem;
    background: var(--bg-darker);
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    color: var(--text-muted);
}

.showcase-brand-card-actions {
    display: flex;
    gap: 0.625rem;
    margin-top: auto;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.6875rem 1.125rem;
    border-radius: 999px;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    flex: 1;
    text-decoration: none;
}

.btn-primary {
    background: var(--text-white);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--accent-red);
    color: var(--bg-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
    border-color: var(--border-light);
    background: rgba(255, 255, 255, 0.05);
}

.btn-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.btn:hover .btn-icon {
    transform: translateX(2px);
}

/* ============================================
   CONTACT CTA SECTION
   ============================================ */

.models-cta {
    padding: 6rem 4vw;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-dark);
}

.models-cta-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.models-cta-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.models-cta-text {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.models-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 999px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.cta-btn-primary {
    background: var(--text-white);
    color: var(--bg-dark);
}

.cta-btn-primary:hover {
    background: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 1.5px solid var(--border-subtle);
}

.cta-btn-secondary:hover {
    border-color: var(--border-light);
    background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   BRAND DROPDOWN (custom)
   ============================================ */

.brand-dropdown-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 0.25rem;
    /* Establishes its own stacking context above the grid */
    z-index: 200;
}

.brand-dropdown-trigger {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.625rem 1rem 0.625rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    outline: none;
    white-space: nowrap;
}

.brand-dropdown-trigger:hover,
.brand-dropdown-wrap.open .brand-dropdown-trigger {
    border-color: var(--border-light);
    color: var(--text-white);
}

.brand-dropdown-chevron {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    color: var(--text-subtle);
    transition: transform 0.25s ease, color 0.25s ease;
}

.brand-dropdown-wrap.open .brand-dropdown-chevron {
    transform: rotate(180deg);
    color: var(--text-white);
}

.brand-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 160px;
    background: #1c1c1e;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 0.375rem;
    list-style: none;
    margin: 0;
    /* Sit well above everything */
    z-index: 999;
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255,255,255,0.04);
}

.brand-dropdown-wrap.open .brand-dropdown-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.brand-dropdown-item {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.5625rem 0.875rem;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    user-select: none;
}

.brand-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-white);
}

.brand-dropdown-item.active {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.1);
}

/* Light theme */
html[data-theme="light"] .brand-dropdown-trigger {
    color: rgba(0, 0, 0, 0.55);
    border-color: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .brand-dropdown-trigger:hover,
html[data-theme="light"] .brand-dropdown-wrap.open .brand-dropdown-trigger {
    color: rgba(0, 0, 0, 0.9);
    border-color: rgba(0, 0, 0, 0.3);
}

html[data-theme="light"] .brand-dropdown-menu {
    background: #f2f2f2;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0,0,0,0.04);
}

html[data-theme="light"] .brand-dropdown-item {
    color: rgba(0, 0, 0, 0.6);
}

html[data-theme="light"] .brand-dropdown-item:hover {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.9);
}

html[data-theme="light"] .brand-dropdown-item.active {
    background: rgba(0, 0, 0, 0.09);
    color: rgba(0, 0, 0, 0.9);
}

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

@media (max-width: 1024px) {
    .showcase-brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .models-hero {
        min-height: 65vh;
        padding: 12vh 5vw 8vh;
    }

    .models-hero-stats {
        gap: 2rem;
    }

    .hero-stat-number {
        font-size: 2rem;
    }

    .showcase-brands-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .brand-filters {
        gap: 0.375rem;
    }

    .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .brand-dropdown-wrap {
        margin-left: 0;
    }

    .models-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .scroll-hint {
        animation: none;
    }
}