/* ===== From style.css (merged here so public pages download one stylesheet; admin + inquiries still use style.css itself, so change both if you edit this part) ===== */
/* ==========================================================================
   0. THEME VARIABLES (Locked to Dark Mode)
   ========================================================================== */
   :root {
    --bg-main: #121212;
    --bg-header: #0a0a0a;
    --bg-box: #1a1a1a;
    --bg-input: #121212;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --border-color: #333333;
    --input-border: #444444;
    --nav-link: #ffffff;
}

/* ==========================================================================
   1. RESET & UNIVERSAL BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    transition: color 0.2s ease, border-color 0.2s ease;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ==========================================================================
   2. AUTOMATIC UTILITY LAYOUTS
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ==========================================================================
   3. HEADER & NAVIGATION (Desktop Default Baseline)
   ========================================================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: var(--bg-header);
    border-bottom: 2px solid var(--accent);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: var(--nav-link);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent);
}

/* ==========================================================================
   4. HARLOW JAP AUTOS STYLE HERO LAYOUT 
   ========================================================================== */
#welcome-hero {
    position: relative;
    min-height: 100vh !important; /* Forces layout to bleed to viewport bottom */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 !important; 
    padding: 0 5%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1.5s ease-in-out; /* Smooth image crossfade asset swap */
}

/* Elegant shadow shading mask overlay layer */
#welcome-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5); 
    z-index: 1;
}

.hero-text-wrapper {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

/* ==========================================================================
   5. CONTACT & SHOWROOM ELEMENTS
   ========================================================================== */
.content-box {
    background-color: var(--bg-box);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-input);
    border: 1px solid var(--input-border);
    color: var(--text-main);
    border-radius: 4px;
}

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

.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--accent-fill);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

/* ==========================================================================
   6. GLOBAL MOBILE RESPONSIVE OVERRIDES
   ========================================================================== */
@media screen and (max-width: 768px) {
    #menu-toggle {
        display: block !important;
    }

    /* Fixed top overlay design layout configuration */
    .nav-group {
        display: none;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        
        background-color: #0a0a0a !important; /* Hardcodes matching dark hex frame background values */
        padding-top: 130px; 
        box-sizing: border-box;
        z-index: 999;
    }

    .nav-group.active {
        display: flex !important;
    }

    .nav-group nav {
        flex-direction: column;
        align-items: center;
        gap: 30px !important;
    }

    nav a {
        font-size: 24px;
        font-weight: 700;
    }

    .header-socials {
        border-left: none !important;
        padding-left: 0 !important;
        margin-top: 40px;
    }

    .hero-text-wrapper h1 {
        font-size: 34px !important; 
    }
    
    .hero-text-wrapper p {
        font-size: 16px !important;
    }

    .content-box {
        padding: 20px; 
    }
}

/* ===== site.css ===== */
/* ==========================================================================
   BHP Club — shared styles for the public pages
   (index, showroom, contact, terms). Loaded after style.css.
   ========================================================================== */
/* Work Sans is loaded by a <link> in each page's <head> (faster than @import here). */

:root {
    /* Website colour. These are the defaults; a colour chosen in the admin page ("Website Colour")
       replaces all four (see the <head> of each page and site.js). */
    --accent: #2f7bff;
    --accent-fill: #1f63e0;   /* behind white text (the brighter --accent is too light for small white text) */
    --accent-dark: #174fb8;   /* hover / pressed */
    --ink: #0d0d0d;

    /* Colours that change with light / dark mode (dark values here, light ones below).
       The header, footer, page banners, homepage slider and photo overlays stay dark in both. */
    --bg: #0d0d0d;            /* page background */
    --surface-1: #141414;     /* alternating section bands */
    --surface-2: #1a1a1a;
    --surface-3: #1c1c1c;
    --surface-4: #121212;
    --panel: #161616;         /* cards and panels */
    --panel-2: #1d1d1d;
    --well: #111111;          /* boxes inside panels */
    --field: #0b0b0b;         /* form fields */
    --field-focus: #111111;
    --text: #ffffff;
    --text-2: #cfcfcf;        /* body copy */
    --text-3: #b5b5b5;
    --muted: #a0a0a0;
    --faint: #777777;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.16);
    --line-3: rgba(255, 255, 255, 0.35);
    --chip: rgba(255, 255, 255, 0.07);
    --placeholder: #4a4a4a;
    --watermark: rgba(255, 255, 255, 0.04);
    --arrow-bg: rgba(13, 13, 13, 0.85);
    --accent-text: #2f7bff;   /* blue used as text */
    --ok-text: #5fd38a;
    --bad-text: #ff8080;
    --error-text: #ffb3b3;
    --warn-text: #f2c14e;
}

:root[data-theme="light"] {
    --bg: #f3f3f1;
    --surface-1: #ffffff;
    --surface-2: #ebebe8;
    --surface-3: #ffffff;
    --surface-4: #ebebe8;
    --panel: #ffffff;
    --panel-2: #fafaf8;
    --well: #f5f5f3;
    --field: #ffffff;
    --field-focus: #ffffff;
    --text: #151515;
    --text-2: #3b3b3b;
    --text-3: #474747;
    --muted: #5f5f5f;
    --faint: #767676;
    --line: rgba(0, 0, 0, 0.1);
    --line-2: rgba(0, 0, 0, 0.18);
    --line-3: rgba(0, 0, 0, 0.35);
    --chip: rgba(0, 0, 0, 0.06);
    --placeholder: #9a9a9a;
    --watermark: rgba(0, 0, 0, 0.045);
    --arrow-bg: rgba(255, 255, 255, 0.95);
    --accent-text: #1d5ed8;   /* deeper blue, readable on white */
    --ok-text: #1b7a3c;
    --bad-text: #b42318;
    --error-text: #b42318;
    --warn-text: #8a5a00;
    color-scheme: light;
}
:root:not([data-theme="light"]) { color-scheme: dark; }

/* Light mode: cards and panels get a soft shadow instead of relying on dark contrast */
[data-theme="light"] .vehicle-card,
[data-theme="light"] .review-card,
[data-theme="light"] .wanted-box { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.05); }

/* No "bounce" past the top/bottom of the page (iPhones, Mac trackpads). With the homepage header
   floating over the slider, the bounce opened a dark strip between the header and the photo.
   On older phones that still bounce, the strip is the header's colour, so it doesn't show as a bar. */
html {
    overscroll-behavior-y: none;
    background-color: #0a0a0a;
}
body {
    overscroll-behavior-y: none;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
}

/* style.css forces Arial on every element; Font Awesome's own classes still win */
body, body * {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- header ---------- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    background-color: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.25s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.site-header .logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
    mix-blend-mode: screen;
    transition: height 0.25s ease;
}

.site-header .nav-group { display: flex; align-items: center; gap: 36px; flex-wrap: nowrap; }

.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.main-nav a:hover, .main-nav a.current { color: var(--accent); }

.header-cta {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--accent);
}
.header-cta:hover, .header-cta.current { color: var(--accent); }

.header-socials a { color: #ffffff; font-size: 18px; opacity: 0.8; text-decoration: none; }
.header-socials a:hover { opacity: 1; color: var(--accent); }

#menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    padding: 12px 6px;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}

/* Three staggered lines that fold into an X when the menu is open */
.burger {
    position: relative;
    display: block;
    width: 30px;
    height: 20px;
}
.burger span {
    position: absolute;
    right: 0;
    height: 3px;
    border-radius: 2px;
    background: var(--accent);
    transition: transform 0.3s ease, width 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}
.burger span:nth-child(1) { top: 0;    width: 100%; }
.burger span:nth-child(2) { top: 8.5px; width: 70%; }
.burger span:nth-child(3) { top: 17px; width: 45%; }

@media (hover: hover) {
    #menu-toggle:hover .burger span { width: 100%; }
}

#menu-toggle.open .burger span:nth-child(1) { top: 8.5px; width: 100%; transform: rotate(45deg); }
#menu-toggle.open .burger span:nth-child(2) { opacity: 0; width: 0; }
#menu-toggle.open .burger span:nth-child(3) { top: 8.5px; width: 100%; transform: rotate(-45deg); }

/* ---------- page banner (inner pages) ---------- */
.page-banner {
    color: #ffffff;   /* stays dark in light mode too */
    position: relative;
    overflow: hidden;
    padding: 90px 6% 70px;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 100%),
        #141414 center / cover no-repeat;
    border-bottom: 1px solid var(--line);
}
.page-banner::after {
    content: '';
    position: absolute;
    right: -60px;
    top: 0;
    bottom: 0;
    /* Grows with the screen, so desktop gets the same bold angled panel as phones */
    width: max(260px, 42%);
    background: var(--accent);
    opacity: 0.08;
    transform: skewX(-18deg);
}
.page-banner > * { position: relative; z-index: 1; }
.page-banner .eyebrow {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.page-banner h1 {
    font-size: 54px;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: 0;
    margin-bottom: 16px;
}
.page-banner p {
    color: #cfcfcf;
    font-size: 17px;
    font-weight: 400;
    max-width: 580px;
    line-height: 1.6;
}

/* ---------- buttons ---------- */
.btn-angled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--accent-fill);
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
    transition: background 0.25s ease, transform 0.25s ease;
}
.btn-angled:active { background: var(--accent-dark); }
@media (hover: hover) {
    .btn-angled:hover { background: var(--accent-dark); transform: translateX(4px); }
}
.btn-angled i { font-size: 18px; }

.btn-solid, .btn-outline {
    display: block;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-solid { background: var(--accent-fill); color: #ffffff; border: 1px solid var(--accent-fill); }
.btn-solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--line-3); }
.btn-outline:hover { border-color: var(--text); background: var(--text); color: var(--bg); }

/* ---------- sections ---------- */
.section { padding: 90px 5%; }
.section-title {
    text-align: center;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-sub {
    text-align: center;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 50px;
    font-size: 15px;
    line-height: 1.6;
}

/* ---------- vehicle cards ---------- */
.vehicle-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
@media (hover: hover) {
    .vehicle-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
}

.vehicle-photo { position: relative; display: block; height: 200px; overflow: hidden; background: #222; }
.vehicle-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
@media (hover: hover) {
    .vehicle-card:hover .vehicle-photo img { transform: scale(1.04); }
}

.vehicle-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--accent-fill);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}
.vehicle-badge.sold { background: rgba(0,0,0,0.75); border: 1px solid rgba(255,255,255,0.3); clip-path: none; border-radius: 3px; }

/* Dealer logo stamped in the top-right corner of each listing photo */
.vehicle-logo {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 8px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    backdrop-filter: blur(4px);
    pointer-events: none;
}
.vehicle-logo img,
.vehicle-photo .vehicle-logo img {
    display: block;
    height: 30px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    mix-blend-mode: screen;
}

.vehicle-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; text-align: center; }
.vehicle-name {
    color: var(--text);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vehicle-meta { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.vehicle-price { font-size: 26px; font-weight: 700; margin-bottom: 12px; }
/* Read in this order: what it is, what it costs, then the details (works for every card without changing the page code) */
.vehicle-body > * { order: 3; }
.vehicle-body > .vehicle-name { order: 0; }
.vehicle-body > .vehicle-price { order: 1; }
.vehicle-body > .vehicle-specs, .vehicle-body > .vehicle-meta { order: 2; }
.vehicle-desc {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vehicle-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

/* ---------- floating WhatsApp button (phones only) ---------- */
.whatsapp-fab {
    display: none;
    position: fixed;
    right: calc(16px + env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    font-size: 30px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    z-index: 900;
}
.whatsapp-fab:active { transform: scale(0.94); }

/* ---------- footer ---------- */
.site-footer { background: #080808; border-top: 3px solid var(--accent); padding: 60px 5% 30px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}
.footer-grid h4 {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}
.footer-grid p, .footer-grid a { color: #9a9a9a; font-size: 14px; line-height: 2; text-decoration: none; display: block; }
.footer-grid a:hover { color: #ffffff; }
.footer-logo { height: 54px; width: auto; mix-blend-mode: screen; margin-bottom: 12px; }
.business-details { margin-top: 14px; }
.business-details span { display: block; color: #9a9a9a; font-size: 13px; line-height: 1.7; }
.business-details strong { color: #cfcfcf; font-weight: 600; }
.business-details a { display: inline; line-height: 1.7; padding: 0; }
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: #777;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

/* ---------- responsive ---------- */
@media screen and (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

@media screen and (max-width: 768px) {
    /* Compact header so more of the screen shows cars */
    .site-header { padding: 8px 16px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
    .site-header .logo img { height: 46px; }

    /* Comfortable tap targets in the footer */
    .footer-grid a { line-height: 1.4; padding: 12px 0; }
    .site-footer { padding-bottom: calc(90px + env(safe-area-inset-bottom)); } /* room for the WhatsApp button */

    .whatsapp-fab { display: flex; }

    .page-banner { padding: 60px 16px 48px; }
    .page-banner h1 { font-size: 34px; letter-spacing: 2px; }
    .page-banner p { font-size: 15px; }

    .section { padding: 64px 16px; }
    .section-title { font-size: 24px; }
}

/* ---------- icons (icons.js puts an SVG inside each <i class="fa-...">) ---------- */
i[class*="fa-"] { display: inline-block; font-style: normal; line-height: 1; }
.ico { height: 1em; vertical-align: -0.125em; overflow: visible; }
.fa-spin .ico { animation: fa-spin 1s linear infinite; }
@keyframes fa-spin { to { transform: rotate(360deg); } }

/* Visible keyboard focus everywhere (mouse and touch users don't see it) */
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.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;
}

.vehicle-badge.reserved { background: #e0a100; color: #111; }

/* ---------- cookie banner ---------- */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    max-width: 560px;
    margin: 0 auto;
    background: var(--panel-2);
    border: 1px solid var(--line-2);
    border-radius: 8px;
    padding: 18px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 18px;
}
.cookie-banner p { color: var(--text-2); font-size: 14px; line-height: 1.5; margin: 0; }
.cookie-banner a { color: var(--accent); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions button { padding: 10px 16px; min-height: 44px; font-family: inherit; }
@media screen and (max-width: 600px) {
    .cookie-banner { flex-direction: column; align-items: stretch; }
    .cookie-actions button { flex: 1; }
}

/* ---------- reviews ---------- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
    max-width: 1200px;
    margin: 0 auto;
}
.review-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: 6px;
    padding: 28px;
    margin: 0;
}
.review-stars { color: #f5b301; font-size: 15px; letter-spacing: 3px; margin-bottom: 14px; }
.review-card blockquote { color: var(--text-2); font-size: 15px; line-height: 1.75; margin: 0 0 18px; }
.review-card figcaption strong { display: block; font-weight: 600; }
.review-card figcaption span { color: var(--muted); font-size: 13px; }
.reviews-more { text-align: center; margin-top: 34px; }

/* ---------- questions & answers ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    font-size: 16px;
    font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { color: var(--accent); font-size: 13px; transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item[open] summary i { transform: rotate(180deg); }
.faq-item p { color: var(--text-3); font-size: 15px; line-height: 1.75; padding: 0 0 20px; }

/* ---------- badges: status + "Price Reduced" / "Just Added" ---------- */
.badge-stack { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 1; }
.badge-stack .vehicle-badge { position: static; }
.vehicle-badge.extra { font-size: 13px; padding: 4px 10px; }
.vehicle-badge.reduced { background: #ffffff; color: var(--accent-fill); }
.vehicle-badge.fresh { background: #111; color: #fff; border: 1px solid rgba(255,255,255,0.35); clip-path: none; border-radius: 3px; }
.was-price { display: block; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: line-through; margin-bottom: 2px; }

/* Photo area as a wrapper, so buttons can sit on the photo without being inside its link */
.photo-link { display: block; height: 100%; }

/* ---------- shortlist heart ---------- */
.heart-btn {
    position: absolute;
    left: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(0,0,0,0.6);
    color: rgba(255,255,255,0.85);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, color 0.2s ease;
}
@media (hover: hover) { .heart-btn:hover { color: #ffffff; border-color: #ffffff; } }
.heart-btn.saved { background: var(--accent-fill); border-color: var(--accent-fill); color: #ffffff; }
.heart-btn.pop { animation: heart-pop 0.35s ease; }
@keyframes heart-pop { 50% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .heart-btn.pop { animation: none; } }

.nav-shortlist i { color: var(--accent); font-size: 13px; }
.shortlist-count {
    display: inline-block;
    min-width: 20px;
    padding: 1px 6px;
    margin-left: 4px;
    border-radius: 10px;
    background: var(--accent-fill);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}
.shortlist-count[hidden] { display: none; }

/* ---------- power chip on cards ---------- */
.bhp-chip { color: var(--text); font-weight: 600; }
.bhp-chip i { color: var(--accent); }

/* ---------- "tell me when one comes in" ---------- */
.wanted-box {
    max-width: 640px;
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: 6px;
    padding: 28px;
    text-align: left;
    color: var(--text);
}
.wanted-box h3 { font-size: 19px; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.wanted-box h3 i { color: var(--accent); }
.wanted-box > p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 18px; }
.wanted-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wanted-fields .full { grid-column: 1 / -1; }
.wanted-fields label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.wanted-fields input {
    width: 100%;
    background: var(--field);
    border: 1px solid var(--line-2);
    border-radius: 3px;
    padding: 12px 14px;
    color: var(--text);
    font-size: 16px;
    font-family: inherit;
}
.wanted-fields input:focus { border-color: var(--accent); outline: none; }
.wanted-fields .invalid input, .wanted-fields input.invalid { border-color: #ff6b6b; }
.wanted-box .btn-angled { margin-top: 16px; }
.wanted-box .btn-angled:disabled { opacity: 0.6; cursor: wait; }
.wanted-msg { margin-top: 14px; font-size: 14px; line-height: 1.6; }
.wanted-msg.error { color: var(--error-text); }
.wanted-done { text-align: center; }
.wanted-done i { font-size: 40px; color: #3ccf6e; margin-bottom: 12px; }
@media screen and (max-width: 600px) {
    .wanted-fields { grid-template-columns: 1fr; }
    .wanted-box { padding: 22px 18px; }
}

/* ---------- recently viewed (homepage) ---------- */
.recent-band { background: var(--surface-4); padding-top: 60px; padding-bottom: 60px; }

/* ---------- spec chips on car cards (year, mileage, gearbox...) — wrap cleanly, no dangling bullets ---------- */
.vehicle-specs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 16px;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 18px;
}
.vehicle-specs span { white-space: nowrap; }
.vehicle-specs i { color: var(--accent); margin-right: 5px; }

/* ---------- light / dark switch (in the header, which stays dark) ---------- */
.theme-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    margin-left: 22px;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}
@media (hover: hover) { .theme-toggle:hover { border-color: var(--accent); color: var(--accent); } }
.site-header .nav-group { margin-left: auto; }
@media screen and (max-width: 768px) {
    .theme-toggle { margin-left: auto; margin-right: 10px; }
}

/* ==========================================================================
   Header upgrades: skip link, stock count, slimmer when scrolled,
   see-through over the homepage slider, full-screen phone menu
   ========================================================================== */
.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 2000;
    background: var(--accent-fill);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { top: 12px; }

.main-nav a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.main-nav .nav-ico { display: none; }       /* icons only in the phone menu */
.stock-count {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 2px 7px;
    margin-left: 2px;
}
.stock-count[hidden] { display: none; }
.main-nav a.current .stock-count { background: var(--accent-fill); }

/* Slimmer once you scroll down */
.site-header.scrolled { padding-top: 6px; padding-bottom: 6px; }
.site-header.scrolled .logo img { height: 42px; }

/* Homepage: see-through over the photo slider, solid once you scroll */
body.hero-page .site-header { position: fixed; left: 0; right: 0; }
body.hero-page .site-header:not(.scrolled):not(.menu-is-open) {
    background-color: transparent;
    background-image: none;
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
/* With nothing behind them, a soft shadow keeps the links and icons readable over bright photos */
body.hero-page .site-header:not(.scrolled):not(.menu-is-open) :is(.main-nav a, .header-cta, .header-socials a) {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}
body.hero-page .site-header:not(.scrolled):not(.menu-is-open) :is(.theme-toggle, .burger) {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

/* Room for more links on smaller laptops / tablets */
@media screen and (max-width: 1180px) {
    .site-header .nav-group { gap: 22px; }
    .main-nav { gap: 18px; }
    .main-nav a, .header-cta { font-size: 14px; }
}

.menu-quick { display: none; }

/* ---------- full-screen phone & tablet menu ---------- */
@media screen and (max-width: 900px) {
    /* A blur effect on the header would trap the full-screen menu inside the header's own box,
       so phones and tablets get a solid header instead */
    .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background-color: rgba(10, 10, 10, 0.97); }
    .site-header.scrolled { padding-top: 4px; padding-bottom: 4px; }
    .site-header.scrolled .logo img { height: 36px; }
    #menu-toggle { display: block !important; }
    .theme-toggle { margin-left: auto; margin-right: 10px; }

    .site-header #nav-group {
        display: none !important;
        position: fixed;
        top: var(--header-h, 63px);
        left: 0;
        right: 0;
        bottom: 0;
        height: auto;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        margin: 0;
        padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
        background-color: #0a0a0a !important;
        overflow-y: auto;
        z-index: 999;
    }
    .site-header #nav-group.active { display: flex !important; animation: menu-in 0.2s ease; }
    @keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

    .site-header .main-nav { flex-direction: column; align-items: stretch; gap: 0 !important; }
    .site-header .main-nav a {
        font-size: 20px;
        font-weight: 600;
        color: #ffffff;
        padding: 18px 4px;
        gap: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .site-header .main-nav a.current { color: var(--accent); }
    .main-nav .nav-ico, .main-nav .nav-shortlist i { display: inline-block; width: 24px; text-align: center; color: var(--accent); font-size: 18px; }
    .site-header .main-nav a .stock-count, .site-header .main-nav a .shortlist-count { margin-left: auto; font-size: 12px; }

    .site-header .header-cta {
        display: block;
        text-align: center;
        margin-top: 22px;
        padding: 16px;
        border: none;
        background: var(--accent-fill);
        color: #ffffff;
        font-weight: 700;
        font-size: 15px;
        clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
    }
    .site-header .header-cta.current { color: #ffffff; }
    .site-header .header-socials { display: none; }

    .menu-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin-top: auto; padding-top: 28px; }
    .menu-quick a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 14px 8px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 6px;
        color: #ffffff;
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
    }
    .menu-quick a i { font-size: 22px; }
    .menu-quick .wa i { color: #25D366; }
    .menu-quick .ig i, .menu-quick .call i { color: var(--accent); }

    body.menu-open { overflow: hidden; }
    body.menu-open .whatsapp-fab { display: none; }
}

/* The ✕: all three lines full width, crossing exactly in the middle */
#menu-toggle.open .burger span { left: 0; right: 0; width: 100% !important; transform-origin: 50% 50%; }

/* ===== VARIANT: slide-in side drawer (phones & tablets) ===== */
@media screen and (max-width: 900px) {
    .site-header #nav-group {
        display: flex !important;
        left: auto;
        right: 0;
        width: min(84vw, 360px);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: -20px 0 40px rgba(0, 0, 0, 0.5);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.28s ease, visibility 0s linear 0.28s;
    }
    .site-header #nav-group.active {
        transform: none;
        visibility: visible;
        animation: none;
        transition: transform 0.28s ease;
    }
    /* the page behind is dimmed; tapping it closes the drawer */
    body.menu-open::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 998;
        animation: dim-in 0.28s ease;
    }
    @keyframes dim-in { from { opacity: 0; } }
    .site-header .main-nav a { font-size: 18px; padding: 16px 4px; }
}
@media (prefers-reduced-motion: reduce) {
    .site-header #nav-group, .site-header #nav-group.active { transition: none; }
}
