/* ============ CSS CUSTOM PROPERTIES ============ */
:root {
    --color-primary: #C41E3A;
    --color-dark: #1A1A1A;
    --color-hmw: #2E7D32;
    --color-hhw: #B71C1C;
    --color-cd: #00796B;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background-color: var(--color-dark);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-logo {
    height: 40px;
    border-radius: 6px;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

/* Dark text on light hero, switch to white when scrolled */
.nav-links a {
    color: #333333;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
    opacity: 1;
}

.navbar.scrolled .nav-links a {
    color: #ffffff;
}

.navbar.scrolled .nav-logo {
    background-color: #ffffff;
    padding: 0.25rem 0.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links .sponsor-link {
    background-color: var(--color-primary);
    color: #ffffff !important;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    opacity: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.nav-links .sponsor-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #333333;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.3s ease;
}

.navbar.scrolled .mobile-menu-btn {
    color: #ffffff;
}

/* ============ SECTIONS BASE ============ */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

/* ============ HERO ============ */
.hero {
    background-color: #ffffff;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.hero h1 .accent {
    color: var(--color-primary);
}

.tagline {
    font-size: 1.3rem;
    font-weight: 500;
    color: #555555;
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
}

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

.hero-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--color-primary);
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.4);
}

.hero-cta-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: transparent;
    color: #333;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    border: 2px solid #cccccc;
    transition: all 0.3s ease;
}

.hero-cta-secondary:hover {
    border-color: #333;
    transform: translateY(-3px);
}

/* ============ BRAND SECTIONS ============ */
.brand-section {
    text-align: center;
}

.brand-content {
    max-width: 700px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.brand-logo {
    max-width: 220px;
    width: 55%;
    margin-bottom: 2rem;
}

.brand-logo.cd-logo {
    max-width: 380px;
    width: 80%;
}

.brand-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
}

.brand-description {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid;
    border-radius: 4px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
}

/* Section-specific styles */
.hmw-section {
    background-color: #f0f7f0;
}

.hmw-section h2 {
    color: var(--color-hmw);
}

.hmw-section .brand-description {
    color: #3a5a3a;
}

.hmw-section .cta-button {
    color: var(--color-hmw);
    border-color: var(--color-hmw);
}

.hmw-section .cta-button:hover {
    background-color: var(--color-hmw);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.3);
}

.hhw-section {
    background-color: #fdf0f0;
}

.hhw-section h2 {
    color: var(--color-hhw);
}

.hhw-section .brand-description {
    color: #5a3a3a;
}

.hhw-section .cta-button {
    color: var(--color-hhw);
    border-color: var(--color-hhw);
}

.hhw-section .cta-button:hover {
    background-color: var(--color-hhw);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(183, 28, 28, 0.3);
}

.cd-section {
    background-color: #edf7f6;
}

.cd-section h2 {
    color: var(--color-cd);
}

.cd-section .brand-description {
    color: #3a5a58;
}

.cd-section .cta-button {
    color: var(--color-cd);
    border-color: var(--color-cd);
}

.cd-section .cta-button:hover {
    background-color: var(--color-cd);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 121, 107, 0.3);
}

/* ============ SPONSOR SECTION ============ */
.sponsor-section {
    background-color: var(--color-dark);
    color: #ffffff;
    text-align: center;
    min-height: auto;
    padding: 6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-content {
    max-width: 600px;
    width: 100%;
}

.sponsor-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    color: #ffffff;
}

.sponsor-section .brand-description {
    color: #aaaaaa;
    margin-bottom: 2.5rem;
}

.sponsor-email {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: var(--color-primary);
}

/* ============ FOOTER ============ */
.footer {
    background-color: #ffffff;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
}

.footer p {
    color: #888;
    font-size: 0.85rem;
}

/* ============ SCROLL ANIMATIONS ============ */
.animate-on-scroll .anim-child {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.visible .anim-child {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.visible .anim-child:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll.visible .anim-child:nth-child(2) { transition-delay: 0.12s; }
.animate-on-scroll.visible .anim-child:nth-child(3) { transition-delay: 0.24s; }
.animate-on-scroll.visible .anim-child:nth-child(4) { transition-delay: 0.36s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-dark);
        padding: 1rem 0;
        gap: 0;
    }

    .nav-links li {
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 0.8rem 2rem;
        opacity: 1;
        color: #ffffff;
    }

    .nav-links .sponsor-link {
        background-color: transparent;
        border-radius: 0;
        padding: 0.8rem 2rem;
        color: var(--color-primary) !important;
    }

    .nav-links a:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .tagline {
        font-size: 1.05rem;
    }

    .brand-section h2,
    .sponsor-section h2 {
        font-size: 2rem;
    }

    .brand-description {
        font-size: 1rem;
    }

    .brand-logo {
        max-width: 170px;
    }

    .brand-logo.cd-logo {
        max-width: 280px;
    }

    .section {
        padding: 5rem 1.5rem;
    }

    .sponsor-section {
        padding: 5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
        letter-spacing: 1px;
    }

    .tagline {
        font-size: 0.95rem;
    }

    .brand-section h2,
    .sponsor-section h2 {
        font-size: 1.6rem;
    }

    .brand-description {
        font-size: 0.95rem;
    }

    .cta-button,
    .hero-cta,
    .hero-cta-secondary {
        padding: 0.85rem 1.8rem;
        font-size: 0.85rem;
    }

    .brand-logo {
        max-width: 140px;
    }

    .brand-logo.cd-logo {
        max-width: 220px;
    }

    .navbar {
        padding: 0.8rem 1.2rem;
    }

    .nav-logo {
        height: 32px;
    }

    .sponsor-email {
        font-size: 0.95rem;
        padding: 0.85rem 1.8rem;
    }
}
