/* SHG Construction — main.css
   Design language: "shop drawing" — cabinet-maker's spec sheets.
   Palette: spruce cabinet green, brass hardware, quartz/stone neutrals.
   Type: Zilla Slab (display) / Public Sans (body) / IBM Plex Mono (annotations).
*/

:root {
  --ink: #22271f;
  --black: #0d0d0d;          /* logo's native background — header/footer/hero bands */
  --spruce: #33523e;
  --spruce-deep: #24382c;
  --gold: #d4a437;           /* sampled from logo lettering */
  --gold-hi: #f6d879;        /* logo highlight — accents on dark */
  --gold-deep: #9c7215;      /* darkened gold — readable accent on light */
  --brass: var(--gold-deep); /* legacy alias: text/labels on light backgrounds */
  --brass-soft: var(--gold); /* legacy alias: accents on dark backgrounds */
  --stone: #efeee8;
  --quartz: #fbfaf7;
  --line: #d8d5cb;
  --line-dark: #b9b5a7;
  --danger: #8c3b2e;

  --font-display: "Zilla Slab", "Georgia", serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --maxw: 1120px;
  --radius: 6px;
  --shadow: 0 2px 8px rgba(34, 39, 31, 0.08), 0 12px 32px rgba(34, 39, 31, 0.07);
}

* { box-sizing: border-box; }
/* Nothing should be able to widen the page sideways. clip, not hidden, so
   position: sticky on the header still works. */
html, body { overflow-x: clip; max-width: 100%; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--stone);
}

img, svg { max-width: 100%; display: block; }
a { color: var(--spruce); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; max-width: 58ch; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--green { background: var(--spruce-deep); color: var(--quartz); }
.section--green a:not(.btn) { color: var(--brass-soft); }
.section--quartz { background: var(--quartz); }

/* ---- Signature: shop-drawing sheet dividers ---- */
.sheet {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brass);
  margin-bottom: 18px;
}
.sheet::before, .sheet::after {
  content: ""; flex: 1; height: 1px; background: var(--line-dark);
  position: relative;
}
.sheet::before { border-left: 1px solid var(--line-dark); height: 9px; background:
  linear-gradient(var(--line-dark), var(--line-dark)) center / 100% 1px no-repeat; }
.sheet::after { border-right: 1px solid var(--line-dark); height: 9px; background:
  linear-gradient(var(--line-dark), var(--line-dark)) center / 100% 1px no-repeat; }
.section--green .sheet { color: var(--brass-soft); }
.section--green .sheet::before, .section--green .sheet::after { border-color: #4c6a58; background:
  linear-gradient(#4c6a58, #4c6a58) center / 100% 1px no-repeat; }

/* ---- Utility bar + merchant header (design C) ---- */
.util { background: var(--black); color: #d8d4c9; font-size: 0.78rem; }
.util .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px; min-height: 36px; padding-top: 7px; padding-bottom: 7px; }
.util a { color: var(--gold); text-decoration: none; }
.util a:hover { text-decoration: underline; }
.util__sp { margin-left: auto; }

.site-header { background: var(--black); border-top: 1px solid #262626; border-bottom: 2px solid var(--gold); position: sticky; top: 0; z-index: 60; }
.site-header .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; min-height: 104px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand__logo { height: 80px; width: auto; display: block; filter: drop-shadow(0 2px 10px rgba(212, 164, 55, 0.25)); }

.search { flex: 1 1 260px; min-width: 0; max-width: 520px; display: flex; background: #fff; border: 2px solid var(--gold); border-radius: 3px; overflow: hidden; }
.search input { flex: 1; min-width: 0; border: 0; padding: 11px 14px; font: inherit; font-size: 0.92rem; outline: none; }
.search button { border: 0; background: var(--gold); color: var(--black); font: 700 0.84rem var(--font-body); padding: 0 20px; cursor: pointer; letter-spacing: 0.04em; }
.search button:hover { background: var(--gold-hi); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; min-width: 0; }
.nav a:not(.btn) { color: #f2efe8; }
.nav a { text-decoration: none; font-size: 0.86rem; font-weight: 600; padding: 9px 12px; border-radius: 3px; }
.nav a:not(.btn):hover { background: rgba(246, 216, 121, 0.12); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 3px 3px 0 0; }
.nav__toggle { display: none; margin-left: auto; background: none; color: #f2efe8; border: 1.5px solid var(--gold); border-radius: 3px; padding: 9px 13px; font: 600 0.88rem var(--font-body); cursor: pointer; }

.nav__mobile { display: none; }
.quote-btn { position: relative; }
.quote-btn__count {
  position: absolute; top: -6px; right: -6px;
  background: #fff; color: var(--black); border-radius: 999px;
  font-size: 0.68rem; line-height: 1; padding: 3px 6px; font-family: var(--font-mono); font-weight: 600;
}

/* Category strip — primary nav */
.cats { background: var(--stone); border-bottom: 1px solid var(--line); }
.cats .wrap { display: flex; gap: 2px; overflow-x: auto; }
.cats a { padding: 13px 15px; text-decoration: none; color: var(--ink); font-size: 0.85rem; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.cats a:hover { border-bottom-color: var(--gold); background: #fff; }
.cats a.on { border-bottom-color: var(--black); }

/* ---- Buttons ---- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: 600 0.98rem var(--font-body);
  padding: 12px 22px; border-radius: var(--radius); border: 1.5px solid transparent;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--spruce); color: #fff; }
.btn--primary:hover { background: var(--spruce-deep); }
.btn--brass { background: var(--gold); color: var(--black); }
.btn--brass:hover { background: var(--gold-hi); }
.btn--ghost { background: transparent; color: var(--spruce); border-color: var(--spruce); }
.btn--ghost:hover { background: rgba(51, 82, 62, 0.08); }
.section--green .btn--ghost { color: var(--quartz); border-color: var(--quartz); }
.section--green .btn--ghost:hover { background: rgba(255,255,255,0.1); }
.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { background: #2b2b2b; }
.btn--sm { padding: 8px 14px; font-size: 0.88rem; }

/* ---- Hero ---- */
.hero { background: radial-gradient(1100px 520px at 72% 30%, #1c1a14 0%, var(--black) 62%); color: var(--quartz); border-bottom: 2px solid var(--gold); }
.hero h1 { color: #fff; }
.hero .lede { color: #d9d6cc; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero__kicker { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.hero .btn--ghost { color: var(--gold-hi); border-color: var(--gold); }
.hero .btn--ghost:hover { background: rgba(246, 216, 121, 0.12); }
.hero__logo { width: min(340px, 78%); margin: 0 auto 26px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* Spec plate: shaker-door framed panel */
.door-panel {
  background: var(--spruce); color: var(--quartz);
  border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow);
}
.door-panel__inner {
  border: 1.5px solid rgba(251, 250, 247, 0.55);
  border-radius: 3px; padding: 26px 24px 22px; position: relative;
}
.door-panel__inner::after { /* brass knob */
  content: ""; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--brass-soft), var(--brass) 70%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.door-panel dl { margin: 0; display: grid; gap: 14px; }
.door-panel dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-soft); }
.door-panel dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }

/* ---- Audience door cards ---- */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.door-card {
  background: var(--quartz); border: 1.5px solid var(--line-dark); border-radius: var(--radius);
  padding: 12px; text-decoration: none; color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.door-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.door-card__inner {
  border: 1.5px solid var(--line-dark); border-radius: 3px;
  padding: 24px 20px 20px; height: 100%; position: relative;
}
.door-card__inner::after {
  content: ""; position: absolute; right: 12px; top: 24px;
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--brass-soft), var(--brass) 70%);
}
.door-card__tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.door-card h3 { margin: 8px 0 6px; }
.door-card p { font-size: 0.95rem; color: #4a4f45; margin-bottom: 10px; }
.door-card__cta { font-weight: 600; color: var(--spruce); }

/* ---- Cards / grids ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--quartz); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 1px 3px rgba(34,39,31,0.05);
}
.card h3 { margin-top: 4px; }
.card--flush { padding: 0; overflow: hidden; }
.card--flush .card__body { padding: 18px 20px 20px; }
.eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }

/* ---- Stats / trust bar ---- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.trust div strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--spruce); }
.trust div span { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #5a5f55; }
.section--green .trust div strong { color: var(--brass-soft); }
.section--green .trust div span { color: #c4cfc2; }

/* ---- Forms ---- */
form.stack { display: grid; gap: 14px; }
label { font-weight: 600; font-size: 0.92rem; display: grid; gap: 6px; }
input, select, textarea {
  font: inherit; padding: 11px 12px; border: 1.5px solid var(--line-dark);
  border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%;
}
textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 0.85rem; color: #5a5f55; }
.form-ok { background: #e8efe6; border: 1px solid var(--spruce); border-radius: var(--radius); padding: 14px 16px; }

/* ---- Gallery before/after ---- */
.ba { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.ba img, .ba svg { width: 100%; height: auto; }
.ba__after { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--brass);
  pointer-events: none;
}
.ba__handle::after {
  content: "⟨ ⟩"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--brass); color: #fff; font-family: var(--font-mono); font-size: 0.7rem;
  padding: 5px 7px; border-radius: 999px; white-space: nowrap;
}
.ba__label { position: absolute; top: 10px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; background: rgba(34,39,31,0.75); color: #fff; padding: 3px 8px; border-radius: 3px; }
.ba__label--before { left: 10px; }
.ba__label--after { right: 10px; }

/* ---- Testimonials ---- */
.quote { border-left: 3px solid var(--brass); padding: 4px 0 4px 18px; }
.quote p { font-family: var(--font-display); font-size: 1.12rem; }
.quote footer { font-size: 0.88rem; color: #5a5f55; }
.stars { color: var(--brass); letter-spacing: 2px; }

/* ---- Shop ---- */
.product { display: flex; flex-direction: column; }
.product__img { background: var(--stone); border-bottom: 1px solid var(--line); }
.product__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--spruce); }
.price small { font-family: var(--font-mono); font-size: 0.68rem; color: #5a5f55; font-weight: 400; }
.shop-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  font: 600 0.85rem var(--font-body); padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--line-dark); background: var(--quartz); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--spruce); border-color: var(--spruce); color: #fff; }

/* ---- Quote drawer ---- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--quartz); border-left: 1px solid var(--line); box-shadow: var(--shadow);
  transform: translateX(100%); transition: transform 0.2s ease; z-index: 90;
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__body { flex: 1; overflow: auto; padding: 18px 20px; }
.drawer__foot { padding: 18px 20px; border-top: 1px solid var(--line); }
.quote-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.quote-line button { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 0.85rem; }

/* ---- Chat widget ---- */
.chat-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  background: var(--spruce); color: #fff; border: none; border-radius: 999px;
  padding: 14px 20px; font: 600 0.95rem var(--font-body); cursor: pointer; box-shadow: var(--shadow);
}
.chat-box {
  position: fixed; right: 20px; bottom: 84px; z-index: 85;
  width: min(360px, calc(100vw - 40px)); height: 440px;
  background: var(--quartz); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); display: none; flex-direction: column; overflow: hidden;
}
.chat-box.open { display: flex; }
.chat-box__head { background: var(--spruce); color: #fff; padding: 12px 16px; font-weight: 600; display: flex; justify-content: space-between; }
.chat-box__head button { background: none; border: none; color: #fff; cursor: pointer; font-size: 1rem; }
.chat-box__log { flex: 1; overflow: auto; padding: 14px; display: grid; gap: 10px; align-content: start; }
.msg { padding: 9px 13px; border-radius: 10px; font-size: 0.92rem; max-width: 85%; }
.msg--bot { background: var(--stone); justify-self: start; }
.msg--user { background: var(--spruce); color: #fff; justify-self: end; }
.chat-box__form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-box__form input { flex: 1; }

/* ---- Footer ---- */
.site-footer { background: var(--black); color: #cfd2c9; font-size: 0.92rem; border-top: 2px solid var(--gold); }
.site-footer .footer-logo { width: 190px; margin-bottom: 16px; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; padding-top: 52px; padding-bottom: 40px; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: #cfd2c9; text-decoration: none; }
.site-footer a:hover { color: var(--brass-soft); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .legal { border-top: 1px solid #3a3f36; padding: 16px 20px; text-align: center; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; }

/* ---- Utility ---- */
.center { text-align: center; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 44px; }
.muted { color: #5a5f55; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--black); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .doors, .grid-3 { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  /* Header wraps to two rows; the secondary nav collapses behind Menu.
     The category strip below stays visible and scrolls — it is the primary nav. */
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--black); border-bottom: 2px solid var(--gold);
    box-shadow: 0 10px 24px rgba(0,0,0,.3);
    flex-direction: column; align-items: stretch; gap: 0; padding: 6px 20px 14px;
  }
  .nav { max-height: calc(100dvh - 215px); overflow-y: auto; overscroll-behavior: contain; }
  .menu-open .chat-fab, .menu-open .chat-box { display: none; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid #2a2a2a; border-radius: 0; }
  .nav .nav__mobile { display: flex; }
  .nav__group { flex-direction: column; margin-bottom: 8px; }
  .nav__label { font: 600 0.66rem var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); padding: 14px 4px 4px; }
  .nav__group a.on { color: var(--gold-hi); box-shadow: inset 3px 0 0 var(--gold); padding-left: 12px; }
  .cats { display: none; }
  .nav .btn { margin-top: 10px; text-align: center; }
  .quote-btn__count { position: static; margin-left: 6px; }
  .nav.open { display: flex; }
  .nav__toggle { display: block; margin-left: auto; order: 2; }
  .site-header .wrap { position: relative; }
}
@media (max-width: 720px) {
  .doors, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}

/* ================= Homepage — merchant layout (design C) ================= */
.promo { background: var(--black); color: #fff; }
.promo .wrap { display: grid; grid-template-columns: auto 1.2fr 0.75fr; gap: 40px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.promo__mark { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-right: 40px; border-right: 1px solid #2e2e2e; }
.promo__logo { width: 260px; height: auto; display: block; filter: drop-shadow(0 4px 18px rgba(212, 164, 55, 0.28)); }
.promo__mark span { font: 600 0.68rem var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); text-align: center; line-height: 1.5; }
.promo h1 { color: #fff; margin-bottom: 0.3em; font-family: var(--font-body); font-weight: 800; letter-spacing: -0.022em; font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.promo p { color: #c9c5b9; margin: 0; max-width: 60ch; }
.badge { display: inline-block; background: var(--gold); color: var(--black); font: 700 0.72rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; margin-bottom: 14px; }
.promo__box { background: #fff; color: var(--ink); border-radius: 4px; padding: 20px; }
/* .promo p is #c9c5b9 for the dark band — override it inside the white box */
.promo .promo__box p, .promo .promo__box .muted { color: #4a4a4a; }
.promo__box h3 { margin-bottom: 10px; font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; }
.btn--w { width: 100%; text-align: center; }

.sechd { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 20px; border-bottom: 2px solid var(--black); padding-bottom: 10px; }
.sechd h2 { margin: 0; font-family: var(--font-body); font-weight: 800; letter-spacing: -0.02em; font-size: 1.5rem; }
.sechd a { margin-left: auto; font-size: 0.86rem; font-weight: 700; text-decoration: none; white-space: nowrap; }

.pgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.p { border: 1px solid var(--line); border-radius: 4px; background: #fff; display: flex; flex-direction: column; transition: box-shadow .14s, border-color .14s; }
.p:hover { border-color: var(--black); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.p__img { background: var(--stone); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; padding: 10px; border-bottom: 1px solid var(--line); }
.p__img img { max-height: 100%; width: auto; }
.p__bd { padding: 12px 13px 14px; display: flex; flex-direction: column; flex: 1; }
.p__cat { font: 500 0.64rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 5px; }
.p h3 { font-size: 0.95rem; margin: 0 0 6px; line-height: 1.3; font-family: var(--font-body); font-weight: 700; }
.p__d { font-size: 0.78rem; color: #5c5c5c; margin: 0 0 10px; flex: 1; }
.p .price { font: 600 1.2rem var(--font-mono); color: var(--ink); display: block; line-height: 1.1; }
.p .price small { display: block; font: 400 0.68rem var(--font-body); color: #5c5c5c; margin-top: 2px; }
.p__quote { font: 600 0.82rem var(--font-body); color: var(--spruce); display: block; line-height: 1.25; }
.p__quote small { display: block; font-weight: 400; font-size: 0.68rem; color: #5c5c5c; margin-top: 2px; }
.p .btn { margin-top: 11px; }
.swatches { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 10px; padding: 0; list-style: none; }
.swatches li { width: 17px; height: 17px; border-radius: 50%; border: 1px solid rgba(0,0,0,.22); }
.p__more { font: 500 0.68rem var(--font-mono); color: #5c5c5c; }

.trade-band { background: var(--spruce); color: #fff; }
.trade-band .wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
.trade-band h2 { margin: 0; color: #fff; font-size: 1.3rem; font-family: var(--font-body); font-weight: 800; }
.trade-band p { margin: 0; color: #cfe3d7; font-size: 0.9rem; }
.trade-band .btn { margin-left: auto; }

.aud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.aud a { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 4px; padding: 20px 22px; background: #fff; }
.aud a:hover { border-left-color: var(--black); }
.aud h3 { margin-bottom: 5px; font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; }
.aud p { font-size: 0.85rem; color: #5c5c5c; margin: 0 0 10px; }
.aud span { font-size: 0.8rem; font-weight: 700; color: var(--spruce); }

.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.spec div { background: #fff; padding: 18px 20px; }
.spec dt { font-family: var(--font-body); font-weight: 700; font-size: 0.92rem; margin-bottom: 3px; }
.spec dd { margin: 0; font-size: 0.82rem; color: #5c5c5c; }

.svc { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.svc a { display: block; text-align: center; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 18px 8px; background: #fff; font-size: 0.84rem; font-weight: 600; }
.svc a:hover { border-color: var(--black); }

.reslist { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.reslist a { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; background: #fff; font-size: 0.85rem; font-weight: 600; }
.reslist a:hover { border-color: var(--black); }
.reslist span { display: block; font: 400 0.7rem var(--font-mono); color: #5c5c5c; margin-top: 3px; letter-spacing: 0.06em; }

@media (max-width: 1080px) { .promo .wrap { grid-template-columns: auto 1fr; } .promo__box { grid-column: 1 / -1; } .promo__logo { width: 200px; } .pgrid { grid-template-columns: repeat(3, 1fr); } .svc, .reslist { grid-template-columns: repeat(3, 1fr); } .spec { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .promo .wrap, .aud { grid-template-columns: 1fr; }
  .promo .wrap { gap: 26px; }
  .promo__mark { padding-right: 0; border-right: 0; padding-bottom: 24px; border-bottom: 1px solid #2e2e2e; }
  .promo__logo { width: min(240px, 70vw); }
  .site-header .wrap { padding-top: 12px; padding-bottom: 12px; }
  .search { order: 3; flex: 1 1 100%; max-width: none; }
  .brand__logo { height: 64px; }
}
@media (max-width: 620px) {
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .svc, .reslist { grid-template-columns: 1fr 1fr; }
  .spec { grid-template-columns: 1fr; }
  .util .wrap { gap: 3px 14px; font-size: 0.72rem; }
  .util__sp { margin-left: 0; }
  .trade-band .wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
  .trade-band .btn { margin-left: 0; }
}

/* Product tiles become a swipeable carousel on phones — a 2-up grid left the
   tiles ragged and cramped. Cards stretch to equal height as flex items.
   NOTE: no negative margins here. Bleeding the track past .wrap's padding
   widened the layout viewport on real iOS, which shrank the whole page. */
@media (max-width: 760px) {
  .pgrid {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    max-width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 14px;
  }
  .pgrid > .p { flex: 0 0 82%; max-width: 290px; scroll-snap-align: start; }
  .pgrid::-webkit-scrollbar { height: 5px; }
  .pgrid::-webkit-scrollbar-thumb { background: var(--line-dark); border-radius: 3px; }
  .pgrid::-webkit-scrollbar-track { background: transparent; }
}

