/* MCF Automobile - Main Stylesheet */
/* Mulish Design System */

:root {
    /* New Design System Variables */
    --mcf-blue: #0092C7;
    --mcf-blue-light: #E6F4FA;
    --mcf-blue-hover: #007AA8;
    --mcf-black: #1A1A1A;
    --mcf-dark: #2D2D2D;
    --mcf-gray: #6B6B6B;
    --mcf-gray-light: #F5F5F5;
    --mcf-gray-mid: #E0E0E0;
    --mcf-white: #FFFFFF;

    /* Backward-compatible aliases */
    --color-black: var(--mcf-black);
    --color-white: var(--mcf-white);
    --color-gray-dark: var(--mcf-dark);
    --color-gray: var(--mcf-gray);
    --color-gray-light: var(--mcf-gray-mid);
    --color-gray-bg: var(--mcf-gray-light);

    --font-primary: 'Mulish', sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--mcf-black);
    background: var(--mcf-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--mcf-black);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1rem;
    color: var(--mcf-gray);
}

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

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

/* Container */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px;
}

.container-narrow {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 48px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--mcf-gray-mid);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 72px;
    max-width: 1440px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 44px;
    width: auto;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--mcf-black);
    letter-spacing: 0.3px;
    padding: 4px 0;
    position: relative;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: var(--mcf-blue);
    border-bottom-color: var(--mcf-blue);
}

.nav-link.active {
    color: var(--mcf-blue);
    border-bottom-color: var(--mcf-blue);
}

.nav-link::after {
    display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--mcf-black);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 72px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.55));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--mcf-white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-subtitle {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--mcf-white);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Hero Search */
.hero-search {
    margin-top: 36px;
}

.hero-search-fields {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    overflow: hidden;
    max-width: 560px;
    margin: 0 auto;
}

.hero-select {
    flex: 1;
    padding: 16px 20px;
    border: none;
    background: transparent;
    color: var(--mcf-white);
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    font-weight: 600;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.7)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.hero-select option {
    color: var(--mcf-black);
    background: var(--mcf-white);
}

.hero-select:disabled {
    opacity: 0.5;
    cursor: default;
}

.hero-search-btn {
    padding: 16px 28px;
    background: var(--mcf-blue);
    color: var(--mcf-white);
    border: none;
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-search-btn:hover {
    background: var(--mcf-blue-hover);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Mulish', sans-serif;
    text-align: center;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

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

.btn-primary:hover {
    background: var(--mcf-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

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

.btn-outline:hover {
    background: var(--mcf-white);
    color: var(--mcf-black);
}

.btn-blue {
    background: var(--mcf-blue);
    color: var(--mcf-white);
}

.btn-blue:hover {
    background: var(--mcf-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,146,199,0.25);
}

/* Section Styles */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 11px;
    font-weight: 700;
    color: var(--mcf-blue);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 16px;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Card Styles */
.card {
    background: var(--mcf-white);
    border-radius: 16px;
    border: 1px solid var(--mcf-gray-mid);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.08);
    border-color: transparent;
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 28px;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.card-text {
    color: var(--mcf-gray);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
}

/* Features / Trust Section */
.features {
    background: var(--mcf-gray-light);
}

.trust-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 32px;
    align-items: start;
}

.trust-card {
    text-align: center;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust-badge {
    max-height: 120px;
    width: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

.trust-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.trust-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--mcf-gray);
    max-width: 280px;
}

.trust-card--widget {
    padding: 0;
    background: var(--mcf-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    min-height: 360px;
}

.feature-card {
    text-align: center;
    padding: 40px 24px;
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mcf-blue-light);
    border-radius: 16px;
    color: var(--mcf-blue);
    font-size: 1.75rem;
}

/* Partner Logos */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 48px;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.partner-logo img {
    max-height: 56px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Stats Section */
.stats {
    background: var(--mcf-black);
    color: var(--mcf-white);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--mcf-blue);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.footer {
    background: var(--mcf-dark);
    color: var(--mcf-white);
    padding: 60px 0 30px;
}

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

.footer-logo {
    display: block;
    max-width: 160px;
    height: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-section h3 {
    color: var(--mcf-white);
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--mcf-blue);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: var(--mcf-blue);
}

.footer-legal-links {
    margin-top: 10px;
}

.footer-legal-links a {
    margin: 0 8px;
}

/* Fixed Contact Buttons */
.fixed-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fixed-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mcf-white);
    font-size: 22px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    cursor: pointer;
}

.fixed-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.whatsapp-btn {
    background: #25D366;
}

.phone-btn {
    background: var(--mcf-blue);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--mcf-white);
    padding: 24px;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    border-top: 1px solid var(--mcf-gray-mid);
}

.cookie-banner.show {
    transform: translateY(0);
}

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

.cookie-text {
    flex: 1;
    font-size: 14px;
    color: var(--mcf-gray);
}

.cookie-buttons {
    display: flex;
    gap: 12px;
}

.cookie-btn {
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Mulish', sans-serif;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-accept {
    background: var(--mcf-black);
    color: var(--mcf-white);
}

.cookie-accept:hover {
    background: var(--mcf-dark);
}

.cookie-decline {
    background: var(--mcf-gray-light);
    color: var(--mcf-gray);
    border: 1px solid var(--mcf-gray-mid);
}

.cookie-decline:hover {
    border-color: var(--mcf-black);
    color: var(--mcf-black);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--mcf-gray);
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--mcf-gray-mid);
    border-radius: 10px;
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--mcf-black);
    background: var(--mcf-white);
    transition: border-color 0.2s;
}

.form-input:hover,
.form-textarea:hover {
    border-color: var(--mcf-gray);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--mcf-blue);
    box-shadow: 0 0 0 3px rgba(0,146,199,0.1);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .container,
    .container-narrow {
        padding: 0 24px;
    }

    .header-content {
        padding: 0 24px;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-menu {
        gap: 25px;
    }

    .trust-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .trust-card--widget {
        order: -1;
    }
}

@media (max-width: 768px) {
    .container,
    .container-narrow {
        padding: 0 20px;
    }

    .header-content {
        padding: 0 20px;
        height: 64px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--mcf-white);
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: var(--shadow-md);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

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

    .nav-menu {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .hero {
        margin-top: 64px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-search-fields {
        flex-direction: column;
        border-radius: 12px;
    }

    .hero-select {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 14px 18px;
    }

    .hero-search-btn {
        justify-content: center;
        padding: 14px 18px;
    }

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

    .partner-logos {
        gap: 24px;
    }

    .partner-logo img {
        max-height: 40px;
    }

    .fixed-buttons {
        bottom: 20px;
        right: 20px;
    }

    .fixed-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--mcf-gray-mid);
    border-radius: 50%;
    border-top-color: var(--mcf-blue);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.bg-gray { background: var(--mcf-gray-light); }
.bg-white { background: var(--mcf-white); }
