/* CSS Custom Properties */
:root {
    --primary-color: 210 89% 52%; /* #1E88E5 */
    --secondary-color: 230 15% 25%; /* #3A4B5C */
    --accent-color: 45 100% 60%; /* #FFCC02 */
    --text-dark: 225 15% 20%; /* #2B3544 */
    --text-light: 225 10% 60%; /* #8B9BB0 */
    --light-bg: 210 40% 98%; /* #F8FAFC */
    --white: 0 0% 100%; /* #FFFFFF */
    --border-color: 220 13% 91%; /* #E2E8F0 */
    --shadow: 220 13% 50%; /* Shadow base */
    
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: Georgia, 'Times New Roman', serif;
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 hsla(var(--shadow) / 0.05);
    --shadow-md: 0 4px 6px -1px hsla(var(--shadow) / 0.1), 0 2px 4px -1px hsla(var(--shadow) / 0.06);
    --shadow-lg: 0 10px 15px -3px hsla(var(--shadow) / 0.1), 0 4px 6px -2px hsla(var(--shadow) / 0.05);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: hsl(var(--text-dark));
    background-color: hsl(var(--white));
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: hsl(var(--text-dark));
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: hsl(var(--text-light));
}

a {
    color: hsl(var(--primary-color));
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: hsl(var(--primary-color) / 0.8);
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.125rem;
    color: hsl(var(--text-light));
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: hsl(var(--primary-color));
    color: hsl(var(--white));
}

.btn-primary:hover {
    background-color: hsl(var(--primary-color) / 0.9);
    color: hsl(var(--white));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: hsl(var(--secondary-color));
    color: hsl(var(--white));
}

.btn-secondary:hover {
    background-color: hsl(var(--secondary-color) / 0.9);
    color: hsl(var(--white));
}

.btn-outline {
    background-color: transparent;
    color: hsl(var(--primary-color));
    border: 2px solid hsl(var(--primary-color));
}

.btn-outline:hover {
    background-color: hsl(var(--primary-color));
    color: hsl(var(--white));
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: hsl(var(--white));
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    padding: 1.5rem;
    border-top: 3px solid hsl(var(--primary-color));
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text h3 {
    margin-bottom: 0.5rem;
    color: hsl(var(--text-dark));
}

.cookie-text p {
    margin: 0;
    color: hsl(var(--text-light));
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* Cookie Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: hsla(var(--text-dark) / 0.5);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: hsl(var(--white));
    max-width: 500px;
    width: 90%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid hsl(var(--border-color));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: hsl(var(--text-light));
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: hsl(var(--text-dark));
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid hsl(var(--border-color));
    text-align: right;
}

.cookie-category {
    margin-bottom: 1.5rem;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    width: 3rem;
    height: 1.5rem;
    background: hsl(var(--border-color));
    border-radius: 1rem;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.25rem;
    height: 1.25rem;
    background: hsl(var(--white));
    border-radius: 50%;
    transition: var(--transition);
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-slider {
    background: hsl(var(--primary-color));
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(1.5rem);
}

.cookie-toggle input[type="checkbox"]:disabled + .toggle-slider {
    background: hsl(var(--text-light));
    opacity: 0.6;
}

.cookie-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.cookie-info p {
    margin: 0;
    font-size: 0.875rem;
    color: hsl(var(--text-light));
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Header */
.header {
    background: hsl(var(--white));
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--text-dark));
    text-decoration: none;
}

.nav-logo svg {
    color: hsl(var(--primary-color));
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: hsl(var(--text-dark));
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: hsl(var(--primary-color));
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.25rem;
}

.bar {
    width: 1.5rem;
    height: 2px;
    background: hsl(var(--text-dark));
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, hsl(var(--light-bg)), hsl(var(--white)));
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
    color: hsl(var(--text-dark));
}

.hero-text p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: hsl(var(--text-light));
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image svg {
    width: 100%;
    height: auto;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: hsl(var(--white));
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    color: hsl(var(--text-dark));
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 2rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat h4 {
    font-size: 2rem;
    color: hsl(var(--primary-color));
    margin-bottom: 0.5rem;
}

.stat p {
    margin: 0;
    font-weight: 500;
    color: hsl(var(--text-dark));
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: hsl(var(--light-bg));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: hsl(var(--white));
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: hsl(var(--text-dark));
    margin-bottom: 1rem;
}

.service-card p {
    color: hsl(var(--text-light));
    margin: 0;
}

/* Inventory Section */
.inventory {
    padding: 5rem 0;
    background: hsl(var(--white));
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.vehicle-card {
    background: hsl(var(--white));
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.vehicle-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.vehicle-image svg {
    width: 100%;
    height: 100%;
}

.vehicle-info {
    padding: 1.5rem;
}

.vehicle-info h3 {
    color: hsl(var(--text-dark));
    margin-bottom: 0.5rem;
}

.vehicle-details {
    color: hsl(var(--text-light));
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.vehicle-price {
    color: hsl(var(--primary-color));
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.vehicle-description {
    color: hsl(var(--text-light));
    margin: 0;
}

.inventory-cta {
    text-align: center;
}

/* Reviews Section */
.reviews {
    padding: 5rem 0;
    background: hsl(var(--light-bg));
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: hsl(var(--white));
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.review-stars {
    margin-bottom: 1rem;
}

.review-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: hsl(var(--text-dark));
}

.reviewer strong {
    color: hsl(var(--text-dark));
    display: block;
}

.reviewer span {
    color: hsl(var(--text-light));
    font-size: 0.875rem;
}

/* Newsletter Section */
.newsletter {
    padding: 3rem 0;
    background: hsl(var(--primary-color));
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.newsletter-text {
    flex: 1;
}

.newsletter-text h2 {
    color: hsl(var(--white));
    margin-bottom: 1rem;
}

.newsletter-text p {
    color: hsl(var(--white) / 0.9);
    margin: 0;
}

.newsletter-form {
    flex: 1;
    max-width: 400px;
}

.form-group {
    display: flex;
    gap: 0.5rem;
}

.form-group input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-group input:focus {
    outline: 2px solid hsl(var(--accent-color));
}

.form-disclaimer {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--white) / 0.8);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: hsl(var(--white));
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    color: hsl(var(--primary-color));
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-details h3 {
    color: hsl(var(--text-dark));
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.contact-details p {
    margin: 0;
    color: hsl(var(--text-light));
}

.contact-details a {
    color: hsl(var(--primary-color));
}

.contact-map {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.map-placeholder {
    width: 100%;
    height: 400px;
}

/* Footer */
.footer {
    background: hsl(var(--secondary-color));
    color: hsl(var(--white));
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: hsl(var(--white));
    margin-bottom: 1rem;
}

.footer-section p {
    color: hsl(var(--white) / 0.8);
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: hsl(var(--white) / 0.8);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: hsl(var(--white));
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: hsl(var(--white) / 0.8);
    transition: var(--transition);
}

.social-links a:hover {
    color: hsl(var(--accent-color));
}

.footer-bottom {
    border-top: 1px solid hsl(var(--white) / 0.2);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: hsl(var(--white) / 0.6);
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: hsl(var(--white));
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-image svg {
    width: 100%;
    height: 100%;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    color: hsl(var(--text-light));
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.blog-title {
    color: hsl(var(--text-dark));
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.blog-excerpt {
    color: hsl(var(--text-light));
    margin-bottom: 1rem;
}

.read-more {
    color: hsl(var(--primary-color));
    font-weight: 500;
}

/* Article Page Styles */
.article-header {
    padding: 8rem 0 2rem;
    background: hsl(var(--light-bg));
    text-align: center;
}

.article-meta {
    color: hsl(var(--text-light));
    margin-bottom: 1rem;
}

.article-title {
    font-size: 2.5rem;
    color: hsl(var(--text-dark));
    margin-bottom: 1rem;
}

.article-excerpt {
    font-size: 1.125rem;
    color: hsl(var(--text-light));
    max-width: 800px;
    margin: 0 auto;
}

.article-content {
    padding: 3rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    color: hsl(var(--text-dark));
    margin: 2rem 0 1rem;
    font-size: 1.75rem;
}

.article-content h3 {
    color: hsl(var(--text-dark));
    margin: 1.5rem 0 1rem;
    font-size: 1.5rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: hsl(var(--text-light));
}

.article-image {
    margin: 2rem 0;
    text-align: center;
}

.article-image svg {
    max-width: 100%;
    height: auto;
}

/* Newsletter Thank You Page */
.thank-you {
    padding: 8rem 0 4rem;
    text-align: center;
    background: hsl(var(--light-bg));
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.thank-you-content h1 {
    color: hsl(var(--primary-color));
    margin-bottom: 1rem;
}

.thank-you-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Legal Pages */
.legal-page {
    padding: 8rem 0 4rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    color: hsl(var(--text-dark));
    margin-bottom: 2rem;
    text-align: center;
}

.legal-content h2 {
    color: hsl(var(--text-dark));
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.legal-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: hsl(var(--text-light));
}

.last-updated {
    color: hsl(var(--text-light));
    font-style: italic;
    text-align: center;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: hsl(var(--white));
        flex-direction: column;
        padding: 2rem 1rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .services,
    .inventory,
    .reviews,
    .about,
    .contact {
        padding: 3rem 0;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .inventory-grid,
    .reviews-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
