/* MAIN STYLESHEET - Imports all components */
/* This file can be used for any global styles that don't fit in other categories */

/* SEO-Friendly Text Styling */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary);
    line-height: 1.2;
}

/* Ensure proper heading hierarchy */
h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Improve text readability */
p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Schema.org rich snippets visibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Ensure images are properly sized */
img {
    max-width: 100%;
    height: auto;
}

/* Improve link accessibility */
a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero {
        height: 60vh;
        min-height: 500px;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 3rem 1rem;
    }

    .cookies-content {
        flex-direction: column;
        text-align: center;
    }

    .slider-nav {
        bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .slider-button {
        width: 35px;
        height: 35px;
    }
}

/* Additional styles for dealers page */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

.nav-link.active {
    color: var(--accent);
    font-weight: 600;
}