*,
*::before,
*::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: var(--text-base); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.7rem); margin: 0 0 .6em; }
h3 { font-size: 1.05rem; margin: 0 0 .4em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.page-pad { padding-block: clamp(28px, 5vw, 56px); }
.page-narrow { max-width: 760px; }
.lead { font-size: var(--text-lg); color: var(--muted); max-width: 62ch; }

/* Buttons */
.btn { display: inline-block; padding: .65em 1.25em; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: var(--font-display); }
.btn-quote { background: var(--accent); color: var(--accent-ink); }
.btn-quote:hover { filter: brightness(.95); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-small { padding: .4em .9em; font-size: .9rem; }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 20px; padding-block: 12px; flex-wrap: wrap; }
.brand { text-decoration: none; display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: .01em; }
.brand-tag { font-size: .72rem; color: var(--muted); }
.site-nav a { text-decoration: none; font-weight: 500; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-actions { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.header-search input { padding: .5em .8em; border: 1px solid var(--line); border-radius: var(--radius); min-width: 210px; font: inherit; }
.nav-toggle { display: none; font: inherit; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .4em .8em; }

/* Geo banner (hidden until enabled in main.js config) */
.geo-banner { background: var(--ink); color: var(--bg); }
.geo-banner p { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding-block: 8px; font-size: .9rem; }
.geo-close { background: none; border: 0; color: inherit; font-size: 1.1rem; cursor: pointer; }

/* Hero */
.hero { padding-block: var(--section-gap); border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 21ch; }
.hero-sub { max-width: 58ch; color: var(--muted); font-size: var(--text-lg); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero-proof { display: flex; gap: clamp(20px, 5vw, 56px); flex-wrap: wrap; margin: 40px 0 0; padding: 0; }
.hero-proof dt { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.hero-proof dd { margin: 0; color: var(--muted); font-size: .88rem; }

/* Sections */
.section { padding-block: var(--section-gap); }
.section-alt { background: var(--panel); }
.split { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cat-head { margin-top: 1.6em; color: var(--muted); font-weight: 600; }
.check-list { padding-left: 1.1em; }
.check-list li { margin-bottom: .45em; }

/* Line & model grids */
.line-grid, .model-grid, .brand-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.line-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; display: flex; flex-direction: column; gap: 4px; background: var(--bg); }
.line-card:hover { border-color: var(--ink); }
.line-name { font-family: var(--font-display); font-weight: 600; }
.line-range { font-size: .8rem; color: var(--muted); }
.line-desc { font-size: .88rem; color: var(--muted); }
.model-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.model-card-link { text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.model-card-link:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.model-key-specs { color: var(--muted); font-size: .88rem; margin: 0; font-variant-numeric: tabular-nums; }
.thumb-placeholder { aspect-ratio: 4/3; background: repeating-linear-gradient(45deg, var(--panel), var(--panel) 12px, #edf0f3 12px, #edf0f3 24px); border-radius: var(--radius); }
.thumb-placeholder.big { aspect-ratio: 1; }
.brand-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; text-decoration: none; font-family: var(--font-display); font-weight: 600; }
.brand-card:hover { border-color: var(--ink); }

/* Product page */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: inherit; }
.product-hero { display: grid; gap: clamp(24px, 4vw, 48px); grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.model-title { margin-bottom: .1em; }
.model-line { color: var(--muted); margin-top: 0; }
.spec-strip { display: flex; gap: clamp(18px, 3vw, 40px); flex-wrap: wrap; border-block: 1px solid var(--line); padding-block: 14px; margin-block: 18px; }
.spec-strip dt { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.spec-strip .unit { font-size: .85rem; font-weight: 500; color: var(--muted); }
.spec-strip dd { margin: 0; font-size: .8rem; color: var(--muted); }
.product-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-block: 14px; }
.equiv-note { color: var(--muted); }
.product-section { margin-top: var(--section-gap); }

/* Tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--panel); font-family: var(--font-display); font-size: .82rem; position: sticky; top: 0; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--panel) 55%, var(--bg)); }
td { font-variant-numeric: tabular-nums; }
.spec-table th[scope="row"] { font-weight: 500; color: var(--muted); width: 34%; }

/* Parts tables */
.parts-tools { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.parts-filter { flex: 1 1 260px; padding: .55em .8em; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; }
.parts-table .table-scroll { max-height: 480px; overflow-y: auto; }

/* Search */
.part-results { margin-bottom: var(--section-gap); }
.search-sub { margin-top: 1.5em; }

/* Quote page */
.quote-context { background: var(--panel); border-left: 3px solid var(--accent); padding: 10px 16px; border-radius: var(--radius); margin-bottom: 18px; }
.quote-alt { color: var(--muted); margin-top: 24px; }

/* Sticky quote bar on product pages */
.sticky-quote { position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--line); padding-block: 10px; margin-top: var(--section-gap); }
.sticky-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sticky-model { font-family: var(--font-display); font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--panel); margin-top: var(--section-gap); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); padding-block: 40px; font-size: .92rem; }
.footer-brand, .footer-head { font-family: var(--font-display); font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4em; }
.footer-legal { border-top: 1px solid var(--line); padding-block: 14px; font-size: .8rem; color: var(--muted); }

/* Mobile */
@media (max-width: 860px) {
  .nav-toggle { display: block; margin-left: auto; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .header-actions { width: 100%; justify-content: space-between; }
  .header-search { flex: 1; }
  .header-search input { width: 100%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ===== Mega menu (v1.1) ===== */
.nav-root { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.nav-root > li { position: static; }
.nav-root a { text-decoration: none; font-weight: 500; }
.nav-root > li > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-nav .has-mega .mega {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line);
  padding: 22px var(--pad) 26px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px; max-width: var(--wrap); margin: 0 auto; z-index: 60;
  box-shadow: 0 12px 24px rgba(0,0,0,.06);
}
.site-header { position: sticky; }
.site-nav .has-mega.mega-open .mega, .site-nav .has-mega:focus-within .mega { display: grid; }
.mega-head { font-family: var(--font-display); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 8px; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li { margin-bottom: 6px; font-size: .92rem; }
.mega a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .has-mega .mega { position: static; display: none; box-shadow: none; border: 0; padding: 8px 0 8px 14px; grid-template-columns: 1fr 1fr; gap: 14px; }
  .has-mega.mega-open .mega { display: grid; }
  .nav-root { flex-direction: column; gap: 10px; padding-block: 10px; }
}

/* ===== v1.2: contact + glossary ===== */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; flex-direction: column; margin-bottom: 14px; }
.contact-label { font-size: .8rem; color: var(--muted); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.contact-list a { font-size: 1.05rem; font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.glossary { display: grid; gap: 4px; margin-top: 28px; }
.glossary-item { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.glossary-item dt { font-family: var(--font-display); font-weight: 600; }
.glossary-item dd { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .glossary-item { grid-template-columns: 1fr; gap: 2px; } }

/* ===== v1.2.3: Fluent Forms polish to match the theme ===== */
.fluentform .ff-el-group { margin-bottom: 18px; }
.fluentform .ff-el-input--label label { font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--ink); }
.fluentform .ff-el-form-control {
  border: 1px solid var(--line); border-radius: var(--radius); padding: .65em .9em;
  font: inherit; background: var(--bg); width: 100%;
}
.fluentform .ff-el-form-control:focus { border-color: var(--ink); outline: 2px solid var(--accent); outline-offset: 1px; box-shadow: none; }
.fluentform .ff-el-help-message { color: var(--muted); font-size: .82rem; }
.fluentform .ff-btn-submit {
  background: var(--accent) !important; color: var(--accent-ink) !important; border: 0 !important;
  font-family: var(--font-display); font-weight: 600; padding: .7em 1.6em !important;
  border-radius: var(--radius) !important; cursor: pointer; font-size: 1rem !important;
}
.fluentform .ff-btn-submit:hover { filter: brightness(.95); }
.fluentform .ff_list_inline .ff-el-form-check { display: inline-block; margin-right: 16px; }
.fluentform .ff-el-is-error .ff-el-form-control { border-color: #c23b3b; }
.fluentform .error.text-danger { color: #c23b3b; font-size: .82rem; }

/* ===== v1.3: header search suggestions ===== */
.header-search { position: relative; }
.search-suggest {
  position: absolute; top: calc(100% + 6px); right: 0; width: min(420px, 92vw);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 14px 28px rgba(0,0,0,.1); z-index: 80; overflow: hidden;
}
.suggest-item { display: flex; flex-direction: column; gap: 1px; padding: 10px 14px; text-decoration: none; border-bottom: 1px solid var(--line); }
.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover, .suggest-item.is-active { background: var(--panel); }
.suggest-main { font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.suggest-sub { font-size: .8rem; color: var(--muted); }
