/* Fonts are loaded via HTML link with display=swap */
:root {
    /* Colors */
    --color-bg-light: #F8FAFC;
    --color-bg-dark: #0B1220;
    --color-primary: #1d4ed8;
    /* Darkened from 2563EB for 4.5:1 on white */
    --color-gold: #b48e0b;
    /* Darkened from d4af37 */
    --color-gold-hover: #927208;
    --color-orange: #ea580c;
    --color-green: #16a34a;
    --color-text-main: #020617;
    /* Darker slate */
    --color-text-light: #F8FAFC;
    --color-text-muted: #475569;
    /* Darkened from 64748B */
    --color-glass: rgba(255, 255, 255, 0.7);
    --color-glass-dark: rgba(11, 18, 32, 0.8);

    /* Spacing & Layout */
    --container-width: 1280px;
    --header-height: 80px;
    --radius-md: 12px;
    --radius-lg: 24px;

    /* Typography */
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Manrope', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #1d4ed8);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-gold), #b8860b);
    color: var(--color-text-main);
    /* Dark text on gold for Accessibility (White on Gold fails) */
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    font-weight: 700;
    /* Bolder for better readability */
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.section-padding {
    padding: 5rem 0;
}

/* Glassmorphism */
.glass {
    background: var(--color-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.nav-menu ul {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    font-weight: 600;
    position: relative;
    font-size: 0.95rem;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text-main);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 5rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-color: var(--color-bg-light);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.badge-premium {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #eff6ff;
    /* Very light blue (almost white) */
    color: #1e3a8a;
    /* Very dark blue for strict 7:1 contrast */
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-suby {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

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

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.95);
    /* Increased from 0.5 to 0.95 for solid contrast */
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: var(--color-text-main);
    font-weight: 700;
}

.btn-glass:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.trust-badges-mini {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
}

/* Hero Image Composition */
.car-composition {
    position: relative;
    height: 400px;
    width: 100%;
}

.car-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: var(--radius-lg);
    /* Placeholder shape for car */
    mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 50" xmlns="http://www.w3.org/2000/svg"><path d="M10,40 L30,20 L70,20 L90,40 Z" /></svg>');
    /* Placeholder mask */
    -webkit-mask-image: linear-gradient(to right, black, black);
    /* Temporary solid shape until image is real */
    mask-size: contain;
    mask-repeat: no-repeat;
    /* Instead of complex mask, just a rounded rect for placeholder */
    clip-path: polygon(10% 100%, 0% 80%, 10% 40%, 30% 20%, 70% 20%, 90% 40%, 100% 80%, 90% 100%);
    background: url('https://images.unsplash.com/photo-1549317661-bd32c8ce0db2?auto=format&fit=crop&q=80&w=1000');
    /* Placeholder Real Image */
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.float-card {
    position: absolute;
    top: 10%;
    right: -20px;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 5;
    animation: float 3s ease-in-out infinite;
}

.price-tag {
    font-weight: 700;
    color: var(--color-primary);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Trust Bar */
.trust-bar {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-text-light);
    /* Fixed contrast: was muted (dark) on dark bg */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trust-logos {
    display: flex;
    gap: 2rem;
    opacity: 0.7;
}

.trust-logo {
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
}

/* Timeline */
.section-header {
    margin-bottom: 4rem;
}

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

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.timeline-card {
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
    height: 100%;
    text-align: center;
    transition: transform 0.3s;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.timeline-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-bg-dark), var(--color-primary));
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.timeline-item h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

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

/* Mobile Responsive */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-suby {
        margin: 0 auto 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .trust-badges-mini {
        justify-content: center;
    }

    .nav-menu {
        display: none;
        /* Add mobile menu logic later */
    }

    .mobile-menu-btn {
        display: flex;
    }

    .timeline {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .trust-inner {
        flex-direction: column;
        gap: 1rem;
    }
}

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

.vehicle-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.card-icon-lg {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.3s;
}

.vehicle-card:hover .card-icon-lg {
    transform: scale(1.1);
}

.vehicle-card h3 {
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

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

/* Hero Form */
.hero-form-wrapper {
    display: flex;
    justify-content: flex-end;
}

.glass-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-header h3 {
    margin-bottom: 0.25rem;
    color: var(--color-text-main);
}

.form-header p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
    background: #f8fafc;
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-full {
    width: 100%;
    margin-top: 0.5rem;
}

.form-privacy {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Mobile Adjustments for Form */
@media (max-width: 968px) {
    .hero-form-wrapper {
        justify-content: center;
        margin-top: 2rem;
    }

    .glass-form {
        max-width: 100%;
    }

    /* Keep padding reasonable on mobile */
    .section-padding {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
        /* Smaller heading on mobile */
    }
}

@media (max-width: 480px) {
    .glass-form {
        padding: 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-suby {
        font-size: 1rem;
    }

    .header-inner {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Local Block */
.district-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    /* Smaller min-width for mobile */
    gap: 1rem;
    margin-top: 3rem;
}

.district-list li {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--color-text-main);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.3s;
}

.district-list li:hover {
    background: rgba(37, 99, 235, 0.05);
    border-color: var(--color-primary);
}

/* FAQ */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: white;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.faq-toggle {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    transition: all 0.3s ease-out;
    background: #f8fafc;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: var(--color-bg-dark);
    color: var(--color-text-light);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    /* Increased from 0.7 for better readability */
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    /* Increased from 0.5 */
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* Accessibility Focus State */
*:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Mobile Sticky Bar (Luxury Design) */
.mobile-sticky-bar {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    z-index: 1000;
    display: none;
    /* Hidden on desktop */
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s backwards;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.sticky-btn:active {
    transform: scale(0.96);
}

.sticky-btn.call {
    /* Use darker gold or dark text for contrast. Black text on Gold is safest. */
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #0f172a;
    /* Dark text for passing contrast */
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.sticky-btn.whatsapp {
    /* Darker green gradients for white text support */
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* Show only on Mobile */
@media (max-width: 768px) {
    .mobile-sticky-bar {
        display: flex;
    }

    /* Ensure content isn't covered by the bar */
    .footer {
        padding-bottom: 7rem !important;
    }
}

/* Mobile Menu Logic (Missing previously) */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        z-index: 2000;
        position: relative;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1500;
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .nav-menu a {
        font-size: 1.5rem;
        color: var(--color-text-main);
    }

    /* Hamburger Animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

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

    /* Header tweaks for mobile */
    .header-inner {
        padding: 0 1.5rem;
    }

    /* Hide desktop phone button in header to save space if needed, 
       but user might want it. Let's keep it but adjust spacing */
    .header-actions .btn-gold {
        display: none;
        /* Hide header call button on mobile, we have sticky bar! */
    }
}