/*
Theme Name: TEMCAR
Theme URI: https://temcarsale.com
Author: Lewin Muzvonda
Description: Premium car sales theme for TEMCAR with WhatsApp inquiry integration.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: temcar
*/

/* ============================================
   CSS RESET & VARIABLES
   ============================================ */
:root {
    --teal: #1a7a6d;
    --teal-dark: #145f55;
    --teal-light: #e6f5f2;
    --teal-50: #f0faf8;
    --orange: #e8731a;
    --orange-dark: #c95f10;
    --orange-light: #fef3e8;
    --gradient: linear-gradient(135deg, var(--teal), var(--orange));
    --gradient-subtle: linear-gradient(135deg, var(--teal-light), var(--orange-light));

    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #868e96;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;

    --bg: var(--white);
    --bg-alt: var(--gray-50);
    --bg-card: var(--white);
    --text: var(--gray-800);
    --text-muted: var(--gray-600);
    --text-heading: var(--gray-900);
    --border: var(--gray-200);

    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow: 0 4px 16px rgba(0,0,0,.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.1);
    --shadow-teal: 0 4px 20px rgba(26,122,109,.2);
    --shadow-orange: 0 4px 20px rgba(232,115,26,.2);
    --transition: .3s cubic-bezier(.4,0,.2,1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --whatsapp: #25d366;
    --whatsapp-dark: #1da851;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 { color: var(--text-heading); line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.02em; }
h3 { font-size: 1.25rem; }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.teal-text { color: var(--teal); }
.orange-text { color: var(--orange); }

.section-tag {
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--teal);
    margin-bottom: 8px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header p.section-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 12px auto 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font);
}

.btn-primary {
    background: var(--teal);
    color: #fff;
    box-shadow: var(--shadow-teal);
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(26,122,109,.3); }

.btn-orange {
    background: var(--orange);
    color: #fff;
    box-shadow: var(--shadow-orange);
}
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(232,115,26,.3); }

.btn-outline {
    background: transparent;
    color: var(--teal);
    border: 2px solid var(--teal);
}
.btn-outline:hover { background: var(--teal); color: #fff; }

.btn-outline-orange {
    background: transparent;
    color: var(--orange);
    border: 2px solid var(--orange);
}
.btn-outline-orange:hover { background: var(--orange); color: #fff; }

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
    box-shadow: 0 4px 20px rgba(37,211,102,.25);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,211,102,.35); }

.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 22px; font-size: .85rem; }

.btn-ghost {
    background: var(--teal-light);
    color: var(--teal);
    border: none;
}
.btn-ghost:hover { background: var(--teal); color: #fff; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    transition: var(--transition);
    background: rgba(255,255,255,.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.navbar.scrolled {
    background: rgba(255,255,255,.95);
    padding: 10px 0;
    box-shadow: 0 1px 20px rgba(0,0,0,.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-link img {
    height: 50px;
    width: auto;
}

.navbar.scrolled .logo-link img {
    height: 42px;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--teal);
    letter-spacing: -.02em;
}
.logo-text span { color: var(--orange); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a,
.nav-links li a {
    font-size: .9rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
    position: relative;
}
.nav-links a:hover,
.nav-links li a:hover,
.nav-links a.active,
.nav-links .current-menu-item a { color: var(--teal); }

.nav-links a::after,
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}
.nav-links a:hover::after,
.nav-links li a:hover::after { width: 100%; }

.nav-cta {
    margin-left: 8px;
}

.nav-cta .btn {
    padding: 10px 24px;
    font-size: .85rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 30%, rgba(26,122,109,.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(232,115,26,.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: .06;
}

.hero-shape-1 {
    width: 500px;
    height: 500px;
    background: var(--teal);
    top: -150px;
    right: -100px;
}

.hero-shape-2 {
    width: 300px;
    height: 300px;
    background: var(--orange);
    bottom: -80px;
    left: -60px;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 140px 0 80px;
    max-width: 640px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--teal);
    margin-bottom: 20px;
    padding: 6px 16px;
    background: var(--teal-light);
    border-radius: 50px;
}

.hero h1 { margin-bottom: 20px; color: var(--gray-900); }

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 40px;
}

.stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--teal);
}
.stat span {
    font-size: .85rem;
    color: var(--text-muted);
    font-weight: 500;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-200);
}

/* ============================================
   FILTER
   ============================================ */
.filter-section {
    padding: 80px 0 32px;
    background: var(--bg);
}

.filter-bar {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--gray-100);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    font-weight: 500;
    font-size: .9rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}
.filter-btn:hover { color: var(--teal); border-color: var(--teal); background: var(--teal-light); }
.filter-btn.active {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}

/* ============================================
   CAR GRID
   ============================================ */
.cars-section {
    padding: 24px 0 80px;
    background: var(--bg);
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 28px;
}

/* ============================================
   CAR CARD
   ============================================ */
.car-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}
.car-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

.car-card-img {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: var(--gray-100);
}

.car-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.car-card:hover .car-card-img img { transform: scale(1.05); }

.car-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: var(--teal);
    color: #fff;
}

.car-badge-orange { background: var(--orange); }

.car-card-body { padding: 22px; }

.car-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 4px;
}

.car-card-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--teal);
    margin-bottom: 14px;
}

.car-card-specs {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: var(--text-muted);
}
.spec-item svg { flex-shrink: 0; color: var(--teal); opacity: .7; }

.car-card-actions {
    display: flex;
    gap: 10px;
}

.car-card-actions .btn { flex: 1; justify-content: center; }

/* ============================================
   WHY US / FEATURES
   ============================================ */
.why-us {
    padding: 100px 0;
    background: var(--bg-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 36px 28px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--teal);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--teal-light);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card:nth-child(even) .feature-icon {
    background: var(--orange-light);
    color: var(--orange);
}

.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================
   SELL YOUR CAR SECTION
   ============================================ */
.sell-section {
    padding: 100px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

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

.sell-content .section-tag { text-align: left; }
.sell-content h2 { text-align: left; margin-bottom: 16px; }
.sell-content > p { color: var(--text-muted); margin-bottom: 32px; line-height: 1.7; }

.sell-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.sell-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.sell-step-num {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
    background: var(--gradient);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sell-step-text h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.sell-step-text p {
    font-size: .88rem;
    color: var(--text-muted);
}

.sell-graphic {
    position: relative;
}

.sell-card-visual {
    background: var(--gradient-subtle);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    border: 1px solid var(--border);
    position: relative;
}

.sell-card-visual svg {
    color: var(--teal);
    margin-bottom: 20px;
}

.sell-card-visual h3 {
    margin-bottom: 8px;
}

.sell-card-visual p {
    color: var(--text-muted);
    font-size: .92rem;
}

/* ============================================
   SELL YOUR CAR PAGE TEMPLATE
   ============================================ */
.sell-page-hero {
    padding: 140px 0 60px;
    background: var(--bg-alt);
    text-align: center;
}

.sell-page-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 12px auto 0;
}

.sell-form-section {
    padding: 60px 0 100px;
}

.sell-form-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 48px;
    box-shadow: var(--shadow);
}

.sell-form-card h3 {
    margin-bottom: 8px;
}

.sell-form-card > p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: .95rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

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

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-heading);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: .92rem;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(26,122,109,.1);
}

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

.form-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 28px 0;
}

.form-note {
    font-size: .82rem;
    color: var(--text-muted);
    margin-top: 12px;
    text-align: center;
}

/* ============================================
   CONTACT / CTA
   ============================================ */
.contact-section {
    padding: 80px 0 100px;
    background: var(--bg-alt);
}

.cta-card {
    position: relative;
    background: var(--teal);
    border-radius: var(--radius);
    padding: 64px;
    overflow: hidden;
    color: #fff;
}

.cta-content { position: relative; z-index: 2; max-width: 500px; }
.cta-content .section-tag { color: rgba(255,255,255,.7); }
.cta-content h2 { color: #fff; margin-bottom: 12px; }
.cta-content > p { color: rgba(255,255,255,.8); margin-bottom: 28px; }

.cta-graphic {
    position: absolute;
    right: -60px;
    top: -60px;
}

.cta-circle {
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 70%);
}
.cta-circle-2 {
    position: absolute;
    top: 80px;
    left: 80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(232,115,26,.2) 0%, transparent 70%);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(.97);
    transition: transform .3s ease;
    position: relative;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,.4);
    color: #fff;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.modal-close:hover { background: var(--teal); }

.modal-img-wrap {
    height: 280px;
    overflow: hidden;
    background: var(--gray-100);
}
.modal-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.modal-body { padding: 28px; }

.modal-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--teal);
    color: #fff;
    margin-bottom: 12px;
}

.modal-body h2 { font-size: 1.5rem; margin-bottom: 4px; }

.modal-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--teal);
    margin-bottom: 20px;
}

.modal-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.modal-spec {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--gray-100);
    border-radius: 50px;
    font-size: .82rem;
    color: var(--text);
}

.modal-desc {
    color: var(--text-muted);
    font-size: .92rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

/* ============================================
   SEARCH BAR
   ============================================ */
.search-section {
    margin-top: -40px;
    position: relative;
    z-index: 10;
    padding: 0 0 20px;
}

.search-bar {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    background: var(--white);
    padding: 24px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    flex-wrap: wrap;
}

.search-field {
    flex: 1;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-field label {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
}

.search-field input,
.search-field select {
    padding: 11px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: .9rem;
    color: var(--text);
    background: var(--gray-50);
    outline: none;
    transition: var(--transition);
}

.search-field input:focus,
.search-field select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(26,122,109,.08);
    background: var(--white);
}

.search-btn {
    min-width: 130px;
    white-space: nowrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 0;
    border-top: none;
    background: var(--gray-900);
    color: rgba(255,255,255,.6);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding: 64px 0 48px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    display: inline-block;
    margin-bottom: 12px;
}
.footer-brand .logo-text span { color: var(--orange); }

.footer-brand p {
    font-size: .9rem;
    line-height: 1.7;
    color: rgba(255,255,255,.5);
}

.footer-col h4 {
    color: #fff;
    font-size: .95rem;
    margin-bottom: 16px;
    font-weight: 600;
}

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

.footer-col li a,
.footer-col li {
    font-size: .88rem;
    color: rgba(255,255,255,.55);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-col li a:hover { color: #fff; }

.footer-contact li { gap: 10px; }
.footer-contact svg { flex-shrink: 0; color: var(--teal); opacity: .8; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px 0;
}

.footer-bottom p { font-size: .82rem; }

.footer-links { display: flex; gap: 24px; }
.footer-links a {
    font-size: .82rem;
    color: rgba(255,255,255,.5);
    transition: var(--transition);
}
.footer-links a:hover { color: #fff; }

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 9999;
    padding: 12px 24px;
    background: var(--teal);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    width: auto;
    height: auto;
    clip: auto;
    overflow: visible;
}

/* Focus styles for keyboard nav */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(37,211,102,.35);
    z-index: 999;
    transition: var(--transition);
    animation: float-pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,.5); }

@keyframes float-pulse {
    0%, 100% { box-shadow: 0 4px 24px rgba(37,211,102,.35); }
    50% { box-shadow: 0 4px 32px rgba(37,211,102,.55); }
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 40px 0 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 500;
    background: var(--white);
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.pagination a:hover { color: var(--teal); border-color: var(--teal); }

.pagination .current {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}

/* ============================================
   NO RESULTS
   ============================================ */
.no-results {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}
.no-results h3 { margin-bottom: 8px; }
.no-results p { color: var(--text-muted); }

/* ============================================
   ARCHIVE / PAGE HEADERS
   ============================================ */
.page-header {
    padding: 140px 0 60px;
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(26,122,109,.04) 0%, transparent 60%);
}

.page-header .container { position: relative; z-index: 2; }

/* ============================================
   SINGLE CAR PAGE
   ============================================ */
.single-car-hero {
    padding: 120px 0 60px;
    background: var(--bg);
}

.single-car-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

.single-car-gallery {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--gray-100);
    aspect-ratio: 4/3;
}

.single-car-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-car-info { padding-top: 12px; }
.single-car-info .car-badge { margin-bottom: 16px; display: inline-block; }

.single-car-info h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 8px;
}

.single-car-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--teal);
    margin-bottom: 24px;
}

.single-car-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.single-spec {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.single-spec-label {
    font-size: .75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.single-spec-value {
    font-size: .95rem;
    color: var(--text-heading);
    font-weight: 600;
}

.single-car-desc {
    color: var(--text);
    margin-bottom: 32px;
    line-height: 1.8;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ── Tablet (max 1024px) ── */
@media (max-width: 1024px) {
    .container { padding: 0 20px; }

    .hero-content { max-width: 560px; }

    .hero-stats { gap: 28px; }
    .stat strong { font-size: 1.6rem; }

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

    .sell-layout { gap: 40px; }

    .single-car-layout { gap: 32px; }

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

/* ── Mobile landscape / small tablet (max 768px) ── */
@media (max-width: 768px) {
    /* Nav */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 20px;
        transition: right .3s ease;
        box-shadow: -10px 0 40px rgba(0,0,0,.12);
        z-index: 1001;
        overflow-y: auto;
    }
    .nav-links.open { right: 0; }
    .nav-toggle { display: flex; z-index: 1002; }

    .nav-cta { margin-left: 0; margin-top: 8px; }
    .nav-cta .btn { width: 100%; justify-content: center; }

    /* Hero */
    .hero { min-height: auto; }
    .hero-content { padding: 110px 0 50px; max-width: 100%; }
    .hero h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
    .hero-desc { font-size: 1rem; }
    .hero-actions { margin-bottom: 40px; }

    /* Stats — horizontal row with equal spacing */
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr auto 1fr auto 1fr;
        align-items: center;
        gap: 0;
        background: var(--gray-50);
        border-radius: var(--radius);
        padding: 20px 16px;
        border: 1px solid var(--border);
    }
    .stat {
        text-align: center;
    }
    .stat strong { font-size: 1.4rem; }
    .stat span { font-size: .75rem; }
    .stat-divider {
        width: 1px;
        height: 32px;
        background: var(--gray-300);
        justify-self: center;
    }

    /* Search */
    .search-section { margin-top: -24px; }
    .search-bar {
        flex-direction: column;
        padding: 20px;
    }
    .search-field { min-width: 100%; }
    .search-btn { width: 100%; justify-content: center; }

    /* Cars grid */
    .car-grid { grid-template-columns: 1fr; gap: 20px; }
    .car-card-img { height: 200px; }

    /* Filter */
    .filter-bar { gap: 8px; }
    .filter-btn { padding: 8px 18px; font-size: .82rem; }
    .filter-section { padding: 60px 0 24px; }

    /* Single car */
    .single-car-layout { grid-template-columns: 1fr; gap: 28px; }
    .single-car-specs { grid-template-columns: 1fr 1fr; }
    .single-car-hero { padding: 100px 0 40px; }

    /* Sell section */
    .sell-layout { grid-template-columns: 1fr; gap: 32px; }
    .sell-graphic { order: -1; }
    .sell-section { padding: 60px 0; }
    .sell-card-visual { padding: 32px 20px; }

    /* Features */
    .features-grid { grid-template-columns: 1fr; gap: 16px; }
    .feature-card { padding: 28px 22px; }
    .why-us { padding: 60px 0; }

    /* CTA */
    .cta-card { padding: 36px 24px; }
    .cta-content h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
    .contact-section { padding: 60px 0 80px; }

    /* Form */
    .form-row { grid-template-columns: 1fr; }
    .sell-form-card { padding: 28px 20px; }
    .sell-page-hero { padding: 110px 0 40px; }
    .sell-form-section { padding: 40px 0 60px; }

    /* Footer */
    .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }

    /* Page headers */
    .page-header { padding: 110px 0 40px; }
    .section-header { margin-bottom: 32px; }

    /* Pagination */
    .pagination { gap: 6px; }
    .pagination a, .pagination span { min-width: 36px; height: 36px; font-size: .82rem; padding: 0 10px; }
}

/* ── Small mobile (max 480px) ── */
@media (max-width: 480px) {
    .container { padding: 0 16px; }

    /* Hero */
    .hero-content { padding: 100px 0 40px; }
    .hero h1 { font-size: 1.75rem; }
    .hero-desc { font-size: .92rem; margin-bottom: 28px; }
    .hero-tag { font-size: .75rem; padding: 5px 12px; }
    .hero-actions { flex-direction: column; margin-bottom: 32px; }
    .hero-actions .btn { width: 100%; justify-content: center; }

    /* Stats — still grid, but tighter */
    .hero-stats { padding: 16px 12px; }
    .stat strong { font-size: 1.2rem; }
    .stat span { font-size: .7rem; }
    .stat-divider { height: 24px; }

    /* Cards */
    .car-card-body { padding: 16px; }
    .car-card-title { font-size: 1.05rem; }
    .car-card-price { font-size: 1.2rem; }
    .car-card-specs { gap: 10px; }
    .car-card-actions { flex-direction: column; gap: 8px; }
    .car-card-actions .btn { width: 100%; }

    /* Single car */
    .single-car-specs { grid-template-columns: 1fr; }
    .single-car-info h1 { font-size: 1.5rem; }
    .single-car-price { font-size: 1.5rem; }

    /* Sell steps */
    .sell-step { gap: 12px; }
    .sell-step-num { width: 34px; height: 34px; min-width: 34px; font-size: .85rem; border-radius: 10px; }

    /* CTA buttons stacked */
    .cta-content div[style] { flex-direction: column !important; }
    .cta-content div[style] .btn { width: 100%; justify-content: center; }

    /* Footer */
    .footer-top { grid-template-columns: 1fr; gap: 24px; }
    .footer-brand { text-align: center; }
    .footer-col { text-align: center; }
    .footer-col ul { align-items: center; }
    .footer-contact li { justify-content: center; }

    /* Nav mobile */
    .logo-link img { height: 38px; }

    /* WhatsApp float smaller */
    .whatsapp-float { width: 52px; height: 52px; bottom: 20px; right: 16px; }
    .whatsapp-float svg { width: 24px; height: 24px; }

    /* Section spacing tighter */
    .section-header { margin-bottom: 24px; }
    .section-tag { font-size: .75rem; letter-spacing: .1em; }
    h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
}
