/* ============================
   One-Page Dealer Site — Shared
   ============================ */

/* ── Hero Section ── */
.hero-section {
    position: relative;
    height: 100vh;
    max-height: 800px;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-fallback {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark, #1d4ed8) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 2rem;
    max-width: 900px;
}

.hero-logo {
    max-height: 90px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.hero-tagline {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* Hero Nav Buttons (pills) */
.hero-nav {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
}

.hero-nav-btn {
    display: inline-block;
    padding: 0.45rem 1rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: background 0.3s, transform 0.2s;
    white-space: nowrap;
}

.hero-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Hero Indicators (dots) */
.hero-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}

.hero-dot.active,
.hero-dot:hover {
    background: #fff;
}

/* ── Sticky Navigation ── */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
    background: var(--color-bg, #fff);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.35s ease;
}

.sticky-nav.visible {
    transform: translateY(0);
}

.sticky-nav-inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 2rem;
}

.sticky-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-text, #1a1a1a);
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.sticky-nav-logo {
    height: 36px;
    width: auto;
}

.sticky-nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.sticky-nav-links a {
    color: var(--color-text-light, #64748b);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.sticky-nav-links a:hover,
.sticky-nav-links a.active {
    color: var(--color-primary, #2563eb);
    border-bottom-color: var(--color-primary, #2563eb);
}

/* Hamburger toggle (mobile) */
.sticky-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}

.sticky-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text, #1a1a1a);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.sticky-nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.sticky-nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.sticky-nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Content Sections ── */
.onepage .dealer-section {
    padding: 5rem 0;
    scroll-margin-top: 70px;
}

.onepage .section-alt {
    background: var(--color-bg-alt, #f8fafc);
}

/* ── Footer ── */
.onepage .dealer-footer {
    padding: 2rem 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-section {
        height: 80vh;
        max-height: 650px;
    }
    .hero-title { font-size: 2rem; }
}

@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
        max-height: 550px;
        min-height: 400px;
    }

    .hero-title { font-size: 1.6rem; }
    .hero-tagline { font-size: 1rem; }
    .hero-logo { max-height: 60px; }
    .hero-nav-btn { font-size: 0.8rem; padding: 0.5rem 1rem; }
    .hero-indicators { bottom: 1.5rem; }

    /* Sticky nav: hamburger */
    .sticky-nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-bg, #fff);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        gap: 0;
    }

    .sticky-nav-links.open {
        display: flex;
    }

    .sticky-nav-links a {
        padding: 0.75rem 1rem;
        border-bottom: none;
        font-size: 0.95rem;
    }

    .sticky-nav-toggle {
        display: flex;
    }

    .onepage .dealer-section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 60vh;
        min-height: 350px;
    }
    .hero-title { font-size: 1.3rem; }
    .hero-nav { gap: 0.5rem; }
    .hero-nav-btn { padding: 0.4rem 0.8rem; font-size: 0.75rem; }
}
