/* ===== VARIABLES ===== */
:root {
    --red: #E53935;
    --dark: #111;
    --darker: #0a0a0a;
    --light: #f5f5f5;
    --white: #ffffff;
    --gray: #888;
    --card-bg: rgba(255, 255, 255, 0.05);
    --transition: all 0.3s ease;
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--darker);
    color: var(--white);
    overflow-x: hidden;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
}

.btn-red {
    background: var(--red);
    color: var(--white);
    border: none;
    clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%);
    padding: 14px 50px 14px 28px;
}

.btn-red:hover {
    background: #c62828;
}

.btn-outline-dark {
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    background: transparent;
    margin-top: 30px;
}

.btn-outline-dark:hover {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1rem;
}

/* ====================== */
/*     HERO SECTION        */
/* ====================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #050505;
    overflow: hidden;
}

#hero-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.6) 40%,
            rgba(0, 0, 0, 0.2) 70%,
            transparent 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 80px;
    max-width: 650px;
}

.hero-logo {
    position: relative;
    z-index: 2;
    padding-right: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-img {
    max-width: 480px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.5));
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-subtitle {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-social {
    display: flex;
    gap: 15px;
}

.hero-social a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    transition: var(--transition);
}

.hero-social a:hover {
    color: var(--white);
}

/* ====================== */
/*    MARQUES SECTION      */
/* ====================== */
.marques {
    position: relative;
    background-image: url('background2.jpeg');
    background-size: cover;
    background-position: center;
    padding: 80px 60px;
    text-align: center;
}

.marques::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 0;
}

.marques>* {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 50px;
}

.marques-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto 10px;
}

.marque-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px 15px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}


.marque-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--red);
}

.marque-icon {
    font-size: 1.8rem;
    color: var(--red);
    margin-bottom: 12px;
    height: 40px;
    /* Give a fixed height to center the image/icon */
    display: flex;
    align-items: center;
    justify-content: center;
}

.marque-logo-img {
    max-width: 100px;
    max-height: 40px;
    object-fit: contain;
    /* Remove white background from JPEG:
       Invert makes white bg -> black bg, black logo -> white logo
       mix-blend-mode: screen makes black transparent */
    filter: grayscale(1) invert(1);
    mix-blend-mode: screen;
}

.marque-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.marque-desc {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 400;
}

.marque-desc .arrow {
    color: var(--red);
    font-weight: 700;
}

/* ====================== */
/*    HISTOIRE SECTION     */
/* ====================== */
.histoire {
    position: relative;
    padding: 100px 60px;
    background-image: url('moto2.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.histoire-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.histoire-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.section-title-light {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 30px;
    text-align: center;
}

.histoire-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 50px;
    text-align: center;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
}

.stat-number small {
    font-size: 1.2rem;
    font-weight: 400;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

/* ====================== */
/*   AVANTAGES SECTION     */
/* ====================== */
.avantages {
    position: relative;
    background-image: url('background3.jpeg');
    background-size: cover;
    background-position: center;
    padding: 80px 60px;
    text-align: center;
}

.avantages::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 0;
}

.avantages>* {
    position: relative;
    z-index: 1;
}

.avantages .section-title-light {
    margin-bottom: 50px;
}

.avantages-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.avantage-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px 15px;
    text-align: center;
    transition: var(--transition);
}

.avantage-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--red);
    transform: translateY(-5px);
}

/* Shield Icon Styles */
.shield-container {
    position: relative;
    width: 80px;
    height: 90px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield {
    position: relative;
    width: 70px;
    height: 80px;
    background: linear-gradient(145deg, #666 0%, #333 30%, #1a1a1a 60%, #333 100%);
    clip-path: polygon(50% 0%, 100% 15%, 100% 65%, 50% 100%, 0% 65%, 0% 15%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.shield::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: linear-gradient(160deg, #555 0%, #2a2a2a 40%, #111 70%, #2a2a2a 100%);
    clip-path: polygon(50% 0%, 100% 15%, 100% 65%, 50% 100%, 0% 65%, 0% 15%);
    z-index: 0;
}

.shield::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 15px;
    right: 50%;
    height: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    clip-path: polygon(35% 0%, 100% 0%, 85% 100%, 0% 100%);
    z-index: 1;
}

.shield i {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    color: #bbb;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.shield-badge {
    position: absolute;
    bottom: 12px;
    right: -2px;
    width: 26px;
    height: 26px;
    background: linear-gradient(145deg, #666, #333);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.shield-badge i {
    font-size: 0.65rem;
    color: #bbb;
}

.avantage-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    font-weight: 500;
}

/* ====================== */
/*   REJOIGNEZ SECTION     */
/* ====================== */
.rejoignez {
    position: relative;
    padding: 100px 60px;
    text-align: center;
    background-image: url('background.png');
    background-size: cover;
    background-position: bottom center;
}

.rejoignez-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.rejoignez-content {
    position: relative;
    z-index: 2;
}

.rejoignez-title {
    font-size: 2.5rem;
    font-weight: 700;
    font-style: italic;
    color: var(--white);
    margin-bottom: 20px;
}

.rejoignez-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 35px;
}

/* ====================== */
/*        FOOTER           */
/* ====================== */
.footer {
    background: #0d0d0d;
    padding: 50px 60px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 25px;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--red);
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ====================== */
/*     RESPONSIVE          */
/* ====================== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 80px;
    }

    .hero-content {
        padding: 40px 20px 20px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-social {
        justify-content: center;
    }

    .hero-logo {
        padding-right: 0;
        padding-bottom: 40px;
    }

    .marques-grid,
    .avantages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-logo-img {
        max-width: 320px;
    }

    .marques,
    .avantages,
    .histoire,
    .rejoignez,
    .footer {
        padding: 60px 25px;
    }

    .marques-grid,
    .avantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats {
        gap: 30px;
    }

    .section-title,
    .section-title-light,
    .rejoignez-title {
        font-size: 1.5rem;
    }

    /* Scale down shields */
    .shield-container {
        width: 60px;
        height: 70px;
        margin-bottom: 12px;
    }

    .shield {
        width: 50px;
        height: 60px;
    }

    .shield i {
        font-size: 1.2rem;
    }

    .shield-badge {
        width: 20px;
        height: 20px;
        bottom: 8px;
    }

    .shield-badge i {
        font-size: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-logo-img {
        max-width: 220px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .btn-red {
        clip-path: none;
        padding: 14px 28px;
    }

    .marques-grid,
    .avantages-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-direction: column;
        gap: 25px;
    }
}

/* ===== CONTACT MODAL (LIMA STYLE) ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}
.modal-overlay.active { display: flex; }

.modal-content {
    background: #ffffff !important;
    border-radius: 16px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 50px;
    position: relative;
    animation: modalIn 0.3s ease;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    z-index: 10001;
    display: block;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: #f8f8f8;
}

.modal-close:hover { background: #eee; color: var(--red); }

/* Form Rows matching Lima Specs */
.form-row-lima {
    display: flex;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
    gap: 20px;
}

.form-row-lima .spec-icon {
    color: var(--red);
    font-size: 1rem;
    width: 25px;
    text-align: center;
    margin-top: 5px;
}

.form-field-lima {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-field-lima label {
    font-size: 0.8rem;
    font-weight: 800;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.form-field-lima input,
.form-field-lima textarea {
    border: none;
    background: transparent;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #444;
    width: 100%;
}

.form-field-lima input:focus,
.form-field-lima textarea:focus {
    outline: none;
}

.form-field-lima textarea {
    min-height: 90px;
    resize: none;
}

.modal-content h2 {
    font-size: 2.2rem;
    color: #111;
    margin-bottom: 10px;
    font-weight: 800;
    line-height: 1.1;
}

.modal-content .modal-subtitle {
    color: var(--red);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}
