/* ============================================
   CarMax-Eu — Mobile Layout (max-width: 767px)
   ============================================ */

/* --- Header Mobile --- */
.header-phone {
    display: none;
}

.header-messenger {
    display: none;
}

.header-cta {
    display: none;
}

.contact-switcher {
    display: block;
}

.header-inner {
    padding: 0 0.75rem;
    height: 3.5rem;
}

.header-actions {
    gap: 0.375rem;
}

.lang-current,
.theme-toggle,
.contact-toggle {
    width: 2rem;
    height: 2rem;
}

.lang-flag {
    font-size: 1.2rem;
}


.logo-mark {
    width: 3.75rem;
    height: 1.75rem;
}

.logo-text {
    font-size: 1.25rem;
}

/* --- Hero Mobile --- */
.hero {
    min-height: 100svh;
    padding: 3.5rem 0 2rem;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 1rem;
}

.hero-content {
    text-align: center;
    order: 1;
}

.hero-content h1 {
    font-size: 2rem;
    letter-spacing: -0.02em;
}

.hero-content .subcopy {
    margin-top: 0.75rem;
    font-size: 0.9375rem;
}

.hero-content .check-list {
    margin-top: 1rem;
    align-items: center;
}

.cta-buttons {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.cta-buttons .btn {
    width: 100%;
    min-height: 3rem;
}

.hero-form {
    order: 2;
}

.hero-form-card {
    padding: 1.5rem;
}

.hero-form-card h2 {
    font-size: 1.125rem;
    text-align: center;
}

.hero-form-card .form-sub {
    text-align: center;
}

.form-grid {
    gap: 0.75rem;
}

.form-row {
    gap: 0.75rem;
}

.input {
    min-height: 3rem;
    font-size: 1rem;
}

.calc-field select.input,
.calc-field .brand-display,
.form-grid select.input,
.form-grid .brand-display {
    font-size: 1rem;
    min-height: 3rem;
}

/* Larger tap targets inside brand dropdown */
.brand-option {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    gap: 0.875rem;
}

.brand-option img {
    width: 2.5rem;
    height: 1.5rem;
}

.brand-search-input {
    font-size: 1rem;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
}

/* Headlights smaller on mobile */
.headlight-left,
.headlight-right {
    width: 100px;
    height: 100px;
}

.headlight-left {
    left: 10%;
    top: 15%;
}

.headlight-right {
    right: 10%;
    top: 15%;
}

/* Hide scroll indicator on mobile */
.scroll-indicator {
    display: none;
}

/* --- How It Works Mobile (Road Timeline) --- */
.how-section {
    padding: 3rem 0;
}

.how-section .section-header h2 {
    font-size: 1.5rem;
}

.how-section .section-header {
    margin-bottom: 2rem;
}

/* Road timeline: line on left, cards to right */
.road-timeline {
    padding-left: 1.75rem;
}

.road-line {
    left: 0;
    transform: none;
}


.road-station {
    padding-left: 2.25rem;
    margin-bottom: 1.5rem;
}

.road-station-marker {
    left: -1.75rem;
    top: 0;
    transform: translateX(-50%);
}

.road-station-dot {
    width: 2.25rem;
    height: 2.25rem;
}

.road-station-icon {
    width: 1rem;
    height: 1rem;
}

.road-station-card {
    text-align: left;
    padding: 1rem 1.25rem;
}

.road-station-card::after {
    display: none;
}

.road-station-card h3 {
    font-size: 0.875rem;
}

.road-station-card p {
    font-size: 0.75rem;
}

.open-badge .card {
    padding: 1rem 1.5rem;
}

.open-badge h3 {
    font-size: 0.9375rem;
}

.open-badge p {
    font-size: 0.8125rem;
}

/* --- Parallax Divider Mobile --- */
.parallax-divider {
    height: 25vh;
    min-height: 180px;
}

/* Use scroll instead of fixed on mobile (better perf) */
.parallax-divider-img {
    background-attachment: scroll;
}

/* --- Benefits Mobile (Bento) --- */
.benefits-section {
    padding: 3rem 0;
}

.benefits-section .section-header h2 {
    font-size: 1.5rem;
}

.benefits-section .section-header {
    margin-bottom: 1.5rem;
}

.benefits-bento {
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.benefit-card {
    padding: 1.25rem;
}


.benefit-icon {
    width: 2.5rem;
    height: 2.5rem;
}

.benefit-card h3 {
    font-size: 1rem;
}

.benefit-card p {
    font-size: 0.8125rem;
}

.benefit-number {
    font-size: 2rem;
}

/* --- Map Mobile --- */
.map-section {
    padding: 3rem 0 2rem;
}

.map-viewport {
    height: 260px;
    border-radius: var(--radius-md);
}

.map-zoom-container.map-zoomed {
    transform: scale(2.5);
}

.map-pin {
    width: 22px;
    height: 33px;
}

/* --- Car Drive Mobile --- */
.car-drive-section {
    height: 80px;
}

.car-drive-road {
    height: 30px;
}

.car-drive-surface {
    height: 30px;
}

.car-drive-line {
    bottom: 13px;
}

.car-drive-vehicle {
    width: 80px;
    bottom: 22px;
}

/* --- Logos Mobile --- */
.logos-section {
    padding: 1.5rem 0;
}

.logos-header {
    margin-bottom: 1rem;
}

.logo-item {
    padding: 0.375rem 1rem;
}

.logo-item img {
    height: 2.25rem;
}

/* --- Trust Mobile --- */
.trust-section {
    padding: 3rem 0;
}

.trust-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

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

.trust-item {
    padding: 1.25rem 0.75rem;
}

.trust-number {
    font-size: 2rem;
}

.trust-label {
    font-size: 0.75rem;
}

/* --- FAQ Mobile --- */
.faq-section {
    padding: 3rem 0;
}

.faq-section .section-header h2 {
    font-size: 1.5rem;
}

.faq-section .section-header {
    margin-bottom: 1.5rem;
}

.faq-question {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
}

.faq-answer {
    padding: 0.4rem 1rem 0.875rem;
}

/* --- Footer Mobile --- */
.footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding: 1.25rem 1rem;
    font-size: 0.75rem;
}

.footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.footer-links .contact-link {
    font-size: 0.75rem;
}

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

/* --- Sticky CTA visible on mobile --- */
.sticky-cta {
    display: block;
}

/* --- Services Mobile --- */
.services-section {
    padding: 3rem 0;
}

.services-section .section-header h2 {
    font-size: 1.5rem;
}

.services-section .section-header {
    margin-bottom: 1.5rem;
}

.service-item {
    padding: 1rem;
    gap: 0.75rem;
}

.service-item-icon {
    width: 2.5rem;
    height: 2.5rem;
}

.service-item-icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.service-item-body h3 {
    font-size: 0.9375rem;
}

.service-item-body p {
    font-size: 0.75rem;
}

.service-item-arrow {
    display: none;
}

/* --- Calculator Mobile --- */
.calculator-section {
    padding: 3rem 0;
}

.calculator-section .section-header h2 {
    font-size: 1.5rem;
}

.calculator-section .section-header {
    margin-bottom: 1.5rem;
}

.calculator-card {
    padding: 1.25rem;
}

.calc-result-range {
    font-size: 1.5rem;
}

/* --- Extra Small (380px) --- */
@media (max-width: 380px) {
    .hero-content h1 {
        font-size: 1.625rem;
    }

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

    .car-drive-vehicle {
        width: 60px;
    }
}
