/* =====================================================================
   Tractor Mach — Main Stylesheet
   Palette matched from glcontainers.com: deep navy + bright blue + white
   Type: clean sans-serif throughout, bold headings
   ===================================================================== */

:root {
    --forest: #153047;        /* deep navy — header/hero/footer */
    --forest-dark: #0D2233;   /* darker navy — gradients, deepest sections */
    --harvest: #1A7EFB;       /* bright blue — buttons, links, CTAs */
    --harvest-dark: #1565D6;  /* bright blue hover/active */
    --heading: #242F65;       /* indigo-navy — section headings */
    --wheat: #F4F7FB;         /* light cool background tint */
    --wheat-deep: #E7EDF5;    /* slightly deeper tint */
    --cream-card: #FFFFFF;    /* card background */
    --soil: #202634;          /* body text (near-navy charcoal) */
    --steel: #5B6472;         /* secondary/muted text */
    --line: #DCE3EA;          /* borders */
    --white: #ffffff;
    --radius: 8px;
    --radius-pill: 999px;
    --shadow-flat: 0 1px 0 rgba(21, 48, 71, 0.06);
    --font-head: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* -------------------- Scroll reveal (respects prefers-reduced-motion) -------------------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--soil);
    background: var(--wheat);
    line-height: 1.6;
    font-size: 16px;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--heading);
    line-height: 1.2;
    margin: 0 0 0.5em;
    font-weight: 800;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; color: var(--steel); }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--cream-card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-heading {
    max-width: 620px;
    margin-bottom: 36px;
}
.section-heading p { margin: 0; font-size: 1.05rem; }

/* -------------------- Buttons -------------------- */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--harvest); color: var(--white); border-color: var(--harvest); }
.btn-primary:hover { background: var(--harvest-dark); border-color: var(--harvest-dark); }
.btn-outline { background: transparent; color: var(--wheat); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark { background: transparent; color: var(--forest-dark); border-color: var(--line); }
.btn-outline-dark:hover { background: var(--wheat); border-color: var(--forest); }
.btn-dark { background: var(--forest); color: var(--white); border-color: var(--forest); }
.btn-dark:hover { background: var(--forest-dark); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* -------------------- Top bar -------------------- */
.topbar {
    background: var(--forest-dark);
    color: #C7D3E0;
    font-size: 0.85rem;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}
.topbar a { color: #E3EAF4; }
.topbar-left span { margin-right: 20px; }
.topbar-left .ico { color: var(--harvest); margin-right: 6px; }
.topbar-right a { margin-left: 16px; }

/* -------------------- Skip link (accessibility) -------------------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--harvest);
    color: var(--white);
    padding: 12px 20px;
    z-index: 1000;
    font-weight: 700;
    border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* -------------------- Header / nav -------------------- */
.site-header {
    background: var(--forest);
    border-bottom: 3px solid var(--harvest);
    position: sticky;
    top: 0;
    z-index: 200;
    transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(13, 34, 51, 0.35); }
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 44px; height: 44px; flex-shrink: 0; }
.brand-text .name {
    font-family: var(--font-head);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1;
}
.brand-text .tagline {
    display: block;
    color: #A9B8CC;
    font-size: 0.72rem;
    margin-top: 3px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
}
.main-nav a {
    color: #E3EAF4;
    padding: 10px 16px;
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
}
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,0.1); color: var(--white); }

/* Dropdown submenu (Tractors) */
.main-nav li { position: relative; }
.main-nav .caret {
    display: inline-block;
    font-size: 0.65em;
    margin-left: 3px;
    transition: transform 0.15s ease;
    position: relative;
    top: -1px;
}
.main-nav .has-dropdown:hover .caret,
.main-nav .has-dropdown:focus-within .caret { transform: rotate(180deg); }
.main-nav .dropdown {
    list-style: none;
    margin: 0;
    padding: 8px;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(13, 34, 51, 0.22);
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 250;
}
.main-nav .has-dropdown:hover .dropdown,
.main-nav .has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.main-nav .dropdown li { width: 100%; }
.main-nav .dropdown a {
    color: var(--soil);
    padding: 9px 12px;
    border-radius: calc(var(--radius) - 3px);
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
}
.main-nav .dropdown a:hover, .main-nav .dropdown a:focus { background: var(--wheat); color: var(--forest); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone {
    color: var(--white);
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
}
.nav-phone small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.7rem; color: #A9B8CC; }

.nav-cta-btn { white-space: nowrap; }

.nav-phone-icon {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: var(--white);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.nav-phone-icon:hover { background: rgba(255,255,255,0.22); }

.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.6rem; cursor: pointer; }

/* -------------------- Hero -------------------- */
.hero {
    background: linear-gradient(180deg, var(--forest) 0%, var(--forest-dark) 100%);
    color: var(--wheat);
    position: relative;
    overflow: hidden;
}
.hero .container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 40px;
    padding-top: 72px;
    padding-bottom: 72px;
}
.hero-eyebrow { color: var(--harvest); font-weight: 700; font-size: 0.85rem; margin-bottom: 14px; letter-spacing: 0.3px; }
.hero h1 { color: var(--white); font-size: 2.9rem; margin-bottom: 18px; }
.hero h1 em { color: var(--harvest); font-style: normal; }
.hero p.lede { color: #D3DCE8; font-size: 1.1rem; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--harvest); }
.hero-stats div span { font-size: 0.8rem; color: #A9B8CC; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }
.hero-art img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

/* -------------------- Search / filter bar -------------------- */
.finder {
    background: var(--cream-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 12px;
    margin-top: -46px;
    position: relative;
    z-index: 5;
    box-shadow: 0 8px 24px rgba(21, 39, 19, 0.18);
}
.finder label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--steel);
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}
.finder select, .finder input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--soil);
}
.finder .finder-submit { display: flex; align-items: flex-end; }

/* -------------------- Category strip -------------------- */
.cat-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}
.cat-card {
    background: var(--cream-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0 0 18px;
    text-align: center;
    overflow: hidden;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.cat-card:hover { border-color: var(--harvest); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(21,48,71,0.14); }
.cat-card-img { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--wheat-deep); margin-bottom: 14px; }
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.cat-card:hover .cat-card-img img { transform: scale(1.06); }
.cat-card h3 { font-size: 1rem; margin-bottom: 4px; padding: 0 12px; }
.cat-card span { font-size: 0.82rem; color: var(--steel); padding: 0 12px; }

/* -------------------- Product grid / cards -------------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.product-card {
    background: var(--cream-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.product-card:hover { border-color: var(--harvest); box-shadow: 0 10px 24px rgba(51,43,31,0.1); }
.product-card .thumb { position: relative; background: var(--wheat-deep); border-bottom: 1px solid var(--line); }
.product-card .thumb img { width: 100%; height: 190px; object-fit: contain; padding: 14px; background: var(--wheat-deep); }
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 2px;
    color: var(--white);
}
.badge-new { background: var(--forest); }
.badge-used { background: var(--harvest); }
.badge-refurb { background: var(--steel); }
.badge-featured {
    position: absolute; top: 12px; right: 12px;
    background: var(--white); color: var(--harvest-dark);
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    padding: 4px 9px; border-radius: 2px; border: 1px solid var(--harvest);
}
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex-grow: 1; }
.product-brand { font-size: 0.75rem; color: var(--harvest-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.product-title { font-size: 1.08rem; margin-bottom: 8px; }
.product-title a { color: var(--forest-dark); }
.product-title a:hover { color: var(--harvest-dark); }
.product-specs { display: flex; gap: 14px; font-size: 0.8rem; color: var(--steel); margin-bottom: 14px; flex-wrap: wrap; }
.product-specs span { display: flex; align-items: center; gap: 5px; }
.product-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px dashed var(--line); }
.product-price { font-family: var(--font-head); font-size: 1.2rem; color: var(--forest-dark); font-weight: 700; }
.product-price small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.7rem; color: var(--steel); }

/* -------------------- Why choose us -------------------- */
.feature-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.feature-item { padding-left: 0; }
.feature-item .num { font-family: var(--font-head); font-size: 0.85rem; color: var(--harvest); border: 1px solid var(--harvest); width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-weight: 700; }
.feature-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-item p { font-size: 0.92rem; margin: 0; }

/* -------------------- Testimonials -------------------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card { background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.testi-quote { font-family: var(--font-head); font-style: italic; color: var(--soil); margin-bottom: 18px; font-size: 0.98rem; }
.testi-name { font-weight: 700; font-size: 0.92rem; color: var(--forest-dark); }
.testi-role { font-size: 0.8rem; color: var(--steel); }
.stars { color: var(--harvest); font-size: 0.85rem; margin-bottom: 10px; letter-spacing: 2px; }

/* -------------------- New/Used split panel -------------------- */
.split-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.split-card {
    background: var(--wheat);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
}
.split-card h3 { color: var(--heading); margin-bottom: 10px; font-size: 1.3rem; }
.split-card p { color: var(--steel); margin-bottom: 18px; }

/* -------------------- Brand strip -------------------- */
.brand-strip { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.brand-chip {
    display: inline-block;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--heading);
    font-weight: 700;
    font-size: 0.95rem;
}
.brand-chip:hover { background: var(--forest); color: var(--white); border-color: var(--forest); }

/* -------------------- Inspection / QA block -------------------- */
.qa-block { max-width: 720px; margin: 0 auto; text-align: center; }
.qa-block h2 { color: var(--heading); margin-bottom: 12px; }
.qa-block > div > p { color: var(--steel); margin-bottom: 20px; }
.qa-list {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    text-align: left;
}
.qa-list li {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-weight: 600;
    color: var(--soil);
}
.qa-list li::before { content: '\2713'; color: var(--harvest); font-weight: 900; margin-right: 8px; }

/* -------------------- Trade-in band -------------------- */
.trade-in-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    background: var(--cream-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 36px;
}
.trade-in-band h2 { color: var(--heading); margin-bottom: 6px; font-size: 1.4rem; }
.trade-in-band p { color: var(--steel); margin: 0; }

/* -------------------- CTA band -------------------- */
.cta-band {
    background: var(--forest-dark);
    color: var(--wheat);
    padding: 46px 0;
}
.cta-band .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.cta-band h2 { color: var(--white); margin-bottom: 6px; font-size: 1.6rem; }
.cta-band p { margin: 0; color: #C7D3E2; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* -------------------- Final CTA band (global, in footer) -------------------- */
.cta-band-final {
    background: linear-gradient(135deg, var(--forest) 0%, var(--forest-dark) 100%);
    color: var(--wheat);
    padding: 52px 0;
}
.cta-band-final-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}
.cta-band-final h2 { color: var(--white); margin-bottom: 6px; font-size: 1.7rem; }
.cta-band-final p { margin: 0; color: #C7D3E2; max-width: 46ch; }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--forest-dark); color: #C2CEDD; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.9fr 0.9fr 1.1fr; gap: 34px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer-grid p { color: #AAB8CA; font-size: 0.9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .name { font-family: var(--font-head); font-size: 1.3rem; color: var(--white); font-weight: 700; }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 0.82rem; color: #8C9BB0; }

/* -------------------- Inner page header (banner) -------------------- */
.page-banner {
    background: linear-gradient(180deg, var(--forest) 0%, var(--forest-dark) 100%);
    color: var(--white);
    padding: 44px 0;
}
.page-banner h1 { color: var(--white); font-size: 2.1rem; margin-bottom: 8px; }
.breadcrumb { font-size: 0.85rem; color: #BDC9DA; }
.breadcrumb a:hover { color: var(--harvest); }
.breadcrumb .sep { margin: 0 8px; color: #6C7A8F; }

/* -------------------- Listing page layout -------------------- */
.listing-layout { display: grid; grid-template-columns: 270px 1fr; gap: 32px; align-items: start; }
.filter-panel { background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow-y: auto; }
.filter-panel h3 { font-size: 1rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.filter-group { margin-bottom: 20px; }
.filter-group label.title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--forest-dark); display: block; margin-bottom: 10px; }
.filter-group select, .filter-group input { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--font-body); font-size: 0.9rem; }
.check-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 0.9rem; color: var(--soil); }
.price-row { display: flex; gap: 8px; align-items: center; }

.filter-drawer-toggle {
    display: none;
    width: 100%;
    margin-bottom: 18px;
    padding: 12px 16px;
    background: var(--forest);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
}

.results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 10px; }
.results-bar .count { font-size: 0.92rem; color: var(--steel); }
.results-bar select { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.results-bar-controls { display: flex; align-items: center; gap: 14px; }
.view-toggle { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.view-btn { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: var(--white); color: var(--steel); font-size: 0.95rem; }
.view-btn.active { background: var(--forest); color: var(--white); }
.view-btn:hover:not(.active) { background: var(--wheat); }

/* List view */
.product-list { display: flex; flex-direction: column; gap: 18px; }
.product-list .product-card { display: grid; grid-template-columns: 260px 1fr; }
.product-list .thumb { height: 100%; min-height: 180px; }
.product-list .product-body { display: flex; flex-direction: column; }
.product-list-desc { color: var(--steel); font-size: 0.9rem; margin: 4px 0 10px; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.88rem; color: var(--soil); background: var(--cream-card); }
.pagination a:hover { border-color: var(--harvest); color: var(--harvest-dark); }
.pagination .current { background: var(--forest); color: var(--white); border-color: var(--forest); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--steel); }
.empty-state h3 { color: var(--forest-dark); }

/* -------------------- Compare feature -------------------- */
.compare-check {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.83rem;
    color: var(--steel);
    font-weight: 600;
    margin: 4px 0 12px;
    cursor: pointer;
}
.compare-check input { width: auto; }

.compare-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    background: var(--forest-dark);
    color: var(--white);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.25);
}
.compare-bar-count { font-weight: 600; font-size: 0.92rem; }
.compare-bar-actions { display: flex; gap: 10px; }

.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td {
    border: 1px solid var(--line);
    padding: 14px 16px;
    text-align: left;
    font-size: 0.9rem;
}
.compare-table thead th { background: var(--wheat); vertical-align: top; min-width: 200px; }
.compare-thumb { width: 100%; max-width: 180px; border-radius: var(--radius); margin-bottom: 10px; background: var(--wheat-deep); }
.compare-title { font-weight: 700; color: var(--heading); margin-bottom: 4px; }
.compare-price { color: var(--harvest-dark); font-weight: 700; margin-bottom: 10px; }
.compare-row-label { font-weight: 700; color: var(--forest-dark); background: var(--wheat); white-space: nowrap; }
.spec-empty { color: var(--steel); font-style: italic; }

/* -------------------- Categories page -------------------- */
.cat-detail-list { margin-top: 48px; display: flex; flex-direction: column; gap: 16px; }
.cat-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 26px;
}
.cat-detail-row h3 { color: var(--heading); margin-bottom: 4px; font-size: 1.1rem; }
.cat-detail-row p { color: var(--steel); margin: 0; max-width: 60ch; }

/* -------------------- Brands page -------------------- */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.brand-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px;
    text-align: center;
}
.brand-card h3 { color: var(--heading); margin-bottom: 6px; font-size: 1.15rem; }
.brand-card span { color: var(--steel); font-size: 0.88rem; }
.brand-card:hover { border-color: var(--harvest); box-shadow: 0 10px 26px rgba(21,101,214,0.12); }

/* -------------------- Product detail page -------------------- */
.pd-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: start; }
.pd-slider {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--wheat-deep);
    overflow: hidden;
    margin-bottom: 12px;
    outline: none;
}
.pd-slider-track {
    display: flex;
    transition: transform 0.35s ease;
}
.pd-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-slide img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.pd-slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,253,247,0.92); border: 1px solid var(--line);
    color: var(--forest-dark); font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease;
}
.pd-slider-btn:hover { background: var(--white); border-color: var(--harvest); color: var(--harvest-dark); }
.pd-prev { left: 14px; }
.pd-next { right: 14px; }
.pd-slide-counter {
    position: absolute; top: 14px; right: 14px;
    background: rgba(33,57,31,0.85); color: var(--white);
    font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 20px;
}
.pd-dots {
    position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px;
}
.pd-dot {
    width: 9px; height: 9px; border-radius: 50%; border: none;
    background: rgba(255,253,247,0.6); cursor: pointer; padding: 0;
}
.pd-dot.active { background: var(--harvest); width: 22px; border-radius: 5px; }
.pd-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-thumbs .pd-thumb { width: 78px; height: 78px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--wheat-deep); cursor: pointer; overflow: hidden; }
.pd-thumbs .pd-thumb.active { border-color: var(--harvest); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

.pd-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 10px; }
.pd-brand { color: var(--harvest-dark); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.04em; margin-bottom: 6px; }
.pd-title { font-size: 1.8rem; margin-bottom: 6px; }
.pd-location { font-size: 0.88rem; color: var(--steel); }
.pd-price-box { text-align: right; }
.pd-price { font-family: var(--font-head); font-size: 1.9rem; color: var(--forest-dark); font-weight: 700; }
.pd-price small { display: block; font-family: var(--font-body); font-size: 0.75rem; color: var(--steel); font-weight: 400; }

.pd-badges { display: flex; gap: 8px; margin: 14px 0 22px; }
.pd-badges span { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; padding: 5px 11px; border-radius: 2px; color: var(--white); }

.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0 28px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table td { padding: 11px 4px; font-size: 0.92rem; }
.spec-table td:first-child { color: var(--steel); width: 44%; }
.spec-table td:last-child { color: var(--soil); font-weight: 600; }

.pd-desc h3 { margin-top: 26px; }
.pd-desc p { font-size: 0.98rem; }

.contact-box { background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 20px; }
.contact-box h3 { font-size: 1.1rem; margin-bottom: 4px; }
.contact-box .sub { font-size: 0.85rem; color: var(--steel); margin-bottom: 18px; }
.contact-phone-btn {
    display: flex; align-items: center; gap: 12px;
    background: var(--forest); color: var(--white);
    padding: 14px 16px; border-radius: var(--radius); margin-bottom: 10px;
}
.contact-phone-btn .ico { width: 20px; height: 20px; color: var(--harvest); flex-shrink: 0; }
.contact-phone-btn strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.contact-phone-btn span { font-size: 0.72rem; color: #C3D0E2; }
.contact-divider { text-align: center; font-size: 0.78rem; color: var(--steel); margin: 16px 0; position: relative; }
.contact-divider::before, .contact-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--line); }
.contact-divider::before { left: 0; }
.contact-divider::after { right: 0; }

.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--soil); margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
    width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius);
    font-family: var(--font-body); font-size: 0.92rem; background: var(--white);
}
.form-field textarea { resize: vertical; min-height: 90px; }
.dealer-note { font-size: 0.78rem; color: var(--steel); margin-top: 12px; text-align: center; }

.related-title { margin-top: 60px; margin-bottom: 24px; }

/* -------------------- About page -------------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.stat-card { text-align: center; padding: 24px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream-card); }
.stat-card strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--forest-dark); }
.stat-card span { font-size: 0.82rem; color: var(--steel); }
.timeline { border-left: 2px solid var(--line); padding-left: 28px; margin-top: 30px; }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item::before { content: ''; position: absolute; left: -34px; top: 4px; width: 12px; height: 12px; background: var(--harvest); border-radius: 50%; border: 3px solid var(--wheat); }
.timeline-item .year { font-family: var(--font-head); color: var(--harvest-dark); font-weight: 700; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 10px; }
.team-card { text-align: center; }
.team-photo { width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--wheat-deep); border: 1px solid var(--line); margin-bottom: 14px; overflow: hidden; }
.team-card h4 { margin-bottom: 2px; }
.team-card span { font-size: 0.82rem; color: var(--harvest-dark); font-weight: 600; }

/* -------------------- Contact page -------------------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.info-card { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-card:last-child { border-bottom: none; }
.info-card .ico { width: 22px; height: 22px; color: var(--harvest); flex-shrink: 0; margin-top: 3px; }
.info-card h4 { margin-bottom: 4px; font-size: 1rem; }
.info-card p { margin: 0; font-size: 0.92rem; }
.map-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 24px; background: var(--wheat-deep); height: 220px; display: flex; align-items: center; justify-content: center; color: var(--steel); font-size: 0.9rem; }
.contact-form-card { background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.alert { padding: 14px 16px; border-radius: var(--radius); font-size: 0.9rem; margin-bottom: 20px; }
.alert-success { background: #E6EFE1; border: 1px solid #9BBF8A; color: #2C4A26; }
.alert-error { background: #F6E4DE; border: 1px solid #D69378; color: #7A3319; }

/* -------------------- Mobile -------------------- */
@media (max-width: 980px) {
    .hero .container { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 44px; }
    .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
    .finder { grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
    .cat-strip { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-list { grid-template-columns: repeat(2, 1fr); }
    .testi-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .split-panel { grid-template-columns: 1fr; }
    .qa-list { grid-template-columns: 1fr; }
    .trade-in-band { flex-direction: column; text-align: center; }
    .listing-layout { grid-template-columns: 1fr; }
    .filter-drawer-toggle { display: block; }
    .filter-panel { position: static; max-height: none; display: none; }
    .filter-panel.open { display: block; }
    .product-list .product-card { grid-template-columns: 1fr; }
    .product-list .thumb { min-height: 200px; }
    .pd-layout { grid-template-columns: 1fr; }
    .pd-slide { height: 280px; }
    .contact-box { position: static; }
    .about-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .main-nav { display: none; }
    .nav-toggle { display: block; }
    .topbar-left span:nth-child(2) { display: none; }
    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2.1rem; }
    .cat-strip { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: 1fr; }
    .feature-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row-2 { grid-template-columns: 1fr; }
    .pd-header { flex-direction: column; }
    .pd-price-box { text-align: left; }
    .cta-band .container { flex-direction: column; text-align: center; }
    .cta-band-final-inner { flex-direction: column; text-align: center; }
    .nav-phone { display: none; }
    .nav-cta-btn { display: none; }
    .nav-phone-icon { display: flex; }
}
@media (min-width: 721px) {
    .nav-phone-icon { display: none; }
}

/* -------------------- Mobile nav drawer -------------------- */
.mobile-nav { display: none; background: var(--forest-dark); }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 10px 24px 18px; }
.mobile-nav a { display: block; padding: 10px 0; color: #E3EAF4; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.08); }
