/* =============================================================
   Monoga Dealer Theme — main.css  v1.2.0
   Breakpoints: 1100 | 900 | 680 | 480
   ============================================================= */

/* ── 1. Custom properties ──────────────────────────────────── */
:root {
    --ink:      #13253b;
    --ink-soft: #27415f;
    --accent:   #d82f2f;
    --accent-2: #0e8f70;
    --gold:     #f3b23c;
    --line:     #d9e0e8;
    --muted:    #64748b;
    --paper:    #ffffff;
    --wash:     #f5f7fa;
    --shadow:   0 16px 45px rgba(19,37,59,.12);
    --nav-h:    68px;    /* used by sticky offset calculations */
}

/* ── 2. Reset & base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.container { width: calc(100% - 32px); max-width: 1180px; margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: #fff; padding: 8px 14px; border-radius: 4px; font-weight: 700; }
.skip-link:focus { left: 8px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── 3. Utility bar ────────────────────────────────────────── */
.utility-bar { background: #0f1d2d; color: #dbe7f3; font-size: 13px; }
.utility-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    flex-wrap: wrap;
    padding: 6px 0;
}
.utility-contact { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.utility-contact a, .utility-contact span { color: #dbe7f3; }
.utility-contact a:hover { color: #fff; }
.utility-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.utility-actions a { font-weight: 700; color: #dbe7f3; white-space: nowrap; }
.register-link { color: #fff !important; background: var(--accent); padding: 6px 12px; border-radius: 4px; }

/* ── 4. Primary navigation ─────────────────────────────────── */
.main-nav-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 12px rgba(15,29,45,.07);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    min-height: var(--nav-h);
}

/* Brand / logo */
.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
    text-decoration: none;
}
/* Single rule that targets EVERY logo variant WordPress might output */
.brand img,
.brand .custom-logo,
.brand .site-logo-img,
.custom-logo-link img,
img.custom-logo {
    display: block;
    max-height: 88px;
    max-width: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.custom-logo-link { display: inline-flex; align-items: center; line-height: 0; }

/* Nav links */
.primary-nav .menu {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 0;
    flex-wrap: nowrap;
}
.primary-nav li { position: relative; }
.primary-nav > .menu > li > a {
    display: block;
    padding: 22px 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    transition: color .15s;
}
.primary-nav > .menu > li > a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-page-ancestor > a { color: var(--accent); }

/* Dropdowns */
.primary-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    padding: 6px;
    margin: 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s, transform .18s;
    z-index: 110;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .sub-menu a { display: block; padding: 9px 12px; border-radius: 4px; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.primary-nav .sub-menu a:hover { background: var(--wash); color: var(--accent); }

/* Hamburger */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    flex-shrink: 0;
}
.nav-toggle span:not(.screen-reader-text) { display: block; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ── 5. Hero Carousel ──────────────────────────────────────── */

/* Wrapper */
.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    background: #0f1d2d;
    color: #fff;
    user-select: none;
}

/* Individual slide */
.hc-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    min-height: 620px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease, visibility .7s ease;
    z-index: 1;
}
.hc-slide.is-active {
    position: relative;   /* take up space — only active slide shown */
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Dark gradient overlay */
.hc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(8,16,28,.90) 0%,
        rgba(8,16,28,.65) 55%,
        rgba(8,16,28,.22) 100%
    );
    z-index: 0;
}

/* Two-column grid inside each slide */
.hc-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: center;
    gap: 36px;
    padding: 72px 0 88px;
    min-height: 620px;
}

/* Left copy column */
.hc-copy { max-width: 640px; }
.hc-copy .eyebrow { color: var(--gold); margin-bottom: 12px; }

.hc-heading {
    margin: 0;
    font-size: clamp(38px, 5.5vw, 68px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -.01em;
}
.hc-heading span { display: block; }

.hc-sub {
    max-width: 560px;
    color: #dbe7f3;
    font-size: 17px;
    line-height: 1.65;
    margin: 16px 0 0;
}

/* Right panel — service highlights */
.hero-panel, .hc-panel {
    align-self: end;
    margin-bottom: 44px;
    background: rgba(255,255,255,.95);
    color: var(--ink);
    border-radius: 10px;
    padding: 22px 20px;
    box-shadow: 0 16px 48px rgba(0,0,0,.28);
}
.hero-panel strong, .hc-panel strong { display: block; font-size: 17px; margin-bottom: 10px; color: var(--ink); }
.hero-panel span, .hc-panel span { display: block; padding: 9px 0; border-top: 1px solid var(--line); font-weight: 700; font-size: 13px; color: var(--ink-soft); }

/* Right panel — badge variant (slides 2 & 3) */
.hc-badge { align-self: center; }
.hc-badge-inner {
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 10px;
    padding: 22px 20px;
    color: #fff;
}
.hc-badge-icon { display: block; font-size: 36px; margin-bottom: 10px; }
.hc-badge-inner strong { display: block; font-size: 17px; margin-bottom: 10px; color: #fff; }
.hc-badge-inner span { display: block; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.18); font-size: 13px; font-weight: 600; color: rgba(255,255,255,.88); }

/* Prev / Next buttons */
.hc-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.35);
    background: rgba(0,0,0,.35);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .18s, border-color .18s, transform .18s;
    backdrop-filter: blur(4px);
}
.hc-btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-50%) scale(1.08); }
.hc-prev { left: 16px; }
.hc-next { right: 16px; }

/* Dot indicators */
.hc-dots {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}
.hc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.6);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s, border-color .2s;
}
.hc-dot.is-active,
.hc-dot:hover { background: #fff; border-color: #fff; transform: scale(1.3); }

/* Progress bar */
.hc-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,.15);
    z-index: 10;
}
.hc-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width linear;
}

/* Legacy .hero rules kept for any other pages that still use <section class="hero"> */
.hero {
    min-height: 600px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(10,20,33,.92) 0%, rgba(10,20,33,.64) 60%, rgba(10,20,33,.2) 100%),
        url("/wp-content/uploads/monoga-cars/car-1.jpg") center / cover no-repeat;
}
.hero-grid {
    min-height: 600px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 40px;
    padding: 60px 0;
}
.eyebrow {
    display: inline-block;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 10px;
}
.hero h1 {
    max-width: 700px;
    margin: 0;
    font-size: clamp(36px, 6vw, 70px);
    line-height: 1.02;
}
.hero h1 span { display: block; }
.hero p { max-width: 600px; color: #dbe7f3; font-size: 18px; margin-top: 16px; }
.hero-actions, .detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* Buttons */
.button, button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s, box-shadow .15s;
    text-decoration: none;
}
.button:hover { opacity: .88; }
.button.primary { color: #fff; background: var(--accent); }
.button.ghost   { color: var(--ink); background: #fff; border-color: var(--line); }
.button.ghost.dark { color: #fff; background: transparent; border-color: rgba(255,255,255,.45); }

/* Hero info panel */
.hero-panel {
    align-self: end;
    margin-bottom: 48px;
    background: rgba(255,255,255,.95);
    color: var(--ink);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
}
.hero-panel strong, .hero-panel span { display: block; }
.hero-panel strong { font-size: 18px; margin-bottom: 12px; }
.hero-panel span { padding: 10px 0; border-top: 1px solid var(--line); font-weight: 700; font-size: 14px; }

/* ── 6. Ticker bar ─────────────────────────────────────────── */
.ticker-bar { background: var(--accent); color: #fff; overflow: hidden; white-space: nowrap; padding: 10px 0; font-size: 13px; font-weight: 700; }
.ticker-track { display: inline-flex; animation: ticker-scroll 40s linear infinite; }
.ticker-track span { padding: 0 36px; }
.ticker-track span::after { content: '◆'; margin-left: 36px; opacity: .5; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ── 7. Vehicle search ─────────────────────────────────────── */
.search-band { margin-top: -52px; position: relative; z-index: 2; }
.inventory-search { margin-top: 0; background: var(--wash); padding: 24px 0 0; }
.vehicle-search { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; box-shadow: var(--shadow); }
.vehicle-search form {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: end;
}
.form-field label { display: block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; }
input, select, textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
    color: var(--ink);
    background: #fff;
    transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 110px; resize: vertical; }

/* ── 8. Feature strip ──────────────────────────────────────── */
.feature-strip { padding: 72px 0 28px; background: var(--wash); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-grid article { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.feature-grid article > span { display: block; color: var(--accent); font-weight: 800; font-size: 22px; margin-bottom: 10px; }
.feature-grid h2 { margin: 0 0 8px; font-size: 19px; }
.feature-grid p  { margin: 0; color: var(--muted); font-size: 15px; }

/* ── 9. General sections ───────────────────────────────────── */
.section { padding: 68px 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-heading h2, .promo-grid h2, .contact-grid h2 { margin: 0; font-size: clamp(26px, 4vw, 42px); line-height: 1.1; }
.section-heading > a { color: var(--accent); font-weight: 800; white-space: nowrap; flex-shrink: 0; }

/* ── 10. Vehicle cards ─────────────────────────────────────── */
.vehicle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vehicle-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 8px 24px rgba(19,37,59,.07); transition: box-shadow .2s; }
.vehicle-card:hover { box-shadow: 0 16px 40px rgba(19,37,59,.13); }
.vehicle-card-media { aspect-ratio: 16/10; background: var(--wash); overflow: hidden; }
.vehicle-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.vehicle-card:hover img { transform: scale(1.04); }
.vehicle-card-body { padding: 16px; }
.vehicle-card h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.3; }
.vehicle-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; color: var(--muted); font-size: 12px; }
.vehicle-meta span { background: var(--wash); border-radius: 4px; padding: 4px 7px; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.price { color: var(--accent); font-size: 20px; font-weight: 800; }
.status-pill { color: #fff; background: var(--accent-2); border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 800; white-space: nowrap; }

/* ── 11. Promo band ────────────────────────────────────────── */
.promo-band { color: #fff; background: linear-gradient(90deg, #13253b 0%, #203d5c 58%, #0e8f70 100%); padding: 52px 0; }
.promo-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; }
.promo-grid .eyebrow { color: var(--gold); }

/* ── 12. Reviews ───────────────────────────────────────────── */
.reviews-section { background: var(--wash); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
blockquote { margin: 0; background: #fff; border-left: 4px solid var(--accent); border-radius: 6px; padding: 22px; box-shadow: 0 8px 24px rgba(19,37,59,.07); }
blockquote p { margin: 0 0 12px; color: var(--ink-soft); font-size: 15px; }
cite { color: var(--muted); font-weight: 800; font-style: normal; font-size: 13px; }

/* ── 13. Contact band ──────────────────────────────────────── */
.contact-band { padding: 60px 0; background: #111827; color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .6fr); gap: 36px; align-items: start; }
.contact-grid p { color: #dbe7f3; margin: 0 0 10px; }
.monoga-form { display: grid; gap: 12px; background: #fff; color: var(--ink); border-radius: 8px; padding: 20px; }
.monoga-form.compact textarea { min-height: 88px; }
.form-response { padding: 12px 14px; border-radius: 4px; margin-bottom: 12px; background: #e8fff4; border: 1px solid #b8ead4; color: #0f604d; font-weight: 600; }

/* ── 14. Page heroes ───────────────────────────────────────── */
.page-hero { background: #13253b; color: #fff; padding: 72px 0 60px; }
.page-hero.compact { padding: 52px 0 44px; }
.page-hero h1 { max-width: 760px; margin: 0; font-size: clamp(32px, 5.5vw, 56px); line-height: 1.08; }
.page-hero p { max-width: 700px; color: #dbe7f3; margin: 14px 0 0; font-size: 17px; }

/* ── 15. Vehicle detail ────────────────────────────────────── */
.vehicle-hero { background: var(--wash); padding: 48px 0; }
.vehicle-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .75fr); gap: 28px; align-items: start; }
.vehicle-summary, .side-panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(19,37,59,.07); }
.vehicle-summary { padding: 24px; }
.vehicle-summary h1 { margin: 0 0 10px; font-size: clamp(22px, 3.5vw, 38px); line-height: 1.1; }
.vehicle-price { margin: 0 0 20px; color: var(--accent); font-size: 28px; font-weight: 800; }
.spec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; }

/* ── Gallery wrap ──────────────────────────────────────────── */
.vehicle-gallery-wrap { display: flex; flex-direction: column; gap: 10px; }

/* Main display image */
.vg-main { position: relative; border-radius: 8px; overflow: hidden; background: #000; box-shadow: 0 8px 28px rgba(19,37,59,.13); }
.vg-main-link { display: block; position: relative; }
.vg-main-img {
    display: block;
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: opacity .14s ease;
    cursor: zoom-in;
}
.vg-zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
}
.vg-main-link:hover .vg-zoom-hint { opacity: 1; }

/* Thumbnail strip */
.vg-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.vg-thumb {
    width: calc(25% - 7px);
    min-width: 56px;
    aspect-ratio: 4/3;
    padding: 0;
    border: 2px solid var(--line);
    border-radius: 5px;
    overflow: hidden;
    background: var(--wash);
    cursor: pointer;
    transition: border-color .15s, transform .15s;
    flex-shrink: 0;
}
.vg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vg-thumb:hover   { border-color: var(--ink); transform: scale(1.04); }
.vg-thumb.is-active { border-color: var(--accent); border-width: 2px; }
.vg-count { margin: 2px 0 0; font-size: 12px; color: var(--muted); }

/* ── Lightbox ──────────────────────────────────────────────── */
.mg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5,10,20,.93);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    animation: lbFadeIn .18s ease;
}
.mg-lightbox[hidden] { display: none; }

@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }

.mg-lb-figure {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(1000px, 96vw);
    max-height: 80vh;
    margin: 0;
}
.mg-lb-img {
    display: block;
    max-width: 100%;
    max-height: 76vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    animation: lbImgIn .15s ease;
}
@keyframes lbImgIn { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.mg-lb-caption {
    margin: 10px 0 0;
    color: rgba(255,255,255,.75);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* Close button */
.mg-lb-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.3);
    background: rgba(0,0,0,.5);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .15s, border-color .15s;
    z-index: 10000;
}
.mg-lb-close:hover { background: var(--accent); border-color: var(--accent); }

/* Prev / Next */
.mg-lb-prev,
.mg-lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.3);
    background: rgba(0,0,0,.45);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .15s, border-color .15s;
    z-index: 10000;
}
.mg-lb-prev { left: 14px; }
.mg-lb-next { right: 14px; }
.mg-lb-prev:hover,
.mg-lb-next:hover { background: var(--accent); border-color: var(--accent); }

/* Dot indicators */
.mg-lb-dots {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 320px;
}
.mg-lb-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.35);
    cursor: pointer;
    padding: 0;
    transition: background .15s, transform .15s;
}
.mg-lb-dot.is-active,
.mg-lb-dot:hover { background: #fff; transform: scale(1.3); }
.spec-list div { border: 1px solid var(--line); border-radius: 5px; padding: 10px; }
.spec-list dt { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.spec-list dd { margin: 4px 0 0; font-weight: 700; }
.auction-box { display: grid; gap: 6px; margin-top: 18px; padding: 14px; border-radius: 6px; background: #fff8e8; border: 1px solid #f6dca0; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.entry-content { font-size: 16px; line-height: 1.7; }
.entry-content a { color: var(--accent); font-weight: 700; }
.entry-content h2, .entry-content h3 { color: var(--ink); }
.side-panel { padding: 18px; }

/* ── 16. Inventory layout ──────────────────────────────────── */
.inventory-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
.inventory-tools { border: 1px solid var(--line); border-radius: 8px; padding: 18px; align-self: start; background: #fff; position: sticky; top: calc(var(--nav-h) + 16px); }
.inventory-tools h2 { font-size: 17px; margin-top: 0; }
.inventory-tools a, .save-search { display: block; margin-top: 12px; color: var(--accent); font-weight: 800; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font-size: 14px; }

/* ── 17. Account panel ─────────────────────────────────────── */
.account-panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.account-panel > div { border: 1px solid var(--line); border-radius: 8px; padding: 22px; background: #fff; }

/* ── 18. Footer ────────────────────────────────────────────── */
.footer-logo-wrap { margin-bottom: 14px; }
.footer-logo { max-height: 60px; max-width: 180px; width: auto; display: block; opacity: .95; }
.whatsapp-link { color: #25d366 !important; font-weight: 700; }
.site-footer { background: #0f1d2d; color: #dbe7f3; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .9fr .8fr 1.1fr; gap: 28px; padding: 52px 0; }
.site-footer h2 { color: #fff; font-size: 17px; margin: 0 0 14px; }
.site-footer p { margin: 0 0 8px; font-size: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.site-footer ul a:hover { color: #fff; }
.social-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.social-row a { color: #fff; border: 1px solid rgba(255,255,255,.25); padding: 7px 10px; border-radius: 4px; font-weight: 700; font-size: 13px; }
.social-row a:hover { background: rgba(255,255,255,.12); }
.site-footer iframe { width: 100%; height: 160px; border: 0; border-radius: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 0; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-bottom a { color: #dbe7f3; }
.footer-bottom a:hover { color: #fff; }

/* WhatsApp floating button */
.chat-button {
    position: fixed; right: 20px; bottom: 20px; z-index: 150;
    display: grid; place-items: center;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #20b15a;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
    transition: transform .2s, box-shadow .2s;
}
.chat-button:hover { transform: scale(1.08); box-shadow: 0 14px 32px rgba(0,0,0,.28); }

/* ── 19a. Responsive two-col utility ──────────────────────── */
.two-col-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }

/* ── 19. Page-specific grids ───────────────────────────────── */
.page-services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 28px; }
.service-card { border: 1px solid var(--line); border-radius: 8px; padding: 26px; background: #fff; text-align: center; }
.service-icon { font-size: 34px; margin-bottom: 12px; }
.service-card h3 { margin: 0 0 8px; font-size: 19px; }
.service-card p { margin: 0; color: var(--muted); font-size: 14px; }

.rental-fleet-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin: 24px 0; }
.fleet-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 6px 20px rgba(19,37,59,.07); }
.fleet-card img { width:100%; aspect-ratio:16/10; object-fit:cover; }
.fleet-card-body { padding: 16px; }
.fleet-card-body h3 { margin: 0 0 6px; font-size:17px; }

.rental-pricing-table { width:100%; border-collapse:collapse; margin:24px 0; font-size: 14px; }
.rental-pricing-table th, .rental-pricing-table td { padding:12px 14px; text-align:left; border-bottom:1px solid var(--line); }
.rental-pricing-table th { background:var(--wash); font-weight:800; color:var(--ink); }
.rental-pricing-table tr:hover td { background:var(--wash); }

.stats-band { background:linear-gradient(90deg,#13253b,#203d5c); color:#fff; padding:52px 0; }
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; text-align:center; }
.stats-grid .stat strong { display:block; font-size:clamp(32px,5vw,52px); font-weight:800; color:var(--gold); line-height:1.1; }
.stats-grid .stat span { font-size:13px; color:#dbe7f3; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }

.financing-plans { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin:24px 0; }
.plan-card { border:2px solid var(--line); border-radius:8px; padding:26px; background:#fff; }
.plan-card.featured { border-color:var(--accent); }
.plan-card h3 { margin:0 0 6px; font-size: 20px; }
.plan-price { font-size:26px; font-weight:800; color:var(--accent); margin:10px 0; }
.plan-card ul { padding-left:18px; color:var(--muted); line-height: 2; font-size: 14px; }

.auctions-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; margin:24px 0; }
.auction-card { border:1px solid var(--line); border-radius:8px; overflow:hidden; background:#fff; box-shadow:0 8px 24px rgba(19,37,59,.07); }
.auction-card-media { aspect-ratio:16/9; background:var(--wash); overflow:hidden; }
.auction-card-media img { width:100%; height:100%; object-fit:cover; transition: transform .28s; }
.auction-card:hover .auction-card-media img { transform: scale(1.04); }
.auction-card-body { padding:18px; }
.auction-card-body h3 { margin:0 0 8px; font-size:19px; }
.auction-countdown { display:inline-block; background:#fff8e8; border:1px solid #f6dca0; border-radius:5px; padding:5px 11px; font-weight:800; color:#7a5c00; font-size:13px; margin-bottom:10px; }

.contact-info-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; margin-bottom:28px; }
.contact-info-card { border:1px solid var(--line); border-radius:8px; padding:20px; background:#fff; }
.contact-info-card h3 { margin:0 0 8px; font-size:17px; }
.contact-info-card a { color:var(--accent); font-weight:700; }
.contact-map { width:100%; height:340px; border:0; border-radius:8px; display:block; margin-bottom:24px; }

/* ── 20. Responsive — 1100px (large tablet landscape) ──────── */
@media (max-width: 1100px) {
    .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid  { grid-template-columns: repeat(2, 1fr); gap: 28px; padding: 44px 0; }
}

/* ── 21. Responsive — 900px (tablet) ───────────────────────── */
@media (max-width: 900px) {
    /* Utility bar */
    .utility-inner  { flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px 0; }
    .utility-email  { display: none; }

    /* Nav — collapse to hamburger */
    .nav-toggle { display: flex; }
    .primary-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #fff;
        border-bottom: 2px solid var(--line);
        box-shadow: 0 8px 24px rgba(0,0,0,.1);
        z-index: 99;
    }
    .primary-nav.is-open { display: block; }
    .primary-nav .menu  { flex-direction: column; width: 100%; padding: 8px 0; gap: 0; }
    .primary-nav > .menu > li > a { padding: 13px 20px; font-size: 14px; border-bottom: 1px solid var(--wash); }
    .primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 4px 20px; }

    /* Hero (legacy) */
    .hero-grid  { grid-template-columns: 1fr; min-height: auto; padding: 64px 0 80px; gap: 28px; }
    .hero-panel { align-self: auto; margin-bottom: 0; }

    /* Carousel */
    .hero-carousel, .hc-slide { min-height: 520px; }
    .hc-grid { grid-template-columns: 1fr; padding: 60px 0 100px; min-height: 520px; gap: 24px; }
    .hc-badge, .hc-panel { display: none; }
    .hc-heading { font-size: clamp(34px, 7vw, 52px); }
    .hc-btn { width: 40px; height: 40px; font-size: 17px; }
    .hc-prev { left: 10px; }
    .hc-next { right: 10px; }

    /* Search */
    .vehicle-search form { grid-template-columns: repeat(2, 1fr); }

    /* Layouts */
    .vehicle-hero-grid, .contact-grid, .content-grid, .inventory-layout, .two-col-grid { grid-template-columns: 1fr; }
    .promo-grid { grid-template-columns: 1fr; gap: 14px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .review-grid  { grid-template-columns: repeat(2, 1fr); }
    .account-panel { grid-template-columns: 1fr; }

    /* Gallery on tablet: thumbnails go 5-per-row */
    .vg-thumb { width: calc(20% - 7px); }

    /* Page-specific */
    .page-services-grid, .rental-fleet-grid, .financing-plans { grid-template-columns: repeat(2, 1fr); }
    .auctions-grid    { grid-template-columns: 1fr; }
    .stats-grid       { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .contact-info-grid { grid-template-columns: 1fr; }

    /* Lightbox nav buttons: move in a bit on tablet */
    .mg-lb-prev { left: 6px; }
    .mg-lb-next { right: 6px; }

    .section { padding: 52px 0; }
    .page-hero { padding: 54px 0 44px; }
    .page-hero.compact { padding: 40px 0 34px; }
}

/* ── 22. Responsive — 680px (large phone) ───────────────────── */
@media (max-width: 680px) {
    .container { width: calc(100% - 24px); }

    /* Logo smaller on phone */
    .brand img, .brand .custom-logo, .brand .site-logo-img,
    .custom-logo-link img, img.custom-logo {
        max-height: 70px !important;
        max-width: 190px !important;
    }

    /* Utility bar — hide address on small screens */
    .utility-address { display: none; }
    .utility-inner   { gap: 4px; padding: 6px 0; }

    /* Hero (legacy) */
    .hero { min-height: auto; }
    .hero-grid { padding: 52px 0 72px; gap: 20px; }
    .hero h1 { font-size: clamp(30px, 9vw, 44px); line-height: 1.1; }
    .hero p  { font-size: 16px; max-width: 100%; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .hero-actions .button { width: 100%; max-width: 320px; }

    /* Carousel mobile */
    .hero-carousel, .hc-slide { min-height: 480px; }
    .hc-grid { padding: 52px 0 96px; min-height: 480px; }
    .hc-heading { font-size: clamp(28px, 8vw, 40px); }
    .hc-sub { font-size: 15px; }
    .hc-btn { display: none; }
    .hc-dots { bottom: 18px; }

    .search-band { margin-top: -36px; }
    .vehicle-search form { grid-template-columns: 1fr; }

    .feature-grid, .vehicle-grid, .review-grid { grid-template-columns: 1fr; }
    .page-services-grid, .rental-fleet-grid, .financing-plans { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .spec-list  { grid-template-columns: 1fr; }

    .section  { padding: 40px 0; }
    .section-heading { flex-direction: column; align-items: flex-start; gap: 10px; }

    .rental-pricing-table { font-size: 13px; }
    .rental-pricing-table th, .rental-pricing-table td { padding: 9px 10px; }

    .footer-grid { grid-template-columns: 1fr; padding: 36px 0; gap: 28px; }
    .footer-bottom .container { flex-direction: column; gap: 8px; }

    .chat-button { width: 52px; height: 52px; right: 14px; bottom: 14px; }
    .chat-button svg { width: 24px; height: 24px; }

    /* Gallery: 3-per-row on phone */
    .vg-thumb { width: calc(33.33% - 6px); }

    /* Lightbox: smaller controls on phone */
    .mg-lb-prev, .mg-lb-next { width: 38px; height: 38px; font-size: 18px; }
    .mg-lb-prev { left: 4px; }
    .mg-lb-next { right: 4px; }
    .mg-lb-close { width: 38px; height: 38px; font-size: 16px; top: 10px; right: 10px; }
    .mg-lb-img { max-height: 70vh; }

    /* two-col-grid stacks on phone */
    .two-col-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ── 23. Responsive — 480px (small phone) ───────────────────── */
@media (max-width: 480px) {
    .brand img, .brand .custom-logo, .brand .site-logo-img,
    .custom-logo-link img, img.custom-logo {
        max-height: 60px !important;
        max-width: 160px !important;
    }
    .stats-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: clamp(26px, 8vw, 36px); }
    .vehicle-hero-grid { gap: 16px; }
    .promo-band { padding: 36px 0; }
    .contact-band { padding: 40px 0; }
}
