/*
Theme Name: SocialSk8
Theme URI: https://socialsk8.com
Author: Sheldon
Description: Custom theme for Social Skate — weekly roller skating competition events.
Version: 1.0.0
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Primary palette — sunset fire */
    --fire-orange: #FF6B1A;
    --golden: #FFB800;
    --hot-red: #E8292C;
    --ember: #FF4D00;

    /* Accent — cool contrast */
    --sky-blue: #00B4D8;
    --ice-blue: #90E0EF;

    /* Neutrals */
    --black: #0B0B0F;
    --dark: #111118;
    --dark-card: #18181F;
    --dark-surface: #1E1E28;
    --gray-700: #2A2A35;
    --gray-500: #6B7280;
    --gray-300: #D1D5DB;
    --gray-100: #F3F4F6;
    --white: #FFFFFF;

    /* Text */
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-dark: #111118;

    /* Effects */
    --glow-orange: 0 0 20px rgba(255, 107, 26, 0.4), 0 0 60px rgba(255, 107, 26, 0.15);
    --glow-gold: 0 0 20px rgba(255, 184, 0, 0.4), 0 0 60px rgba(255, 184, 0, 0.15);
    --glow-red: 0 0 20px rgba(232, 41, 44, 0.3), 0 0 60px rgba(232, 41, 44, 0.1);

    /* Layout */
    --container-width: 1100px;
    --section-padding: 90px 0;
    --transition: 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--black);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--fire-orange);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--golden);
}

h1, h2, h3, h4 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.5em;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   SECTION BACKGROUNDS
   ============================================ */
.section-dark {
    background: var(--black);
}

.section-asphalt {
    background: linear-gradient(180deg, var(--dark) 0%, #0F0F18 50%, var(--black) 100%);
    position: relative;
}

.section-asphalt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/logo.png');
    background-size: 60px;
    background-repeat: repeat;
    opacity: 0.015;
    pointer-events: none;
}

.section-fire {
    background: linear-gradient(135deg, #1a0a00 0%, var(--dark) 40%, #0a0a18 100%);
    position: relative;
}

.section-fire::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 107, 26, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(232, 41, 44, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.section-surface {
    background: var(--dark-surface);
}

/* ============================================
   SECTION LAYOUT
   ============================================ */
.site-section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    display: inline-block;
    position: relative;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--fire-orange), var(--golden));
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-header .section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Section divider */
.section-divider {
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        var(--hot-red),
        var(--fire-orange),
        var(--golden),
        var(--fire-orange),
        var(--hot-red),
        transparent
    );
    border: none;
    margin: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--fire-orange), var(--ember));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 26, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-orange);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--golden);
    border: 2px solid var(--golden);
}

.btn-outline:hover {
    background: var(--golden);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: var(--glow-gold);
}

/* ============================================
   SITE HEADER / NAV
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background: rgba(11, 11, 15, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    padding: 10px 0;
    background: rgba(11, 11, 15, 0.95);
    border-bottom: 1px solid rgba(255, 107, 26, 0.2);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.site-logo:hover {
    color: var(--white);
}

.site-logo img {
    width: 50px;
    height: 50px;
}

.site-logo span {
    color: var(--fire-orange);
}

.footer-brand .site-logo img {
    width: 50px;
    height: 50px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.main-nav a {
    color: var(--gray-300);
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 14px;
    border-radius: 4px;
    transition: all var(--transition);
}

.main-nav a:hover {
    color: var(--white);
    background: rgba(255, 107, 26, 0.1);
}

.main-nav .nav-cta {
    background: linear-gradient(135deg, var(--fire-orange), var(--ember));
    color: var(--white);
    padding: 8px 20px;
}

.main-nav .nav-cta:hover {
    box-shadow: var(--glow-orange);
    background: linear-gradient(135deg, var(--ember), var(--fire-orange));
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--black);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease, transform 8s ease;
    transform: scale(1);
}

.hero-bg .slide.active {
    opacity: 1;
    transform: scale(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(11, 11, 15, 0.7) 0%,
        rgba(11, 11, 15, 0.4) 40%,
        rgba(11, 11, 15, 0.6) 70%,
        rgba(11, 11, 15, 0.95) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 60px 48px;
    isolation: isolate;
}

.hero-content::before {
    content: '';
    position: absolute;
    inset: -20px;
    z-index: -1;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0) 85%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    mask-image: radial-gradient(ellipse at center, #000 0%, #000 55%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, #000 55%, transparent 85%);
    pointer-events: none;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .hero-accent {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--fire-orange);
    margin-bottom: 24px;
    display: block;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-text p:first-of-type {
    font-size: 1.15rem;
    color: var(--text-primary);
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    border: 2px solid rgba(255, 107, 26, 0.2);
    pointer-events: none;
}

/* Sponsors panel */
.sponsors-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sponsors-panel h3 {
    font-size: 1.3rem;
    color: var(--fire-orange);
    letter-spacing: 0.12em;
    margin-bottom: 28px;
}

.sponsors-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 484px;
}

.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 232px;
    height: 150px;
    min-height: 0;
    padding: 16px 24px;
    background: var(--white);
    border-radius: 8px;
    transition: all var(--transition);
    position: relative;
}

/* Tooltip showing sponsor name on hover */
.sponsor-item[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--dark-card);
    color: var(--text-primary);
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    border: 1px solid var(--gray-700);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.sponsor-item[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 5px solid transparent;
    border-top-color: var(--gray-700);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.sponsor-item[data-tooltip]:hover::after,
.sponsor-item[data-tooltip]:hover::before,
.sponsor-item[data-tooltip]:focus::after,
.sponsor-item[data-tooltip]:focus::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.sponsor-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.sponsor-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sponsor-item.sponsor-dark {
    background: #1a1a1a;
    padding: 12px 24px;
}

/* Center View Schedule button within the about-text column */
.about-text .btn {
    display: table;
    margin-left: auto;
    margin-right: auto;
}

/* Stat highlights */
.about-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
}

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

.stat-number {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--fire-orange);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

/* ── Credits Trigger & Modal ──────────────────────────────── */
.credits-trigger-wrap {
    text-align: center;
    margin-top: 40px;
}

.credits-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.credits-modal.active {
    opacity: 1;
    visibility: visible;
}

.credits-modal-box {
    background: var(--dark-surface);
    border: 1px solid var(--gray-700);
    border-radius: 12px;
    padding: 40px 48px;
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 184, 0, 0.15);
}

.credits-modal-box h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    color: var(--golden);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.credits-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.5;
}

.credits-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition);
}

.credits-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.credits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.credits-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.credits-item:last-child {
    border-bottom: none;
}

.credits-name {
    font-weight: 600;
    color: var(--white);
}

.credits-role {
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-align: right;
    flex-shrink: 0;
}

/* ── Judge Bio Read-more & Modal ─────────────────────────── */
.judge-bio-more {
    background: none;
    border: none;
    padding: 0;
    margin-top: 8px;
    color: var(--fire-orange);
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-block;
    transition: color var(--transition);
}

.judge-bio-more:hover {
    color: var(--golden);
}

.judge-bio-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.judge-bio-modal.active {
    opacity: 1;
    visibility: visible;
}

.judge-bio-modal-box {
    background: var(--dark-surface);
    border: 1px solid var(--gray-700);
    border-radius: 12px;
    padding: 40px 48px;
    max-width: 560px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 184, 0, 0.15);
}

.judge-bio-modal-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.judge-bio-modal-header img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border);
}

.judge-bio-modal-box h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    color: var(--golden);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.judge-bio-modal-box p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.judge-bio-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition);
}

.judge-bio-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ============================================
   SCHEDULE SECTION
   ============================================ */

/* ============================================
   SCHEDULE SUBTITLE & TABLE
   ============================================ */
.schedule-subtitle {
    text-align: center;
    margin-top: -40px;
    margin-bottom: 48px;
}

.schedule-subtitle .schedule-year {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--fire-orange);
    margin-bottom: 4px;
}

.schedule-subtitle p {
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

/* --- Desktop Tabbed Schedule --- */
.schedule-tabs {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    border: 1px solid var(--gray-700);
    border-radius: 8px;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.schedule-tab-list {
    display: flex;
    flex-direction: column;
    background: var(--dark-card);
    border-right: 1px solid var(--gray-700);
}

.schedule-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    cursor: pointer;
    text-align: left;
    transition: all var(--transition);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.schedule-tab:last-child {
    border-bottom: none;
}

.schedule-tab:hover {
    background: rgba(255, 107, 26, 0.06);
}

.schedule-tab.active {
    background: rgba(255, 107, 26, 0.1);
    border-left: 3px solid var(--fire-orange);
    color: var(--text-primary);
}

.schedule-tab.done {
    color: var(--gray-500);
}

.schedule-tab.finals .tab-rink {
    color: var(--golden);
}

.tab-check {
    width: 18px;
    flex-shrink: 0;
    color: #10B981;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
}

.tab-date {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    min-width: 72px;
}

.tab-rink {
    flex: 1;
    font-size: 0.85rem;
}

/* --- Tab Panels --- */
.schedule-tab-panels {
    padding: 32px;
    display: flex;
    align-items: stretch;
}

.schedule-panel {
    display: none;
    width: 100%;
    flex-direction: column;
}

.schedule-panel.active {
    display: flex;
}

.panel-rink-name {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.panel-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.panel-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.panel-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.panel-row a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color var(--transition);
}

.panel-row a:hover {
    color: var(--fire-orange);
}

.panel-note span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.6;
}

.panel-map {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--gray-700);
    margin-top: 8px;
    flex: 1;
    min-height: 200px;
}

.panel-map iframe {
    width: 100%;
    height: 100%;
    min-height: 200px;
    border: none;
    filter: grayscale(0.3) brightness(0.85);
}

.panel-tbd {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-style: italic;
    margin-top: 8px;
}

/* --- Mobile: Expandable Cards --- */
.schedule-cards {
    display: none;
    flex-direction: column;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.schedule-card {
    border: 1px solid var(--gray-700);
    border-radius: 8px;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 14px 16px;
    background: var(--dark-card);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: background var(--transition);
}

.card-header:hover {
    background: rgba(255, 107, 26, 0.06);
}

.schedule-card.done .card-header {
    color: var(--gray-500);
}

.schedule-card.finals .card-rink {
    color: var(--golden);
}

.card-check {
    width: 18px;
    flex-shrink: 0;
    color: #10B981;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
}

.card-date {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    min-width: 72px;
}

.card-rink {
    flex: 1;
    font-size: 0.85rem;
}

.card-arrow {
    font-size: 0.65rem;
    transition: transform var(--transition);
    margin-left: auto;
}

.schedule-card.open .card-arrow {
    transform: rotate(180deg);
}

.card-body {
    display: none;
    padding: 16px 20px;
    background: var(--dark);
    border-top: 1px solid var(--gray-700);
}

.schedule-card.open .card-body {
    display: block;
}

/* ============================================
   DIVISIONS SECTION
   ============================================ */
.divisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.division-card {
    background: var(--dark-card);
    border: 1px solid var(--gray-700);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.division-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--fire-orange), var(--golden));
    opacity: 0;
    transition: opacity var(--transition);
}

.division-card:hover {
    border-color: rgba(255, 107, 26, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.division-card:hover::before {
    opacity: 1;
}

.division-name {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.division-age {
    font-size: 0.9rem;
    color: var(--fire-orange);
    margin-bottom: 8px;
}

.division-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 8px;
}

.division-dates {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--golden);
    letter-spacing: 0.05em;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ============================================
   JUDGES SECTION
   ============================================ */
.judges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .judges-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.judge-card {
    background: var(--dark-card);
    border: 1px solid var(--gray-700);
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.judge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--fire-orange), var(--golden));
    opacity: 0;
    transition: opacity var(--transition);
}

.judge-card:hover {
    border-color: rgba(255, 107, 26, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.judge-card:hover::before {
    opacity: 1;
}

.judge-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--fire-orange);
    background: var(--dark-surface);
}

.judge-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.judge-name {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.judge-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: left;
}

/* Mobile accordion — hidden on desktop */
.judges-accordion {
    display: none;
    flex-direction: column;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.judge-accordion-item {
    border: 1px solid var(--gray-700);
    border-radius: 8px;
    overflow: hidden;
    background: var(--dark-card);
}

.judge-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: background var(--transition);
}

.judge-accordion-header:hover {
    background: rgba(255, 107, 26, 0.06);
}

.judge-accordion-arrow {
    font-size: 0.7rem;
    color: var(--fire-orange);
    transition: transform var(--transition);
}

.judge-accordion-item.open .judge-accordion-arrow {
    transform: rotate(180deg);
}

.judge-accordion-body {
    display: none;
    padding: 18px;
    border-top: 1px solid var(--gray-700);
    background: var(--dark);
}

.judge-accordion-item.open .judge-accordion-body {
    display: block;
}

.judge-accordion-body .judge-image {
    width: 140px;
    height: 140px;
    margin: 0 auto 16px;
}

.judge-accordion-body .judge-bio {
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ============================================
   RULES SECTION
   ============================================ */
.rules-list {
    max-width: 800px;
    margin: 0 auto;
    counter-reset: rules;
}

.rule-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    counter-increment: rules;
}

.rule-item::before {
    content: counter(rules);
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--fire-orange), var(--ember));
    border-radius: 50%;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--white);
}

.rule-item p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    padding-top: 4px;
}

.rule-item strong {
    color: var(--hot-red);
}


/* ============================================
   PICTURES / GALLERY SECTION (Swiper Coverflow)
   ============================================ */
.gallery-swiper {
    width: 100%;
    padding-top: 30px;
    padding-bottom: 50px;
}

.gallery-swiper .swiper-wrapper {
    align-items: center;
}

.gallery-swiper .swiper-slide {
    width: 340px;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-swiper .swiper-slide-video {
    width: 420px;
    cursor: default;
    background: var(--black);
}

.gallery-swiper .swiper-slide-video video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 520px;
    background: var(--black);
}

.gallery-swiper .swiper-pagination-bullet {
    background: var(--text-secondary);
    opacity: 0.5;
}

.gallery-swiper .swiper-pagination-bullet-active {
    background: var(--fire-orange);
    opacity: 1;
}

.gallery-empty {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-style: italic;
}

.gallery-social-links {
    text-align: center;
    margin-top: 40px;
}

.gallery-social-links p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.gallery-social-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 12px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 24px;
    border: 2px solid var(--gray-700);
    border-radius: 4px;
    color: var(--text-primary);
    transition: all var(--transition);
}

.gallery-social-links a:hover {
    border-color: var(--fire-orange);
    color: var(--fire-orange);
    background: rgba(255, 107, 26, 0.05);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 26, 0.1);
    border-radius: 8px;
}

.contact-info-item h4 {
    font-size: 0.85rem;
    color: var(--fire-orange);
    margin-bottom: 4px;
    letter-spacing: 0.1em;
}

.contact-info-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-info-item a {
    color: var(--text-secondary);
}

.contact-info-item a:hover {
    color: var(--fire-orange);
}

/* Contact form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    position: relative;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 18px 16px 8px;
    background: var(--dark-card);
    border: 1px solid var(--gray-700);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
}

.contact-form select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.contact-form select option {
    background: var(--dark-card);
    color: var(--text-primary);
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 14px;
    color: var(--gray-500);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.2s ease;
}

.form-group label .req {
    color: var(--fire-orange);
}

/* Float label up when focused or has value */
.contact-form input:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:focus + label,
.contact-form textarea:not(:placeholder-shown) + label,
.contact-form select:focus + label,
.contact-form select:not([value=""]):valid + label,
.contact-form select.has-value + label {
    top: 4px;
    font-size: 0.7rem;
    color: var(--fire-orange);
    letter-spacing: 0.03em;
}

/* Hide native placeholder — floating label replaces it */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: transparent;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--fire-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.15);
}

/* Invalid state after interaction */
.contact-form input:invalid:not(:focus):not(:placeholder-shown),
.contact-form textarea:invalid:not(:focus):not(:placeholder-shown),
.contact-form select:invalid:not(:focus) {
    border-color: var(--hot-red);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.char-count {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 0.75rem;
    color: var(--gray-500);
    pointer-events: none;
}

.char-count.near-limit {
    color: var(--golden);
}

.char-count.at-limit {
    color: var(--hot-red);
}

.contact-form button[type="submit"] {
    align-self: flex-start;
}

/* Honeypot */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Form status */
.form-status {
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.form-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-status.error {
    background: rgba(232, 41, 44, 0.1);
    color: var(--hot-red);
    border: 1px solid rgba(232, 41, 44, 0.2);
}

.status-icon {
    font-weight: 700;
    margin-right: 4px;
}

/* Map embed */
.contact-map {
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--gray-700);
}

.contact-map iframe {
    width: 100%;
    height: 300px;
    border: none;
    filter: grayscale(0.3) brightness(0.8);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--black);
    border-top: 2px solid var(--fire-orange);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .site-logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-col h4 {
    font-size: 0.85rem;
    color: var(--fire-orange);
    letter-spacing: 0.12em;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--fire-orange);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-surface);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--fire-orange);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.footer-bottom-social {
    display: flex;
    gap: 16px;
}

.footer-bottom-social a {
    color: var(--gray-500);
    transition: color var(--transition);
}

.footer-bottom-social a:hover {
    color: var(--fire-orange);
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--fire-orange);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--ember);
    transform: translateY(-3px);
    box-shadow: var(--glow-orange);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.lightbox-close:hover {
    opacity: 1;
}

/* Ensure close button stays above nav zones */
.lightbox-close {
    z-index: 3;
}

/* Prev / Next invisible click zones covering left and right halves */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 0 30px;
    color: var(--white);
    font-size: 2.5rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.lightbox-prev {
    left: 0;
    justify-content: flex-start;
    cursor: w-resize;
}

.lightbox-next {
    right: 0;
    justify-content: flex-end;
    cursor: e-resize;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 0.7;
}

.lightbox-prev span,
.lightbox-next span {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    pointer-events: none;
}

/* Keep the image clickable area on top of zones */
.lightbox img {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }
.fade-in-delay-6 { transition-delay: 0.6s; }
.fade-in-delay-7 { transition-delay: 0.7s; }
.fade-in-delay-8 { transition-delay: 0.8s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--dark);
        padding: 80px 30px 30px;
        transition: right 0.35s ease;
        border-left: 1px solid var(--gray-700);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 4px;
    }

    .main-nav a {
        display: block;
        padding: 12px 16px;
        font-size: 1rem;
    }

    .schedule-tabs {
        display: none;
    }

    .schedule-cards {
        display: flex;
    }

    .judges-grid {
        display: none;
    }

    .judges-accordion {
        display: flex;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .hero-content h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .schedule-subtitle {
        margin-top: -30px;
        margin-bottom: 32px;
    }

    .divisions-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }

    .division-card {
        padding: 20px;
    }

    .sponsors-panel {
        margin-top: 20px;
    }

    :root {
        --section-padding: 60px 0;
    }
}

@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .divisions-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .sponsors-list {
        max-width: 100%;
    }

    .sponsor-item {
        width: calc(50% - 10px);
        height: 110px;
    }

    .division-card {
        padding: 16px;
    }

    .division-name {
        font-size: 1.1rem;
    }

    .division-note {
        font-size: 0.8rem;
    }

    .schedule-subtitle {
        margin-top: -20px;
        margin-bottom: 24px;
    }

    .schedule-year {
        font-size: 1.4rem !important;
    }

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

    .gallery-social-links a {
        display: block;
        margin: 8px 0;
    }

    .gallery-swiper .swiper-slide {
        width: 260px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ============================================
   FOCUS STATES (Accessibility)
   ============================================ */
.schedule-tab:focus-visible,
.card-header:focus-visible,
.division-card:focus-visible,
.sponsor-item:focus-visible,
.btn:focus-visible,
.scroll-top:focus-visible,
.main-nav a:focus-visible,
.footer-col a:focus-visible,
.gallery-social-links a:focus-visible {
    outline: 2px solid var(--fire-orange);
    outline-offset: 2px;
}
