/* Kim Wellness Centre - mobile-first, flat design
   Palette: forest #0A523A (brand/structure), leaf #18794C (WhatsApp action),
   amber #D19130 (highlights), gold #E0A84E (decoration), white background.
   Tints/shades below are derived from those hues only. */

:root {
  --green-950: #06341F;
  --green-900: #0A523A;
  --green-800: #0E6646;
  --green-600: #18794C;
  --green-100: #E9F2EC;
  --green-50:  #F5F9F6;
  --amber:     #D19130;
  --amber-100: #F7ECD8;
  --gold:      #E0A84E;
  --ink:       #1C2B24;
  --ink-soft:  #46584E;
  --line:      #D8E4DC;
  --err:       #9F2B1F;
  --white:     #FFFFFF;

  --radius: 10px;
  --wrap: 72rem;
  --pad: 16px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img, svg { display: block; }
a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--green-900); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.9rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3, .h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 68ch; }
ul { padding-left: 1.2em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.wrap-narrow { max-width: 44rem; }
.sec { padding: 44px 0; }
.sec-first { padding-top: 24px; }
.sec-tint { background: var(--green-50); }
.sec-green { background: var(--green-900); }
.sec-green h1, .sec-green h2, .sec-green h3 { color: var(--white); }
.sec-green p { color: #DCEDE3; }
.sec-green a:not(.btn) { color: var(--gold); }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.hidden { display: none !important; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--green-900); color: var(--white); padding: 12px 20px;
}
.skip:focus { left: 8px; top: 8px; text-decoration: none; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.ic { width: 1.25em; height: 1.25em; fill: currentColor; }
.sprig-sm { width: 22px; height: 22px; color: var(--green-600); flex: none; }
.sprig-lg { width: 44px; height: 44px; color: var(--green-600); margin: 0 auto 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 11px 20px;
  border: 2px solid transparent; border-radius: var(--radius);
  font-weight: 600; font-size: .98rem; line-height: 1.3;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn .ic { flex: none; }
.btn-primary { background: var(--green-900); color: var(--white); }
.btn-primary:hover { background: var(--green-800); }
.btn-wa { background: var(--green-600); color: var(--white); }
.btn-wa:hover { background: var(--green-800); }
.btn-outline { background: var(--white); border-color: var(--green-900); color: var(--green-900); }
.btn-outline:hover { background: var(--green-100); }
.btn-gold { background: var(--gold); color: var(--green-950); }
.btn-gold:hover { background: var(--amber); color: var(--green-950); }
.btn-light { background: var(--white); color: var(--green-900); }
.btn-light:hover { background: var(--green-100); }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: .92rem; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.05rem; }
.btn-xs { min-height: 36px; padding: 4px 12px; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row-center { justify-content: center; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; color: var(--green-900); }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; width: auto; height: 44px; max-width: 54vw; object-fit: contain; }
.nav-toggle {
  margin-left: auto; width: 48px; height: 48px;
  display: grid; place-items: center;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--green-900); cursor: pointer;
}
.nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--line);
  flex-direction: column; padding: 8px var(--pad) 16px;
}
.nav.open { display: flex; }
.nav a {
  display: block; padding: 13px 8px; min-height: 48px;
  color: var(--ink); font-weight: 600; border-radius: 6px;
}
.nav a:hover { background: var(--green-100); text-decoration: none; }
.nav-cta { margin-top: 6px; }
a.nav-cta { color: var(--white); justify-content: center; display: inline-flex; }

/* ---------- image slots ---------- */
.slot-img, .slot-ph {
  width: 100%; aspect-ratio: var(--ar, 4/3);
  border-radius: var(--radius); overflow: hidden;
}
.slot-img { object-fit: cover; background: var(--green-100); }
.slot-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 12px; text-align: center;
}
.ph-green { background: var(--green-100); color: var(--green-600); }
.ph-gold { background: var(--amber-100); color: var(--amber); }
.ph-sprig { width: 40px; height: 40px; }
.ph-name { font-size: .72rem; color: var(--ink-soft); word-break: break-all; }

/* ---------- hero ---------- */
.hero { background: var(--green-50); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; gap: 24px; padding: 36px 0 40px; align-items: center; }
.kicker {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: 14px;
}
.lede { font-size: 1.08rem; color: var(--ink-soft); margin-bottom: 22px; }
.hero-note { font-size: .9rem; color: var(--ink-soft); margin-top: 14px; }
.hero-media { order: -1; }

/* ---------- trust strip ---------- */
.trust { border-bottom: 1px solid var(--line); }
.trust-in { display: grid; gap: 18px; padding: 22px 0; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-t { font-weight: 600; color: var(--green-900); margin: 0; }
.trust-p { font-size: .9rem; color: var(--ink-soft); margin: 0; }

/* ---------- section heads ---------- */
.sec-head { margin-bottom: 26px; }
.sec-head p { color: var(--ink-soft); margin: 0; }
.sec-head-light h2 { color: var(--white); }
.sec-head-light p { color: #DCEDE3; }
.sec-more { margin-top: 24px; }

/* ---------- tiles ---------- */
.tiles { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  min-height: 96px; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); background: var(--white);
}
.tile:hover { background: var(--green-100); text-decoration: none; }
.tile-name { font-weight: 600; color: var(--green-900); line-height: 1.3; }
.tile-meta { font-size: .8rem; color: var(--ink-soft); }
.tile-arrow { color: var(--amber); margin-top: 4px; }

/* ---------- product grid & cards ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); overflow: hidden;
}
.card-img .slot-img, .card-img .slot-ph { border-radius: 0; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px; flex: 1; }
.card-cat { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); margin: 0; }
.card-title { font-size: .95rem; margin: 0; line-height: 1.35; }
.card-title a { color: var(--green-900); }
.card-title a:hover { color: var(--green-600); }
.card-meta { font-size: .82rem; color: var(--ink-soft); margin: 0; }
.card-price { font-size: .85rem; font-weight: 600; color: var(--green-900); margin: 2px 0 8px; }
.card-body .btn { margin-top: auto; white-space: normal; text-align: center; }
.badge-out { font-size: .8rem; font-weight: 600; color: var(--err); margin: 0 0 4px; }
.badge-out-lg { font-size: .95rem; margin-top: 10px; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 22px; }
.step { border-top: 3px solid var(--gold); padding-top: 16px; }
.step-ic { margin-bottom: 10px; }
.step p { color: var(--ink-soft); margin: 0; }

/* ---------- quiz ---------- */
.quiz {
  display: grid; gap: 18px; padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  border-top: 4px solid var(--amber);
  background: var(--white);
}
.quiz h2 { margin-bottom: 6px; }
.quiz-text p { color: var(--ink-soft); margin: 0; }
.quiz-form { display: grid; gap: 12px; }
.quiz-slim { margin-top: 32px; }

/* ---------- about strip ---------- */
.about-strip { display: grid; gap: 24px; align-items: center; }
.about-media { display: grid; gap: 14px; max-width: 340px; }
.about-media .slot-img, .about-media .slot-ph { border: 1px solid var(--line); }
.vision {
  margin: 18px 0; padding: 4px 0 4px 18px;
  border-left: 4px solid var(--gold);
  font-size: 1.1rem; font-weight: 600; color: var(--green-900); max-width: 34ch;
}
.vision-label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }
.split-2 { display: grid; gap: 22px; }
.ticks { list-style: none; padding: 0; margin: 0 0 16px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.ticks .ic { color: var(--green-600); flex: none; margin-top: .2em; }

/* ---------- faq ---------- */
.faq-list { max-width: 44rem; }
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 16px 8px; font-weight: 600; color: var(--green-900);
  cursor: pointer; list-style: none; position: relative; padding-right: 36px;
}
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 14px;
  font-size: 1.3rem; font-weight: 400; color: var(--amber);
}
.faq[open] summary::after { content: "\2013"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { padding: 0 8px 16px; margin: 0; color: var(--ink-soft); }

/* ---------- reviews marquee ---------- */
.marquee { overflow: hidden; padding: 4px 0; }
.marquee-track {
  display: flex; gap: 16px; width: max-content;
  animation: marquee 80s linear infinite;
}
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
.rev {
  width: 300px; flex: none; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--white);
}
.rev-stars { margin: 0; color: var(--amber); font-size: 1rem; letter-spacing: 2px; }
.star-off { color: var(--line); }
.rev-q { margin: 0; font-size: .92rem; color: var(--ink); line-height: 1.55; }
.rev-who { margin-top: auto; font-size: .82rem; color: var(--ink-soft); }
.rev-who strong { color: var(--green-900); }
.rev-prod {
  display: inline-block; margin-left: 6px; padding: 1px 10px;
  border-radius: 999px; background: var(--green-100);
  font-size: .75rem; font-weight: 600; color: var(--green-900);
}
@media (hover: hover) { .marquee:hover .marquee-track { animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
}

/* ---------- cta ---------- */
.cta { text-align: center; }
.cta p { margin: 0 auto 20px; }

/* ---------- page head / crumbs ---------- */
.page-head { background: var(--green-50); border-bottom: 1px solid var(--line); padding: 32px 0 28px; }
.page-head p { color: var(--ink-soft); margin-bottom: 14px; }
.page-head-flat { padding: 16px 0 0; background: none; border: 0; }
.crumbs { font-size: .85rem; margin-bottom: 14px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.crumbs span:last-child { color: var(--green-900); font-weight: 600; }
.sw { font-style: italic; }

/* ---------- shop tools ---------- */
.shop-tools { display: grid; gap: 14px; margin-bottom: 22px; }
.shop-search { position: relative; }
.shop-search-ic { position: absolute; left: 14px; top: 14px; color: var(--ink-soft); }
.shop-search input {
  width: 100%; min-height: 48px; padding: 10px 14px 10px 44px;
  font-size: 16px; border: 1px solid var(--line); border-radius: var(--radius);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .88rem; font-weight: 600; color: var(--green-900); background: var(--white);
}
a.chip:hover, button.chip:hover { background: var(--green-100); text-decoration: none; }
.chip-on { background: var(--green-900); color: var(--white); border-color: var(--green-900); }
a.chip-on:hover { background: var(--green-800); }
.chip-off { color: var(--err); border-color: var(--err); }
.empty {
  padding: 28px; text-align: center; color: var(--ink-soft);
  border: 1px dashed var(--line); border-radius: var(--radius);
}

/* ---------- needs list ---------- */
.needs { display: grid; gap: 12px; }
.need {
  display: flex; gap: 14px; align-items: center; justify-content: space-between;
  padding: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); background: var(--white);
}
.need:hover { background: var(--green-100); text-decoration: none; }
.need h2 { font-size: 1.15rem; margin-bottom: 4px; }
.need p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.need-meta { margin-top: 6px !important; font-size: .82rem !important; }
.need .ic { color: var(--amber); flex: none; }
.tag {
  display: inline-block; padding: 1px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 600;
  background: var(--amber-100); color: var(--green-950);
}
.tag-adult { background: var(--amber-100); color: var(--green-950); margin-top: 8px; }

/* ---------- product page ---------- */
.product { display: grid; gap: 26px; }
.product-media { display: grid; gap: 14px; align-content: start; }
.product-media .slot-img, .product-media .slot-ph { border: 1px solid var(--line); }
.product-campaign { margin: 0; }
.product-campaign figcaption { font-size: .78rem; color: var(--ink-soft); margin-top: 6px; }
.cat-banner { padding-top: 20px; }
.campaign-strip { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 20px; }
.campaign-strip h2 { margin-bottom: 14px; }
.campaign-row { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); max-width: 40rem; }
.product-summary { font-size: 1.05rem; color: var(--ink-soft); }
.product-meta { margin-bottom: 4px; }
.product-price { font-size: 1.15rem; font-weight: 700; color: var(--green-900); margin-bottom: 16px; }
.use { font-size: .92rem; color: var(--ink-soft); margin-bottom: 18px; }
.notice {
  margin: 0; padding: 16px 18px;
  border: 1px solid var(--line); border-left: 4px solid var(--amber);
  border-radius: var(--radius); background: var(--white);
  font-size: .92rem;
}
.fine { font-size: .82rem; color: var(--ink-soft); }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 28px; }
.contact-cards { display: grid; gap: 12px; align-content: start; }
.ccard {
  display: flex; gap: 14px; align-items: center;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); background: var(--white); min-height: 60px;
}
a.ccard:hover { background: var(--green-100); text-decoration: none; }
.ccard .ic { width: 26px; height: 26px; color: var(--green-600); flex: none; }
.ccard span { line-height: 1.4; }
.ccard strong { display: block; color: var(--green-900); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.ccard-off { color: var(--ink-soft); }

/* ---------- forms ---------- */
.form-wrap {
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white);
}
.form-solo { max-width: 30rem; margin: 0 auto; }
.form h2, .form h1 { margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--green-900); margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea, .quiz-form select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .quiz-form select:focus {
  outline: 3px solid var(--amber); outline-offset: 0; border-color: var(--amber);
}
.err { color: var(--err); font-size: .88rem; font-weight: 600; margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin-bottom: 16px; }
.check input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--green-600); }
.checks { margin-bottom: 18px; }
.form-inline { display: grid; gap: 14px; }
.sent { text-align: center; padding: 24px 8px; }
.sent .ic { width: 44px; height: 44px; color: var(--green-600); margin: 0 auto 14px; }

/* ---------- footer ---------- */
.ftr { background: var(--green-900); color: #DCEDE3; margin-top: 8px; }
.ftr-grid { display: grid; gap: 26px; padding: 40px 0 8px; }
.ftr h2.ftr-h { color: var(--gold); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.ftr a { color: var(--white); }
.ftr a:hover { color: var(--gold); }
.ftr p { font-size: .92rem; margin-bottom: 10px; }
.ftr-brand { margin-bottom: 10px; }
.ftr-logo-box {
  display: inline-block; background: var(--white);
  border-radius: var(--radius); padding: 8px 14px;
}
.brand-logo-footer { height: 36px; max-width: none; }
.ftr-affil { color: var(--gold); font-size: .82rem !important; font-weight: 600; }
.ftr-slot { color: #9DBFAF; font-style: italic; }
.ftr-legal { border-top: 1px solid rgba(255, 255, 255, .25); padding: 16px 0 24px; margin-top: 20px; }
.ftr-legal p { font-size: .8rem; color: #9DBFAF; margin-bottom: 6px; }

/* ---------- floaters & sticky bar ---------- */
.floaters {
  position: fixed; right: 14px; bottom: 14px; z-index: 70;
  display: flex; flex-direction: column; gap: 10px;
}
.float-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; color: var(--white);
  border: 2px solid var(--white);
}
.fb-wa { background: var(--green-600); }
.fb-call { background: var(--green-900); }
.float-btn:hover { text-decoration: none; }
.float-btn .ic { width: 24px; height: 24px; }

.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
  display: flex; gap: 10px; padding: 10px var(--pad);
  background: var(--white); border-top: 1px solid var(--line);
}
.stickybar .btn-wa { flex: 1; }
.stickybar .btn-outline { width: 52px; padding: 0; }
.has-sticky { padding-bottom: 76px; }
.has-sticky .floaters { bottom: 90px; }

/* ---------- admin ---------- */
.admin-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.admin-head h1 { margin: 0; }
.table-wrap { overflow-x: auto; margin-bottom: 26px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; color: var(--green-900); border-bottom: 2px solid var(--green-900); padding: 8px 10px; }
.tbl td { border-bottom: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.tbl .chip { border: 1px solid var(--green-600); cursor: pointer; }
.tbl form { margin: 0; }

/* ---------- misc ---------- */
.notfound { text-align: center; padding: 40px 0; }
.prose h2 { margin-top: 1.6em; font-size: 1.15rem; }
.prose h2:first-child { margin-top: 0; }

/* =================== 480px =================== */
@media (min-width: 480px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .trust-in { grid-template-columns: repeat(3, 1fr); }
}

/* =================== 768px =================== */
@media (min-width: 768px) {
  :root { --pad: 24px; }
  body { font-size: 17px; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
  .brand-logo { height: 52px; }
  .brand-logo-footer { height: 42px; }
  .sec { padding: 64px 0; }
  .hero-in { grid-template-columns: 1.1fr .9fr; gap: 40px; padding: 56px 0; }
  .hero-media { order: 0; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .quiz { grid-template-columns: 1.2fr .8fr; align-items: center; padding: 30px; }
  .about-strip { grid-template-columns: .85fr 1.15fr; gap: 40px; }
  .split-2 { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 40px; }
  .product { grid-template-columns: 1fr 1.1fr; gap: 44px; }
  .shop-tools { grid-template-columns: 320px 1fr; align-items: center; }
  .ftr-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
  .form-inline { grid-template-columns: 1fr 1fr auto; align-items: end; }
  .stickybar { display: none; }
  .has-sticky { padding-bottom: 0; }
  .has-sticky .floaters { bottom: 14px; }
}

/* =================== 1024px =================== */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav {
    display: flex; position: static; flex-direction: row; align-items: center;
    gap: 4px; padding: 0; border: 0; margin-left: auto;
  }
  .nav a { padding: 8px 12px; min-height: 44px; }
  .nav-cta { margin: 0 0 0 8px; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .needs { grid-template-columns: 1fr 1fr; }
}

/* =================== 1440px =================== */
@media (min-width: 1440px) {
  :root { --wrap: 78rem; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
}

/* ============ mobile overrides: compact card grids ============
   360px-first audit: product cards, need tiles, campaign thumbs and
   owner photos are readable at half width -> 2 per line.
   Kept single-column: steps, forms, long rows, contact rows, footer. */
@media (max-width: 767px) {
  /* one horizontal spacing rhythm: edge -> card = gap = inner pad = 6px */
  :root { --pad: 6px; }

  .grid, .tiles, .campaign-row, .marquee-track { gap: 6px; }
  .card-body { padding: 6px; }
  .tile { padding: 6px; min-height: 84px; }
  .about-media { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

  /* paired buttons sit on one line */
  .btn-row:not(:has(> :nth-child(3))) { flex-wrap: nowrap; gap: 10px; }
  .btn-row:not(:has(> :nth-child(3))) .btn {
    flex: 1 1 0; min-width: 0; min-height: 44px;
    padding: 8px 10px; font-size: .9rem; gap: .45em;
  }
  .btn-row:not(:has(> :nth-child(3))) .btn .ic { width: 1.15em; height: 1.15em; }
}
