:root {
    --primary: #004080;
    --secondary: #0073e6;
    --accent: #ffe000;
    --text: #1f1f1f;
    --card: #ffffff;
    --border: rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: #ffffff;
}

.page-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Site Header */
header.site-header {
    background: rgba(0, 64, 128, 0.7);
    color: white;
    padding: 0.8rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: saturate(140%) blur(2px);
    overflow: visible;
    min-height: 180px;
}

.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-info {
    text-align: left;
    margin-left: 1.5rem;
    padding-top: 0;
    min-height: 2.5rem;
}

.header-info .edition {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}

.header-info .event-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0.2rem 0 0;
    color: white;
}

.site-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    min-height: 140px;
}

.site-brand img {
    height: 140px;
    width: auto;
    border: none;
    outline: none;
    box-shadow: none;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: white;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #004080;
}

/* Background image layers - NO OPACITY OVERLAY for clean images */
.hero-bg, .hero-bg-next {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: opacity 800ms ease;
    will-change: opacity, background-image;
}

.hero-bg {
    opacity: 1;
    z-index: 0;
}

.hero-bg-next {
    opacity: 0;
    z-index: 0;
}

/* Navigation controls */
.hero-controls {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5rem;
    z-index: 3;
    pointer-events: none;
}

.hero-controls button {
    pointer-events: auto;
    appearance: none;
    border: 1px solid rgba(255,255,255,0.6);
    background: rgba(0,0,0,0.2);
    color: #fff;
    border-radius: 999px;
    width: 42px;
    height: 42px;
    font-weight: 700;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-controls button:hover,
.hero-controls button:focus-visible {
    background: rgba(0,0,0,0.35);
    transform: translateY(-1px);
    outline: none;
}

/* Dot indicators */
.hero-dots {
    position: absolute;
    bottom: 0.9rem;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    gap: 0.4rem;
    z-index: 3;
}

.hero-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.hero-dots button[aria-current="true"] {
    background: rgba(255,255,255,0.9);
    transform: scale(1.2);
}

/* Hero content */
.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 3rem 1rem;
}

.hero-content h1 {
    font-size: clamp(1.5rem, 4vw, 2.75rem);
    font-weight: 700;
    margin: 0;
    margin-top: 4rem;
    text-shadow: 
        0 0 10px #22c55e,
        0 0 20px #22c55e,
        0 0 30px #16a34a,
        0 0 40px #16a34a,
        0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 0.05em;
    color: white;
}

.hero-sub {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    margin-top: 0.25rem;
    margin-bottom: 1.5rem;
}

.hero-pill {
    margin-top: 0;
    margin-bottom: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    display: inline-block;
    gap: 0.35rem;
    align-items: center;
    font-size: 0.9rem;
}

.itra-certified {
    margin-top: 0;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.95);
    font-weight: 600;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255,255,255,0.2);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Registration Opening Soon Message */
.registration-soon {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.registration-badge {
    display: inline-block;
    padding: 0;
    background: none;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    font-size: clamp(1.7rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.05em;
    -webkit-text-stroke: 0.5px #ffffff;
    text-stroke: 0.5px #ffffff;
    text-shadow: 
        0 0 10px #ffeb3b,
        0 0 20px #ffeb3b,
        0 0 30px #ffc107,
        0 0 40px #ffc107,
        0 2px 4px rgba(0,0,0,0.8);
}

.registration-subtitle {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: rgba(255,255,255,0.9);
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    font-weight: 400;
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.countdown-box {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    min-width: 80px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.countdown-box .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.countdown-box .label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* Footer */
.site-footer {
    margin-top: 0;
    padding: 0;
    background: var(--primary);
    color: white;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-logo {
    height: 80px;
    width: auto;
}

.footer-event-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-edition {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-event-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: white;
}

.footer-color-bar {
    display: flex;
    height: 6px;
    width: 100%;
    max-width: 300px;
    margin: 0.5rem 0;
}

.footer-color-bar span {
    flex: 1;
}

.footer-color-bar .yellow { background: #ffe000; }
.footer-color-bar .green { background: #10b981; }
.footer-color-bar .red { background: #ef4444; }
.footer-color-bar .maroon { background: #991b1b; }

.footer-tagline {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-contact h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: white;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    fill: rgba(255,255,255,0.8);
    flex-shrink: 0;
}

.footer-contact-item a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-item a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 880px) {
    .menu-toggle {
        display: block;
    }

    header.site-header {
        min-height: auto;
    }

    .header-info {
        min-height: auto;
        margin-left: 1rem;
        margin-bottom: 0;
    }

    .site-brand img {
        height: 100px;
    }

    .site-brand {
        min-height: 100px;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem 1.5rem;
    }

    .countdown-box {
        padding: 1rem 1.2rem;
        min-width: 70px;
    }

    .countdown-box .number {
        font-size: 2rem;
    }

    .countdown-box .label {
        font-size: 0.7rem;
    }

    .registration-soon {
        margin-top: 1.5rem;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .hero-controls button {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .site-brand img {
        height: 80px;
    }

    .site-brand {
        min-height: 80px;
    }

    .header-info {
        margin-left: 0.75rem;
    }

    .header-info .edition {
        font-size: 0.7rem;
    }

    .header-info .event-title {
        font-size: 1rem;
    }

    .itra-certified {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .hero-content h1 {
        font-size: clamp(1.25rem, 3.5vw, 2.25rem);
    }
}

/* Mobile Menu Toggle Function */
.mobile-menu-overlay {
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

