/* ============================================================
   EreMotors — Clean & Professional (Light)
   Palette: white surfaces, near-black text, red used sparingly.
   Type:    Manrope (display/headings) + Inter (UI/body)
   ============================================================ */

:root {
    /* Surfaces — cool clean light */
    --ink: #f6f7f9;
    --ink-2: #ffffff;
    --ink-3: #eef1f5;
    --ink-soft: #e3e7ee;
    --paper: #ffffff;

    /* Text */
    --bone: #0c1219;
    --text: #1a232e;
    --text-soft: #475569;
    --text-dim: #64748b;
    --text-mute: #94a3b8;

    /* Brand */
    --red: #c91922;
    --red-deep: #971016;
    --red-soft: #fdecec;
    --red-glow: rgba(201, 25, 34, 0.06);
    --wine: #7a1f25;

    /* Borders */
    --surface-1: rgba(15, 23, 42, 0.025);
    --surface-2: rgba(15, 23, 42, 0.05);
    --border: rgba(15, 23, 42, 0.09);
    --border-strong: rgba(15, 23, 42, 0.18);

    /* Footer / inverted band */
    --dark: #0c1219;
    --dark-soft: #161e2a;
    --dark-text: #d1d5db;
    --dark-dim: #8a93a3;
    --dark-border: rgba(255, 255, 255, 0.08);

    /* Radii */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --max-w: 1340px;
    --gutter: 5.5%;
    --space-section: 6.5rem;

    --font-display: 'Manrope', 'Inter', system-ui, sans-serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --ease: cubic-bezier(.2,.7,.2,1);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 48px -22px rgba(15, 23, 42, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
*:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }
/* Ensure all interactive elements and media never exceed their container width */
img, input, select, textarea, video { max-width: 100%; }
input[type=range] { min-width: 0; }

html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    /* Prevent horizontal bounce-scroll on iOS Safari.
       `clip` (unlike `hidden`) does NOT create a new scroll container,
       so `position: sticky` on the navbar keeps working correctly.
       Older browsers (Safari < 16) fall back to `hidden`. */
    overflow-x: hidden; /* fallback */
    overflow-x: clip;   /* preferred */
}
body {
    background: var(--ink);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    font-weight: 400;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "ss01" 1, "cv11" 1;
    overflow-x: hidden; /* fallback */
    overflow-x: clip;   /* preferred */
}

/* Tabular numerals for prices, years, mileage, phone numbers */
.price, .vehicle-price, .stat-value, .meta-value,
[data-tabular], time, .phone, .year, .km, .mileage {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "kern" 1;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.022em;
    color: var(--bone);
    line-height: 1.15;
}
h1 { letter-spacing: -0.03em; }
h2 { letter-spacing: -0.025em; }
h1 em, h2 em, h3 em, h4 em,
.section-title em {
    font-style: normal;
    font-weight: 600;
    color: var(--red);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ============================================================
   LOGO
   ============================================================ */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
    color: var(--bone);
}
.logo-img {
    display: block;
    height: 38px;
    width: auto;
    transition: opacity 0.2s var(--ease);
}
.logo:hover .logo-img { opacity: 0.85; }

/* Nav variant: inverted wordmark (white -> black, red kept). No chip / no border. */
nav.site-nav .logo {
    background: transparent;
    padding: 0;
    border: none;
}
nav.site-nav .logo-img {
    height: 30px;
    content: url('/assets/logomarca-dark.png');
    content: -webkit-image-set(url('/assets/logomarca-dark.png') 1x, url('/assets/logomarca-dark@2x.png') 2x);
    content: image-set(url('/assets/logomarca-dark.png') 1x, url('/assets/logomarca-dark@2x.png') 2x);
}

/* ============================================================
   NAVBAR
   ============================================================ */
nav.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.2rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: none;
    box-shadow: 0 1px 0 rgba(15,23,42,0.07), 0 4px 20px -6px rgba(15,23,42,0.08);
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2.4rem;
    list-style: none;
    align-items: center;
}
.nav-links a {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-soft);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 0;
    position: relative;
    transition: color 0.2s var(--ease);
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -3px;
    height: 1.5px; width: 0;
    background: var(--red);
    transition: width 0.25s var(--ease);
}
.nav-links a:hover { color: var(--bone); }
.nav-links a.is-active { color: var(--bone); }
.nav-links a:hover::after,
.nav-links a.is-active::after { width: 100%; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--bone);
    color: var(--paper);
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s var(--ease);
}
.nav-cta:hover,
.nav-cta:active { background: var(--red); }
.nav-cta svg { width: 14px; height: 14px; }

/* In the mobile hamburger dropdown, "Fale Conosco" is the main action.
   Style it WhatsApp-green so it's unmissable and obviously tappable. */
.nav-mobile .nav-cta {
    margin-top: 1rem;
    justify-content: center;
    padding: 14px;
    background: #25D366;
    color: #fff;
    font-size: 0.9rem;
}
.nav-mobile .nav-cta:hover,
.nav-mobile .nav-cta:active { background: #1faf52; }

.nav-hamburger {
    display: none;
    background: none;
    border: 1px solid var(--border-strong);
    color: var(--bone);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-hamburger span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--bone);
    position: relative;
}
.nav-hamburger span::before,
.nav-hamburger span::after {
    content: '';
    position: absolute;
    width: 16px; height: 1.5px;
    background: var(--bone);
    left: 0;
    transition: transform 0.25s var(--ease);
}
.nav-hamburger span::before { top: -6px; }
.nav-hamburger span::after { top: 6px; }
nav.is-open .nav-hamburger span { background: transparent; }
nav.is-open .nav-hamburger span::before { transform: translateY(6px) rotate(45deg); }
nav.is-open .nav-hamburger span::after { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem var(--gutter) 1.5rem;
    flex-direction: column;
    gap: 0;
    box-shadow: var(--shadow-md);
}
.nav-mobile a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--bone);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-of-type { border-bottom: none; }
.nav-mobile .nav-cta { margin-top: 1rem; justify-content: center; padding: 14px; }
nav.is-open .nav-mobile { display: flex; }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.float-wa {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999;
    width: 54px;
    height: 54px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px -6px rgba(37, 211, 102, 0.45), 0 4px 10px rgba(0,0,0,0.10);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.float-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -6px rgba(37, 211, 102, 0.55), 0 4px 10px rgba(0,0,0,0.12);
}
.float-wa svg { width: 26px; height: 26px; }

/* ============================================================
   UTILITY / TYPOGRAPHY
   ============================================================ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.eyebrow-dot {
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--red);
    border-radius: 50%;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin: 1rem 0 1.2rem;
    max-width: 760px;
    font-weight: 700;
    color: var(--bone);
}
.section-title em,
.section-title .red {
    font-style: normal;
    font-weight: 600;
    color: var(--red);
}
.section-lede {
    color: var(--text-soft);
    font-size: 1.02rem;
    line-height: 1.7;
    max-width: 580px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
    border: 1px solid transparent;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: 0;
}
.btn:active { transform: translateY(1px); }
.btn:disabled,
.btn[disabled] {
    cursor: not-allowed;
    opacity: 0.4;
    filter: grayscale(0.5);
    box-shadow: none;
    transform: none;
    pointer-events: none;
}

/* Field-level error state — applied by validateForm() in shared.js
   when the user tries to submit with missing/invalid required fields */
.form-field.is-invalid label { color: var(--red); }
.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(201, 25, 34, 0.12);
    background: rgba(201, 25, 34, 0.03);
}
.form-field.is-invalid::after {
    content: 'Campo obrigatório';
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--red);
    margin-top: 0.4rem;
    font-weight: 500;
}
.consent-field.is-invalid .consent-mark,
.consent-box.is-invalid .consent-mark {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(201, 25, 34, 0.18);
}
.consent-field.is-invalid .consent-text,
.consent-box.is-invalid .consent-text { color: var(--red); }
.consent-field.is-invalid::after {
    content: 'Você precisa autorizar para continuar';
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--red);
    margin-top: 0.6rem;
    font-weight: 500;
}
.btn-primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 1px 2px rgba(201, 25, 34, 0.18), 0 4px 12px -4px rgba(201, 25, 34, 0.35);
}
.btn-primary:hover,
.btn-primary:active { background: var(--red-deep); box-shadow: 0 2px 4px rgba(201, 25, 34, 0.20), 0 8px 18px -6px rgba(201, 25, 34, 0.45); }
.btn-ghost {
    background: var(--ink-2);
    color: var(--bone);
    border-color: var(--border-strong);
}
.btn-ghost:hover,
.btn-ghost:active { background: var(--bone); color: #fff; border-color: var(--bone); }
.btn-wa {
    background: #25D366;
    color: white;
    box-shadow: 0 1px 2px rgba(37, 211, 102, 0.18), 0 4px 12px -4px rgba(37, 211, 102, 0.35);
}
.btn-wa:hover,
.btn-wa:active { background: #1faf52; }
.btn svg { width: 16px; height: 16px; }

.btn-xl {
    padding: 18px 38px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
    gap: 14px;
}
.btn-xl .btn-arrow {
    display: inline-block;
    transition: transform 0.25s var(--ease);
}
.btn-xl:hover .btn-arrow { transform: translateX(4px); }

.divider-stripe { display: none; }

/* ============================================================
   HERO — Home
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    padding: 2.5rem var(--gutter) 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 55%, #f0f2f6 100%);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(15,23,42,0.045) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}
/* Soft brand-colour glow behind the card */
.hero::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 55%;
    height: 120%;
    background: radial-gradient(ellipse at 70% 40%, rgba(201,25,34,0.055) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    /* col 1: text (row 1) + pillars (row 2)  |  col 2: vehicle card (spans both) */
    grid-template-columns: 1.4fr 0.85fr;
    grid-template-rows: auto auto;
    column-gap: 5rem;
    row-gap: 0;            /* hero-cta margin-bottom + pillars padding-top handle spacing */
    align-items: center;   /* vertical-centre each item in its row — matches original */
}
.hero-eyebrow {
    margin-bottom: 1rem;
    background: rgba(201, 25, 34, 0.07);
    border: 1px solid rgba(201, 25, 34, 0.14);
    padding: 5px 11px;
    border-radius: 999px;
}

/* Explicitly pin left-column items so the car card always lands on the right */
.hero-text   { grid-column: 1; }
.hero-pillars { grid-column: 1; }

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 1rem;
}
.hero h1 em { color: var(--red); font-style: normal; font-weight: 800; }
.hero h1 .word-red { color: var(--red); font-style: normal; font-weight: 700; }
.hero h1 .word-stroke { color: var(--bone); font-style: normal; font-weight: 600; }
.hero-sub {
    color: var(--text-soft);
    font-size: 1.08rem;
    max-width: 460px;
    line-height: 1.7;
    margin-bottom: 1.6rem;
}
.hero-cta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-pillars {
    display: flex;
    gap: 0;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
}
.pillar {
    flex: 1;
    padding: 0 1.2rem;
}
.pillar:first-child { padding-left: 0; }
.pillar:last-child  { padding-right: 0; }
.pillar + .pillar {
    border-left: 1px solid var(--border);
}
.pillar-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.7rem;
    color: var(--bone);
    letter-spacing: -0.025em;
    line-height: 1;
    margin-bottom: 0.35rem;
}
.pillar-num .red { color: var(--red); font-style: normal; }
.pillar-label {
    font-family: var(--font-body);
    font-size: 0.6rem;
    color: var(--text-dim);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Hero right visual — featured vehicle card */
.hero-visual {
    position: relative;
    aspect-ratio: 4/5;       /* restored: portrait card drives its own height */
    grid-column: 2;          /* always in the right column */
    grid-row: 1 / 3;         /* span text row AND pillars row */
    /* align-self inherits 'center' from hero-inner — no override needed */
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px -16px rgba(15,23,42,0.18), 0 0 0 1px rgba(15,23,42,0.03), 0 8px 30px -10px rgba(201,25,34,0.08);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.hero-visual:hover {
    transform: translateY(-4px);
    box-shadow: 0 36px 80px -20px rgba(15,23,42,0.22), 0 0 0 1px rgba(15,23,42,0.04), 0 12px 40px -12px rgba(201,25,34,0.12);
}
.hero-featured {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.hero-featured-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    background: var(--bone);
    color: #fff;
    padding: 7px 11px;
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: var(--radius-xs);
    box-shadow: 0 6px 14px -4px rgba(15, 23, 42, 0.35);
}
.hero-featured-img {
    flex: 1 1 60%;
    min-height: 0;
    background: var(--ink-3);
    position: relative;
    overflow: hidden;
}
.hero-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.hero-visual:hover .hero-featured-img img { transform: scale(1.04); }
.hero-featured-body {
    padding: 1.6rem 1.7rem 1.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    background: var(--paper);
    flex: 1 1 auto;
}
.hero-featured-overline {
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--red);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.hero-featured-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.55rem;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--bone);
    margin: 0 0 0.4rem;
}
.hero-featured-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 1.1rem;
    margin-top: auto;
}
.hero-featured-specs .spec-unit {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.72rem;
    color: var(--text-dim);
    font-family: var(--font-body);
    min-width: 0;
}
.hero-featured-specs .spec-unit b {
    color: var(--bone);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    overflow-wrap: break-word;
}
.hero-featured-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-top: 0.95rem;
    margin-top: 0.95rem;
    border-top: 1px solid var(--border);
}
.hero-featured-price {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.55rem;
    letter-spacing: -0.025em;
    color: var(--red);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.hero-featured-cta {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bone);
    white-space: nowrap;
    transition: color 0.2s var(--ease);
}
.hero-visual:hover .hero-featured-cta { color: var(--red); }

/* Carousel track + controls */
.hf-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.6s var(--ease);
    will-change: transform;
}
.hf-slide {
    flex: 0 0 100%;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.hf-arrow {
    position: absolute;
    top: 32%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    color: var(--bone);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.25s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0 0 3px;
    font-family: var(--font-display);
    font-weight: 600;
}
.hero-visual:hover .hf-arrow,
.hero-visual:focus-within .hf-arrow { opacity: 1; }
.hf-arrow:hover { background: #fff; color: var(--red); }
.hf-arrow.hf-prev { left: 0.8rem; }
.hf-arrow.hf-next { right: 0.8rem; }
.hf-arrow:active { transform: translateY(-50%) scale(0.94); }

.hf-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 3;
    padding: 5px 9px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 100px;
    border: 1px solid var(--border);
}
.hf-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(14, 14, 16, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, width 0.3s;
}
.hf-dot.active { background: var(--bone); width: 16px; border-radius: 3px; }

/* Empty/skeleton states */
.hero-featured-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
    gap: 0.6rem;
}
.hero-featured-empty h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--bone);
}
.hero-featured-empty p {
    color: var(--text-soft);
    font-size: 0.95rem;
    max-width: 280px;
}
.hero-featured-skel {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.hero-featured-skel .sk-img,
.hero-featured-skel .sk-bar {
    background: linear-gradient(90deg, var(--ink-2) 0%, var(--ink-3) 50%, var(--ink-2) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
}
.hero-featured-skel .sk-img { flex: 1 1 60%; }
.hero-featured-skel .sk-body {
    padding: 1.6rem 1.7rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.hero-featured-skel .sk-bar { height: 12px; border-radius: 6px; }
.hero-featured-skel .sk-bar.lg { height: 22px; width: 65%; }
.hero-featured-skel .sk-bar.sm { height: 10px; width: 35%; }

/* Brand ticker — quieter, editorial */
.brand-ticker {
    background: var(--ink);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.4rem 0;
    overflow: hidden;
    /* contain:paint ensures the composited ticker layer is truly clipped
       even on iOS Safari where overflow:hidden alone can be bypassed */
    contain: paint;
    position: relative;
    margin-top: 2rem;
}
.brand-ticker::before,
.brand-ticker::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}
.brand-ticker::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.brand-ticker::after { right: 0; background: linear-gradient(-90deg, var(--ink), transparent); }
.ticker-track {
    display: flex;
    animation: ticker 45s linear infinite;
    width: max-content;
    will-change: transform;
}
.ticker-item {
    font-family: var(--font-sans);
    font-weight: 600;
    font-style: normal;
    font-size: 0.95rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4rem;
    padding-right: 4rem;
}
.ticker-item::after {
    content: '·';
    width: auto;
    height: auto;
    background: transparent;
    color: var(--text-mute);
    font-size: 1.4rem;
    line-height: 1;
}
@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================
   FEATURED / HOME INVENTORY STRIP
   ============================================================ */
.featured {
    padding: 3.5rem var(--gutter) var(--space-section);
    background: var(--ink);
    border-bottom: 1px solid var(--border);
    position: relative;
}
.featured-inner { max-width: var(--max-w); margin: 0 auto; }
.featured-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

/* ============================================================
   CAR CARD
   ============================================================ */
.car-grid {
    display: grid;
    /* min(290px, 100%) prevents the track from forcing a wider minimum
       than the actual container on sub-320 px screens or narrow wrappers */
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 2.2rem 2rem;
}

.featured-head-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
}
.featured-head-right a.see-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--bone);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: gap 0.2s var(--ease);
    border-bottom: 1px solid var(--bone);
    padding-bottom: 4px;
}
.featured-head-right a.see-all:hover { gap: 14px; color: var(--red); border-color: var(--red); }

.featured-foot {
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.featured-foot .btn-xl { box-shadow: 0 2px 4px rgba(201, 25, 34, 0.18), 0 14px 28px -10px rgba(201, 25, 34, 0.42); }
.featured-foot-sub {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-soft);
    font-variant-numeric: tabular-nums;
}
.featured-foot-sub b { color: var(--bone); font-weight: 700; }
.car-card {
    background: var(--ink-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
    position: relative;
    box-shadow: var(--shadow-sm);
    /* min-width: 0 ensures the card never pushes its grid track wider
       than the computed 1fr size — overflow:hidden alone is not
       guaranteed to collapse the grid item's auto minimum in all browsers */
    min-width: 0;
}
.car-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}
.car-card .img-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    background: var(--ink-3);
    border-bottom: 1px solid var(--border);
}
.card-carousel { position: absolute; inset: 0; }

/* ---------- no-photo placeholder ---------- */
.no-photo {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--ink-3);
    color: var(--text-dim);
    text-align: center;
    padding: 1rem;
}
.no-photo-icon {
    width: 32px;
    height: 32px;
    opacity: 0.55;
}
.no-photo-label {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-soft);
}

.no-photo-detail { gap: 1rem; }
.no-photo-detail .no-photo-icon { width: 44px; height: 44px; }
.no-photo-detail .no-photo-label { font-size: 1rem; }
.no-photo-detail .no-photo-cta { margin-top: 0.25rem; }
.card-carousel img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.12s linear, transform 0.6s var(--ease);
}
.card-carousel img.active { opacity: 1; }
.car-card:hover .card-carousel img.active { transform: scale(1.03); }

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border);
    color: var(--bone);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.2s var(--ease), background 0.2s var(--ease);
    z-index: 4;
    padding: 0;
    box-shadow: var(--shadow-sm);
}
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }
.img-wrapper:hover .carousel-arrow,
.modal-gallery:hover .carousel-arrow { opacity: 1; }
.carousel-arrow:hover { background: var(--bone); color: #fff; border-color: var(--bone); }
.carousel-arrow.large {
    width: 44px; height: 44px; font-size: 1.3rem; opacity: 0.92;
}
.carousel-arrow.large.prev { left: 20px; }
.carousel-arrow.large.next { right: 20px; }

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 4;
    padding: 5px 9px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(4px);
    border-radius: 100px;
    border: 1px solid var(--border);
}
.carousel-dots .dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(14,14,16,0.25);
    cursor: pointer;
    transition: background 0.2s, width 0.3s;
}
.carousel-dots .dot.active { background: var(--bone); width: 16px; border-radius: 3px; }
.carousel-counter {
    position: absolute;
    top: 14px; left: 14px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(4px);
    color: var(--bone);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 5px 11px;
    border-radius: 100px;
    z-index: 4;
    border: 1px solid var(--border);
}

.card-body {
    padding: 1.3rem 1.4rem 1.4rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-brand {
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    overflow-wrap: break-word;
}
.card-model {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0.4rem 0 1.2rem;
    color: var(--bone);
    letter-spacing: -0.03em;
    overflow-wrap: break-word;
}
.card-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    border-top: 1px solid var(--border);
    padding-top: 1.1rem;
    margin-top: auto;
}
.spec-unit {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.7rem;
    color: var(--text-dim);
    font-family: var(--font-body);
    text-transform: none;
    min-width: 0;
}
.spec-unit b {
    color: var(--bone);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    overflow-wrap: break-word;
}
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 0.95rem;
    margin-top: 0.95rem;
    border-top: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--red);
    letter-spacing: 0.03em;
}
.card-price {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--bone);
    text-transform: none;
}
.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.car-card:hover .card-cta {
    gap: 10px;
    color: var(--red-deep);
}

/* Skeleton */
.car-card.skeleton {
    pointer-events: none;
    background: var(--ink);
    box-shadow: none;
}
.car-card.skeleton .img-wrapper,
.car-card.skeleton .sk-bar {
    background: linear-gradient(90deg, var(--ink-2) 0%, var(--ink-3) 50%, var(--ink-2) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
}
.car-card.skeleton .sk-bar { height: 12px; border-radius: 6px; margin: 8px 0; }
.car-card.skeleton .sk-bar.lg { height: 20px; width: 70%; }
.car-card.skeleton .sk-bar.sm { height: 10px; width: 40%; }
@keyframes shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

/* ============================================================
   VALUES (clean grid, no red glow)
   ============================================================ */
.values {
    padding: var(--space-section) var(--gutter);
    background: var(--ink);
    border-bottom: 1px solid var(--border);
    position: relative;
}
.values-inner { max-width: var(--max-w); margin: 0 auto; }
.values-head {
    margin-bottom: 4rem;
    max-width: 760px;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}
.value-cell {
    padding: 1.8rem 1.6rem;
    background: var(--ink-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
    position: relative;
    box-shadow: var(--shadow-sm);
}
.value-cell:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
.value-num {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    color: var(--red);
    letter-spacing: 0;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--red-soft);
    border-radius: var(--radius-sm);
}
.value-cell h3 {
    font-family: var(--font-display);
    font-size: 1.18rem;
    color: var(--bone);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.015em;
}
.value-cell p {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ============================================================
   SERVICES TILES
   ============================================================ */
.services {
    padding: var(--space-section) var(--gutter);
    background: var(--ink);
    border-bottom: 1px solid var(--border);
}
.services-inner { max-width: var(--max-w); margin: 0 auto; }
.services-head { max-width: 720px; margin-bottom: 3rem; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
}
.service-tile {
    position: relative;
    padding: 2.2rem 2rem;
    background: var(--ink-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}
.service-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
.service-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--red-soft);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    border: none;
}
.service-icon svg { width: 24px; height: 24px; }
.service-tag {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
    margin-bottom: 0.7rem;
}
.service-tile h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--bone);
    line-height: 1.2;
    margin-bottom: 0.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.service-tile > p {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.4rem;
}
.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0 0 1.8rem;
}
.service-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.55;
}
.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
}
.service-tile .btn { margin-top: auto; align-self: flex-start; }

/* ============================================================
   CTA STRIP (pre-footer)
   ============================================================ */
.cta-strip {
    padding: 6rem var(--gutter);
    background: var(--bone);
    color: var(--paper);
    border-top: 1px solid var(--bone);
    border-bottom: 1px solid var(--bone);
    position: relative;
    overflow: hidden;
}
.cta-strip h2 { color: var(--paper); }
.cta-strip p { color: var(--dark-dim); }
.cta-strip .btn-ghost {
    background: transparent;        /* was inheriting white from .btn-ghost — invisible on dark bg */
    border-color: rgba(255,255,255,0.55);
    color: var(--paper);
}
.cta-strip .btn-ghost:hover,
.cta-strip .btn-ghost:active {
    background: var(--paper);
    border-color: var(--paper);
    color: var(--bone);
}
.cta-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.cta-text h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.1;
    margin: 0.5rem 0 0.7rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}
.cta-text p {
    color: var(--dark-dim);
    font-size: 1rem;
    max-width: 480px;
}
.cta-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

/* ============================================================
   FOOTER (kept dark for contrast / professional anchor)
   ============================================================ */
footer.site-footer {
    background: var(--dark);
    border-top: 1px solid var(--dark-border);
    color: var(--dark-text);
}
footer.site-footer .logo-img { height: 56px; }
.footer-main-strip {
    padding: 4.5rem var(--gutter) 3.5rem;
}
.footer-main {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1.2fr 1fr 1fr;
    gap: 3rem;
}
.footer-brand p {
    color: var(--dark-dim);
    font-size: 0.88rem;
    line-height: 1.75;
    max-width: 340px;
    margin-top: 1.1rem;
}
.footer-title {
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--dark-dim);
    letter-spacing: 2px;
    margin-bottom: 1.3rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--dark-border);
    font-family: var(--font-body);
}
.footer-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark-text);
    font-size: 0.88rem;
    margin-bottom: 12px;
    transition: color 0.2s;
}
.footer-row svg { color: var(--red); flex-shrink: 0; width: 16px; height: 16px; }
.footer-row:hover { color: #fff; }
.footer-address-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.5;
    font-size: 0.88rem;
    color: var(--dark-text);
}
.footer-map-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--red);
}
.footer-map-link:hover { opacity: 0.75; }
.footer-hours {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.hours-row span { color: var(--dark-dim); font-size: 0.82rem; }
.hours-row b { color: #fff; font-size: 0.82rem; font-weight: 500; }
.hours-row b.closed { color: var(--dark-dim); }

.footer-bottom {
    border-top: 1px solid var(--dark-border);
    padding: 1.4rem var(--gutter);
}
.footer-bottom-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--dark-dim);
}
.platform-tag { color: var(--dark-dim); }
.platform-tag b { color: #fff; font-weight: 500; }

/* CTA strip inside footerMarkup uses light cta-strip styles above */

/* ============================================================
   PAGE HEAD (subpages)
   ============================================================ */
.page-head {
    padding: 5.5rem var(--gutter) 4rem;
    background: var(--ink);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.page-head-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.page-head h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
    color: var(--bone);
    margin: 1rem 0 1.2rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}
.page-head h1 em { font-style: normal; color: var(--red); font-weight: 700; }
.page-head p {
    color: var(--text-soft);
    max-width: 620px;
    font-size: 1.02rem;
    line-height: 1.7;
}
.breadcrumb {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--text-dim);
    display: flex;
    flex-wrap: wrap;   /* prevent long vehicle names from overflowing on mobile */
    gap: 0.6rem;
    margin-bottom: 1.6rem;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.breadcrumb a { color: var(--text-dim); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--bone); }
.breadcrumb span { color: var(--text-mute); }

/* ============================================================
   ESTOQUE PAGE
   ============================================================ */
.estoque-shell {
    padding: 3rem var(--gutter) var(--space-section);
    background: var(--ink);
}
.estoque-shell .car-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: 1.6rem;
}
.estoque-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 268px 1fr;
    gap: 2.5rem;
    align-items: flex-start;
}
.filter-rail {
    position: sticky;
    top: 95px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-top: 3px solid var(--red);
    border-radius: var(--radius-md);
    padding: 1.8rem 1.6rem;
    box-shadow: 0 4px 20px -6px rgba(15,23,42,0.09);
}
.filter-rail h4 {
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin: 0 0 0.6rem;
    font-weight: 600;
}
.filter-block {
    margin-bottom: 0;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border);
}
.filter-block:first-child { padding-top: 0; }
.filter-block:last-of-type { border-bottom: none; padding-bottom: 0.4rem; }
.filter-input,
.filter-select {
    width: 100%;
    background: var(--ink);
    border: 1px solid var(--border);
    color: var(--bone);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.88rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    appearance: none;
    -webkit-appearance: none;
}
.filter-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}
.filter-input::placeholder { color: var(--text-mute); }
.filter-input:focus,
.filter-select:focus {
    border-color: var(--red);
    outline: none;
    box-shadow: 0 0 0 3px var(--red-glow);
    background: var(--paper);
}
.filter-range {
    display: flex;
    gap: 8px;
    align-items: center;
}
.filter-range .filter-input { flex: 1; min-width: 0; }
.filter-range span { color: var(--text-mute); font-size: 0.78rem; flex-shrink: 0; }
.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--ink);
    color: var(--text-soft);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s var(--ease);
    margin: 0 4px 5px 0;
}
.filter-pill:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.filter-pill.active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    box-shadow: 0 2px 8px -2px rgba(201,25,34,0.35);
}

.filter-reset {
    width: 100%;
    margin-top: 1rem;
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.filter-reset:hover { color: var(--red); border-color: var(--red); background: var(--red-soft); }

.estoque-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.6rem;
    padding: 0.9rem 1.2rem;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}
.estoque-count {
    font-size: 0.88rem;
    color: var(--text-soft);
}
.estoque-count b { color: var(--bone); font-weight: 700; }
.estoque-tools {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.estoque-sort {
    appearance: none;
    -webkit-appearance: none;
    background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid var(--border);
    color: var(--bone);
    padding: 9px 36px 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    min-width: 160px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.estoque-sort:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px var(--red-glow); }

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-soft);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--ink-2);
}
.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--bone);
    font-weight: 600;
}

.mobile-filter-toggle {
    display: none;
    width: 100%;
    background: var(--paper);
    border: 1px solid var(--border);
    color: var(--bone);
    padding: 13px 16px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    margin-bottom: 1.2rem;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: var(--shadow-sm);
}
.mobile-filter-toggle:hover { border-color: var(--red); color: var(--red); }

/* ============================================================
   VEÍCULO DETAIL
   ============================================================ */
.veiculo-shell {
    padding: 2.5rem var(--gutter) var(--space-section);
    background: var(--ink);
}
.veiculo-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}
.veiculo-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.veiculo-gallery {
    background: var(--ink-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
    outline: none;
    user-select: none;
}

/* ---- carousel track ---- */
.vg-track {
    display: flex;
    height: 100%;
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.vg-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
}
.vg-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* ---- arrows ---- */
.vg-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px; height: 46px;
    background: rgba(10, 10, 12, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    padding: 0;
    opacity: 0;
    transition: opacity 0.22s var(--ease), background 0.2s var(--ease), transform 0.15s var(--ease);
    z-index: 4;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.vg-arrow.vg-prev { left: 14px; }
.vg-arrow.vg-next { right: 14px; }
.vg-arrow:hover {
    background: rgba(10, 10, 12, 0.82);
    transform: translateY(-50%) scale(1.07);
}
/* show on hover/focus (desktop) */
.veiculo-gallery:hover .vg-arrow,
.veiculo-gallery:focus-within .vg-arrow { opacity: 1; }
/* always visible on touch screens */
@media (hover: none) {
    .vg-arrow { opacity: 0.8; }
}

/* ---- counter badge ---- */
.vg-counter {
    position: absolute;
    bottom: 12px;
    right: 14px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #fff;
    background: rgba(10, 10, 12, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 3px 9px;
    border-radius: 999px;
    pointer-events: none;
    z-index: 3;
}

/* ---- thumbnails ---- */
.veiculo-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 8px;
}
.veiculo-thumbs img {
    aspect-ratio: 4/3;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-xs);
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: opacity 0.2s, border-color 0.2s, transform 0.15s;
}
.veiculo-thumbs img:hover { opacity: 1; transform: scale(1.03); }
.veiculo-thumbs img.active { opacity: 1; border-color: var(--bone); }

/* ============================================================
   Vehicle gallery — lightbox / fullscreen
   ============================================================ */
.veiculo-gallery { cursor: zoom-in; }
.veiculo-gallery:active { cursor: zoom-in; }

.vg-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(6, 6, 8, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease);
    outline: none;
}
.vg-modal.is-open {
    opacity: 1;
    pointer-events: all;
}

/* stage — centres the image and acts as the backdrop-click target */
.vg-modal-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 60px 80px;
    box-sizing: border-box;
}
@media (max-width: 600px) {
    .vg-modal-stage { padding: 56px 12px; }
}

.vg-modal-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    user-select: none;
    pointer-events: none;
    transition: opacity 0.12s var(--ease);
    display: block;
}
.vg-modal-img.is-fading { opacity: 0; }

/* close button */
.vg-modal-close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9001;
    transition: background 0.18s, transform 0.18s;
}
.vg-modal-close svg { width: 18px; height: 18px; }
.vg-modal-close:hover {
    background: rgba(255,255,255,0.18);
    transform: scale(1.08);
}

/* prev / next inside modal */
.vg-modal-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 52px; height: 52px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.9rem;
    line-height: 1;
    padding: 0;
    z-index: 9001;
    transition: background 0.18s, transform 0.15s;
}
.vg-modal-prev { left: 18px; }
.vg-modal-next { right: 18px; }
.vg-modal-arrow:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-50%) scale(1.08);
}
@media (max-width: 600px) {
    .vg-modal-arrow { width: 42px; height: 42px; font-size: 1.5rem; }
    .vg-modal-prev { left: 8px; }
    .vg-modal-next { right: 8px; }
}

/* counter badge */
.vg-modal-counter-badge {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.55);
    pointer-events: none;
    white-space: nowrap;
}

.veiculo-summary {
    background: var(--ink-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    position: sticky;
    top: 95px;
    align-self: flex-start;
    box-shadow: var(--shadow-sm);
}
.veiculo-overline {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--red);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.veiculo-summary h1 {
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    line-height: 1.15;
    margin: 0.5rem 0 1rem;
    color: var(--bone);
    font-weight: 700;
    letter-spacing: -0.02em;
}
.veiculo-price {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
    color: var(--bone);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 0.3rem;
}
.veiculo-price-sub {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}
.veiculo-quick-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 18px;
    padding: 1.3rem;
    border-radius: var(--radius-sm);
    background: var(--ink-2);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}
/* Stack label on top of value so long strings like "Automático CVT"
   don't overflow the narrow ~104 px column on mobile */
.veiculo-quick-specs .spec-unit {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}
.veiculo-quick-specs .spec-unit b { font-size: 0.95rem; }
.veiculo-summary .btn { width: 100%; justify-content: center; margin-bottom: 8px; }

.veiculo-details {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
}
.veiculo-section {
    background: var(--ink-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    margin-bottom: 1.4rem;
    box-shadow: var(--shadow-sm);
}
.veiculo-section h2 {
    font-size: 1.05rem;
    color: var(--bone);
    margin-bottom: 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    letter-spacing: -0.01em;
}
.veiculo-section p {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.75;
    white-space: pre-wrap;
    /* prevent long unbroken strings (urls, tokens) from overflowing on mobile */
    overflow-wrap: break-word;
    word-break: break-word;
}
.opt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
}
.opt-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.4;
}
.opt-check {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--red-soft);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.62rem;
}

.fin-mini {
    background: var(--ink-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    box-shadow: none;
}
.fin-mini h3 {
    font-size: 1rem;
    color: var(--bone);
    margin-bottom: 1rem;
    font-weight: 600;
}
.fin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    font-size: 0.88rem;
}
.fin-row:first-of-type { border-top: none; }
.fin-row span { color: var(--text-soft); }
.fin-row b { color: var(--bone); font-weight: 600; }
.fin-row .red { color: var(--red); }
.fin-mini input[type=range] {
    width: 100%;
    min-width: 0;     /* override UA default min-width that can overflow narrow cards */
    max-width: 100%;
    accent-color: var(--red);
}
.fin-mini label {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-soft);
    margin: 0.8rem 0 0.4rem;
}
.fin-mini label b { color: var(--bone); }

/* ============================================================
   FORMS
   ============================================================ */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}
.form-grid.full { grid-template-columns: 1fr; }
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-field.span-2 { grid-column: 1 / -1; }
.form-field label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.form-field label {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
}
.form-field input,
.form-field select,
.form-field textarea {
    background: var(--paper);
    border: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--bone);
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field textarea {
    resize: vertical;
    min-height: 110px;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--red);
    outline: none;
    box-shadow: 0 0 0 3px var(--red-glow);
}
.form-card {
    background: var(--ink-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

/* ─── Vehicle Select (custom dropdown — financing form) ──── */
.vehicle-select-wrap {
    position: relative;
}
.vehicle-select {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--paper);
    border: 1px solid var(--border);
    color: var(--bone);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    min-height: 44px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.vehicle-select:focus,
.vehicle-select.is-open {
    border-color: var(--red);
    outline: none;
    box-shadow: 0 0 0 3px var(--red-glow);
}
.vehicle-select-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-mute);
    font-size: 0.95rem;
}
.vehicle-select.has-value .vehicle-select-label { color: var(--bone); }
.vehicle-select-trailing {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}
.vehicle-select-thumb {
    width: 62px;
    height: 42px;
    object-fit: cover;
    border-radius: 4px;
    display: none;
    background: var(--ink-3);
}
.vehicle-select.has-value .vehicle-select-thumb { display: block; }
.vehicle-select-chevron {
    width: 16px;
    height: 16px;
    color: var(--text-mute);
    flex-shrink: 0;
    transition: transform 0.18s ease;
}
.vehicle-select.is-open .vehicle-select-chevron { transform: rotate(180deg); }

/* dropdown panel */
.vehicle-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 300;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 40px rgba(15,23,42,0.14);
    overflow: hidden;
    transform-origin: top center;
    animation: vsDropIn 0.14s ease both;
}
@keyframes vsDropIn {
    from { opacity: 0; transform: scaleY(0.93) translateY(-4px); }
    to   { opacity: 1; transform: scaleY(1) translateY(0); }
}
.vehicle-select-search-wrap {
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid var(--border);
    background: var(--ink);
}
.vehicle-select-search {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--bone);
    padding: 4px 2px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
}
.vehicle-select-search::placeholder { color: var(--text-mute); }
.vehicle-select-list {
    max-height: 340px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.vehicle-select-loading,
.vehicle-select-empty {
    padding: 1.4rem 1rem;
    text-align: center;
    color: var(--text-mute);
    font-size: 0.88rem;
}
.vehicle-select-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
}
.vehicle-select-option:last-child { border-bottom: none; }
.vehicle-select-option:hover,
.vehicle-select-option.is-focused  { background: var(--ink); }
.vehicle-select-option.is-selected { background: var(--red-soft); }

.vso-thumb {
    width: 72px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: var(--ink-3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.vso-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vso-thumb-placeholder {
    color: var(--text-mute);
    opacity: 0.5;
}
.vso-info {
    flex: 1;
    min-width: 0;
}
.vso-title {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--bone);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vso-meta {
    display: block;
    font-size: 0.75rem;
    color: var(--text-mute);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vso-price {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--red);
    flex-shrink: 0;
    white-space: nowrap;
}
/* invalid state */
.form-field.is-invalid .vehicle-select {
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-glow);
}
@media (max-width: 600px) {
    .vehicle-select-list           { max-height: 260px; }
    .vso-thumb                     { width: 56px; height: 38px; }
    .vso-price                     { display: none; }
    .vehicle-select-thumb          { width: 48px; height: 32px; }
}

/* Section divider inside a form-grid (e.g. "Detalhes do financiamento") */
.form-section-divider {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border);
    padding-top: 1.2rem;
    margin-top: 0.4rem;
}
.form-section-divider h4 {
    font-family: var(--font-body);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin: 0;
}

/* Pill-style yes/no radio group */
.radio-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.radio-pill {
    flex: 1 1 0;
    min-width: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.radio-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.radio-pill:has(input:checked) {
    border-color: var(--red);
    background: var(--red-glow, rgba(225,29,43,0.08));
    color: var(--bone);
}

/* Trade-in section reveal */
.troca-fields {
    grid-column: 1 / -1;
    position: relative;
    padding: 1.4rem 1.4rem 1.6rem;
    background:
        linear-gradient(180deg, rgba(225,29,43,0.06) 0%, rgba(225,29,43,0.015) 60%, transparent 100%),
        var(--ink-2, rgba(0,0,0,0.22));
    border: 1px solid rgba(225,29,43,0.28);
    border-left: 3px solid var(--red);
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset, 0 8px 24px -16px rgba(225,29,43,0.45);
    animation: trocaReveal 0.32s ease-out;
}
.troca-fields[hidden] { display: none; }
.troca-fields .form-grid { gap: 1rem; }
.troca-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.2rem;
}
.troca-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--red);
    padding: 5px;
    background: rgba(225,29,43,0.12);
    border-radius: 8px;
    box-sizing: content-box;
}
.troca-head h4 {
    margin: 0 0 4px;
    font-family: var(--font-display, var(--font-body));
    font-size: 1rem;
    font-weight: 700;
    color: var(--bone);
    letter-spacing: 0;
    text-transform: none;
}
.troca-head p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-soft);
    line-height: 1.45;
}
@keyframes trocaReveal {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* LGPD consent checkbox */
.consent-field {
    margin-top: 0.6rem;
}
.consent-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.consent-box:has(input:checked) {
    border-color: var(--red);
    background: var(--red-glow, rgba(225,29,43,0.08));
}
.consent-box input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.consent-mark {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 6px;
    background: var(--ink-2);
    position: relative;
    transition: border-color 0.2s, background 0.2s;
    margin-top: 1px;
}
.consent-box:has(input:checked) .consent-mark {
    border-color: var(--red);
    background: var(--red);
}
.consent-mark::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 7px;
    width: 5px;
    height: 10px;
    border: solid var(--bone);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s;
}
.consent-box:has(input:checked) .consent-mark::after {
    transform: rotate(45deg) scale(1);
}
.consent-text {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-soft);
}
.consent-text strong { color: var(--bone); }
.consent-box:focus-within {
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-glow, rgba(225,29,43,0.18));
}

/* ============================================================
   EMPRESA / CONTATO
   ============================================================ */
/* Empresa page-head two-column layout (text | carousel) */
.page-head-empresa .page-head-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    column-gap: 4rem;
    align-items: center;
}
.page-head-empresa .page-head-text { min-width: 0; }
.page-head-empresa .page-head-media { min-width: 0; }
.page-head-empresa h1 { max-width: 100%; }
.page-head-empresa p { max-width: 100%; }

.empresa-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    background: var(--ink-2);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}
.ec-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s var(--ease);
    will-change: transform;
}
.ec-slide {
    flex: 0 0 100%;
    height: 100%;
    min-width: 0;
}
.ec-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}
.ec-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    color: var(--bone);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.25s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0 0 3px;
    font-family: var(--font-display);
    font-weight: 600;
}
.empresa-carousel:hover .ec-arrow,
.empresa-carousel:focus-within .ec-arrow { opacity: 1; }
.ec-arrow:hover { background: #fff; color: var(--red); }
.ec-arrow.ec-prev { left: 1rem; }
.ec-arrow.ec-next { right: 1rem; }
.ec-arrow:active { transform: translateY(-50%) scale(0.94); }

.ec-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 3;
    padding: 5px 9px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 100px;
    border: 1px solid var(--border);
}
.ec-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(14, 14, 16, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, width 0.3s;
}
.ec-dot.active { background: var(--bone); width: 16px; border-radius: 3px; }

@media (max-width: 900px) {
    .page-head-empresa .page-head-inner {
        grid-template-columns: 1fr;
        row-gap: 2rem;
    }
    .empresa-carousel { aspect-ratio: 16 / 9; border-radius: var(--radius-md); }
}
@media (max-width: 600px) {
    .empresa-carousel { aspect-ratio: 3 / 2; }
    .ec-arrow { width: 36px; height: 36px; font-size: 1.2rem; }
    .ec-arrow.ec-prev { left: 0.5rem; }
    .ec-arrow.ec-next { right: 0.5rem; }
}

.empresa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: var(--space-section) var(--gutter);
    max-width: var(--max-w);
    margin: 0 auto;
}
.empresa-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--ink-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.empresa-stat {
    padding: 1.8rem 1.4rem;
    border-right: 1px solid var(--border);
    text-align: center;
}
.empresa-stat:last-child { border-right: none; }
.empresa-stat .num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--red);
    letter-spacing: -0.025em;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.empresa-stat .lbl {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--text-dim);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    padding: var(--space-section) var(--gutter);
    max-width: var(--max-w);
    margin: 0 auto;
}
.contato-cards { display: flex; flex-direction: column; gap: 0.9rem; }
.contato-card {
    background: var(--ink-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.3rem 1.4rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
    box-shadow: var(--shadow-sm);
}
.contato-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
.contato-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    background: var(--red-soft);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contato-icon svg { width: 20px; height: 20px; }
.contato-card h3 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    font-family: var(--font-body);
    margin-bottom: 0.25rem;
    font-weight: 600;
}
.contato-card p, .contato-card a {
    color: var(--bone);
    font-size: 1rem;
    line-height: 1.5;
}
.contato-card a:hover { color: var(--red); }
.contato-map {
    width: 100%;
    min-height: 260px;
    max-height: 300px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.contato-map iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ============================================================
   404
   ============================================================ */
.error-shell {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem var(--gutter);
    text-align: center;
    background: var(--ink);
}
.error-shell .big {
    font-family: var(--font-display);
    font-size: clamp(5rem, 14vw, 10rem);
    color: var(--bone);
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.04em;
}
.error-shell h1 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    margin: 0.8rem 0 0.7rem;
    color: var(--bone);
    font-weight: 700;
}
.error-shell p { color: var(--text-soft); max-width: 440px; margin: 0 auto 2rem; }
.error-shell .big em {
    font-style: normal;
    font-weight: 600;
    color: var(--red);
}
.error-shell h1 em { font-style: normal; color: var(--red); font-weight: 700; }

/* ============================================================
   SUPPORT COMPONENTS — quote, steps, note, finance result
   ============================================================ */
.pull-quote {
    margin: 1.8rem 0 0;
    padding: 1.6rem 1.8rem;
    background: var(--ink-2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--red);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.pull-quote .eyebrow { margin-bottom: 0.8rem; }
.pull-quote p {
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1.55;
    color: var(--bone);
    font-weight: 500;
    letter-spacing: -0.005em;
}
.pull-quote p em {
    font-style: normal;
    font-weight: 600;
    color: var(--red);
}
.pull-quote cite {
    display: block;
    margin-top: 0.9rem;
    font-style: normal;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text-dim);
    font-weight: 600;
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.step-list li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.2rem 1.3rem;
    background: var(--ink-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.step-list .step-num {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    background: var(--red);
    border-radius: var(--radius-sm);
    font-style: normal;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0;
}
.step-list li > div b {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--bone);
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}
.step-list li > div p {
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}
.step-list-compact li {
    padding: 1rem 1.1rem;
}


.step-flow {
    padding: 1.6rem 1.8rem;
    background: var(--ink-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.step-flow > .eyebrow { display: inline-flex; margin-bottom: 0.8rem; }
.step-flow .step-list { margin: 0; }

.fin-result {
    margin-top: 1.4rem;
    padding: 1.4rem 1.6rem;
    background: var(--ink);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.fin-result .fin-row {
    border-top: 1px solid var(--border);
    padding: 12px 0;
    font-size: 0.92rem;
}
.fin-result .fin-row:first-child { border-top: none; }
.fin-result .fin-row span { color: var(--text-soft); }
.fin-result .fin-row b { color: var(--bone); font-weight: 600; }
.fin-result .fin-row-feature {
    border-top: 2px solid var(--bone);
    margin-top: 6px;
    padding-top: 14px;
    padding-bottom: 4px;
}
.fin-result .fin-row-feature span {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--bone);
}
.fin-result .fin-row-feature b {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--red);
}

.fin-disclosure {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin-top: 1.2rem;
    padding: 0.9rem 1rem;
    background: var(--ink);
    border: 1px solid var(--border);
    border-left: 3px solid var(--text-mute);
    border-radius: var(--radius-sm);
}
.fin-disclosure svg { color: var(--text-mute); }
.fin-disclosure p {
    font-size: 0.7rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin: 0;
}
.fin-disclosure p strong { color: var(--text-soft); font-weight: 600; }

/* ============================================================
   MODAL
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(14,14,16,0.92);
    backdrop-filter: blur(12px);
    display: none;
    z-index: 2000;
    overflow-y: auto;
}
.modal.open { display: block; }
.modal-close {
    position: fixed;
    top: 20px; right: 20px;
    z-index: 3000;
    background: #fff;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--bone);
    border: none;
    cursor: pointer;
    transition: transform 0.25s;
    box-shadow: var(--shadow-md);
}
.modal-close:hover { transform: scale(1.06); }

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .hero-inner { grid-template-columns: 1fr; grid-template-rows: auto; gap: 2rem; }
    /* Reset explicit column assignments for single-column layout */
    .hero-text, .hero-pillars { grid-column: auto; }
    /* Card height driven by content — image has its own aspect ratio so it
       stays prominent, and the body (price + CTA) is never clipped. */
    .hero-visual {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: auto;
        max-width: 460px;
        margin-left: auto;
        margin-right: auto;
        justify-self: center;
    }
    .hf-track, .hf-slide, .hero-featured, .hero-featured-skel { height: auto; }
    .hero-featured-img {
        flex: 0 0 auto;
        aspect-ratio: 4 / 3;
        min-height: 0;
    }
    .hero-featured-skel .sk-img { flex: 0 0 auto; aspect-ratio: 4 / 3; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .estoque-inner { grid-template-columns: 1fr; }
    .filter-rail { position: relative; top: 0; display: none; }
    .filter-rail.is-open { display: block; }
    .mobile-filter-toggle { display: inline-flex; }
    .veiculo-top { grid-template-columns: 1fr; }
    .veiculo-summary { position: relative; top: 0; }
    .veiculo-details { grid-template-columns: 1fr; }
    .empresa-grid, .contato-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr 1fr; }
    .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --space-section: 4.5rem; }
    .nav-links { display: none; }
    .nav-right .nav-cta { display: none; }
    .nav-hamburger { display: inline-flex; width: 44px; height: 44px; }
    .hero { padding: 3rem var(--gutter) 3.5rem; }

    /* Shrink the hero carousel dot-pill on mobile so it doesn't compete
       with the car info below it — subtle indicator, not a focal point */
    .hf-dots { gap: 4px; padding: 3px 6px; bottom: 0.5rem; }

    /* ── Hero layout on mobile ────────────────────────────────────
       The HTML DOM order is now:  hero-text → hero-visual → hero-pillars
       so a plain flex-column gives exactly what we want:
         1. Heading + subtitle + CTAs
         2. Vehicle card (portrait)
         3. Stats row (veículos / marcas / procedência)
       No CSS `order` tricks needed.
    ─────────────────────────────────────────────────────────────── */
    .hero-inner {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    .hero-visual {
        aspect-ratio: auto;   /* card grows with content; image has its own ratio */
        max-width: 100%;
        width: 100%;
    }
    .hf-track, .hf-slide, .hero-featured, .hero-featured-skel { height: auto; }
    .hero-featured-img {
        flex: 0 0 auto;
        aspect-ratio: 4 / 3;
        min-height: 0;
    }
    .hero-featured-skel .sk-img { flex: 0 0 auto; aspect-ratio: 4 / 3; }
    .hero-featured-body { padding: 1.3rem 1.4rem 1.4rem; }
    .hero-featured-title { font-size: 1.4rem; }
    .hero-featured-price { font-size: 1.4rem; }

    /* ── Pillars — keep them in a row on mobile ───────────────────
       Three shortstat columns side-by-side. On a 375px phone each
       pillar gets ~100px — plenty for "15 / veículos" etc.
    ─────────────────────────────────────────────────────────────── */
    .hero-pillars {
        flex-direction: row;
        gap: 0;
        justify-content: flex-start;
    }
    .pillar {
        flex: 1;
        padding: 0 1rem;
        border-left: none;
        border-right: 1px solid var(--border);
    }
    .pillar:first-child { padding-left: 0; }
    .pillar:last-child {
        border-right: none;
        padding-right: 0;
    }
    .pillar + .pillar { border-left: none; }
    .pillar-num { font-size: 1.5rem; }
    .pillar-label { font-size: 0.66rem; }

    .featured-head { flex-direction: column; align-items: flex-start; }
    .values-grid { grid-template-columns: 1fr; }
    .opt-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr; gap: 2rem; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .empresa-stats { grid-template-columns: 1fr; }
    .empresa-stat { border-right: none; border-bottom: 1px solid var(--border); }
    .empresa-stat:last-child { border-bottom: none; }

    /* Toolbar: stack count above sort on mobile */
    .estoque-toolbar { flex-direction: column; align-items: stretch; gap: 0.75rem; padding: 0.9rem 1rem; }
    .estoque-sort { width: 100%; min-width: 0; font-size: 16px; }

    /* ── Financiamento page ────────────────────────────────────
       Override the inline-style two-column grid with a single
       column stack. Simulator first, then pre-approval form.
    ─────────────────────────────────────────────────────────── */
    #fin-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    /* Tighten the outer section padding on mobile */
    #fin-layout { padding-left: 0; padding-right: 0; }
    section:has(#fin-layout) { padding: 2rem var(--gutter) 3rem !important; }

    /* ── Avaliação page ────────────────────────────────────────
       Single column: form card first (action above fold),
       then the steps + note block below.
    ─────────────────────────────────────────────────────────── */
    #aval-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    section:has(#aval-layout) { padding: 2rem var(--gutter) 3rem !important; }
    /* Reorder: form card (2nd in DOM) shown first on mobile */
    #aval-layout > .form-card { order: -1; }
    #aval-layout > .reveal:not(.form-card) { order: 0; }

    /* Reduce form-card inner padding on small screens */
    .form-card { padding: 1.4rem 1.2rem; }

    /* Slim down the simulator result rows */
    .fin-result .fin-row { font-size: 0.84rem; }
    .fin-result .fin-row-feature b { font-size: 1.5rem; }

    /* Tighten disclosure on mobile */
    .fin-disclosure { padding: 0.75rem 0.85rem; }

    /* Make form selects consistent on iOS (appearance already none on .filter-select,
       apply same to form-field selects) */
    .form-field select {
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        padding-right: 34px;
    }

    /* Reduce page-head padding on mobile — 5.5 rem is too tall */
    .page-head { padding: 3rem var(--gutter) 2.5rem; }

    /* Prevent Google Maps taking too much vertical space */
    .contato-map { min-height: 220px; max-height: 220px; }
    .contato-map iframe { height: 220px; }

    /* Keep floating WhatsApp above the iOS home indicator */
    .float-wa { bottom: 28px; }

    /* ── iOS zoom fix ──────────────────────────────────────────
       Safari auto-zooms any input whose rendered font-size < 16px.
       Force 16px on all interactive inputs so the page never
       unexpectedly zooms when the user taps a field.
    ─────────────────────────────────────────────────────────── */
    .filter-input,
    .filter-select,
    .estoque-sort,
    .form-field input,
    .form-field select,
    .form-field textarea { font-size: 16px; }
}

@media (max-width: 480px) {
    .car-grid { grid-template-columns: 1fr; }
    .veiculo-thumbs { grid-template-columns: repeat(4, 1fr); }
    /* Single-column layout: full-width CTAs look better */
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .cta-actions { flex-direction: column; width: 100%; }
    .cta-actions .btn { width: 100%; justify-content: center; }

    /* Financiamento — extra tight on very small screens */
    .form-card { padding: 1.2rem 1rem; }
    .fin-result .fin-row-feature b { font-size: 1.35rem; }
}

/* ============================================================
   TOUCH DEVICES — pointer: coarse / hover: none
   Surfaces controls that are hidden behind hover on desktop,
   and expands tap targets that are too small for fingers.
   ============================================================ */
@media (hover: none) {
    /* Hero featured carousel: show arrows without hover */
    .hf-arrow { opacity: 0.75; }

    /* Empresa showcase carousel: same treatment on touch */
    .ec-arrow { opacity: 0.85; }

    /* Card carousel arrows: always visible on touch so users know
       multiple photos exist and can tap to advance */
    .carousel-arrow { opacity: 1; }
    /* Keep arrows visible even on single-photo cards that still render them */
    .img-wrapper .carousel-arrow { opacity: 1; }

    /* Vehicle gallery arrows already have an @media (hover:none) rule
       above that sets opacity:0.8 — kept as-is */

    /* hf-dots: keep touch-friendly but smaller on narrow phones */
    .hf-dot { width: 5px; height: 5px; }
    .hf-dot.active { width: 14px; }

    /* Remove hover lift effects that don't apply on touch */
    .car-card:hover,
    .hero-visual:hover,
    .value-cell:hover,
    .service-tile:hover,
    .contato-card:hover { transform: none; }
}

/* ============================================================
   THEME TOGGLE (navbar button — sun/moon)
   ============================================================ */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: transparent;
    color: var(--bone);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.theme-toggle:hover {
    background: var(--ink-3);
    border-color: var(--border-strong);
    color: var(--red);
}
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ============================================================
   DARK THEME — neutral charcoal palette (Linear/Vercel-style),
   keeps brand red restrained and unsaturated for a pro look.
   ============================================================ */
:root[data-theme="dark"] {
    /* Surfaces — warm-leaning charcoal (a whisper of red, not brown).
       Reads automotive/premium rather than tech-clinical. */
    --ink: #0b0a0c;       /* page background — deep, faint warm cast */
    --ink-2: #17161a;     /* elevated surfaces — cards, panels */
    --ink-3: #232227;     /* hover / active */
    --ink-soft: #34323a;  /* subtle dividers / chips */
    --paper: #17161a;

    /* Text — soft zinc, never harsh pure-white */
    --bone: #f4f4f5;
    --text: #d4d4d8;
    --text-soft: #a1a1aa;
    --text-dim: #71717a;
    --text-mute: #52525b;

    /* Brand — deeper crimson, less orange, more "performance car" */
    --red: #d12c38;
    --red-deep: #a91d28;
    --red-soft: rgba(209, 44, 56, 0.11);
    --red-glow: rgba(209, 44, 56, 0.22);
    --wine: #7a1f25;

    /* Borders — crisper definition without being noisy */
    --surface-1: rgba(255, 255, 255, 0.03);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.22);

    /* Footer band — pure black anchor below the page */
    --dark: #000000;
    --dark-soft: #08070a;
    --dark-text: #d4d4d8;
    --dark-dim: #71717a;
    --dark-border: rgba(255, 255, 255, 0.08);

    /* Shadows — long, soft, deep */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 6px 18px -4px rgba(0, 0, 0, 0.65);
    --shadow-lg: 0 28px 64px -24px rgba(0, 0, 0, 0.9);
}

/* Mobile browser chrome */
[data-theme="dark"] { color-scheme: dark; }

/* Sticky navbar backdrop (hardcoded white in light) */
[data-theme="dark"] nav.site-nav {
    background: rgba(11, 10, 12, 0.82);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 28px -10px rgba(0, 0, 0, 0.75);
}

/* Swap nav logo: light theme uses the "dark" wordmark (black text);
   dark theme uses the regular wordmark (white text). */
[data-theme="dark"] nav.site-nav .logo-img {
    content: url('/assets/logomarca.png');
    content: -webkit-image-set(url('/assets/logomarca.png') 1x, url('/assets/logomarca@2x.png') 2x);
    content: image-set(url('/assets/logomarca.png') 1x, url('/assets/logomarca@2x.png') 2x);
}

/* Mobile menu panel (hardcoded #fff) */
[data-theme="dark"] .nav-mobile { background: var(--ink-2); }

/* Hero — gradient + dot grid + a more visible brand-red atmosphere.
   The ::after pseudo provides the red glow in light mode; we boost it here. */
[data-theme="dark"] .hero {
    background:
        linear-gradient(180deg, transparent 55%, var(--ink) 100%),
        linear-gradient(135deg, #1a181c 0%, #131217 55%, #0a090c 100%);
}
[data-theme="dark"] .brand-ticker {
    border-top-color: transparent;
    margin-top: 1.5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .hero::before {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
}
[data-theme="dark"] .hero::after {
    background: radial-gradient(ellipse at 70% 40%, rgba(209, 44, 56, 0.12) 0%, transparent 65%);
}
[data-theme="dark"] .hero-eyebrow {
    background: rgba(209, 44, 56, 0.10);
    border-color: rgba(209, 44, 56, 0.28);
}

/* Hero featured slider arrows + dots (hardcoded white rgba) */
[data-theme="dark"] .hf-arrow {
    background: rgba(11, 10, 12, 0.78);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--bone);
}
[data-theme="dark"] .hf-arrow:hover { background: var(--bone); color: var(--ink); }
[data-theme="dark"] .hf-dots {
    background: rgba(11, 10, 12, 0.62);
    border-color: rgba(255, 255, 255, 0.12);
}
[data-theme="dark"] .hf-dot { background: rgba(255, 255, 255, 0.38); }
[data-theme="dark"] .hf-dot.active { background: var(--bone); }

/* "★ Destaque do estoque" pill on the hero featured card — light theme uses
   bone bg + #fff text; in dark mode that becomes white-on-white, so override. */
[data-theme="dark"] .hero-featured-tag {
    background: rgba(11, 10, 12, 0.82);
    color: var(--bone);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.6);
}

/* Card carousel arrows + dots + counter — these float over the photo,
   so they need their own dark glass pill (light pills are blinding on dark UI). */
[data-theme="dark"] .carousel-arrow {
    background: rgba(11, 10, 12, 0.78);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--bone);
}
[data-theme="dark"] .carousel-arrow:hover {
    background: var(--bone);
    color: var(--ink);
    border-color: var(--bone);
}
[data-theme="dark"] .carousel-dots {
    background: rgba(11, 10, 12, 0.62);
    border-color: rgba(255, 255, 255, 0.12);
}
[data-theme="dark"] .carousel-dots .dot { background: rgba(255, 255, 255, 0.38); }
[data-theme="dark"] .carousel-dots .dot.active { background: var(--bone); }
[data-theme="dark"] .carousel-counter {
    background: rgba(11, 10, 12, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--bone);
}

/* Empresa showcase carousel — same glass-pill treatment as the car carousels */
[data-theme="dark"] .ec-arrow {
    background: rgba(11, 10, 12, 0.78);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--bone);
}
[data-theme="dark"] .ec-arrow:hover { background: var(--bone); color: var(--ink); }
[data-theme="dark"] .ec-dots {
    background: rgba(11, 10, 12, 0.62);
    border-color: rgba(255, 255, 255, 0.12);
}
[data-theme="dark"] .ec-dot { background: rgba(255, 255, 255, 0.38); }
[data-theme="dark"] .ec-dot.active { background: var(--bone); }

/* Buttons: ghost hover/active have hardcoded color:#fff which becomes white-on-light in dark */
[data-theme="dark"] .btn-ghost:hover,
[data-theme="dark"] .btn-ghost:active {
    background: var(--bone);
    color: var(--ink);
    border-color: var(--bone);
}

/* CTA strip — uses var(--bone) bg which flips to light in dark mode.
   Anchor it back to dark to preserve the visual rhythm. */
[data-theme="dark"] .cta-strip {
    background: var(--dark-soft);
    color: var(--dark-text);
    border-top-color: var(--dark-border);
    border-bottom-color: var(--dark-border);
}
[data-theme="dark"] .cta-strip h2 { color: #fff; }

/* "Ver Estoque" ghost button inside the dark CTA strip — base rule sets
   color: var(--paper), which is dark in dark mode (invisible on dark strip). */
[data-theme="dark"] .cta-strip .btn-ghost {
    color: var(--bone);
    border-color: rgba(255, 255, 255, 0.28);
}
[data-theme="dark"] .cta-strip .btn-ghost:hover,
[data-theme="dark"] .cta-strip .btn-ghost:active {
    background: var(--bone);
    color: var(--ink);
    border-color: var(--bone);
}

/* Select chevron SVG is hardcoded slate-500. Lighter chevron reads better on dark. */
[data-theme="dark"] .estoque-sort {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* Vehicle gallery modal close (hardcoded #fff bg) */
[data-theme="dark"] .modal-close {
    background: var(--ink-2);
    color: var(--bone);
    border: 1px solid var(--border);
}

/* Date/text inputs — Firefox/WebKit dark UA for date pickers, etc. */
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea { color-scheme: dark; }

