﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #1f2937;
    background: #f8fafc;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1140px, 92%);
    margin: 0 auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e5e7eb;
}

.header-container {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f4c81;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 22px;
}

    .nav-links a {
        font-weight: 500;
        color: #334155;
        transition: color .2s ease;
    }

        .nav-links a:hover,
        .nav-links a.active {
            color: #0f4c81;
        }

.menu-btn {
    display: none;
    width: 30px;
    height: 24px;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
}

    .menu-btn span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background: #0f4c81;
        border-radius: 4px;
        transition: .3s ease;
    }

        .menu-btn span:nth-child(1) {
            top: 0;
        }

        .menu-btn span:nth-child(2) {
            top: 10px;
        }

        .menu-btn span:nth-child(3) {
            top: 20px;
        }

    .menu-btn.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 10px;
    }

    .menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 10px;
    }

/* Hero */
.hero-section {
    padding: 72px 0 52px;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 65%, #ecfeff 100%);
    text-align: center;
}

.badge,
.subtitle {
    display: inline-block;
    color: #0f4c81;
    background: #dbeafe;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    color: #0f172a;
    margin-bottom: 16px;
}

.hero-content p {
    max-width: 760px;
    margin: 0 auto;
    color: #64748b;
}

/* Section */
.dealers-section {
    padding: 72px 0;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px;
}

    .section-header h2 {
        font-size: clamp(1.8rem, 3vw, 2.5rem);
        margin-bottom: 10px;
        color: #0f172a;
    }

    .section-header p {
        color: #64748b;
    }

/* Empty */
.empty-state {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 40px 24px;
    text-align: center;
    color: #64748b;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

    .empty-state i {
        font-size: 2rem;
        color: #0f4c81;
        margin-bottom: 12px;
    }

/* Dealer cards */
.dealers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

.dealer-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .dealer-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    }

.dealer-card__body {
    padding: 24px;
}

.dealer-card__title-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

    .dealer-card__title-wrap h3 {
        color: #0f172a;
        font-size: 1.25rem;
    }

.dealer-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 12px;
    background: #eff6ff;
    color: #0f4c81;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 600;
}

.dealer-info {
    list-style: none;
    margin-bottom: 22px;
}

    .dealer-info li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 10px;
        color: #475569;
    }

    .dealer-info i {
        color: #0f4c81;
        margin-top: 4px;
        min-width: 16px;
    }

.dealer-map {
    border-radius: 18px;
    overflow: hidden;
    background: #f1f5f9;
    min-height: 220px;
    margin-bottom: 18px;
}

.map-fallback {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-align: center;
    padding: 20px;
}

    .map-fallback i {
        font-size: 1.8rem;
        color: #0f4c81;
        margin-bottom: 10px;
    }

.dealer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    background: #0f4c81;
    color: #fff;
    border-radius: 14px;
    font-weight: 600;
    transition: background .2s ease, transform .2s ease;
}

    .dealer-btn:hover {
        background: #0b3a61;
        transform: translateY(-1px);
    }

.dealer-btn--disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #e2e8f0;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr .8fr;
    gap: 28px;
    padding: 54px 0 28px;
}

.site-footer h3,
.site-footer h4 {
    margin-bottom: 14px;
    color: #fff;
}

.footer-links,
.footer-contact {
    list-style: none;
}

    .footer-links li,
    .footer-contact li {
        margin-bottom: 10px;
        color: #cbd5e1;
    }

    .footer-contact i {
        margin-right: 8px;
    }

.social-icons a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    color: #fff;
    transition: .2s ease;
}

    .social-icons a:hover {
        background: #0f4c81;
    }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 16px 0;
    text-align: center;
    color: #94a3b8;
}

/* Floating buttons */
.scroll-top,
.whatsapp-button {
    position: fixed;
    right: 22px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0,0,0,.15);
    z-index: 999;
}

.scroll-top {
    bottom: 88px;
    background: #0f4c81;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
}

    .scroll-top.show {
        opacity: 1;
        visibility: visible;
    }

.whatsapp-button {
    bottom: 22px;
    background: #25d366;
    color: #fff;
    font-size: 1.4rem;
}

/* Responsive */
@media (max-width: 992px) {
    .dealers-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 78px;
        right: -100%;
        width: min(82vw, 340px);
        height: calc(100vh - 78px);
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        box-shadow: -10px 0 30px rgba(0,0,0,.08);
        transition: .35s ease;
    }

        .nav-links.active {
            right: 0;
        }

    .hero-section,
    .dealers-section {
        padding: 56px 0;
    }

    .scroll-top,
    .whatsapp-button {
        right: 16px;
    }
}
