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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #004B91;
    background: #fdfdfd;
    overflow-x: hidden;
}

/* --- HEADER GRID --- */
.grid-header {
    position: relative;
    width: 100%;
    background: #000;
    line-height: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 100vh;
    opacity: 1;
    overflow: hidden;
}

.grid-header.hidden {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

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

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 34% 36% 30%;
}

.item-p {
    grid-column: 1;
    grid-row: 3;
    display: flex;
    align-items: center;
    padding-left: 25.5%;
}

.item-p p {
    color: #004b91;
    font-weight: bold;
    font-size: clamp(1rem, 2.5vw, 2.5rem);
    text-align: center;
    text-transform: uppercase;
    line-height: 1.2;
}

/* --- NAVIGATION --- */
nav {
    background: #004B91;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    text-transform: uppercase;
    transition: 0.3s;
    padding: 5px 10px;
}

nav a:hover {
    color: #ff6600;
}

/* --- SECTIONS --- */
.section {
    display: none;
    min-height: 70vh;
}

.section.active {
    display: block;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

h2 {
    color: #004B91;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 25px;
    text-transform: uppercase;
    border-left: 5px solid #ff6600;
    padding-left: 15px;
}

.tag {
    color: #ff6600;
    font-weight: bold;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

/* --- FOOTER --- */
footer {
    background: #004B91;
    color: white;
    text-align: center;
    padding: 40px;
    font-size: 1rem;
    margin-top: 40px;
}

footer a {
    color: aqua;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
    color: whitesmoke;
}


.contact-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 35px;
    border: 2px solid #004b91;
    color: #004b91;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

.contact-btn:hover {
    color: white;
    background: #004B91;
    border: 2px solid grey;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {

    .grid-overlay {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        text-align: center;
        padding: 20px;
    }

    .item-p {
        padding-left: 0;
        justify-content: center;
    }

    nav ul {
        gap: 10px;
    }

    .grid-cards,
    .grid-race {
        grid-template-columns: 1fr;
    }
}
