/* =============================================
   MEDCAR VEÍCULOS - STYLE.CSS
   Design Premium | Dourados-MS
   ============================================= */

/* ---- RESET & BASE ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --red: #D42B2B;
    --red-dark: #a01c1c;
    --red-light: #e63333;
    --red-glow: rgba(212, 43, 43, 0.25);
    --black: #0a0a0a;
    --dark: #111111;
    --dark-2: #1a1a1a;
    --dark-3: #222222;
    --dark-card: #181818;
    --gray: #888888;
    --gray-light: #aaaaaa;
    --gray-border: #2a2a2a;
    --white: #ffffff;
    --white-90: rgba(255,255,255,0.9);
    --white-60: rgba(255,255,255,0.6);
    --white-20: rgba(255,255,255,0.2);
    --white-10: rgba(255,255,255,0.1);
    --green: #25D366;
    --font-main: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-card: 0 4px 24px rgba(0,0,0,0.5);
    --shadow-red: 0 4px 24px var(--red-glow);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    /* Admin/ERP compat vars */
    --medcar-red: #D42B2B;
    --bg-dark: #0a0a0a;
    --bg-card: #181818;
    --border: #2a2a2a;
    --text: #ffffff;
    --text-muted: #888888;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul { list-style: none; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.accent { color: var(--red); }

/* ---- TOP BAR ---- */
.top-bar {
    background: var(--dark);
    border-bottom: 1px solid var(--gray-border);
    padding: calc(8px + var(--safe-top)) 0 8px 0;
    font-size: 12px;
    font-family: var(--font-body);
}

.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-light);
}

.top-bar-item svg { opacity: 0.7; }

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-light);
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 12px;
    font-weight: 500;
}

.social-link:hover {
    color: var(--white);
    background: var(--white-10);
}

.whatsapp-link {
    background: rgba(37, 211, 102, 0.15);
    color: var(--green);
}

.whatsapp-link:hover {
    background: rgba(37, 211, 102, 0.25) !important;
    color: var(--green) !important;
}

/* ---- HEADER ---- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gray-border);
    transition: var(--transition);
    padding-top: var(--safe-top);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 24px;
}

/* Logo */
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-med {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 22px;
    color: var(--white);
    letter-spacing: -0.5px;
}

.logo-car {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 22px;
    color: var(--red);
    letter-spacing: -0.5px;
}

.logo-veiculos {
    font-family: var(--font-main);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--gray-light);
    text-transform: uppercase;
    margin-top: 2px;
}

/* Nav */
.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 14px;
    color: var(--white-60);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
    transition: transform 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
    background: var(--white-10);
}

.nav-link:hover::after, .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Nav highlight – Avalie seu Usado */
.nav-link-highlight {
    color: #ff8080 !important;
    background: rgba(212,43,43,0.1) !important;
    border: 1px solid rgba(212,43,43,0.3);
}
.nav-link-highlight:hover {
    background: rgba(212,43,43,0.2) !important;
    color: white !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: var(--transition);
}

.hamburger:hover { background: var(--white-10); }

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: var(--white);
    box-shadow: var(--shadow-red);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--red-light), var(--red));
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--red-glow);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: var(--white-10);
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline-dark:hover {
    background: var(--dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,211,102,0.4);
    color: var(--white);
}

.btn-large {
    padding: 16px 36px;
    font-size: 16px;
}

.btn-full { width: 100%; }

.btn-search {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: var(--white);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0,0,0,0.90) 0%,
        rgba(10,0,0,0.75) 50%,
        rgba(0,0,0,0.60) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    padding-bottom: 80px;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(204,0,0,0.2);
    border: 1px solid rgba(204,0,0,0.4);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #ff8080;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease forwards;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-family: var(--font-main);
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 20px;
    animation: fadeInUp 0.7s ease 0.1s both;
}

.hero-title-accent {
    color: var(--red);
    display: block;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--white-60);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 560px;
    animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    animation: fadeInUp 0.7s ease 0.4s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-number {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--red);
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-border);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white-60);
    animation: bounce 2s infinite;
    z-index: 1;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

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

/* ---- SEARCH SECTION ---- */
.search-section {
    background: var(--dark-2);
    padding: 0;
    margin-top: -2px;
}

.search-card {
    background: var(--dark-card);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin: -50px 0 0 0;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-card);
}

.search-title {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 20px;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-field select {
    background: var(--dark-3);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-sm);
    color: var(--white);
    padding: 12px 14px;
    font-size: 14px;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.search-field select:focus {
    outline: none;
    border-color: var(--red);
}

.search-field select option { background: var(--dark-3); }

/* ---- WHY US ---- */
.why-us {
    background: var(--dark-2);
    padding: 40px 0 60px;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--gray-border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 24px;
}

.why-item {
    background: var(--dark-card);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 24px;
    transition: var(--transition);
}

.why-item:hover {
    background: var(--dark-3);
}

.why-icon {
    width: 52px;
    height: 52px;
    background: rgba(204,0,0,0.1);
    border: 1px solid rgba(204,0,0,0.25);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    flex-shrink: 0;
    transition: var(--transition);
}

.why-item:hover .why-icon {
    background: rgba(204,0,0,0.2);
    transform: scale(1.05);
}

.why-text h3 {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 15px;
    color: var(--white);
    margin-bottom: 4px;
}

.why-text p {
    font-size: 13px;
    color: var(--gray-light);
    line-height: 1.5;
}

/* ---- SECTION SHARED ---- */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    background: rgba(204,0,0,0.12);
    border: 1px solid rgba(204,0,0,0.3);
    color: #ff6666;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.tag-light {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.9);
}

.section-title {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 16px;
}

.section-title.light { color: var(--white); }

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-subtitle.light { color: var(--white-60); }

/* ---- VEHICLES SECTION ---- */
.vehicles-section {
    background: var(--black);
    padding: 80px 0;
}

.vehicle-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--dark-card);
    border: 1px solid var(--gray-border);
    color: var(--gray-light);
    padding: 10px 20px;
    border-radius: 50px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    box-shadow: var(--shadow-red);
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

/* Vehicle Card */
.vehicle-card {
    background: var(--dark-card);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.vehicle-card:hover {
    transform: translateY(-6px);
    border-color: rgba(204,0,0,0.4);
    box-shadow: 0 16px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(204,0,0,0.2);
}

.vehicle-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--dark-3);
}

.vehicle-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vehicle-card:hover .vehicle-card-image img {
    transform: scale(1.05);
}

.vehicle-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-3), var(--dark-2));
}

.vehicle-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--red);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* FIPE Badge – below FIPE price tag */
.vehicle-fipe-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}
.vehicle-fipe-badge.below-fipe {
    background: rgba(22,163,74,0.85);
    border-color: rgba(34,197,94,0.5);
    color: white;
    font-weight: 700;
}

.badge-new { background: #16a34a; }
.badge-promo { background: #d97706; }

.vehicle-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.vehicle-card:hover .vehicle-overlay { opacity: 1; }

.btn-overlay {
    background: var(--white);
    color: var(--dark);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 13px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-overlay:hover {
    background: var(--red);
    color: var(--white);
    transform: scale(1.05);
}

.vehicle-card-info {
    padding: 20px;
}

.vehicle-make {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.vehicle-model {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.3;
}

.vehicle-details {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.vehicle-details span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--gray-light);
}

.vehicle-price-area {
    border-top: 1px solid var(--gray-border);
    padding-top: 14px;
    margin-bottom: 14px;
}

.vehicle-price-old {
    font-size: 13px;
    color: var(--gray);
    text-decoration: line-through;
}

.vehicle-price {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--white);
    line-height: 1.2;
}

.vehicle-installment {
    font-size: 12px;
    color: var(--gray-light);
    margin-top: 2px;
}

.btn-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: var(--radius-sm);
    color: var(--green);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-card:hover {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
    transform: translateY(-1px);
}

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

/* ---- FINANCING SECTION ---- */
.financing-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.financing-bg {
    position: absolute;
    inset: 0;
}

.financing-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.financing-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.95) 0%,
        rgba(0,0,0,0.85) 50%,
        rgba(0,0,0,0.70) 100%
    );
}

.financing-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.financing-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.financing-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white-90);
    font-size: 15px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Calculator */
.financing-calculator {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.calc-title {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 24px;
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.calc-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--white-60);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-prefix {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.input-prefix:focus-within {
    border-color: var(--red);
}

.input-prefix span {
    padding: 0 12px;
    background: rgba(255,255,255,0.06);
    color: var(--gray-light);
    font-size: 13px;
    font-weight: 600;
    height: 44px;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.input-prefix input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--white);
    padding: 10px 12px;
    font-size: 14px;
    font-family: var(--font-body);
}

.input-prefix input::placeholder { color: var(--gray); }

.calc-field select {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    color: var(--white);
    padding: 12px 14px;
    font-size: 14px;
    font-family: var(--font-body);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    transition: var(--transition);
}

.calc-field select:focus {
    outline: none;
    border-color: var(--red);
}

.calc-field select option { background: var(--dark-3); }

.calc-result {
    background: rgba(212,43,43,0.12);
    border: 1px solid rgba(212,43,43,0.3);
    border-radius: var(--radius-sm);
    padding: 20px;
    animation: fadeInUp 0.4s ease;
}

/* 3-column result row */
.result-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.result-block {
    flex: 1;
    text-align: center;
}

.result-divider {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.12);
    flex-shrink: 0;
}

.result-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-light);
    margin-bottom: 6px;
}

.result-value {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1.7rem;
    color: var(--white);
    line-height: 1.1;
}

.result-value-sm {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
}

.result-note {
    font-size: 11px;
    color: var(--gray);
    line-height: 1.5;
}

/* Slider da taxa */
.taxa-slider-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

#taxa-slider {
    flex: 1;
    accent-color: var(--red);
    height: 4px;
    cursor: pointer;
}

.taxa-input-wrap {
    width: 100px;
    flex-shrink: 0;
}

.taxa-input-wrap span {
    border-right: none;
    border-left: 1px solid rgba(255,255,255,0.1);
}

.taxa-help {
    color: var(--gray);
    cursor: help;
    font-size: 13px;
    margin-left: 4px;
}

/* % da entrada */
.entrada-pct {
    font-size: 12px;
    font-weight: 600;
    min-height: 16px;
    transition: color 0.2s;
}

/* Bancos parceiros */
.banks-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.bank-pill {
    padding: 6px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--white-60);
    white-space: nowrap;
    transition: var(--transition);
}

.bank-pill:hover {
    background: rgba(255,255,255,0.14);
    color: var(--white);
}

/* ---- ABOUT SECTION ---- */

.about-section {
    background: var(--dark-2);
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-main-img {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.about-badge-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--red);
    border-radius: var(--radius);
    padding: 20px 24px;
    text-align: center;
    box-shadow: var(--shadow-red);
}

.badge-number {
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--white);
    line-height: 1;
}

.badge-text {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    line-height: 1.4;
    margin-top: 4px;
}

.about-text {
    font-size: 15px;
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    margin-top: 8px;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--white-90);
}

/* ---- CONTACT SECTION ---- */
.contact-section {
    background: var(--black);
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-card {
    background: var(--dark-card);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 24px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: rgba(204,0,0,0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whatsapp-icon { background: linear-gradient(135deg, #25D366, #128C7E); }
.phone-icon { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.location-icon { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.facebook-icon { background: linear-gradient(135deg, #1877F2, #0d5db0); }

.contact-details h3 {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 14px;
    color: var(--white);
    margin-bottom: 4px;
}

.contact-details a {
    font-weight: 600;
    font-size: 14px;
    color: var(--red);
    display: block;
    margin-bottom: 2px;
}

.contact-details a:hover { color: var(--red-light); }

.contact-details p {
    font-size: 12px;
    color: var(--gray);
    line-height: 1.4;
}

.contact-details span {
    font-weight: 600;
    font-size: 14px;
    color: var(--white-90);
    display: block;
    margin-bottom: 2px;
}

/* Contact Form */
.contact-form-card {
    background: var(--dark-card);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.contact-form-card h3 {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 8px;
}

.contact-form-card p {
    font-size: 14px;
    color: var(--gray-light);
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--dark-3);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-sm);
    color: var(--white);
    padding: 12px 14px;
    font-size: 14px;
    font-family: var(--font-body);
    transition: var(--transition);
    resize: vertical;
    min-height: 44px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-group select option { background: var(--dark-3); }

/* ---- FOOTER ---- */
.footer {
    background: var(--dark);
    border-top: 1px solid var(--gray-border);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-social {
    width: 38px;
    height: 38px;
    background: var(--dark-3);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-light);
    transition: var(--transition);
}

.footer-social:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: var(--white);
    transform: translateY(-2px);
}

.footer-social-green:hover {
    background: var(--green) !important;
    border-color: var(--green) !important;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 14px;
    color: var(--white);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-border);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 13px;
    color: var(--gray);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--red);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 12px;
}

.footer-contact-item svg { color: var(--red); flex-shrink: 0; }

.footer-bottom {
    border-top: 1px solid var(--gray-border);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--gray);
}

.footer-dev { color: var(--gray) !important; }

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
    position: fixed;
    bottom: calc(28px + var(--safe-bottom));
    right: 28px;
    z-index: 999;
    background: var(--green);
    border-radius: 50px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(37,211,102,0.5);
    transition: var(--transition);
    animation: float-pulse 3s infinite;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 30px rgba(37,211,102,0.6);
    color: var(--white);
}

@keyframes float-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7), 0 0 0 8px rgba(37,211,102,0.1); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .vehicles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .financing-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-badge-card {
        bottom: -16px;
        right: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar-left { display: none; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: var(--dark-card);
        border-left: 1px solid var(--gray-border);
        padding: 80px 24px 40px;
        transition: var(--transition);
        z-index: 999;
    }

    .main-nav.open {
        right: 0;
        box-shadow: -20px 0 60px rgba(0,0,0,0.5);
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .nav-link {
        width: 100%;
        font-size: 16px;
        padding: 14px 16px;
    }

    .hamburger { display: flex; }

    .search-form {
        grid-template-columns: 1fr;
    }

    .vehicles-grid {
        grid-template-columns: 1fr;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .whatsapp-float-label { display: none; }

    .whatsapp-float {
        border-radius: 50%;
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
    }

    .search-card { margin: 0; border-radius: 0; }

    .about-main-img { height: 280px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 2rem; }
    .search-card { padding: 24px 16px; }
    .financing-calculator { padding: 24px 16px; }
    .contact-form-card { padding: 24px 16px; }
    .stat-number { font-size: 1.4rem; }
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ---- SELECTION ---- */
::selection { background: rgba(204,0,0,0.3); color: var(--white); }

/* ---- STOREFRONT DETAIL MODAL ---- */
.vehicle-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInSW 0.3s ease forwards;
}

@keyframes fadeInSW {
    from { opacity: 0; }
    to { opacity: 1; }
}

.vehicle-modal-sheet {
    background: #0d0e12;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    animation: slideUpSW 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpSW {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.vehicle-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 24px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    transition: all 0.2s;
}

.vehicle-modal-close:hover {
    background: rgba(225, 29, 72, 0.2);
    border-color: rgba(225, 29, 72, 0.4);
    color: var(--red);
}

.vehicle-modal-body {
    padding: 30px;
}

/* Modal Content Layout */
.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 640px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
    .vehicle-modal-body {
        padding: 20px;
    }
}

.modal-media {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-img-large {
    width: 100%;
    height: 240px;
    background: #07080a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-img-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.modal-gallery-thumb {
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    background: #07080a;
}

.modal-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-gallery-thumb.active {
    border-color: var(--red);
}

.modal-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modal-make {
    color: var(--red);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.modal-model {
    font-family: var(--font-title);
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    margin-top: 4px;
}

.modal-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 16px;
    border-radius: 12px;
}

.modal-spec-item {
    display: flex;
    flex-direction: column;
}

.modal-spec-label {
    font-size: 10px;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-spec-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    margin-top: 2px;
}

.modal-price-area {
    margin-bottom: 20px;
}

.modal-price {
    font-family: var(--font-title);
    font-size: 26px;
    font-weight: 800;
    color: var(--white);
}

.modal-installment {
    font-size: 13px;
    color: var(--gray-light);
    margin-top: 4px;
}

.modal-notes-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.modal-notes {
    font-size: 12px;
    color: var(--gray-light);
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 24px;
    max-height: 100px;
    overflow-y: auto;
}
