/* Universal box-sizing reset — required because /usato/auto/, /usato/furgoni/
   and blog article pages don't load tailwind.css (which would provide this via
   Preflight). Without it, .container width:100% + padding:1.5rem overflows. */
*, *::before, *::after { box-sizing: border-box; }

/* ===== DESIGN TOKENS ===== */
:root {
    --bg-deep: #F7F8FA;
    --bg-card: #FFFFFF;
    --accent: #1B6EC2;
    --accent-2: #1E3A5F;
    --text-main: #1A1D23;
    --text-muted: #5C6370;
    --border: #E2E6EA;
    --border-dark: #C8CDD5;
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    /* Tinted shadows (navy-tinted, not pure black) */
    --shadow-sm: 0 2px 8px -2px rgba(27, 58, 95, 0.08);
    --shadow-md: 0 8px 32px -8px rgba(27, 58, 95, 0.12);
    --shadow-lg: 0 16px 48px -12px rgba(27, 58, 95, 0.16);
    /* Custom easing */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== GLOBAL ===== */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
}

/* ===== TYPOGRAPHY ===== */
h1 { font-size: 3rem; font-weight: 700; line-height: 0.95; letter-spacing: -0.04em; }
h2 { font-size: 2.25rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
h4 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
h5 { font-size: 1rem; font-weight: 600; line-height: 1.3; }

p { font-size: 1rem; line-height: 1.7; }
.text-sm { font-size: 0.875rem; line-height: 1.5; }
.text-xs { font-size: 0.75rem; line-height: 1.4; }

/* ===== ACCENT COLOR UTILITY ===== */
.gradient-text {
    color: var(--accent-2);
}

/* ===== MONOSPACE NUMBERS ===== */
.num-mono {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* ===== CARD ===== */
.glass {
    background: #FFFFFF;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* ===== BUTTONS ===== */
.btn-accent {
    background: var(--accent);
    color: #FFFFFF;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    border: none;
    transition: background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), transform 0.15s var(--ease-out);
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.btn-accent:hover {
    background: #155FA0;
    box-shadow: var(--shadow-md);
}

.btn-accent:active {
    background: #0E4B82;
    transform: scale(0.98);
}

.btn-ghost {
    border: 1.5px solid var(--accent-2);
    color: var(--accent-2);
    background: transparent;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.15s var(--ease-out);
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.btn-ghost:hover {
    background: var(--accent-2);
    color: #FFFFFF;
}

.btn-ghost:active {
    transform: scale(0.98);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* ===== HOVER EFFECT ===== */
.hover-glow {
    transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.hover-glow:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

/* ===== INPUTS & FORMS ===== */
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
    background: #FFFFFF !important;
    border: 1px solid var(--border) !important;
    color: var(--text-main) !important;
    padding: 0.875rem 1rem !important;
    border-radius: var(--radius-sm) !important;
    transition: border-color 0.2s !important;
    font-size: 1rem !important;
    width: 100% !important;
    font-family: inherit !important;
}

input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus {
    outline: none !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(27, 110, 194, 0.08) !important;
    background: #FFFFFF !important;
}

input:not([type="checkbox"]):not([type="radio"])::placeholder {
    color: var(--text-muted) !important;
}

/* Checkboxes */
input[type="checkbox"], input[type="radio"] {
    width: auto !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* ===== CONTAINERS & LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 3rem;
    }
}

.section {
    padding: 5rem 0;
}

.section-dark {
    background: var(--bg-deep);
}

.section-light {
    background: #FFFFFF;
    color: var(--text-main);
}

.section-light h1,
.section-light h2,
.section-light h3 {
    color: var(--text-main);
}

.section-light p,
.section-light label {
    color: var(--text-muted);
}

/* ===== GRID & FLEX ===== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Asymmetric bento grid (wide left slot + 2 stacked right) */
.grid-bento {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.grid-bento .bento-wide {
    grid-column: 1;
    grid-row: 1 / 3;
}

.grid-bento .bento-sm {
    grid-column: 2;
}

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-bento { grid-template-columns: repeat(2, 1fr); }
    .grid-bento .bento-wide { grid-column: span 2; grid-row: auto; }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .grid-bento {
        grid-template-columns: 1fr;
    }
    .grid-bento .bento-wide {
        grid-column: 1;
        grid-row: auto;
    }
}

.flex {
    display: flex;
    gap: 1rem;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.card-sm {
    padding: 1.5rem;
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 0.2rem 0.625rem;
    border-radius: 0.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.badge-accent {
    background: rgba(27, 110, 194, 0.10);
    color: var(--accent);
    border: 1px solid rgba(27, 110, 194, 0.25);
}

.badge-privati {
    background: var(--accent);
    color: #FFFFFF;
    border: 1px solid var(--accent);
}

.badge-aziende {
    background: var(--accent-2);
    color: #FFFFFF;
    border: 1px solid var(--accent-2);
}

.badge-furgoni {
    background: #8B5E00;
    color: #FFFFFF;
    border: 1px solid #8B5E00;
}

.badge-usato {
    background: #5C6370;
    color: #FFFFFF;
    border: 1px solid #5C6370;
}

/* Pagination wrap spacing — separates pagination from the
   "Abbiamo molti altri modelli" CTA above. */
.pagination-wrap { margin-top: 2.5rem; }

/* ===== FILTER SIDEBAR ===== */
.filter-heading {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.875rem;
    margin-top: 0;
    padding: 0;
    color: var(--text-main);
}

.filter-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.45rem 0;
    cursor: pointer;
    margin-bottom: 0;
}

.filter-item:hover .filter-label {
    color: var(--text-main);
}

.filter-item:hover .filter-check {
    border-color: var(--accent);
}

.filter-check {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1.5px solid var(--border-dark);
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    background: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 8px;
    transition: background 0.15s, border-color 0.15s;
}

.filter-check:checked {
    background-color: var(--accent);
    border-color: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none' d='M1 4l3 3 5-6'/%3E%3C/svg%3E");
}

.filter-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 400;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

/* ===== VEHICLE CARD (REUSABLE) ===== */
.vehicle-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(27, 58, 95, 0.06);
    transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    display: flex;
    flex-direction: column;
}

.vehicle-card:hover {
    box-shadow: 0 16px 48px -12px rgba(27, 58, 95, 0.18);
    transform: translateY(-3px);
}

.vehicle-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem 0.75rem 0.5rem;
    transition: transform 0.4s var(--ease-out);
}

.vehicle-card:hover .vehicle-card-image img {
    transform: scale(1.05);
}

.vehicle-card-badge {
    position: absolute;
    top: 0.875rem;
    left: 0.875rem;
    z-index: 2;
}

.vehicle-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.vehicle-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.vehicle-card-spec {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.vehicle-card-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
    line-height: 1;
}

.vehicle-card-price span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.vehicle-attrs {
    display: flex;
    gap: 0;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.vehicle-attr {
    flex: 1;
    padding: 0.625rem 0.5rem;
    text-align: center;
    border-right: 1px solid var(--border);
    background: var(--bg-deep);
}

.vehicle-attr:last-child {
    border-right: none;
}

.vehicle-attr-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    display: block;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.vehicle-attr-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vehicle-card .btn-accent {
    margin-top: auto;
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    font-size: 0.9rem;
}

/* ===== SITE HEADER (UNIFIED) ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.site-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-header-logo img {
    height: 48px;
    width: auto;
    display: block;
}

.site-header-nav {
    flex: 1;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

@media (min-width: 1100px) {
    .site-header-nav {
        display: flex;
    }
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s var(--ease-out);
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--text-main);
}

.nav-link.active {
    color: var(--accent);
    font-weight: 600;
}

.nav-link-util {
    font-size: 0.82rem;
    color: rgba(92, 99, 112, 0.85);
}

.nav-link-ext {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-ext-icon {
    opacity: 0.65;
    flex-shrink: 0;
}

.nav-phone {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s var(--ease-out);
    white-space: nowrap;
}

.nav-phone:hover { color: var(--accent); }

.site-header-cta {
    display: none;
    flex-shrink: 0;
    padding: 0.625rem 1.25rem !important;
    font-size: 0.85rem;
}

@media (min-width: 1100px) {
    .site-header-cta { display: inline-flex; align-items: center; }
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.site-header-phone {
    display: none;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}
.site-header-phone:hover { color: var(--accent); }
.site-header-phone svg { color: var(--accent); }

.site-header-whatsapp {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.site-header-whatsapp:hover { background: #1ebe5d; transform: translateY(-1px); }

@media (min-width: 900px) {
    .site-header-phone { display: inline-flex; }
    .site-header-whatsapp { display: inline-flex; }
}

.mobile-phone-link, .mobile-whatsapp-link {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}
.mobile-whatsapp-link {
    color: #25D366;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-chev {
    transition: transform 0.2s var(--ease-out);
    opacity: 0.7;
}

.nav-dropdown.open .nav-chev {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    min-width: 200px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out), visibility 0.18s;
    z-index: 110;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu-right {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(-4px);
}

.nav-dropdown.open .nav-dropdown-menu-right {
    transform: translateX(0) translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.55rem 0.875rem;
    font-size: 0.875rem;
    color: var(--text-main);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
    font-weight: 500;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
    background: var(--bg-deep);
    color: var(--accent);
}

.nav-dropdown-menu a.active {
    color: var(--accent);
    font-weight: 600;
}

/* Mobile toggle */
.site-header-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.32rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    color: var(--text-main);
}

@media (min-width: 1100px) {
    .site-header-toggle { display: none; }
}

.site-header-toggle span {
    width: 1.4rem;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
}

.site-header-toggle.active span:nth-child(1) { transform: translateY(0.5rem) rotate(45deg); }
.site-header-toggle.active span:nth-child(2) { opacity: 0; }
.site-header-toggle.active span:nth-child(3) { transform: translateY(-0.5rem) rotate(-45deg); }

/* Mobile menu */
.site-header-mobile {
    background: #FFFFFF;
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem 1.25rem;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.site-header-mobile[hidden] {
    display: none;
}

.site-header-mobile a {
    display: block;
    padding: 0.85rem 0;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    font-weight: 500;
}

.site-header-mobile a.btn-accent {
    color: #FFFFFF;
    border-bottom: none;
    text-align: center;
    margin-top: 1rem;
    width: 100%;
}

.site-header-mobile .mobile-submenu {
    border-bottom: 1px solid var(--border);
}

.site-header-mobile .mobile-submenu summary {
    padding: 0.85rem 0;
    cursor: pointer;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    list-style: none;
    position: relative;
}

.site-header-mobile .mobile-submenu summary::-webkit-details-marker { display: none; }

.site-header-mobile .mobile-submenu summary::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s var(--ease-out);
}

.site-header-mobile .mobile-submenu[open] summary::after {
    transform: translateY(-25%) rotate(225deg);
}

.site-header-mobile .mobile-submenu a {
    padding-left: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: none;
}

.site-header-mobile .mobile-submenu a:last-child {
    padding-bottom: 0.85rem;
}

/* Dark theme variant (Academy) */
[data-theme="dark"] .site-header {
    background: rgba(15, 17, 23, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .site-header.scrolled {
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .nav-link {
    color: rgba(255, 255, 255, 0.65);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link:focus-visible {
    color: #FFFFFF;
}

[data-theme="dark"] .nav-link.active {
    color: var(--accent);
}

[data-theme="dark"] .nav-phone {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .nav-phone:hover { color: var(--accent); }

[data-theme="dark"] .site-header-toggle { color: #FFFFFF; }

[data-theme="dark"] .nav-dropdown-menu {
    background: #1A1D23;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .nav-dropdown-menu a {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .nav-dropdown-menu a:hover,
[data-theme="dark"] .nav-dropdown-menu a:focus-visible {
    background: rgba(255, 255, 255, 0.04);
    color: var(--accent);
}

[data-theme="dark"] .site-header-mobile {
    background: #1A1D23;
    border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .site-header-mobile a {
    color: rgba(255, 255, 255, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .site-header-mobile a.btn-accent {
    color: #FFFFFF;
}

[data-theme="dark"] .site-header-mobile .mobile-submenu summary {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .site-header-mobile .mobile-submenu summary::after {
    border-right-color: rgba(255, 255, 255, 0.65);
    border-bottom-color: rgba(255, 255, 255, 0.65);
}

[data-theme="dark"] .site-header-mobile .mobile-submenu a {
    color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 480px) {
    .site-header-inner {
        padding: 0.75rem 1rem;
    }
}

/* ===== ACCORDION ===== */
.accordion-item {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.accordion-item:hover {
    background: var(--bg-deep);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1rem;
}

.accordion-toggle {
    color: var(--text-muted);
    transition: transform 0.3s var(--ease-out);
    display: inline-block;
    flex-shrink: 0;
}

.accordion-item.open .accordion-toggle {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease-out);
}

.accordion-item.open .accordion-content {
    max-height: 500px;
    padding-top: 1rem;
}

.accordion-content p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--accent-2);
    color: #FFFFFF;
    border-top: none;
    padding: 4rem 0 2rem;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-col a {
    display: block;
    padding: 0.4rem 0;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.875rem;
}

.footer-col a:hover {
    color: #FFFFFF;
}

.footer-divider {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 2rem 0 0;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}

/* ===== UTILITIES ===== */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }

.py-2 { padding: 1rem 0; }
.py-4 { padding: 2rem 0; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.hidden { display: none; }

.text-center { text-align: center; }
.text-right { text-align: right; }

.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
    transition-delay: var(--delay, 0ms);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SECTION HEADER PATTERN ===== */
/* Left-aligned heading with decorative right counter */
.section-header-split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.section-header-split .section-counter {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--border);
    line-height: 1;
    letter-spacing: -0.04em;
    flex-shrink: 0;
    user-select: none;
}

@media (max-width: 768px) {
    .section-header-split .section-counter {
        display: none;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.875rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .section {
        padding: 3rem 0;
    }
}

/* ===== STICKY PRODUCT BAR (per-vehicle) ===== */
.sticky-product-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: var(--accent);
    color: #FFFFFF;
    display: grid;
    grid-template-columns: minmax(180px, 1.1fr) auto auto auto auto;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 -4px 24px rgba(8, 16, 34, 0.18);
    font-family: inherit;
    transform: translateY(0);
    transition: transform 0.35s var(--ease-out);
}

.sticky-product-bar-hidden {
    transform: translateY(100%);
    pointer-events: none;
}

body.has-sticky-popup { padding-bottom: 88px; }

.sticky-product-bar .spb-info {
    padding: 0.875rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.sticky-product-bar .spb-tag {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.78);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.sticky-product-bar .spb-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sticky-product-bar .spb-specs {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    padding: 0.875rem 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.sticky-product-bar .spb-spec {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.sticky-product-bar .spb-spec-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
}

.sticky-product-bar .spb-spec-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    font-variant-numeric: tabular-nums;
}

.sticky-product-bar .spb-price {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0.875rem 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.sticky-product-bar .spb-price-num {
    font-size: 1.85rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.sticky-product-bar .spb-price-sub {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.3rem;
    font-weight: 500;
}

.sticky-product-bar .spb-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--accent-2);
    color: #FFFFFF;
    text-decoration: none;
    padding: 0 2rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    transition: background 0.2s var(--ease-out);
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.sticky-product-bar .spb-cta:hover {
    background: #142841;
}

.sticky-product-bar .spb-cta-arrow {
    flex-shrink: 0;
    transition: transform 0.2s var(--ease-out);
}

.sticky-product-bar .spb-cta:hover .spb-cta-arrow {
    transform: translateX(3px);
}

.sticky-product-bar .spb-chat {
    width: 88px;
    background: var(--accent-2);
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    transition: background 0.2s var(--ease-out);
    position: relative;
}

.sticky-product-bar .spb-chat::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(111, 216, 154, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.sticky-product-bar .spb-chat:hover {
    background: #142841;
}

.sticky-product-bar .spb-chat svg {
    position: relative;
    z-index: 1;
}

.sticky-product-bar .spb-chat-pulse {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6FD89A;
    box-shadow: 0 0 0 3px rgba(111, 216, 154, 0.3);
    z-index: 2;
}

/* Tablet: hide some spec details to make room */
@media (max-width: 1100px) {
    .sticky-product-bar {
        grid-template-columns: minmax(140px, 1fr) auto auto auto;
    }
    .sticky-product-bar .spb-specs {
        gap: 1.25rem;
        padding: 0.875rem 1rem;
    }
    .sticky-product-bar .spb-cta {
        padding: 0 1.25rem;
        font-size: 0.78rem;
    }
}

@media (max-width: 860px) {
    .sticky-product-bar .spb-specs { display: none; }
    .sticky-product-bar {
        grid-template-columns: 1fr auto auto auto;
    }
}

@media (max-width: 600px) {
    .sticky-product-bar {
        grid-template-columns: 1fr auto auto;
    }
    .sticky-product-bar .spb-price { display: none; }
    .sticky-product-bar .spb-tag { font-size: 0.55rem; }
    .sticky-product-bar .spb-name { font-size: 0.95rem; }
    .sticky-product-bar .spb-cta { padding: 0 1rem; font-size: 0.72rem; }
    .sticky-product-bar .spb-cta-arrow { display: none; }
    .sticky-product-bar .spb-chat { width: 60px; }
    body.has-sticky-popup { padding-bottom: 72px; }
}

/* ===== ADAM LEAD-MAGNET WIDGET ===== */
#adam-widget { position: fixed; z-index: 95; pointer-events: none; }

.adam-launcher {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    padding: 0.75rem 1rem 0.75rem 1.25rem;
    border-radius: 999px;
    background: var(--accent);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    box-shadow: 0 12px 32px -8px rgba(27, 110, 194, 0.45);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1.1;
    text-align: left;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s var(--ease-out);
    pointer-events: auto;
    z-index: 96;
    font-family: inherit;
}

.adam-launcher::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6FD89A;
    box-shadow: 0 0 0 3px rgba(111, 216, 154, 0.25);
    flex-shrink: 0;
}

.adam-launcher-label {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
}

.adam-launcher-sub {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.85;
    margin-top: 0.1rem;
}

.adam-launcher-icon {
    margin-left: 0.25rem;
    flex-shrink: 0;
    opacity: 0.9;
}

.adam-launcher:hover {
    background: #155FA0;
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -8px rgba(27, 110, 194, 0.55);
}

body.has-sticky-popup .adam-launcher { display: none; }

@media (max-width: 480px) {
    .adam-launcher {
        right: 1rem;
        bottom: 1rem;
        padding: 0.625rem 0.875rem 0.625rem 1rem;
    }
    .adam-launcher-sub { display: none; }
}

.adam-panel {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 380px;
    max-width: calc(100vw - 3rem);
    max-height: calc(100vh - 3rem);
    background: #FFFFFF;
    border-radius: 1rem;
    box-shadow: 0 24px 64px -16px rgba(8, 16, 34, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    z-index: 97;
}

.adam-panel[hidden] { display: none; }

.adam-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.25rem 1.25rem 1rem;
    background: var(--accent-2);
    color: #FFFFFF;
}

.adam-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.adam-header-text { flex: 1; min-width: 0; }
.adam-header-text h3 { font-size: 1rem; font-weight: 700; margin: 0; color: #FFFFFF; line-height: 1.2; }
.adam-header-text p { font-size: 0.78rem; color: rgba(255, 255, 255, 0.7); margin: 0.15rem 0 0; line-height: 1.3; }

.adam-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}
.adam-close:hover { background: rgba(255, 255, 255, 0.1); }

.adam-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
}

.adam-footer {
    flex-shrink: 0;
    padding: .45rem 1.25rem;
    border-top: 1px solid var(--border);
    background: #fff;
    text-align: center;
}

.adam-disclosure,
.adam-powered {
    margin: 0;
}

.adam-disclosure {
    color: #475569;
    font-size: .6875rem;
    line-height: 1.4;
}

.adam-powered {
    margin-top: .1875rem;
    color: #595959;
    font-size: .5625rem;
    line-height: 1.4;
    letter-spacing: .06875rem;
    text-transform: uppercase;
}

.adam-intro {
    margin: 0 0 1rem;
    color: #475569;
    font-size: .75rem;
    line-height: 1.5;
}

.adam-progress {
    height: 4px;
    background: var(--bg-deep);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.875rem;
}
.adam-progress-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 999px;
    transition: width 0.3s var(--ease-out);
}

.adam-step-num {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.adam-label {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.875rem;
    line-height: 1.3;
}

.adam-form input,
.adam-form textarea {
    width: 100% !important;
    padding: 0.875rem 1rem !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    font-size: 0.95rem !important;
    font-family: inherit !important;
    background: #FFFFFF !important;
    color: var(--text-main) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    margin-bottom: 1rem;
}

.adam-form input:focus,
.adam-form textarea:focus {
    outline: none !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(27, 110, 194, 0.1) !important;
}

.adam-form textarea {
    resize: vertical;
    min-height: 80px;
}

.adam-summary {
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.adam-summary p {
    margin: 0 0 0.4rem;
    font-size: 0.85rem;
    line-height: 1.5;
}
.adam-summary p:last-child { margin-bottom: 0; }

.adam-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-bottom: 1rem;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.adam-checkbox input[type="checkbox"] {
    width: auto !important;
    margin: 0.2rem 0 0 !important;
    flex-shrink: 0;
}

.adam-checkbox a { color: var(--accent); text-decoration: underline; }

.adam-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.adam-btn-back,
.adam-btn-next {
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.1s;
}

.adam-btn-back {
    background: var(--bg-deep);
    color: var(--text-main);
}
.adam-btn-back:hover { background: #E5E9EE; }

.adam-btn-next {
    background: var(--accent);
    color: #FFFFFF;
}
.adam-btn-next:hover { background: #155FA0; }
.adam-btn-next:active { transform: scale(0.98); }

.adam-success {
    text-align: center;
    padding: 1rem 0;
}

.adam-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(27, 110, 194, 0.1);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adam-success h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.5rem;
}

.adam-success p {
    color: var(--text-muted);
    margin: 0 0 1.25rem;
    font-size: 0.92rem;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .adam-panel {
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        max-height: 92vh;
        border-radius: 1rem 1rem 0 0;
    }
}

body.has-sticky-popup .adam-panel {
    bottom: calc(88px + 0.5rem);
}

@media (max-width: 600px) {
    body.has-sticky-popup .adam-panel {
        bottom: 72px;
    }
}

/* Keyboard focus rings for clickable cards (matches link/button focus pattern) */
.vehicle-card:focus-visible,
.blog-card:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(27, 110, 194, 0.12);
}
.vehicle-card:focus:not(:focus-visible),
.blog-card:focus:not(:focus-visible) {
    outline: none;
}

/* No-JS / crawler fallback: ensure fade-in elements are visible without IntersectionObserver */
@media (prefers-reduced-motion: reduce) {
    .fade-in { opacity: 1 !important; transform: none !important; }
}
