/* Valley Property Connect — outlet design layer.
   Loads after styles.css and editorial.css. Those files still supply the slab viewer, color carousels,
   photo/video galleries and the vehicle page; this file sets the shared look: sticky navigation,
   type scale, product grids, cards and page sections. */

:root {
  --ink: #1f2124;
  --ink-soft: #5b5f66;
  --ink-faint: #8a8e94;
  --line: #e3e3df;
  --line-strong: #cfcfca;
  --paper: #ffffff;
  --panel: #f6f6f4;
  --panel-2: #eeeeeb;
  --accent: #b7791f;
  --accent-soft: #fbf3e4;
  --ok: #2f6b4f;
  --ok-soft: #e9f3ee;
  --warn: #8a5a12;
  --radius: 10px;
  --radius-sm: 6px;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 116px;
  --font-head: "Manrope", "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { scroll-padding-top: calc(var(--header-h) + 16px); }
body { background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); line-height: 1.15; margin: 0; }
h1 { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -0.03em; }
h2 { font-size: clamp(24px, 2.8vw, 34px); }
h3 { font-size: 18px; }
p { margin: 0; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.eyebrow { display: block; margin: 0 0 10px; color: var(--ink-soft); font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.muted { color: var(--ink-soft); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer; white-space: nowrap; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #33363b; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-light:hover { border-color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #9c6618; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.text-link { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 1px; }
.text-link:hover { color: var(--accent); }

/* ---------- Header + sticky navigation ---------- */
.kgi-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.kgi-header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.kgi-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.kgi-logo-mark { display: block; width: 48px; height: 48px; border-radius: 50%; flex: none; }
.kgi-logo-text { display: grid; line-height: 1.15; }
.kgi-logo-text strong { font-family: var(--font-head); font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.kgi-logo-text small { color: var(--ink-soft); font-size: 12px; }
.kgi-search { flex: 1; max-width: 520px; margin-left: auto; position: relative; }
.kgi-search input { width: 100%; height: 44px; padding: 0 14px 0 42px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--panel); color: var(--ink); font-size: 15px; }
.kgi-search input:focus { outline: none; border-color: var(--ink); background: #fff; }
.kgi-search svg, .search-box svg { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--ink-soft); stroke-width: 2; pointer-events: none; }
.kgi-header-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.kgi-phone { font-weight: 700; text-decoration: none; white-space: nowrap; }
.kgi-phone small { display: block; color: var(--ink-soft); font-size: 11px; font-weight: 500; }
.kgi-icon-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; place-items: center; color: var(--ink); text-decoration: none; }
.kgi-icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.kgi-nav { border-top: 1px solid var(--line); background: #fff; }
.kgi-nav-row { display: flex; align-items: center; gap: 4px; height: 48px; overflow-x: auto; scrollbar-width: none; }
.kgi-nav-row::-webkit-scrollbar { display: none; }
.kgi-nav a { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.kgi-nav a:hover { background: var(--panel); }
.kgi-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.kgi-nav .nav-count { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--warn); font-size: 12px; font-weight: 700; }
.kgi-nav a[aria-current="page"] .nav-count { background: rgba(255,255,255,.18); color: #fff; }
.kgi-nav .nav-right { margin-left: auto; color: var(--ink-soft); font-weight: 500; }

/* ---------- Breadcrumbs + page heads ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 22px; color: var(--ink-soft); font-size: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--ink-faint); }
.page-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: end; padding-top: 18px; padding-bottom: 26px; }
.page-head p.lead { margin-top: 12px; max-width: 680px; color: var(--ink-soft); font-size: 17px; }
.page-head-aside { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); font-size: 14px; min-width: 260px; }
.page-head-aside strong { display: block; font-size: 15px; }
.page-head-aside span { color: var(--ink-soft); }
.notice { display: flex; gap: 12px; padding: 14px 16px; margin-bottom: 24px; border: 1px solid #ecdcbc; border-radius: var(--radius); background: var(--accent-soft); color: #4b3a1c; font-size: 14px; line-height: 1.55; }
.notice strong { flex: none; color: var(--warn); }

/* ---------- Home ---------- */
.hero { padding-top: 40px; padding-bottom: 36px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); max-width: 720px; }
.hero .lead { margin-top: 16px; max-width: 620px; color: var(--ink-soft); font-size: 18px; }
.hero-search { position: relative; display: flex; gap: 8px; margin-top: 24px; max-width: 620px; }
.hero-search .search-box { flex: 1; }
.search-box { position: relative; }
.search-box input { width: 100%; height: 52px; padding: 0 16px 0 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; font-size: 16px; color: var(--ink); }
.search-box input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(31,33,36,.08); }
.hero-search .btn { min-height: 52px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-tags > span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.visit-panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.visit-panel h2 { font-size: 20px; }
.visit-panel dl { display: grid; gap: 12px; margin: 16px 0 20px; }
.visit-panel dt { color: var(--ink-soft); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.visit-panel dd { margin: 2px 0 0; font-weight: 600; }
.visit-panel .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.section { padding-top: 48px; padding-bottom: 48px; }
.section-alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-head p { margin-top: 8px; color: var(--ink-soft); max-width: 620px; }

.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cat-grid-secondary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.cat-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.cat-card:hover { border-color: var(--ink); box-shadow: 0 8px 24px rgba(20,22,25,.08); }
.cat-card-media { aspect-ratio: 16 / 10; background: var(--panel); overflow: hidden; }
.cat-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-card-media.contain img { object-fit: contain; padding: 10px; }
.cat-card-body { display: grid; gap: 6px; padding: 18px 20px 20px; }
.cat-card-body h3 { font-size: 22px; }
.cat-card-body p { color: var(--ink-soft); font-size: 15px; }
.cat-card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; font-size: 14px; font-weight: 700; }
.cat-card-meta .pill { padding: 3px 10px; border-radius: 999px; background: var(--panel); }
.cat-card-go { margin-top: 10px; font-weight: 700; color: var(--ink); }
.cat-card-go::after { content: " →"; }
.cat-card.is-feature { border-color: var(--ink); }
.cat-card.is-feature .cat-card-body { background: var(--ink); color: #fff; }
.cat-card.is-feature h3, .cat-card.is-feature .cat-card-go { color: #fff; }
.cat-card.is-feature p { color: #c9cbcf; }
.cat-card.is-feature .pill { background: rgba(255,255,255,.12); }
.cat-card-flag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.cat-card-wide { flex-direction: row; }
.cat-card-wide .cat-card-media { aspect-ratio: auto; width: 42%; flex: none; }
.cat-card-wide .cat-card-body { align-content: center; }

.size-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.size-tile { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; }
.size-tile:hover { border-color: var(--ink); }
.size-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--panel); border-radius: var(--radius-sm); margin-bottom: 6px; }
.size-tile strong { font-size: 15px; }
.size-tile span { color: var(--ink-soft); font-size: 13px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 12px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; }
.step h3 { font-size: 17px; }
.step p { margin-top: 6px; color: var(--ink-soft); font-size: 15px; }

/* ---------- Toolbar: search, chips, filters, sort ---------- */
.toolbar { display: grid; gap: 14px; padding: 16px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.toolbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toolbar .search-box { flex: 1 1 320px; }
.toolbar .search-box input { height: 46px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .n { color: var(--ink-faint); font-weight: 700; font-size: 12px; }
.chip[aria-pressed="true"] .n { color: #c9cbcf; }
.field { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; font-size: 14px; }
.field span { color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.field select { border: 0; background: transparent; color: var(--ink); font-weight: 700; font-size: 15px; padding: 4px 2px; max-width: 190px; }
.field select:focus { outline: none; }
.field:focus-within { border-color: var(--ink); }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.results-bar p { color: var(--ink-soft); font-size: 15px; }
.results-bar p strong { color: var(--ink); }
.link-btn { border: 0; background: none; padding: 0; color: var(--ink); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.empty { padding: 40px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; }
.empty h2 { font-size: 22px; }
.empty p { margin: 8px auto 18px; max-width: 460px; color: var(--ink-soft); }

/* ---------- Product grid + cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--line-strong); box-shadow: 0 8px 22px rgba(20,22,25,.07); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--panel); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-media.contain img { object-fit: contain; }
.card-tag { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--ink); font-size: 12px; font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.card-tag.dark { background: var(--ink); color: #fff; }
.card-media-count { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(31,33,36,.82); color: #fff; font-size: 12px; font-weight: 700; }
.card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
.card-kicker { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-soft); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.card-kicker .ref { color: var(--ink-faint); font-weight: 600; }
.card h3 { font-size: 19px; line-height: 1.25; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card-desc { color: var(--ink-soft); font-size: 15px; }
.price { font-family: var(--font-head); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.price small { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; }
.price.is-call { font-size: 18px; }
.facts { display: grid; gap: 4px; margin: 2px 0 0; padding: 0; list-style: none; font-size: 14px; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts span { color: var(--ink-soft); }
.facts strong { text-align: right; font-weight: 600; }
.avail { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 4px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 13px; font-weight: 700; }
.avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.avail.is-later { background: var(--accent-soft); color: var(--warn); }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 8px; }
.card-actions .btn { min-height: 42px; font-size: 14px; padding: 0 10px; }

/* Prefab carousel card, built on the existing carousel behavior */
.card.product-carousel-card { border-radius: var(--radius); }
.card .product-carousel { aspect-ratio: 5 / 4; background: #f4f0eb; border-radius: 0; }
.card .product-carousel-track, .card .product-carousel-slide { height: 100%; }
.card .product-carousel-slide { aspect-ratio: auto; width: 100%; flex: 0 0 100%; }
.card .product-carousel-slide { background: #f4f0eb; }
.card .product-carousel-slide img, .card .product-carousel-slide video { width: 100%; height: 100%; object-fit: contain; }
.card .image-label { left: 10px; bottom: 10px; top: auto; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink-soft); font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; max-width: calc(100% - 90px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .product-carousel-count { top: 10px; right: 10px; border-radius: 999px; background: rgba(31,33,36,.82); color: #fff; font-size: 12px; font-weight: 700; }
.card .product-carousel-arrow { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.18); font-size: 26px; }
.card .product-carousel-dots { bottom: 12px; right: 10px; left: auto; transform: none; }
.color-name { font-weight: 700; color: var(--ink); }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { width: 26px; height: 26px; padding: 0; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-strong); background-size: 260%; background-position: center; cursor: pointer; }
.swatch[aria-current="true"] { box-shadow: 0 0 0 2px var(--ink); }

/* ---------- Machine detail page ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 36px; align-items: start; padding-bottom: 40px; }
.detail-gallery .machine-gallery { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.detail-gallery .machine-image { height: auto; aspect-ratio: 4 / 3; background: var(--panel); }
.detail-gallery .machine-image img { width: 100%; height: 100%; object-fit: contain; }
.detail-gallery .machine-image > span { left: 12px; top: 12px; border-radius: 999px; background: rgba(31,33,36,.82); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; }
.detail-gallery .machine-thumbnails { padding: 10px; gap: 8px; border-top: 1px solid var(--line); }
.detail-gallery .machine-thumbnails button { flex: 0 0 84px; height: 66px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; background: var(--panel); padding: 0; cursor: pointer; }
.detail-gallery .machine-thumbnails button.is-active { border-color: var(--ink); }
.detail-gallery .machine-thumbnails img { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery .media-carousel-arrow { width: 42px; height: 42px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.detail-panel { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.detail-panel h1 { font-size: clamp(26px, 3vw, 36px); }
.detail-panel .price { font-size: 34px; }
.detail-actions { display: grid; gap: 8px; }
.detail-actions .btn { min-height: 50px; font-size: 16px; }
.detail-actions .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ref-pill { padding: 4px 10px; border-radius: 999px; background: var(--panel); color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 40%; padding-right: 12px; color: var(--ink-soft); font-weight: 600; }
.spec-table td { font-weight: 600; }
.outside-links { display: grid; gap: 6px; font-size: 14px; }
.outside-links a { font-weight: 600; }
.share-out { display: none; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.share-out.is-open { display: grid; }
.share-out input { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 13px; }
.disclaimer { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); font-size: 14px; color: var(--ink-soft); }
.disclaimer strong { color: var(--ink); }
.highlight { animation: none; box-shadow: 0 0 0 3px var(--accent); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.contact-card { display: grid; gap: 10px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-card h2 { font-size: 20px; }
.contact-card .big { font-family: var(--font-head); font-size: 24px; font-weight: 800; text-decoration: none; }
.contact-card p { color: var(--ink-soft); font-size: 15px; }
.contact-card .btn { margin-top: 6px; }
.checklist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 26px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

/* ---------- Footer ---------- */
.kgi-footer { margin-top: 40px; padding: 44px 0 28px; background: var(--ink); color: #d5d7da; font-size: 15px; }
.kgi-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.kgi-footer h2 { margin-bottom: 12px; color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.kgi-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.kgi-footer a { color: #d5d7da; text-decoration: none; }
.kgi-footer a:hover { color: #fff; text-decoration: underline; }
.kgi-footer .brandline-logo { display: block; width: 88px; height: 88px; margin-bottom: 14px; border-radius: 50%; }
.kgi-footer .brandline strong { display: block; color: #fff; font-family: var(--font-head); font-size: 20px; }
.kgi-footer .brandline p { margin-top: 8px; max-width: 340px; color: #aeb1b6; }
.kgi-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 32px; padding-top: 20px; border-top: 1px solid #3a3d42; color: #9a9da3; font-size: 13px; }

/* Existing mobile call/text bar, restyled */
.mobile-actions { border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
.mobile-actions a { color: var(--ink); font-weight: 700; }
.mobile-actions a + a { background: var(--ink); color: #fff; }

/* Product modal (existing viewer) on top of sticky header */
.modal { z-index: 60; }
.product-sheet h2 { font-family: var(--font-head); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .size-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kgi-phone small { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 108px; }
  .hero { grid-template-columns: 1fr; padding-top: 26px; gap: 24px; }
  .grid, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-grid > .cat-card.is-feature { grid-column: 1 / -1; }
  .detail { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .detail-panel { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .kgi-footer-grid { grid-template-columns: 1fr 1fr; }
  .page-head { grid-template-columns: 1fr; }
  .page-head-aside { min-width: 0; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .kgi-search, .kgi-phone { display: none; }
  .kgi-icon-btn { display: grid; }
  .kgi-header-row { height: 60px; gap: 12px; }
  .kgi-header-cta { margin-left: auto; }
  .kgi-logo-mark { width: 40px; height: 40px; }
  .kgi-logo-text strong { font-size: 17px; }
  .kgi-logo-text small { font-size: 11px; }
  .kgi-nav-row { height: 46px; gap: 2px; }
  .kgi-nav a { padding: 0 12px; font-size: 14px; }
  .kgi-nav .nav-right { margin-left: 0; }
  :root { --header-h: 106px; }
  .cat-grid-secondary { grid-template-columns: 1fr; }
  .cat-card-wide .cat-card-media { width: 38%; }
  .section { padding-top: 36px; padding-bottom: 36px; }
  .section-head { flex-direction: column; align-items: start; }
  .hero-search { flex-direction: column; }
  .visit-panel .btn-row { grid-template-columns: 1fr 1fr; }
  .toolbar { padding: 12px; }
  .toolbar-row .field { flex: 1 1 calc(50% - 10px); }
  .field select { max-width: none; flex: 1; }
}
@media (max-width: 650px) { body { padding-bottom: 66px; } }
@media (max-width: 560px) {
  .kgi-nav .nav-count { display: none; }
  .kgi-nav-row { padding-left: 8px; padding-right: 8px; gap: 0; justify-content: space-between; }
  .kgi-nav a { padding: 0 8px; font-size: 13.5px; letter-spacing: -0.01em; }
  .kgi-nav .nav-right { display: none; }
  .hero .visit-panel { display: none; }
  .hero .lead { font-size: 16px; }
  .hero-tags { display: none; }
  .grid, .grid-4 { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-card-body { padding: 12px 14px 14px; }
  .cat-card-body h3 { font-size: 18px; }
  .cat-card-body p { display: none; }
  .cat-card.is-feature .cat-card-body p { display: block; }
  .size-grid { grid-template-columns: 1fr 1fr; }
  .kgi-footer-grid { grid-template-columns: 1fr; }
  .detail-panel { padding: 18px; }
  .card-actions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .kgi-nav-row { padding-left: 4px; padding-right: 4px; }
  .kgi-nav a { padding: 0 6px; font-size: 12.5px; }
  .kgi-logo-text small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Grid children may shrink below their content width (fixes sideways scrolling on phones). */
.detail-panel { grid-template-columns: minmax(0, 1fr); }
.detail-panel > * { min-width: 0; }
.vehicle-layout > * { min-width: 0; }
@media (max-width: 980px) { .vehicle-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .detail-actions .btn { white-space: normal; padding: 0 10px; } }

.show-sm { display: none; }
@media (max-width: 420px) { .hide-sm { display: none; } .show-sm { display: inline; } }
.vehicle-price-card strong, .vehicle-details-card h2, .vehicle-section-heading h2 { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.02em; }
