/* ============================================
   LARRESPORT RACING TEAM — Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red: #CC1B1B;
    --red-dark: #A01515;
    --red-glow: rgba(204, 27, 27, 0.3);
    --black: #0A0A0A;
    --dark: #111111;
    --dark-2: #1A1A1A;
    --dark-3: #222222;
    --gray: #888888;
    --light-gray: #CCCCCC;
    --white: #F5F5F5;
    --pure-white: #FFFFFF;
    --font-heading: 'Barlow Condensed', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --header-height: 70px;
}

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

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s, box-shadow 0.3s;
    overflow: visible;
}

.site-header.scrolled {
    background: rgba(10, 10, 10, 0.97);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.logo {
    flex-shrink: 0;
    z-index: 1001;
}

.logo img {
    height: 180px;
    width: auto;
    margin-top: 18px;
}

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

.main-nav a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 12px;
    color: var(--light-gray);
    transition: color 0.2s;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--pure-white);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-social {
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.nav-social svg {
    transition: fill 0.2s;
}

.nav-social:hover svg {
    fill: var(--red);
}

/* Language switcher */
.lang-switcher {
    display: flex;
    gap: 2px;
    margin-left: 12px;
    flex-shrink: 0;
}

.lang-btn {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--gray);
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn:hover {
    color: var(--pure-white);
    border-color: rgba(255, 255, 255, 0.3);
}

.lang-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: var(--pure-white);
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 22px; }

.hamburger.active span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, var(--red-glow) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(204, 27, 27, 0.1) 0%, transparent 50%);
    z-index: 1;
}

/* Speed lines */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: -20%;
    width: 140%;
    height: 100%;
    background: repeating-linear-gradient(
        -75deg,
        transparent,
        transparent 60px,
        rgba(255, 255, 255, 0.01) 60px,
        rgba(255, 255, 255, 0.01) 61px
    );
    z-index: 1;
}

/* Hero slideshow */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease, transform 6s ease;
    transform: scale(1.05);
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.6);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-tag {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--red);
    margin-bottom: 16px;
    font-weight: 600;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 700;
    font-style: italic;
    line-height: 0.9;
    letter-spacing: 0.02em;
    color: var(--pure-white);
    text-transform: uppercase;
}

.hero h1 span {
    display: block;
    font-size: 0.4em;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.4em;
    color: var(--light-gray);
    margin-top: 4px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--gray);
    margin-top: 24px;
    margin-bottom: 40px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hero-scroll-indicator span {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gray);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--red), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 14px 36px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--red);
    color: var(--pure-white);
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--red-glow);
}

/* --- Sections --- */
.section {
    padding: 100px 0;
    position: relative;
}

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

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

.section-skew-top {
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    height: 60px;
    background: inherit;
    transform: skewY(-1.5deg);
    z-index: 1;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-number {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 0.1em;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pure-white);
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--red), transparent);
}

.section-intro {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

/* --- Two Column Layout --- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.col h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--pure-white);
    margin-bottom: 20px;
    padding-left: 16px;
    border-left: 3px solid var(--red);
}

.col p {
    color: var(--light-gray);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

/* Feature list */
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--light-gray);
    font-size: 1.05rem;
}

.feature-icon {
    color: var(--red);
    font-size: 0.7rem;
    margin-top: 6px;
    flex-shrink: 0;
}

/* --- Proyecto image --- */
.proyecto-img {
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.proyecto-img-frame {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.proyecto-img-frame img {
    width: 100%;
    display: block;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

.proyecto-img-accent {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 40%;
    height: 40%;
    border-right: 3px solid var(--red);
    border-bottom: 3px solid var(--red);
    z-index: -1;
}

.proyecto-img-corner {
    position: absolute;
    width: 20px;
    height: 20px;
}

.proyecto-img-corner--tl {
    top: -6px;
    left: -6px;
    border-top: 3px solid var(--red);
    border-left: 3px solid var(--red);
}

.proyecto-img-corner--br {
    bottom: -6px;
    right: 22px;
    border-bottom: 3px solid var(--red);
    border-right: 3px solid var(--red);
}

/* --- Riders / Equipo --- */
.riders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.rider-card {
    background: var(--dark-3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.rider-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.rider-img {
    position: relative;
    height: 320px;
    background: var(--dark);
    overflow: hidden;
}

.rider-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gray);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.rider-number {
    position: absolute;
    bottom: 10px;
    right: 16px;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    font-style: italic;
    color: rgba(255, 255, 255, 0.08);
    line-height: 1;
}

.rider-info {
    padding: 24px;
}

.rider-info h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--pure-white);
    margin-bottom: 4px;
}

.rider-role {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--red);
}

.rider-info p {
    margin-top: 12px;
    color: var(--gray);
    font-size: 0.95rem;
}

/* --- Calendario / Competición --- */
.race-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 2;
}

.race-card {
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.race-card:hover {
    transform: translateY(-4px);
    border-color: rgba(204, 27, 27, 0.4);
}

.race-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--red);
}

.race-card-flag {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: auto;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.race-card:hover .race-card-flag {
    opacity: 0.7;
}

.race-card-date {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 16px;
}

.race-card-day {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
}

.race-card-month {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--light-gray);
}

.race-card-circuit {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--pure-white);
    line-height: 1.3;
    margin-bottom: 6px;
}

.race-card-country {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray);
}

/* --- Galería / Fotos --- */
.gallery-years {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.year-btn {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    cursor: pointer;
    transition: all 0.2s;
}

.year-btn:hover {
    border-color: var(--red);
    color: var(--pure-white);
}

.year-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: var(--pure-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
    background: var(--dark-3);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(204, 27, 27, 0);
    transition: background 0.3s;
}

.gallery-item:hover::after {
    background: rgba(204, 27, 27, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--gray);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* --- Productos --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 2;
}

.product-card {
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(204, 27, 27, 0.3);
}

.product-img {
    height: 200px;
    background: var(--dark-3);
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--gray);
    letter-spacing: 0.2em;
}

.product-info {
    padding: 20px;
}

.product-info h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--pure-white);
    margin-bottom: 8px;
}

.product-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* --- Partners --- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 24px;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background: var(--dark-3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    transition: border-color 0.3s, transform 0.3s;
}

.partner-logo:hover {
    border-color: rgba(204, 27, 27, 0.3);
    transform: translateY(-2px);
}

.partner-logo img {
    max-height: 60%;
    max-width: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.5);
    opacity: 0.6;
    transition: filter 0.3s, opacity 0.3s;
}

.partner-logo:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

.partner-placeholder {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--gray);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* --- Contacto --- */
.contact-layout {
    align-items: flex-start;
}

.contact-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--red);
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--light-gray);
    font-size: 1rem;
}

.contact-social {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.contact-social a {
    color: var(--gray);
    transition: color 0.2s;
}

.contact-social a:hover {
    color: var(--red);
}

/* Contact Form */
.contact-form {
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--white);
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--red);
}

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

/* --- Footer --- */
.site-footer {
    background: var(--black);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* padding: 40px 0; */
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo img {
    height: 128px;
    opacity: 0.6;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--red);
}

.footer-copy p {
    font-size: 0.8rem;
    color: var(--gray);
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 8px;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--red);
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-img--contain {
    max-width: 500px;
    max-height: 500px;
    background: var(--pure-white);
    padding: 40px;
    border-radius: 4px;
}

/* --- Scroll 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);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .two-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .site-header {
        position: fixed;
        overflow: visible;
    }

    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        height: auto;
        padding: 8px 16px;
    }

    .logo {
        grid-column: 1;
        grid-row: 1;
    }

    .logo img {
        height: 50px;
        margin-top: 0;
    }

    .hamburger {
        display: block;
        grid-column: 2;
        grid-row: 1;
        z-index: 1002;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--dark);
        padding: 80px 32px 32px;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        z-index: 1001;
    }

    .main-nav.open {
        display: block;
    }

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

    .main-nav a {
        display: block;
        padding: 14px 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    .main-nav a::after {
        display: none;
    }

    .nav-social {
        margin-left: 0;
        margin-top: 8px;
        padding-top: 14px;
    }

    .riders-grid {
        grid-template-columns: 1fr;
    }

    .race-cards {
        grid-template-columns: repeat(2, 1fr);
        justify-self: start;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 70px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
    }

    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .logo img {
        height: 70px;
        margin-top: -5px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }
}
