/* =========================================================
   MH Auto — Design system (converted from Tailwind/oklch)
   ========================================================= */
:root {
  --radius: 0.625rem;
  --background: oklch(1 0 0);
  --foreground: oklch(0.18 0.02 160);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.18 0.02 160);
  --primary: oklch(0.424 0.076 160.3);
  --primary-foreground: oklch(0.99 0.005 160);
  --secondary: oklch(0.95 0.02 160);
  --secondary-foreground: oklch(0.32 0.06 160);
  --muted: oklch(0.96 0.005 160);
  --muted-foreground: oklch(0.45 0.02 160);
  --accent: oklch(0.485 0.124 248.3);
  --accent-foreground: oklch(0.99 0.005 160);
  --destructive: oklch(0.588 0.242 27.3);
  --border: oklch(0.92 0.008 160);
  --input: oklch(0.92 0.008 160);
  --ring: oklch(0.424 0.076 160.3);
  --brand-blue: oklch(0.485 0.124 248.3);
  --brand-red: oklch(0.588 0.242 27.3);
  --brand-dark: oklch(0.30 0.05 160);

  --font-sans: "Inter", system-ui, sans-serif;
  --font-heading: "Barlow Condensed", "Inter", system-ui, sans-serif;
}

/* ---------- Base ---------- */
* { border-color: var(--border); }

html { font-family: var(--font-sans); scroll-behavior: smooth; }

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 1 auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
}

a { text-decoration: none; }

.container-mh { max-width: 80rem; margin-inline: auto; padding-inline: 1.5rem; width: 100%; }
.container-mh--narrow { max-width: 64rem; }

/* ---------- Semantic colour helpers ---------- */
.text-foreground { color: var(--foreground) !important; }
.text-muted-foreground { color: var(--muted-foreground) !important; }
.text-primary { color: var(--primary) !important; }
.text-primary-foreground { color: var(--primary-foreground) !important; }
.text-brand-red { color: var(--brand-red) !important; }
.bg-background { background-color: var(--background) !important; }
.bg-card { background-color: var(--card) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-brand-dark { background-color: var(--brand-dark) !important; }
.bg-muted { background-color: var(--muted) !important; }
.bg-muted-soft { background-color: color-mix(in oklab, var(--muted) 20%, transparent) !important; }

.border-mh { border: 1px solid var(--border) !important; }
.rounded-mh { border-radius: var(--radius); }

.uppercase-wide { text-transform: uppercase; letter-spacing: .05em; }
.eyebrow {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .2em; color: var(--primary);
}
.section-title {
  font-size: 1.125rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: .1em; color: var(--foreground);
}

/* ---------- Buttons ---------- */
.btn-mh {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: var(--radius); font-size: .8125rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em; padding: .75rem 1.5rem;
  border: 1px solid transparent; cursor: pointer; transition: all .2s ease;
  line-height: 1.2;
}
.btn-mh-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-mh-primary:hover { opacity: .9; color: var(--primary-foreground); }
.btn-mh-outline { border-color: var(--border); color: var(--foreground); background: transparent; }
.btn-mh-outline:hover { background: var(--muted); color: var(--foreground); }
.btn-mh-ghost-light { border-color: rgba(255,255,255,.3); color: #fff; background: transparent; }
.btn-mh-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-mh-white { background: #fff; color: var(--primary); }
.btn-mh-white:hover { background: rgba(255,255,255,.9); color: var(--primary); }
.btn-mh-sm { padding: .625rem 1.25rem; font-size: .75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--border);
  background: #fff;
  backdrop-filter: blur(8px);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1rem;
}
.site-logo { height: 2.5rem; width: auto; object-fit: contain; }
@media (min-width: 768px){ .site-logo { height: 3rem; } }

.main-nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px){ .main-nav { display: flex; } }
.main-nav a {
  font-size: .875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .03em; color: var(--foreground); padding-bottom: 2px;
  border-bottom: 2px solid transparent; transition: color .15s ease;
}
.main-nav a:hover { color: var(--primary); }
.main-nav a.active { color: var(--primary); border-bottom-color: var(--brand-red); }

.icon-btn {
  border: none; background: transparent; color: var(--foreground);
  border-radius: 999px; padding: .5rem; position: relative; cursor: pointer;
  display: inline-flex; line-height: 1;
}
.icon-btn:hover { background: var(--muted); }
.badge-count {
  position: absolute; right: -.25rem; top: -.25rem;
  height: 1.25rem; width: 1.25rem; border-radius: 999px;
  background: var(--brand-red); color: #fff; font-size: .625rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-toggle { display: inline-flex; }
@media (min-width: 768px){ .nav-toggle { display: none; } }

/* mobile nav panel */
.mobile-nav {
  display: none; border-top: 1px solid var(--border);
  background: var(--background); padding: .5rem 1.5rem 1rem;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: .625rem 0; font-size: .9rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .03em; color: var(--foreground);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a.active { color: var(--primary); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--primary-foreground);
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--primary) 85%, transparent),
    color-mix(in oklab, var(--brand-dark) 80%, transparent) 55%,
    color-mix(in oklab, var(--brand-blue) 70%, transparent));
}
.hero__img {
  position: absolute; inset: 0; height: 100%; width: 100%;
  object-fit: cover; opacity: .25; mix-blend-mode: overlay;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    color-mix(in oklab, var(--primary) 40%, transparent), transparent,
    color-mix(in oklab, var(--brand-dark) 60%, transparent));
}
.hero__content { position: relative; padding-block: 5rem; text-align: center; }
@media (min-width:768px){ .hero__content { padding-block: 7rem; } }
.hero__eyebrow {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .35em; color: rgba(255,255,255,.7);
}
.hero h1 {
  margin: 1.25rem auto 0; max-width: 56rem; font-weight: 900;
  line-height: 1.2; letter-spacing: -.02em;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
}
.hero__lead { margin: 1.5rem auto 0; max-width: 42rem; color: rgba(255,255,255,.8); font-size: 1.05rem; }

/* Solid dark hero (products / order) */
.hero-dark { position: relative; overflow: hidden; background: var(--brand-dark); color: var(--primary-foreground); }
.hero-dark__img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; opacity: .25; }
.hero-dark__overlay-v {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    color-mix(in oklab, var(--brand-dark) 85%, transparent),
    color-mix(in oklab, var(--brand-dark) 70%, transparent), var(--brand-dark));
}
.hero-dark__overlay-h {
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--brand-dark),
    color-mix(in oklab, var(--brand-dark) 80%, transparent), transparent);
}

/* ---------- Cards / feature blocks ---------- */
.card-mh {
  border: 1px solid var(--border); background: var(--card);
  border-radius: var(--radius);
}
.card-hover { transition: border-color .2s ease, box-shadow .2s ease; }
.card-hover:hover { border-color: var(--primary); box-shadow: 0 4px 12px rgba(0,0,0,.08); }

.icon-circle {
  height: 3rem; width: 3rem; flex: 0 0 auto; border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--primary) 30%, transparent);
  color: var(--primary); display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}
.icon-square {
  height: 2rem; width: 2rem; flex: 0 0 auto; border-radius: .375rem;
  background: color-mix(in oklab, var(--primary) 10%, transparent);
  color: var(--primary); display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.category-link:hover .icon-square { background: var(--primary); color: var(--primary-foreground); }

.placeholder-box {
  display: flex; align-items: center; justify-content: center;
  border-radius: .375rem; background: var(--muted);
  color: var(--muted-foreground); font-size: .75rem; text-align: center;
}
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-vertical { aspect-ratio: 9 / 12; }

/* ---------- Video play button ---------- */
.play-btn {
  height: 5rem; width: 5rem; border-radius: 999px; background: rgba(255,255,255,.95);
  border: none; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 40px rgba(0,0,0,.25); transition: transform .2s ease; cursor: pointer;
  color: var(--primary); font-size: 2rem;
}
.play-btn:hover { transform: scale(1.1); }
.play-btn--sm { height: 3rem; width: 3rem; box-shadow: none; font-size: 1.25rem; }
.play-btn--xs { height: 2.5rem; width: 2.5rem; box-shadow: none; font-size: 1rem; }
.video-thumb { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--brand-dark); }
.video-duration {
  position: absolute; bottom: .5rem; right: .5rem; border-radius: .25rem;
  background: rgba(0,0,0,.7); color: #fff; font-size: .625rem; font-weight: 700;
  padding: .125rem .375rem;
}

/* ---------- Search bar (products) ---------- */
.search-sticky {
  backdrop-filter: blur(8px);
}
.search-card {
  margin-top: -3.5rem; border: 1px solid var(--border); background: var(--card);
  border-radius: 1rem; padding: 1.5rem; box-shadow: 0 20px 40px rgba(0,0,0,.12);
}
.search-input-wrap {
  display: flex; align-items: center; gap: .5rem; border-radius: .75rem;
  border: 1px solid var(--border); background: var(--background); padding: .375rem 1rem;
}
.search-input-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 20%, transparent); }
.search-input-wrap input { flex: 1; border: none; background: transparent; padding: .5rem 0; font-size: .875rem; outline: none; color: var(--foreground); }
.chip {
  border-radius: 999px; border: 1px solid color-mix(in oklab, var(--primary) 30%, transparent);
  padding: .25rem .75rem; font-size: .75rem; color: var(--primary); background: transparent;
  cursor: pointer; transition: all .15s ease;
}
.chip:hover { background: var(--primary); color: var(--primary-foreground); }

/* ---------- Form controls ---------- */
.input-mh, select.input-mh, textarea.input-mh {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--background); padding: .625rem .75rem; font-size: .875rem;
  color: var(--foreground); outline: none; transition: border-color .15s ease;
}
.input-mh:focus { border-color: var(--primary); }
.field-label { display: block; margin-bottom: .375rem; font-size: .75rem; font-weight: 600; color: var(--foreground); }
.select-soft {
  border-radius: .5rem; border: 1px solid var(--border); background: var(--background);
  padding: .625rem .75rem; font-size: .875rem; color: var(--muted-foreground); width: 100%;
  transition: border-color .15s ease;
}
.select-soft:hover, .select-soft:focus { border-color: var(--primary); outline: none; }
.dropzone {
  display: flex; align-items: center; justify-content: center; height: 42px;
  border-radius: var(--radius); border: 2px dashed var(--border); padding: 0 .75rem;
  font-size: .75rem; color: var(--muted-foreground); text-align: center;
}

/* toggle segment buttons */
.seg-btn {
  border-radius: var(--radius); border: 1px solid var(--border); padding: .625rem .75rem;
  font-size: .75rem; font-weight: 600; color: var(--foreground); background: transparent; cursor: pointer;
}
.seg-btn.active { border-color: var(--primary); color: var(--primary); background: color-mix(in oklab, var(--primary) 5%, transparent); }

/* ---------- Price cards (order) ---------- */
.price-card { border-radius: var(--radius); border: 1px solid var(--border); padding: 1.25rem; }
.price-card--primary { border-color: color-mix(in oklab, var(--primary) 40%, transparent); background: color-mix(in oklab, var(--primary) 5%, transparent); }
.price-card--blue { border-color: #93c5fd; background: #eff6ff; }
.price-card--red { border-color: #fecaca; background: #fef2f2; }
.price-card--yellow { border-color: #fde68a; background: #fefce8; }

/* stat blocks (partner) */
.stat-block { border-left: 4px solid var(--brand-red); background: rgba(255,255,255,.05); padding: .75rem 1rem; border-radius: .25rem; }

/* ---------- Trust badges ---------- */
.trust-icon { font-size: 1.5rem; color: var(--primary); flex: 0 0 auto; }

/* ---------- Reviews / stars ---------- */
.stars { color: #facc15; display: inline-flex; gap: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: var(--primary-foreground); }
.site-footer h4 { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.site-footer .muted-70 { color: rgba(255,255,255,.7); }
.site-footer a.muted-70:hover { color: #fff; }
.social-circle {
  height: 2.25rem; width: 2.25rem; border-radius: 999px; background: rgba(255,255,255,.1);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  font-size: .75rem; font-weight: 700; transition: background .15s ease;
}
.social-circle:hover { background: var(--brand-red); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Partner block / social pill chips ---------- */
.info-pill { display: inline-flex; align-items: center; gap: .5rem; border-radius: var(--radius); background: rgba(255,255,255,.1); padding: .5rem 1rem; font-size: .875rem; }

.channel-icon { height: 3.5rem; width: 3.5rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem; }

/* ---------- Order page polish ---------- */
.form-card { box-shadow: 0 12px 40px rgba(0,0,0,.06); padding: 1.75rem; }
@media (min-width: 768px){ .form-card { padding: 2.25rem; } }

.form-section + .form-section { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.form-section__head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.form-section__num {
  height: 2rem; width: 2rem; flex: 0 0 auto; border-radius: 999px;
  background: var(--primary); color: var(--primary-foreground);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem;
}
.form-section__title {
  font-size: 1rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; color: var(--foreground); margin: 0;
}
.form-actions { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* segmented control aligned to input height */
.seg-btn {
  min-height: 44px; width: 100%; display: inline-flex; align-items: center;
  justify-content: center; text-align: center; line-height: 1.15; gap: .4rem;
}
.seg-btn.active { box-shadow: inset 0 0 0 1px var(--primary); }

/* sticky price rail */
.price-rail { position: sticky; top: 90px; }

/* quote summary header */
.quote-summary__img {
  height: 4rem; width: 4rem; flex: 0 0 auto; border-radius: .625rem;
  background: color-mix(in oklab, var(--primary) 8%, transparent);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.5rem;
}

/* redesigned price cards */
.price-card { position: relative; overflow: hidden; }
.price-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.08); transform: translateY(-1px); }
.price-card__icon {
  height: 2.75rem; width: 2.75rem; flex: 0 0 auto; border-radius: .625rem;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--primary);
  background: color-mix(in oklab, var(--primary) 12%, transparent);
}
.price-card--blue   .price-card__icon { color:#2563eb; background:#dbeafe; }
.price-card--red    .price-card__icon { color:#dc2626; background:#fee2e2; }
.price-card--yellow .price-card__icon { color:#d97706; background:#fef3c7; }
.price-card__tag {
  font-size: .72rem; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: var(--foreground);
}
.price-card__amount { font-size: 1.45rem; font-weight: 900; color: var(--foreground); line-height: 1.05; }
.save-chip {
  display: inline-block; margin-top: .55rem;
  background: color-mix(in oklab, var(--brand-red) 14%, transparent);
  color: var(--brand-red); font-size: .65rem; font-weight: 800;
  padding: .2rem .55rem; border-radius: 999px; letter-spacing: .02em;
}
.recommend-inline {
  display: inline-block; vertical-align: middle; margin-left: .4rem;
  background: var(--primary); color: var(--primary-foreground);
  font-size: .58rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: .12rem .45rem; border-radius: 999px;
}

/* utilities */
.fw-black { font-weight: 800 !important; }
.inset-0 { inset: 0 !important; }
.tab-active { color: var(--primary) !important; border-bottom: 2px solid var(--primary); }
.tiny { font-size: .625rem; }
.divide-mh > * + * { border-top: 1px solid var(--border); }
.list-reset { list-style: none; padding: 0; margin: 0; }
