/* Explain: Styles for various UI elements like navigation, cards, and forms. */
.site-header {
    background: rgba(11, 11, 13, 0.72);
    backdrop-filter: blur(16px);
    transition: background 300ms ease, box-shadow 300ms ease;
}

.site-header.is-scrolled {
    background: rgba(8, 8, 10, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.nav-link {
    position: relative;
    color: var(--text-color);
    transition: color 200ms ease;
}

.nav-link::after {
    position: absolute;
    bottom: -0.4rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    content: "";
    transition: width 250ms ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.is-active {
    color: var(--primary-color);
}

.nav-link.is-active::after {
    width: 100%;
}

.nav-close-link.is-active {
    color: var(--primary-color);
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.kicker::before {
    display: inline-block;
    width: 2.25rem;
    height: 2px;
    background: var(--primary-color);
    content: "";
}

.panel {
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    background: var(--surface-color);
}

.media-frame {
    position: relative;
    overflow: hidden;
    background: var(--surface-2);
}

.media-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05) saturate(1.03);
    transition: transform 600ms ease;
}

.media-frame:hover img {
    transform: scale(1.05);
}

.media-frame.is-bare {
    background: transparent;
    border: 0;
}

.hero-frame {
    height: min(74vh, 660px);
    min-height: 420px;
}

.story-frame {
    height: auto;
    aspect-ratio: 2 / 1;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--surface-2);
    padding: 0.4rem 0.9rem;
    color: var(--primary-color);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sport-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 1.75rem;
    background: var(--surface-color);
    padding: 1.5rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.sport-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    transform: translateY(-6px);
}

.stat-block {
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-color);
    border-radius: 1rem;
    background: var(--surface-color);
    padding: 1.35rem;
}

.stat-number {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.value-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    background: var(--surface-color);
    padding: 1.35rem;
    transition: border-color 300ms ease;
}

.value-item:hover {
    border-color: var(--primary-color);
}

.value-num {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

.ach-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    background: var(--surface-2);
}

.ach-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 8, 10, 0) 34%, rgba(8, 8, 10, 0.94) 100%);
    pointer-events: none;
}

.gallery-masonry {
    columns: 2;
    column-gap: 1rem;
}

@media (min-width: 768px) {
    .gallery-masonry {
        columns: 3;
    }
}

.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    break-inside: avoid;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 1.1rem;
    background: var(--surface-2);
    transition: border-color 300ms ease;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 500ms ease;
}

.gallery-item:hover {
    border-color: var(--primary-color);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(229, 35, 46, 0.62);
    color: #FFFFFF;
    font-size: 1.3rem;
    opacity: 0;
    transition: opacity 300ms ease;
}

.gallery-item:hover .gallery-zoom {
    opacity: 1;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 6, 0.94);
    padding: 1.25rem;
}

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

.lightbox-inner {
    position: relative;
    display: flex;
    max-width: 100%;
    max-height: 100%;
    align-items: center;
    justify-content: center;
}

.lightbox-inner img {
    width: auto;
    max-width: 92vw;
    height: auto;
    max-height: 82vh;
    border-radius: 0.75rem;
    opacity: 1;
    transition: opacity 300ms ease;
}

.lightbox-inner img.is-loading {
    opacity: 0;
}

.lightbox-spinner {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: inline-flex;
    min-height: 2.75rem;
    min-width: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--surface-color);
    color: var(--text-color);
    font-size: 1.1rem;
    transition: all 200ms ease;
}

.lightbox-close:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #FFFFFF;
}

.field {
    width: 100%;
    min-height: 3rem;
    border: 1px solid var(--border-color);
    border-radius: 0.9rem;
    background: var(--field-bg);
    padding: 0.75rem 1rem;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 200ms ease, background 200ms ease;
}

.field::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.field:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}

textarea.field {
    min-height: 7rem;
    resize: vertical;
}

select.field {
    appearance: none;
    padding-right: 2.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A2A2AA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

select.field option {
    background: var(--surface-color);
    color: var(--text-color);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form-status {
    min-height: 1.25rem;
    margin-top: 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-status.success {
    color: #4ADE80;
}

.form-status.error {
    color: #FF6B6B;
}

@media (max-width: 767px) {
    .kicker::before {
        width: 1.6rem;
    }

    .hero-frame {
        height: 460px;
        min-height: 0;
    }

    .story-frame {
        aspect-ratio: 2 / 1;
    }
}