/* ==========================================================================
   tirerepairnear.me — main.css
   Design tokens + components. No framework dependency.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --surface: #131313;
  --surface-dim: #131313;
  --surface-bright: #393939;
  --surface-container-lowest: #0e0e0e;
  --surface-container-low: #1b1c1c;
  --surface-container: #1f2020;
  --surface-container-high: #2a2a2a;
  --surface-container-highest: #353535;

  --on-surface: #e4e2e1;
  --on-surface-variant: #d5c4ab;
  --secondary: #c8c6c5;

  --primary: #ffdca1;
  --primary-container: #ffb800;
  --primary-fixed-dim: #ffba20;
  --on-primary: #412d00;

  --outline: #9e8f78;
  --outline-variant: #514532;

  --error: #ffb4ab;
  --success: #7fd18b;

  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1280px;
  --gutter: 20px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-head); font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
/* Use padding-block ONLY — the shorthand was zeroing out .container's
   left/right gutters on elements that carry both classes. */
.section { padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 1024px) { .section { padding-top: 88px; padding-bottom: 88px; } }
.section--tight { padding-top: 48px; padding-bottom: 48px; }

/* Safety net: any .container always keeps its side gutters. */
.section.container { padding-left: var(--gutter); padding-right: var(--gutter); }
.section--lowest { background: var(--surface-container-lowest); }
.section--low { background: var(--surface-container-low); border-top: 1px solid var(--outline-variant); border-bottom: 1px solid var(--outline-variant); }
main { padding-bottom: 96px; }
@media (min-width: 768px) { main { padding-bottom: 0; } }

/* ---------- Type ---------- */
.fluid-hero  { font-size: clamp(30px, 7vw, 64px);   line-height: 1.06; letter-spacing: -0.02em; font-weight: 800; }
.fluid-h2    { font-size: clamp(26px, 5vw, 48px);   line-height: 1.1; letter-spacing: -0.01em; }
.fluid-h2-lg { font-size: clamp(28px, 6vw, 56px);   line-height: 1.1; }
.fluid-h3    { font-size: clamp(20px, 3.5vw, 32px); line-height: 1.2; }
.fluid-phone { font-size: clamp(24px, 5.5vw, 48px); line-height: 1.1; font-weight: 800; }
.fluid-body  { font-size: clamp(15px, 2vw, 20px);   line-height: 1.6; }

.uc     { text-transform: uppercase; }
.italic { font-style: italic; }
.amber  { color: var(--primary-container); }
.muted  { color: var(--secondary); }
.no-overflow { min-width: 0; overflow-wrap: anywhere; }

.label {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
}
.label--sm { font-size: 10px; }
.label--amber { color: var(--primary); }

/* ---------- Motifs ---------- */
.caution {
  background: repeating-linear-gradient(45deg,
    #ffb800, #ffb800 10px, #131313 10px, #131313 20px);
}
.caution-bar { width: 64px; height: 8px; margin-bottom: 16px; }
.rule { height: 1px; flex: 1; background: rgba(81, 69, 50, 0.3); }
.tick { width: 32px; height: 4px; background: var(--primary-container); flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 56px;
  padding: 0 32px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 0;
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .1s;
}
.btn:active { transform: scale(0.98); }
@media (min-width: 1024px) { .btn { min-height: 64px; padding: 0 44px; font-size: 16px; } }

.btn--primary {
  background: var(--primary-container);
  color: var(--on-primary);
  box-shadow: 0 4px 30px rgba(255, 184, 0, 0.35);
}
.btn--primary:hover { background: var(--primary); }

.btn--ghost {
  background: rgba(19, 19, 19, 0.5);
  color: var(--on-surface);
  border: 1px solid var(--outline);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: var(--surface-bright); }

.btn--invert {
  background: var(--on-primary);
  color: var(--primary-container);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.btn--invert:hover { background: #000; color: #fff; }

.btn--block { width: 100%; }
@media (min-width: 640px) { .btn--auto-sm { width: auto; } }

/* ---------- Header ---------- */
.header {
  position: static;          /* never sticky — scrolls away with the page */
  top: auto;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--outline-variant);
  box-shadow: none;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  /* min-height (not height) so the logo can never be clipped */
  min-height: 68px;
  /* padding-block ONLY — this element is also a .container; the shorthand's
     "0" was zeroing out its left/right gutters. */
  padding-top: 8px;
  padding-bottom: 8px;
}
@media (min-width: 640px)  { .header__inner { min-height: 80px; } }
@media (min-width: 1024px) { .header__inner { min-height: 92px; } }
.brand { display: flex; align-items: center; min-width: 0; color: var(--primary); }
/* Logo IS the brand — there is no text beside it, so it carries the whole
   identity and needs real size. Height-constrained, width follows the aspect
   ratio (605x413), so it can never be squashed. */
.brand__mark {
  flex-shrink: 0;
  width: auto;
  height: 84px;
  max-width: 300px;
  object-fit: contain;
  display: block;
}
@media (min-width: 640px)  { .brand__mark { height: 72px; max-width: 340px; } }
@media (min-width: 1024px) { .brand__mark { height: 80px; max-width: 400px; } }

/* Footer logo — bigger still, it anchors the footer */
.footer__brand .brand__mark { height: 78px; max-width: 400px; }
@media (min-width: 640px) { .footer__brand .brand__mark { height: 90px; max-width: 440px; } }
/* (.brand__name removed — the logo carries the wordmark, no text span) */

.header__right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
@media (min-width: 1024px) { .header__right { gap: 32px; } }

.nav { display: none; }
@media (min-width: 1024px) { .nav { display: flex; align-items: center; gap: 20px; } }
.nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  transition: color .2s;
}
.nav a:hover, .nav a.is-active { color: var(--primary); }

.header__call {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--primary);
  background: rgba(255, 220, 161, 0.1);
  border: 1px solid rgba(255, 220, 161, 0.2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color .1s;
}
.header__call:hover { color: var(--primary-fixed-dim); }
@media (min-width: 640px) { .header__call { padding: 8px 16px; font-size: 12px; } }
.header__call svg { width: 18px; height: 18px; flex-shrink: 0; }
/* The phone number ALWAYS shows — it is the primary conversion action.
   (It used to be hidden below 400px, leaving only a bare icon.) */
.header__call span { display: inline; }

/* ==========================================================================
   MOBILE HEADER — stacked:   [ logo ]
                              [ phone ]
   Below 768px the logo and the call button each get their own full-width row,
   centred, so the number is never squeezed into an icon.
   ========================================================================== */
@media (max-width: 767px) {
  .header__inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 0;
    /* padding-block ONLY — .header__inner is also a .container, and the
       shorthand's "0" was wiping out its left/right gutters. */
    padding-top: 12px;
    padding-bottom: 14px;
  }
  .brand { justify-content: center; width: 100%; }
  .brand__mark { margin: 0 auto; }

  .header__right {
    width: 100%;
    justify-content: center;
    gap: 0;
  }
  /* Call button becomes a full-width bar with the whole number on it */
  .header__call {
    width: 100%;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 16px;
    font-size: 16px;
    letter-spacing: .04em;
    background: var(--primary-container);
    color: var(--on-primary);
    border-color: var(--primary-container);
  }
  .header__call:hover,
  .header__call:active { color: var(--on-primary); background: var(--primary); }
  .header__call svg { width: 20px; height: 20px; }
  .header__call span { display: inline; white-space: nowrap; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
  overflow: hidden;
  padding: 64px 0;
}
@media (min-width: 640px) { .hero { min-height: 600px; } }
@media (min-width: 1024px) { .hero { min-height: 740px; } }
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .45;
}
@media (min-width: 1024px) { .hero__bg { opacity: .6; } }
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--surface), rgba(19,19,19,.5) 55%, rgba(19,19,19,.2));
}
@media (min-width: 1024px) {
  .hero__scrim {
    background:
      linear-gradient(to right, var(--surface), rgba(19,19,19,.6) 45%, transparent),
      linear-gradient(to top, var(--surface), rgba(19,19,19,.5) 55%, rgba(19,19,19,.2));
  }
}
.hero__inner { position: relative; z-index: 2; }
.hero__copy { max-width: 780px; }
.hero h1 { margin-bottom: 16px; }
.hero h1 .line { display: block; color: var(--primary-container); }
.hero__lede { color: var(--secondary); max-width: 560px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 640px) { .hero__actions { flex-direction: row; flex-wrap: wrap; } }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 64px 0;
}
@media (min-width: 1024px) { .page-hero { padding: 104px 0; } }
.page-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--surface), rgba(19,19,19,.75) 45%, rgba(19,19,19,.55));
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { color: var(--secondary); max-width: 640px; }
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  color: var(--secondary);
}
.crumbs a:hover { color: var(--primary); }
.crumbs .sep { color: var(--outline); }
.crumbs .current { color: var(--primary); }

/* ---------- Stats ---------- */
.stats-wrap { position: relative; z-index: 3; margin-top: -40px; }
@media (min-width: 640px) { .stats-wrap { margin-top: -64px; } }
.stats {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.5);
}
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat {
  padding: 24px;
  text-align: center;
  border-bottom: 1px solid rgba(81,69,50,.3);
}
.stat:last-child { border-bottom: 0; }
@media (min-width: 640px) {
  .stat { padding: 32px; border-bottom: 0; border-right: 1px solid rgba(81,69,50,.3); }
  .stat:last-child { border-right: 0; }
}
.stat__num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 30px;
  color: var(--primary-fixed-dim);
  margin-bottom: 4px;
}
@media (min-width: 640px) { .stat__num { font-size: 40px; } }
.stat__label { color: var(--secondary); letter-spacing: 0.2em; }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(81,69,50,.25);
  transition: border-color .2s;
}
.feature:hover { border-color: rgba(255,184,0,.3); }
@media (min-width: 640px) { .feature { flex-direction: column; padding: 20px; } }
.feature svg { width: 36px; height: 36px; flex-shrink: 0; color: var(--primary-container); }
.feature h4 { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.feature p { font-size: 13px; color: var(--secondary); line-height: 1.35; }

/* ---------- Split (about) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; } }
.split__media { position: relative; order: 2; margin-bottom: 48px; }
@media (min-width: 1024px) { .split__media { order: 1; margin-bottom: 0; } }
.split__body { order: 1; }
@media (min-width: 1024px) { .split__body { order: 2; } }
.split__tag {
  position: absolute;
  top: -12px; left: -12px;
  width: 64px; height: 64px;
  z-index: 2;
}
@media (min-width: 640px) { .split__tag { width: 96px; height: 96px; } }
.split__frame {
  position: relative;
  height: 300px;
  border: 1px solid var(--outline-variant);
  overflow: hidden;
}
@media (min-width: 640px) { .split__frame { height: 420px; } }
@media (min-width: 1024px) { .split__frame { height: 600px; } }
.split__img {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform .7s;
}
.split__frame:hover .split__img { transform: scale(1.05); }
.split__badge {
  display: none;
  position: absolute;
  bottom: -32px; right: 0;
  width: 50%; max-width: 280px;
  min-height: 110px;
  padding: 16px;
  background: var(--primary-container);
  color: var(--on-primary);
  align-items: center;
}
@media (min-width: 768px) { .split__badge { display: flex; } }
.split__badge span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  font-style: italic;
  line-height: 1.2;
}
@media (min-width: 1024px) { .split__badge span { font-size: 24px; } }
.split__body h2 { margin-bottom: 32px; }
.split__body p + p { margin-top: 16px; }
.checks { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 32px; }
.check { display: flex; align-items: center; gap: 8px; }
.check svg { width: 22px; height: 22px; color: var(--primary-container); flex-shrink: 0; }
.check span { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding-bottom: 8px;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  transition: gap .3s;
}
.link-arrow:hover { gap: 20px; }
.link-arrow svg { width: 18px; height: 18px; }

/* ---------- Services ---------- */
.sec-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}
@media (min-width: 1024px) {
  .sec-head { flex-direction: row; justify-content: space-between; align-items: flex-end; margin-bottom: 64px; }
}
.sec-head { margin-bottom: 32px; }
@media (min-width: 640px) { .sec-head { margin-bottom: 40px; } }
.sec-head__text { max-width: 580px; min-width: 0; }
.sec-head h2 { margin-bottom: 12px; }
@media (min-width: 640px) { .sec-head h2 { margin-bottom: 16px; } }
.sec-head .rule { display: none; }
@media (min-width: 1024px) { .sec-head .rule { display: block; margin: 0 40px 24px; } }
/* On mobile the EST. label reads as an orphan — dim + space it properly */
.sec-head > .label {
  opacity: .75;
  letter-spacing: .16em;
}
@media (min-width: 1024px) { .sec-head > .label { opacity: 1; letter-spacing: .1em; } }

.svc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
@media (min-width: 420px) { .svc-grid { gap: 16px; } }
@media (min-width: 768px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.svc {
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  padding: 20px 18px;
  min-width: 0;                 /* let grid children shrink instead of overflow */
  transition: background-color .3s;
}
@media (min-width: 420px) { .svc { padding: 20px; } }
@media (min-width: 640px) { .svc { padding: 32px; } }
.svc > * { min-width: 0; }
.svc:hover { background: var(--surface-bright); }
.svc svg {
  width: 34px; height: 34px;
  color: var(--primary-container);
  margin-bottom: 14px;
  transition: transform .3s;
}
@media (min-width: 640px) { .svc svg { width: 44px; height: 44px; margin-bottom: 32px; } }
@media (min-width: 1024px) { .svc svg { margin-bottom: 48px; } }
/* Disable hover-scale on touch devices (it can cause a jitter/overflow) */
@media (hover: none) {
  .svc:hover svg { transform: none; }
  .svc:hover { background: var(--surface-container); }
  .svc:hover .svc__link { gap: 8px; }
}
.svc:hover svg { transform: scale(1.1); }
.svc h3 { margin-bottom: 8px; font-size: 19px; line-height: 1.25; }
@media (min-width: 640px) { .svc h3 { font-size: 21px; } }
.svc p { color: var(--secondary); font-size: 15px; }
@media (min-width: 640px) { .svc p { font-size: 16px; } }

.svc--wide { grid-column: 1 / -1; display: flex; flex-direction: column; justify-content: space-between; }
@media (min-width: 1024px) { .svc--wide { grid-column: span 2; } }
/* Mobile: stack icon above the pill so neither gets squeezed */
.svc__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
@media (min-width: 420px) {
  .svc__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
}
@media (min-width: 640px) { .svc__top { align-items: flex-start; gap: 16px; margin-bottom: 32px; } }
@media (min-width: 1024px) { .svc__top { margin-bottom: 48px; } }
.svc__top svg { margin-bottom: 0; }
.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 5px 10px;
  white-space: nowrap;
  background: rgba(255,184,0,.2);
  color: var(--primary-container);
}
@media (min-width: 640px) { .pill { padding: 4px 12px; letter-spacing: .1em; } }
.svc--wide h3 {
  font-size: clamp(20px, 5.5vw, 32px);
  line-height: 1.2;
  margin-bottom: 12px;
}
@media (min-width: 640px) { .svc--wide h3 { margin-bottom: 16px; } }
.svc--wide p { margin-bottom: 24px; }
@media (min-width: 640px) { .svc--wide p { margin-bottom: 32px; } }
/* Bigger tap target for the inline "request now" link */
.svc__link { min-height: 44px; }
.svc__link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: gap .3s;
}
.svc:hover .svc__link { gap: 16px; }
.svc__link svg { width: 18px; height: 18px; margin-bottom: 0; }

.svc--banner {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 640px) { .svc--banner { gap: 32px; } }
@media (min-width: 1024px) { .svc--banner { flex-direction: row; align-items: center; gap: 48px; } }
.svc--banner:hover { background: var(--surface-container); }
/* Decorative stripe: hidden on mobile (it was bleeding past the card edge) */
.svc--banner .banner__deco { display: none; }
@media (min-width: 768px) {
  .svc--banner .banner__deco {
    display: block;
    position: absolute;
    top: 0; right: 0;
    width: 128px; height: 128px;
    opacity: .1;
    transform: rotate(-45deg) translate(48px, -48px);
    pointer-events: none;
  }
}
.svc--banner .banner__body { flex: 1; min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.svc--banner h3 {
  margin-bottom: 12px;
  font-size: clamp(19px, 5vw, 32px);
  line-height: 1.2;
}
@media (min-width: 640px) { .svc--banner h3 { margin-bottom: 16px; } }
.svc--banner p { max-width: 720px; margin-bottom: 0; }
.svc--banner .btn { flex-shrink: 0; width: 100%; }
@media (min-width: 1024px) { .svc--banner .btn { width: auto; } }

/* ---------- Why us ---------- */
.whyus { position: relative; background: var(--surface-dim); overflow: hidden; }
.whyus__head { max-width: 800px; margin: 0 auto 48px; text-align: center; }
@media (min-width: 1024px) { .whyus__head { margin-bottom: 80px; } }
.whyus__head h2 { margin-bottom: 16px; }
.whyus__grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .whyus__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .whyus__grid { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.why { display: flex; gap: 20px; }
.why__icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,184,0,.1);
  border: 1px solid rgba(255,184,0,.3);
}
@media (min-width: 1024px) { .why__icon { width: 64px; height: 64px; } }
.why__icon svg { width: 28px; height: 28px; color: var(--primary-container); }
.why h4 { font-size: 18px; text-transform: uppercase; font-style: italic; margin-bottom: 8px; }
.why p { color: var(--secondary); font-size: 15px; }

/* ---------- Testimonials ---------- */
.tst-head { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; }
@media (min-width: 1024px) { .tst-head { margin-bottom: 64px; } }
.tst-head h2 { white-space: nowrap; }
.tst-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .tst-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tst-grid { grid-template-columns: repeat(3, 1fr); } }
.tst {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: var(--surface-container-high);
  border-top: 4px solid var(--primary-container);
}
@media (min-width: 640px) { .tst { padding: 40px; } }
.stars { display: flex; gap: 2px; color: var(--primary); margin-bottom: 20px; }
.stars svg { width: 20px; height: 20px; }
.tst__quote { font-style: italic; font-size: 17px; line-height: 1.6; margin-bottom: 32px; }
.tst__who { display: flex; align-items: center; gap: 16px; }
.avatar {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--surface-container-highest);
  color: var(--primary);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.tst__who span { font-family: var(--font-mono); font-size: 11px; color: var(--secondary); }

/* ---------- Contact grid ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.contact-grid h2 { margin-bottom: 16px; }
.contact-grid .lede { color: var(--secondary); margin-bottom: 40px; }

.info-list { display: flex; flex-direction: column; gap: 16px; }
.info {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  transition: background-color .2s, border-color .2s;
}
@media (min-width: 640px) { .info { padding: 32px; } }
a.info:hover { background: var(--surface-bright); border-color: rgba(255,184,0,.5); }
.info__icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,184,0,.1);
  border: 1px solid rgba(255,184,0,.3);
}
.info__icon svg { width: 28px; height: 28px; color: var(--primary-container); }
.info__body { min-width: 0; }
.info__body h4 { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--secondary); margin-bottom: 8px; }
.info__value {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  color: var(--primary);
  line-height: 1.3;
  transition: color .2s;
}
a.info:hover .info__value { color: var(--primary-container); }
.info__value--plain { color: var(--on-surface); font-size: 17px; }
.info__note { font-size: 14px; color: var(--secondary); margin-top: 8px; }
.info--hours { background: var(--surface-container-high); border: 0; border-left: 4px solid var(--primary-container); }
.info--hours .info__icon { background: transparent; border: 0; }

/* ---------- Form ---------- */
.form { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .form { grid-template-columns: repeat(2, 1fr); } }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 8px;
}
.field .req { color: var(--primary-container); }
.field input,
.field textarea {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  background: var(--surface-container-high);
  border: 0;
  border-bottom: 2px solid var(--outline);
  color: var(--on-surface);
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(213, 196, 171, .3); }
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--primary-container); }
.field input:invalid:not(:placeholder-shown) { border-bottom-color: var(--error); }
.form .btn { grid-column: 1 / -1; justify-self: start; width: 100%; }
@media (min-width: 1024px) { .form .btn { width: auto; padding: 0 64px; } }
.form__note { grid-column: 1 / -1; font-size: 13px; color: var(--secondary); }

/* ---------- CTA banner ---------- */
.cta {
  padding-top: 56px;
  padding-bottom: 56px;
  background: var(--primary-container);
  color: var(--on-primary);
}
@media (min-width: 1024px) { .cta { padding-top: 80px; padding-bottom: 80px; } }
.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}
@media (min-width: 1024px) {
  .cta__inner { flex-direction: row; justify-content: space-between; text-align: left; gap: 40px; }
}
.cta h2 { margin-bottom: 8px; }
.cta__sub { font-family: var(--font-head); font-weight: 700; font-size: 19px; opacity: .9; }
@media (min-width: 1024px) { .cta__sub { font-size: 24px; } }
.cta__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}
@media (min-width: 640px) { .cta__right { flex-direction: row; justify-content: center; } }
@media (min-width: 1024px) { .cta__right { width: auto; } }
.cta__phone { white-space: nowrap; font-family: var(--font-head); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq > h2 { text-align: center; margin-bottom: 28px; padding: 0 4px; }
@media (min-width: 640px) { .faq > h2 { margin-bottom: 40px; } }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .faq__list { gap: 16px; } }
.faq__item {
  background: var(--surface-container-high);
  border: 1px solid var(--outline-variant);
  padding: 4px 16px;            /* padding moved onto the summary so the whole row is tappable */
  transition: border-color .3s;
}
@media (min-width: 640px) { .faq__item { padding: 4px 24px; } }
.faq__item[open] { border-color: rgba(255,184,0,.5); }
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 56px;              /* full-width, thumb-friendly tap target */
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 400px) { .faq__q { font-size: 16px; } }
@media (min-width: 640px) { .faq__q { gap: 16px; font-size: 20px; padding: 16px 0; min-height: 60px; } }
.faq__q:focus-visible { outline: 2px solid var(--primary-container); outline-offset: 2px; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q > span { min-width: 0; overflow-wrap: anywhere; }
.faq__q svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--primary-container);
  transition: transform .3s;
}
@media (min-width: 640px) { .faq__q svg { width: 22px; height: 22px; } }
.faq__item[open] .faq__q svg { transform: rotate(180deg); }
.faq__a {
  margin-top: 0;
  padding: 16px 0 20px;
  border-top: 1px solid rgba(81,69,50,.3);
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
@media (min-width: 640px) { .faq__a { padding: 20px 0 24px; font-size: 17px; } }

/* ---------- Footer ---------- */
.footer {
  background: var(--surface-container-lowest);
  border-top: 1px solid var(--outline-variant);
  padding-top: 64px;
  padding-bottom: 64px;
}
@media (min-width: 1024px) { .footer { padding-top: 80px; padding-bottom: 80px; } }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 0;   /* footer__bottom removed — no trailing gap needed */
}
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: repeat(4, 1fr); gap: 48px; margin-bottom: 0; } }
.footer__brand { grid-column: 1 / -1; }
@media (min-width: 1024px) { .footer__brand { grid-column: auto; } }
.footer__brand .brand { margin-bottom: 20px; }
.footer__brand p { color: var(--secondary); font-size: 15px; }
.footer h5 { color: var(--primary); margin-bottom: 20px; }
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--secondary);
  padding: 4px 0;
  transition: color .2s;
}
.footer__links a:hover { color: var(--primary); }
.footer__phone {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 24px;
}
/* (socials, footer__bottom and payment cards removed — no longer in markup) */

/* Mobile: show only the brand block in the footer.
   Hides the Navigation, Company and Connect columns (< 640px only). */
@media (max-width: 639px) {
  .footer__grid > div:not(.footer__brand) { display: none; }
  .footer__grid { gap: 0; }
  .footer { padding-top: 48px; }
}

/* ---------- Mobile bottom bar ---------- */
.mobilebar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: calc(64px + env(safe-area-inset-bottom, 0px));
  padding: 0 8px env(safe-area-inset-bottom, 0px);
  background: rgba(53, 53, 53, .95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--outline-variant);
  box-shadow: 0 -4px 20px rgba(0,0,0,.4);
}
@media (min-width: 768px) { .mobilebar { display: none; } }
.mobilebar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 4px;
  color: rgba(213, 196, 171, .7);
}
.mobilebar a.is-active { color: var(--primary); }
.mobilebar a svg { width: 22px; height: 22px; }
.mobilebar a span {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 2px;
}
.mobilebar .mobilebar__call {
  background: var(--primary);
  color: var(--on-primary);
  padding: 8px 12px;
  transform: translateY(-12px);
  box-shadow: 0 10px 25px rgba(0,0,0,.4);
}

/* ---------- Thank you ---------- */
.ty {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}
.ty__card { max-width: 620px; width: 100%; }
.ty__mark {
  width: 88px; height: 88px;
  margin: 0 auto 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,184,0,.1);
  border: 1px solid rgba(255,184,0,.35);
}
.ty__mark svg { width: 48px; height: 48px; color: var(--primary-container); }
.ty__card .caution-bar { margin: 0 auto 24px; }
.ty__card h1 { margin-bottom: 16px; }
.ty__card > p { color: var(--secondary); margin-bottom: 32px; }
.ty__eta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  margin-bottom: 40px;
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  border-left: 4px solid var(--primary-container);
}
.ty__eta svg { width: 26px; height: 26px; color: var(--primary-container); flex-shrink: 0; }
.ty__eta strong { color: var(--primary); }
.ty__actions { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 640px) { .ty__actions { flex-direction: row; justify-content: center; } }

/* ---------- Utilities ---------- */
.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;
}
.stack-16 > * + * { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.text-center { text-align: center; }

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

/* ==========================================================================
   MOBILE REFINEMENTS  (<= 767px)
   Tightens spacing, rebalances icon/text ratios, fixes cramped cards.
   Loaded last so it overrides the base rules above.
   ========================================================================== */
@media (max-width: 767px) {

  /* ---- Global rhythm: less dead vertical space ---- */
  :root { --gutter: 16px; }
  .section       { padding: 44px 0; }
  .section--tight{ padding: 32px 0; }
  main           { padding-bottom: 88px; }

  /* ---- Headings breathe better ---- */
  .fluid-hero { font-size: clamp(28px, 8.5vw, 40px); }
  .fluid-h2   { font-size: clamp(24px, 7.5vw, 34px); }
  .fluid-h2-lg{ font-size: clamp(26px, 8vw, 36px); }
  .fluid-h3   { font-size: clamp(19px, 6vw, 26px); }
  .fluid-body { font-size: 15px; line-height: 1.55; }

  .page-hero { padding: 44px 0 48px; }
  .hero      { min-height: 480px; padding: 48px 0; }
  .hero__lede{ margin-bottom: 24px; }

  /* ---- Buttons: full width, comfortable tap target ---- */
  .btn { min-height: 52px; padding: 0 20px; font-size: 14px; letter-spacing: .08em; width: 100%; }
  .hero__actions .btn,
  .cta__right .btn,
  .ty__actions .btn { width: 100%; }

  /* =========================================================
     SERVICES PAGE
     ========================================================= */

  /* Section head: stack cleanly, drop the orphaned EST label to its own row */
  .sec-head { gap: 12px; margin-bottom: 28px; }
  .sec-head h2 { margin-bottom: 10px; }
  .sec-head > .label--amber {
    order: -1;              /* EST. 2018 sits ABOVE the heading, like an eyebrow */
    display: block;
  }

  /* Service cards: shrink icon, kill the huge gap under it */
  .svc { padding: 22px 20px; }
  .svc svg { width: 34px; height: 34px; margin-bottom: 18px; }
  .svc h3 { font-size: 19px; margin-bottom: 8px; }
  .svc p  { font-size: 14.5px; line-height: 1.55; }

  .svc__top { margin-bottom: 18px; gap: 12px; align-items: center; }
  .svc__top svg { margin-bottom: 0; }
  .pill { font-size: 9px; padding: 4px 9px; letter-spacing: .08em; }

  .svc--wide h3 { font-size: 22px; }
  .svc--wide p  { margin-bottom: 22px; }
  .svc__link { font-size: 10px; }

  /* Banner card: deco is hidden below 640px (it bled past the card edge) */
  .svc--banner { padding: 22px 20px; gap: 22px; }
  .svc--banner h3 { font-size: 21px; }
  .svc--banner p  { font-size: 14.5px; }
  .svc--banner .btn { margin-top: 4px; }

  /* Eyebrow row */
  .eyebrow { margin-bottom: 12px; }
  .eyebrow .label { font-size: 9px; }
  .tick { width: 22px; height: 3px; }

  /* Why-us: give the icon less weight, text more room */
  .whyus__head { margin-bottom: 32px; }
  .whyus__grid { gap: 24px; }
  .why { gap: 14px; }
  .why__icon { width: 46px; height: 46px; }
  .why__icon svg { width: 22px; height: 22px; }
  .why h4 { font-size: 16px; margin-bottom: 5px; }
  .why p  { font-size: 14px; line-height: 1.5; }

  /* =========================================================
     CONTACT PAGE
     ========================================================= */

  .contact-grid { gap: 40px; }
  .contact-grid .lede { margin-bottom: 26px; }
  .contact-grid h2 { margin-bottom: 12px; }

  /* Form: tighter gaps, single column already — just refine */
  .form { gap: 18px; }
  .field label { font-size: 9px; margin-bottom: 6px; }
  .field input,
  .field textarea { padding: 13px 14px; font-size: 16px; } /* 16px stops iOS zoom-on-focus */
  .field textarea { min-height: 110px; }
  .form__note { font-size: 12px; line-height: 1.5; }

  /* Contact info cards: smaller icon, no squeeze on the value text */
  .info-list { gap: 12px; }
  .info { padding: 18px 16px; gap: 14px; }
  .info__icon { width: 44px; height: 44px; }
  .info__icon svg { width: 21px; height: 21px; }
  .info__body h4 { font-size: 9px; margin-bottom: 5px; }
  .info__value { font-size: 17px; line-height: 1.35; }
  /* Long email must shrink to fit, never clip */
  .info__value.no-overflow { font-size: 15px !important; overflow-wrap: anywhere; }
  .info__value--plain { font-size: 15px; }
  .info__note { font-size: 12.5px; margin-top: 6px; line-height: 1.45; }

  /* Address: keep it to two tidy lines */
  address.info__value { font-size: 15px; line-height: 1.45; }

  /* =========================================================
     SHARED SECTIONS
     ========================================================= */

  /* Stats */
  .stats-wrap { margin-top: -28px; }
  .stat { padding: 18px 12px; }
  .stat__num { font-size: 26px; }
  .stat__label { font-size: 9px; letter-spacing: .16em; }

  /* Features */
  .features { gap: 10px; }
  .feature { padding: 14px; gap: 14px; align-items: center; }
  .feature svg { width: 30px; height: 30px; }
  .feature h4 { font-size: 12px; }
  .feature p  { font-size: 12.5px; }

  /* About split */
  .split { gap: 40px; }
  .split__media { margin-bottom: 24px; }
  .split__frame { height: 240px; }
  .split__tag { width: 52px; height: 52px; top: -8px; left: -8px; }
  .split__body h2 { margin-bottom: 20px; }
  .checks { gap: 10px 18px; margin-top: 22px; }
  .check span { font-size: 10px; }
  .check svg { width: 18px; height: 18px; }
  .link-arrow { margin-top: 28px; font-size: 10px; }

  /* Testimonials */
  .tst-head { margin-bottom: 26px; gap: 12px; }
  .tst { padding: 22px 20px; }
  .tst__quote { font-size: 15px; margin-bottom: 22px; line-height: 1.55; }
  .stars svg { width: 17px; height: 17px; }
  .avatar { width: 34px; height: 34px; font-size: 12px; }
  .tst__who { gap: 12px; }
  .tst__who span { font-size: 10px; }

  /* CTA banner */
  .cta { padding: 40px 0; }
  .cta__inner { gap: 22px; }
  .cta h2 { margin-bottom: 6px; }
  .cta__sub { font-size: 15px; line-height: 1.45; }
  .cta__right { gap: 16px; }
  .cta__phone { font-size: 30px; }

  /* FAQ */
  .faq > h2 { margin-bottom: 26px; }
  .faq__list { gap: 10px; }
  .faq__item { padding: 15px 16px; }
  .faq__q {
    font-size: 16px;        /* 14px was too cramped for uppercase Montserrat */
    gap: 12px;
    line-height: 1.3;
    min-height: 44px;       /* proper tap target */
    align-items: center;
  }
  .faq__q > span { min-width: 0; overflow-wrap: anywhere; }
  .faq__q svg { width: 20px; height: 20px; }
  .faq__a { margin-top: 14px; padding-top: 14px; font-size: 14.5px; line-height: 1.6; }

  /* Footer */
  .footer {
    padding-top: 44px;
    /* clear the fixed mobile call bar (64px + its raised button + safe area) */
    padding-bottom: calc(64px + 48px + env(safe-area-inset-bottom, 0px));
  }
  .footer__grid { gap: 30px; margin-bottom: 0; }
  .footer__brand p { font-size: 14px; }
  .footer h5 { margin-bottom: 14px; font-size: 10px; }
  .footer__links { gap: 8px; }
  .footer__links a { font-size: 11px; }
  .footer__phone { font-size: 19px; margin-bottom: 16px; }
  .social { width: 40px; height: 40px; }

  /* Thank-you */
  .ty__mark { width: 72px; height: 72px; margin-bottom: 22px; }
  .ty__mark svg { width: 38px; height: 38px; }
  .ty__eta { padding: 16px; margin-bottom: 28px; font-size: 14px; gap: 10px; }
  .ty__card > p { margin-bottom: 24px; }
}

/* ---- Very small phones (<= 380px): last-mile squeeze ---- */
@media (max-width: 380px) {
  /* Header stays stacked and the FULL number stays visible — it just
     shrinks slightly. It must never collapse back to a bare icon. */
  .brand__mark { height: 72px; }
  .header__call { padding: 11px 12px; font-size: 15px; min-height: 48px; }
  .header__call svg { width: 18px; height: 18px; }
  .stat__num { font-size: 23px; }
  .cta__phone { font-size: 26px; }
  .info__value.no-overflow { font-size: 14px !important; }
  /* FAQ questions stay legible — they wrap to two lines rather than shrink */
  .faq__q { font-size: 15px; }
  .btn { font-size: 13px; letter-spacing: .06em; }
}

/* ==========================================================================
   reCAPTCHA v3 BADGE
   Google pins it to bottom-right, where it would sit ON TOP of the fixed
   mobile call bar / bottom nav and cover the phone number. Lift it clear.
   The badge must stay VISIBLE — hiding it violates Google's terms unless you
   display the required attribution text instead.
   ========================================================================== */
.grecaptcha-badge {
  z-index: 50 !important;                 /* below the call bars (60 / 90) */
  bottom: 88px !important;                /* clear the mobile bottom nav   */
  box-shadow: 0 4px 14px rgba(0,0,0,.35) !important;
}
@media (min-width: 768px) {
  /* No bottom bar on desktop — let it sit where Google intends */
  .grecaptcha-badge { bottom: 14px !important; }
}
