/* ==========================================================================
   Mac Motors homepage: optimized reference implementation
   Source of design values: Main.dc.html (Claude Design export).
   Breakpoints mirror the design's container queries: 1180 / 960 / 640px.
   ========================================================================== */

/* Self-hosted latin subsets (SIL Open Font License): no third-party requests */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Barlow;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --mm-red: #C8262B;
  --mm-red-dark: #A51E23;
  --mm-navy: #0B2A4A;
  --mm-navy-light: #123E6B;
  --mm-sky: #0099D8;
  --mm-sky-tint: #EAF4FA;
  --mm-ink: #1F2329;
  --mm-slate-700: #3D4652;
  --mm-slate-600: #4A5563;
  --mm-slate-500: #5A6470;
  --mm-line: #E3E7EB;
  --mm-line-strong: #D5DBE1;
  --mm-input-line: #CBD2D9;
  --mm-surface: #F3F5F7;
  --mm-white: #FFFFFF;
  --mm-photo-bg: #E9E3D6;

  --mm-font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mm-font-display: Barlow, Inter, system-ui, sans-serif;

  --mm-ease: cubic-bezier(.2, .7, .2, 1);
  --mm-gutter: 40px;
  --mm-max: 1360px;
  --mm-section-y: 120px;
  --mm-focus: 3px solid var(--mm-sky);
}

/* ---- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--mm-white);
  color: var(--mm-ink);
  font-family: var(--mm-font-body);
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--mm-navy); text-decoration: none; }
a:hover { color: var(--mm-red); }

h1, h2, h3, p { margin: 0; }

ul[role="list"], .mm-list { list-style: none; margin: 0; padding: 0; }

:is(a, button, input, select, summary):focus-visible {
  outline: var(--mm-focus);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--mm-navy);
  color: var(--mm-white);
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--mm-white); }

.wrap {
  width: 100%;
  max-width: var(--mm-max);
  margin: 0 auto;
  padding: 0 var(--mm-gutter);
}

.hd { font-family: var(--mm-font-display); }

/* ---- Buttons & links ---------------------------------------------------- */
.arw { flex: none; transition: transform .28s var(--mm-ease); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font: 600 16px/1 var(--mm-font-body);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .25s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn:hover .arw, .lnk:hover .arw, .card:hover .arw { transform: translateX(5px); }

.btn-red { background: var(--mm-red); color: var(--mm-white); }
.btn-red:hover { background: var(--mm-red-dark); color: var(--mm-white); box-shadow: 0 10px 24px -10px rgba(200, 38, 43, .7); }

.btn-blue { background: var(--mm-navy); color: var(--mm-white); }
.btn-blue:hover { background: var(--mm-navy-light); color: var(--mm-white); box-shadow: 0 10px 24px -10px rgba(11, 42, 74, .6); }

.btn-line { background: var(--mm-white); color: var(--mm-navy); border-color: var(--mm-navy); }
.btn-line:hover { background: var(--mm-navy); color: var(--mm-white); }

.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

.lnk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  color: var(--mm-navy);
  font-size: 15px;
  font-weight: 600;
  transition: color .2s;
}
.lnk:hover, .card:hover .lnk { color: var(--mm-red); }
.lnk-sm { font-size: 14px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--mm-red);
  font: 600 13px var(--mm-font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--mm-red); }

/* ---- Utility bar -------------------------------------------------------- */
.util {
  background: var(--mm-surface);
  border-bottom: 1px solid var(--mm-line);
  color: var(--mm-slate-700);
  font-size: 13px;
}
.util-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.util-l { display: flex; align-items: center; gap: 10px; }
.util-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--mm-sky); flex: none; }
.util-r { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.util-r a { display: inline-flex; align-items: center; min-height: 40px; color: var(--mm-slate-700); transition: color .2s; }
.util-r a:hover { color: var(--mm-red); }
.util-r .util-phone { gap: 6px; color: var(--mm-navy); font-weight: 600; }

/* ---- Header ------------------------------------------------------------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--mm-line);
  transition: box-shadow .3s;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .hdr { -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
}
/* Compact state: shadow + logo scale only, so the sticky header never changes
   height while scrolling (a height change would shift the page and add CLS). */
.hdr.is-compact { box-shadow: 0 10px 30px -18px rgba(11, 42, 74, .45); }

.hbar { height: 88px; display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }

.logo-link { flex: none; display: block; }
.logo { height: 56px; width: auto; transform-origin: left center; transition: transform .3s var(--mm-ease); }
.hdr.is-compact .logo { transform: scale(.75); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--mm-ink);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--mm-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--mm-ease);
}
.nav a:hover { color: var(--mm-navy); background: var(--mm-surface); }
.nav a:hover::after { transform: scaleX(1); }

.hspacer { flex: 1; }

.hsearch {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 260px;
  min-width: 170px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--mm-line-strong);
  border-radius: 8px;
  background: #F7F9FA;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.hsearch:focus-within { border-color: var(--mm-sky); background: var(--mm-white); box-shadow: 0 0 0 3px rgba(0, 153, 216, .18); }
.hsearch svg { flex: none; color: var(--mm-slate-500); }
.hsearch input {
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--mm-ink);
  font: 400 14px var(--mm-font-body);
}
.hsearch input:focus { outline: none; }

.icons { display: flex; align-items: center; gap: 4px; }
.icb {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--mm-navy);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.icb:hover { background: var(--mm-surface); color: var(--mm-red); }
.badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--mm-red);
  color: var(--mm-white);
  font: 600 11px/18px var(--mm-font-body);
  text-align: center;
}
.burger { display: none; }

/* Mobile menu panel (opened by the burger button) */
.mnav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--mm-white);
  border-bottom: 1px solid var(--mm-line);
  box-shadow: 0 24px 40px -24px rgba(11, 42, 74, .35);
}
.mnav[hidden] { display: none; }
.mnav-inner { display: grid; gap: 4px; padding-top: 12px; padding-bottom: 24px; }
.mnav a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  border-bottom: 1px solid var(--mm-line);
  color: var(--mm-ink);
  font-size: 17px;
  font-weight: 500;
}
.mnav a:not(.btn):hover { color: var(--mm-red); }
.mnav .hsearch { display: flex; width: 100%; max-width: none; margin: 8px 0; }
.mnav .btn { margin-top: 12px; }

/* ---- Hero --------------------------------------------------------------- */
.hero-sec { padding-top: 28px; }
.hero { position: relative; }
.heroimg {
  position: relative;
  height: 680px;
  border-radius: 22px;
  overflow: hidden;
  background: #D9CDB7;
}
.heroimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 55%;
  animation: mm-kb 14s ease-out both;
}
.heropanel {
  position: absolute;
  left: 48px;
  top: 56px;
  width: 560px;
  padding: 48px 48px 44px;
  border-radius: 20px;
  background: var(--mm-white);
  box-shadow: 0 30px 60px -30px rgba(11, 42, 74, .45);
}
.h1 {
  margin-top: 18px;
  color: var(--mm-navy);
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}
.hero-lead { margin-top: 22px; color: var(--mm-slate-700); font-size: 18px; line-height: 1.6; }
.heroctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---- Parts finder ------------------------------------------------------- */
.finder {
  position: relative;
  margin: -84px 48px 0;
  padding: 28px 32px 32px;
  border-radius: 18px;
  background: var(--mm-white);
  box-shadow: 0 24px 60px -24px rgba(11, 42, 74, .35), 0 0 0 1px var(--mm-line);
}
.finder-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
.tabs {
  display: flex;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  padding: 4px;
  border-radius: 10px;
  background: var(--mm-surface);
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--mm-slate-600);
  font: 600 15px var(--mm-font-body);
  cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.tab:hover { color: var(--mm-navy); }
.tab[aria-selected="true"] { background: var(--mm-white); color: var(--mm-navy); box-shadow: 0 2px 8px -2px rgba(11, 42, 74, .25); }

.prow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end; }
.frow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 16px; align-items: end; }
.fld { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fld label { color: var(--mm-slate-700); font: 600 13px var(--mm-font-body); }

.inp {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1px solid var(--mm-input-line);
  border-radius: 8px;
  background: var(--mm-white);
  color: var(--mm-ink);
  font: 400 16px var(--mm-font-body);
  transition: border-color .2s, box-shadow .2s;
}
.inp:hover { border-color: #8C98A5; }
.inp:focus { border-color: var(--mm-sky); box-shadow: 0 0 0 3px rgba(0, 153, 216, .18); outline: none; }
.inp:focus-visible { outline: var(--mm-focus); outline-offset: 2px; }
.inp:disabled { background-color: var(--mm-surface); color: var(--mm-slate-500); cursor: not-allowed; }
select.inp {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--mm-navy) 50%),
    linear-gradient(135deg, var(--mm-navy) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.srch { position: relative; }
.srch svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--mm-slate-500); pointer-events: none; }
.srch .inp { height: 60px; padding-left: 50px; font-size: 17px; }
.fbtn { min-height: 56px; }
.prow .fbtn { min-height: 60px; padding: 0 32px; }
.finder-note { margin-top: 18px; color: var(--mm-slate-500); font-size: 13px; }
.finder-note a { font-weight: 600; text-decoration: underline; }

/* ---- Sections ----------------------------------------------------------- */
.sec { padding: var(--mm-section-y) 0; }
.sec-alt { background: var(--mm-surface); }
.shead { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-bottom: 48px; }
.shead-copy { max-width: 680px; }
.h2 {
  margin-top: 16px;
  color: var(--mm-navy);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.015em;
}
.lead { margin-top: 16px; color: var(--mm-slate-600); font-size: 18px; line-height: 1.6; }

.g4, .g3 { display: grid; gap: 28px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---- Cards -------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 18px;
  background: var(--mm-white);
  color: inherit;
  transition: transform .35s var(--mm-ease), box-shadow .35s var(--mm-ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -26px rgba(11, 42, 74, .45); }

.ph { position: relative; overflow: hidden; border-radius: 16px; background: var(--mm-photo-bg); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--mm-ease); }
.card:hover .ph img { transform: scale(1.06); }
.ph::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--mm-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--mm-ease);
}
.card:hover .ph::after { transform: scaleX(1); }
.ph-4x3 { aspect-ratio: 4 / 3; }

.card-title { color: var(--mm-navy); font-size: 28px; font-weight: 700; letter-spacing: -.01em; }

/* Series cards */
.scard { padding: 10px 10px 26px; border: 1px solid var(--mm-line); }
.scard-body { display: flex; flex-direction: column; flex: 1; gap: 14px; padding: 22px 14px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--mm-surface);
  color: var(--mm-slate-700);
  font: 500 13px var(--mm-font-body);
}
.scard .lnk { margin-top: auto; }

/* Stretched link: the title link covers the whole card; model chips sit above it */
.scard { position: relative; }
.card-link { color: inherit; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-link:hover { color: inherit; }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: var(--mm-focus); outline-offset: 2px; }
.chips { position: relative; z-index: 2; }
a.chip { min-height: 32px; transition: background-color .2s, color .2s; }
a.chip:hover { background: var(--mm-navy); color: var(--mm-white); }


/* ---- About -------------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.about-ph { aspect-ratio: 5 / 4; border-radius: 22px; }
.about-ph img { object-position: 40% 50%; }
.about-copy p:not(.eyebrow) { margin-top: 24px; color: var(--mm-slate-700); font-size: 18px; line-height: 1.65; }
.about-copy .stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--mm-line);
}
.stat-value { display: block; color: var(--mm-navy); font-size: 44px; font-weight: 700; line-height: 1; }
.stats li:first-child .stat-value { color: var(--mm-red); }
.stat-label { display: block; margin-top: 8px; color: var(--mm-slate-600); font-size: 14px; }

/* ---- Resources ---------------------------------------------------------- */
.rcard { padding: 12px 12px 28px; border: 1px solid var(--mm-line); }
.rart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--mm-surface);
  transition: background-color .35s;
}
.card:hover .rart { background: var(--mm-sky-tint); }
.rart img { width: auto; height: 120px; transition: transform .5s var(--mm-ease); }
.card:hover .rart img { transform: scale(1.08) rotate(-2deg); }
.rtag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--mm-white);
  color: var(--mm-navy);
  font: 600 12px var(--mm-font-body);
}
.rcard-body { display: flex; flex-direction: column; gap: 12px; padding: 24px 16px 0; }
.rcard-body p { color: var(--mm-slate-600); font-size: 16px; line-height: 1.6; }
.rcard .lnk { margin-top: 6px; }

/* ---- CTA ---------------------------------------------------------------- */
.cta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #D6E8F3;
  border-radius: 24px;
  background: #EEF6FB;
}
.cta-copy { display: flex; flex-direction: column; justify-content: center; padding: 72px 64px; }
.cta-copy > p:not(.eyebrow) { max-width: 520px; margin-top: 20px; color: var(--mm-slate-700); font-size: 19px; line-height: 1.6; }
.ctab { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-contacts { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 36px; padding-top: 28px; border-top: 1px solid #D6E8F3; }
.cta-label { color: var(--mm-slate-600); font: 600 12px var(--mm-font-body); letter-spacing: .06em; text-transform: uppercase; }
.cta-contacts a { color: var(--mm-navy); font-size: 26px; font-weight: 700; overflow-wrap: anywhere; }
.cta-contacts a:hover { color: var(--mm-red); }
.ctaimg { min-height: 100%; border-radius: 0; }
.ctaimg img { position: absolute; inset: 0; object-position: 40% 50%; }

/* ---- Footer ------------------------------------------------------------- */
.ftr { background: var(--mm-surface); border-top: 1px solid var(--mm-line); }
.ftr-inner { padding-top: 80px; padding-bottom: 32px; }
.fgrid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 48px; }
.fbrand { display: flex; flex-direction: column; gap: 18px; max-width: 380px; }
.fbrand img { height: 64px; width: auto; align-self: flex-start; }
.fbrand p, .fbrand address { color: var(--mm-slate-700); font-size: 15px; line-height: 1.6; }
.fbrand address { font-style: normal; line-height: 1.75; }
.fbrand address a { font-weight: 600; }
.social { display: flex; gap: 4px; margin-left: -10px; }
.fhead { margin: 0 0 18px; color: var(--mm-navy); font-size: 18px; font-weight: 700; }
.fl { display: flex; flex-direction: column; gap: 4px; }
.fl a { display: inline-flex; align-items: center; min-height: 32px; color: var(--mm-slate-700); font-size: 15px; transition: color .2s; }
.fl a:hover { color: var(--mm-red); }
.legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--mm-line-strong);
  color: var(--mm-slate-600);
  font-size: 14px;
}
.legal ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.legal a { display: inline-flex; align-items: center; min-height: 32px; color: var(--mm-slate-600); }
.legal a:hover { color: var(--mm-red); }

/* ---- Motion ------------------------------------------------------------- */
@keyframes mm-kb { from { transform: scale(1.08); } to { transform: scale(1); } }
/* Transform-only entrance: the H1 panel stays visible from the first paint,
   so the animation cannot delay Largest Contentful Paint. */
@keyframes mm-rise-in { from { transform: translateY(24px); } to { transform: none; } }
@keyframes mm-reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hin { animation: mm-rise-in .9s var(--mm-ease) both; }
.hin2 { animation: mm-rise-in .9s .15s var(--mm-ease) both; }

/* Scroll reveal without JavaScript where scroll-driven animations exist */
@supports (animation-timeline: view()) {
  .rv { animation: mm-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
  }
  .rv { animation: none !important; }
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav, .hdr .hbar > .hsearch { display: none; }
  .burger { display: inline-flex; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fbrand { grid-column: 1 / -1; }
}

@media (min-width: 1181px) {
  .mnav { display: none; }
}

@media (max-width: 960px) {
  :root { --mm-gutter: 28px; --mm-section-y: 88px; }
  .util-l { display: none; }
  .heroimg { height: 460px; }
  .heropanel { position: relative; left: auto; top: auto; width: auto; margin: -120px 20px 0; padding: 36px 32px; }
  .finder { margin: 24px 0 0; }
  .frow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frow .fbtn { grid-column: 1 / -1; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 > li:nth-child(3):last-child { grid-column: 1 / -1; }
  .cta { grid-template-columns: minmax(0, 1fr); }
  .ctaimg { order: -1; height: 280px; min-height: 0; }
  .h1 { font-size: 56px; }
  .h2 { font-size: 42px; }
}

@media (max-width: 640px) {
  :root { --mm-gutter: 16px; --mm-section-y: 72px; }
  html { scroll-padding-top: 80px; }
  .hbar { height: 72px; gap: 12px; }
  .logo { height: 44px; }
  .hbar > .quote { display: none; }
  .util-r .hide-s { display: none; }
  .heroimg { height: 340px; border-radius: 16px; }
  .heropanel { margin: -72px 10px 0; padding: 28px 22px; border-radius: 16px; }
  .h1 { font-size: clamp(34px, 11vw, 42px); }
  .h2 { font-size: clamp(28px, 9vw, 34px); }
  .finder { padding: 20px 18px 22px; border-radius: 16px; }
  .frow, .prow { grid-template-columns: minmax(0, 1fr); }
  .tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; padding: 0 10px; font-size: 14px; }
  .g4, .g3 { grid-template-columns: minmax(0, 1fr); }
  .g3 > li:nth-child(3):last-child { grid-column: auto; }
  .about-copy .stats { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .shead { margin-bottom: 32px; }
  .card-title { font-size: 26px; }
  .cta-copy { padding: 40px 22px; }
  .cta-contacts a { font-size: 22px; }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
  .ctab, .heroctas { flex-direction: column; align-items: stretch; }
  .ctab .btn, .heroctas .btn { width: 100%; white-space: normal; }
}

@media (max-width: 359px) {
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .tab svg { display: none; }
}
