/* De Willermin Mercedes - Production Stylesheet */

:root {
    --background: #050b16;
    --background-alt: #0f1c2d;
    --surface: #101b2a;
    --surface-alt: #142234;
    --surface-light: #192a40;
    --primary: #00a6d6;
    --primary-dark: #0089b0;
    --primary-light: #49c7ec;
    --text: #f5f7fa;
    --text-muted: rgba(245, 247, 250, 0.65);
    --border: rgba(255, 255, 255, 0.08);
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
    --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.25);
    --container-width: 1180px;
    
    /* Animation performance */
    --transition-speed: 0.3s;
    --transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 3px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: radial-gradient(circle at top left, rgba(8, 27, 44, 0.9), rgba(2, 8, 18, 0.9)), #02060d;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Skip to main content link for accessibility */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1rem 1.5rem;
    background: var(--primary);
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.skip-to-main:focus {
    left: 1rem;
    top: 1rem;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-timing);
}

a:hover {
    color: var(--primary-light);
}

a:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

img {
    width: 100%;
    display: block;
    border-radius: var(--radius-md);
    object-fit: cover;
    height: auto; /* Prevent layout shift */
}

/* Improve image loading performance */
img[loading="lazy"] {
    content-visibility: auto;
}

ul {
    list-style: none;
}

.container {
    width: min(100% - 3rem, var(--container-width));
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.9rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform var(--transition-speed) var(--transition-timing), 
                box-shadow var(--transition-speed) var(--transition-timing), 
                background var(--transition-speed) var(--transition-timing);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
    will-change: transform;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #02111f;
    box-shadow: 0 12px 30px rgba(0, 166, 214, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 166, 214, 0.55);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--text);
    backdrop-filter: blur(6px);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-light);
    font-weight: 600;
    letter-spacing: 0.02em;
    position: relative;
}

.btn-link::after {
    content: '';
    position: absolute;
    bottom: -0.2rem;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-link:hover::after {
    opacity: 1;
}

.btn-full {
    width: 100%;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}

.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 2.5vw, 3.1rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
}

/* NAVBAR */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(14px);
    background: rgba(5, 11, 22, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding 0.3s ease, background 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand span {
    display: inline-block;
}

.brand-name span {
    color: var(--primary-light);
    margin-left: 0.35rem;
}

.brand-icon svg {
    color: var(--primary-light);
}

.brand-icon img {
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-link {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 0.35rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-light));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta {
    padding: 0.5rem 1.4rem;
    border-radius: 999px;
    background: rgba(0, 166, 214, 0.12);
    color: var(--primary-light);
    border: 1px solid rgba(0, 166, 214, 0.3);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* HERO */

.hero {
    position: relative;
    padding: 138px 0 120px;
    background: linear-gradient(120deg, rgba(2, 10, 20, 0.95), rgba(3, 20, 36, 0.85));
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(0, 166, 214, 0.15), transparent 55%);
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 4vw, 4.2rem);
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.hero p {
    color: var(--text-muted);
    margin-bottom: 2.2rem;
    max-width: 520px;
}

.hero-subtitle {
    color: var(--primary-light);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.4rem;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
}

.highlight-item {
    display: flex;
    gap: 0.9rem;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.highlight-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.highlight-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    width: 48px;
    height: 48px;
    padding: 0.65rem;
    border-radius: 50%;
    background: rgba(0, 166, 214, 0.1);
    color: var(--primary-light);
}

.hero-visual {
    position: relative;
    min-height: 380px;
}

.hero-car {
    width: 100%;
    min-height: 360px;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at 30% 20%, rgba(0, 166, 214, 0.2), transparent 65%);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.hero-badge {
    position: absolute;
    bottom: 18px;
    left: 24px;
    padding: 1rem 1.4rem;
    border-radius: var(--radius-md);
    background: rgba(1, 8, 18, 0.85);
    border: 1px solid rgba(0, 166, 214, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-badge .badge-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 0.3rem;
}

.mockup-grid {
    display: grid;
    gap: 0.6rem;
}

.mockup-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.12);
    line-height: 1;
}

.mockup-badge svg {
    display: block;
}

/* BRANDS */

.brands {
    padding: 70px 0;
    background: rgba(15, 31, 49, 0.75);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brands-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.brand-card {
    padding: 1.6rem 1.8rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.brand-card h3 {
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.brand-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.brand-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 166, 214, 0.35);
}

/* INVENTORY */

.inventory {
    padding: 110px 0;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.9rem;
}

.vehicle-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.vehicle-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 166, 214, 0.35);
}

.vehicle-media {
    position: relative;
}

.vehicle-media img {
    height: 200px;
    border-radius: 0;
}

.vehicle-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 166, 214, 0.85);
    color: #02101d;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.vehicle-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.vehicle-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.vehicle-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-light);
    white-space: nowrap;
}

.vehicle-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.vehicle-specs {
    display: grid;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.vehicle-specs li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.inventory-cta {
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

/* SERVICES */

.services {
    padding: 110px 0;
    background: rgba(10, 24, 40, 0.92);
}

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

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 166, 214, 0.35);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 166, 214, 0.14);
    color: var(--primary-light);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-list {
    display: grid;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* SHOWROOM */

.showroom {
    padding: 120px 0;
}

.showroom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.showroom-media img {
    height: 430px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.showroom-content p {
    color: var(--text-muted);
    margin-bottom: 1.8rem;
}

.showroom-list {
    display: grid;
    gap: 1rem;
    color: var(--text-muted);
    margin-bottom: 2.2rem;
}

.showroom-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.list-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0, 166, 214, 0.12);
    color: var(--primary-light);
}

/* FINANCING */

.financing {
    padding: 120px 0;
    background: rgba(15, 30, 48, 0.92);
}

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

.finance-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.finance-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.finance-card p, .finance-card li {
    color: var(--text-muted);
}

.finance-card ul {
    display: grid;
    gap: 0.6rem;
}

/* TESTIMONIALS */

.testimonials {
    padding: 120px 0;
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2.1rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    position: relative;
}

.rating {
    display: flex;
    gap: 0.3rem;
    color: var(--primary-light);
}

.testimonial-card p {
    color: var(--text-muted);
}

.testimonial-meta {
    display: flex;
    gap: 0.9rem;
    align-items: center;
}

.testimonial-meta img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid rgba(0, 166, 214, 0.5);
}

.testimonial-meta span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* TEST DRIVE */

.test-drive {
    padding: 120px 0;
    background: rgba(9, 21, 36, 0.95);
}

.test-drive-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.test-drive-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.test-drive-benefits {
    display: grid;
    gap: 1rem;
    color: var(--text-muted);
}

.test-drive-benefits li {
    display: flex;
    gap: 0.7rem;
}

.test-drive-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2.4rem;
    display: grid;
    gap: 1.3rem;
    box-shadow: var(--shadow-soft);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
}

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

label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
}

input, select, textarea {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    color: var(--text);
    font-size: 0.95rem;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: rgba(0, 166, 214, 0.7);
    box-shadow: 0 0 0 3px rgba(0, 166, 214, 0.25);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* CONTACT */

.contact {
    padding: 120px 0 100px;
}

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

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 1.6rem;
}

.contact-items {
    display: grid;
    gap: 1.6rem;
}

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

.contact-icon {
    display: inline-flex;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    align-items: center;
    justify-content: center;
    background: rgba(0, 166, 214, 0.12);
    color: var(--primary-light);
}

.contact-item a {
    color: var(--primary-light);
}

.contact-social {
    display: flex;
    gap: 1.1rem;
    margin-top: 2rem;
}

.contact-social a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease, background 0.3s ease;
}

.contact-social a:hover {
    transform: translateY(-4px);
    background: rgba(0, 166, 214, 0.2);
}

.contact-map img {
    height: 420px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* FOOTER */

.footer {
    background: rgba(3, 9, 18, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.4rem;
}

.footer-brand {
    margin-bottom: 1.2rem;
}

.footer h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.footer ul {
    display: grid;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.footer-contact a {
    color: var(--primary-light);
}

.footer-bottom {
    padding: 1.8rem 0;
    margin-top: 2.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary-light);
}

/* RESPONSIVE */

@media (max-width: 980px) {
    .nav-links {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(80%, 320px);
        background: rgba(4, 12, 23, 0.98);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        padding: 6rem 2rem 2rem;
        flex-direction: column;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform 0.35s ease;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-car {
        min-height: 280px;
    }

    .test-drive-wrapper, .showroom-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-map img {
        height: 300px;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 15px;
    }

    .hero {
        padding-bottom: 90px;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .vehicle-media img {
        height: 200px;
    }

    .brands {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }
}

/* Animations & states */

.field-error {
    border-color: rgba(255, 99, 132, 0.8) !important;
    box-shadow: 0 0 0 2px rgba(255, 99, 132, 0.25);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

.navbar-small .nav-container {
    padding: 0.6rem 0;
}

.navbar-small {
    background: rgba(5, 11, 22, 0.9);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

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

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

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

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(5, 11, 22, 0.98);
    border-top: 1px solid rgba(0, 166, 214, 0.3);
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.4s var(--transition-timing);
}

.cookie-consent[aria-hidden="false"] {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cookie-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 600px;
}

.cookie-link {
    color: var(--primary-light);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
}

.cookie-actions .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
}

/* Print styles */
@media print {
    .navbar,
    .menu-toggle,
    .hero-actions,
    .cookie-consent,
    footer {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text: #ffffff;
        --text-muted: rgba(255, 255, 255, 0.85);
        --border: rgba(255, 255, 255, 0.3);
    }
    
    .btn-outline {
        border-width: 2px;
    }
}

/* Loading state utilities */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Error state */
.error-message {
    color: #ff6384;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-message {
    color: #4ade80;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Improved performance with containment */
.vehicle-card,
.service-card,
.testimonial-card {
    contain: layout style paint;
}

/* GPU acceleration for smooth animations */
.btn,
.nav-link,
.vehicle-card,
.service-card {
    transform: translateZ(0);
    backface-visibility: hidden;
}

