/* MacKinnon Electric V2 - Tradesman Slate x Bento Overview.
   Palette: their navy + gold (van logo), bent through the Tradesman Slate blueprint.
   Radius scale: 4px. Shadow scale: none / soft / lifted. Border: 2px. */

:root {
  --ink: #1b2331;
  --body: #39404e;
  --muted: #616978;
  --canvas: #ffffff;
  --surface: #f3f5f8;
  --brand: #1e3055;
  --brand-deep: #152441;
  --accent: #c08a2a;
  --accent-dark: #96690f;
  --hairline: #dee2e9;
  --soft: 0 1px 3px rgba(21, 36, 65, 0.08);
  --lifted: 0 8px 24px rgba(21, 36, 65, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--body);
  background: var(--canvas);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.15rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.15rem); }
h3 { font-size: 1.12rem; }

p + p { margin-top: 14px; }

a { color: var(--brand); }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 300;
  background: var(--accent); color: var(--ink);
  padding: 10px 18px; font-weight: 700; text-decoration: none;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; width: 100%; }

/* ---------- Header (sticky, shrinks on scroll) ---------- */
header.site {
  position: sticky; top: 0; z-index: 100;
  background: var(--canvas);
  border-bottom: 2px solid var(--hairline);
}
header.site .nav {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding-top: 23px; padding-bottom: 23px;
  transition: padding 0.3s ease;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 54px; width: auto; transition: height 0.3s ease; }
header.site.shrunk .nav { padding-top: 10px; padding-bottom: 10px; }
header.site.shrunk .brand img { height: 38px; }
header.site.shrunk { box-shadow: var(--soft); }

nav.links { display: flex; align-items: center; gap: 26px; }
nav.links a {
  font-weight: 600; font-size: 0.98rem; text-decoration: none;
  color: var(--ink); position: relative; padding: 4px 0;
}
nav.links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
nav.links a:not(.btn):hover::after,
nav.links a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }

.menu-btn {
  display: none; font: inherit; font-weight: 700; color: var(--ink);
  background: none; border: 2px solid var(--hairline); border-radius: 4px;
  padding: 8px 14px; cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600; font-size: 1rem;
  padding: 13px 24px; border-radius: 4px;
  border: 2px solid var(--brand);
  background: var(--brand); color: #ffffff;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); transform: translateY(-2px); box-shadow: var(--lifted); }
.btn.outline { background: transparent; color: var(--brand); }
.btn.outline:hover { background: var(--brand); color: #ffffff; }
.btn.gold { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn.gold:hover { background: #ad7b20; border-color: #ad7b20; color: #ffffff; }
.btn.on-dark { border-color: #ffffff; background: #ffffff; color: var(--brand-deep); }
.btn.on-dark:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn.outline.on-dark-o { border-color: rgba(255,255,255,0.85); background: transparent; color: #ffffff; }
.btn.outline.on-dark-o:hover { background: #ffffff; color: var(--brand-deep); }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.tight { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); margin-top: 10px; }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 64px; background: var(--canvas); }
.hero .wrap { width: 100%; }
.hero .kicker { color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.hero h1 { max-width: 21ch; }
.hero .lead { max-width: 58ch; margin-top: 18px; font-size: 1.1rem; }
.hero .cta-row { margin-top: 28px; }

/* ---------- Bento grid ---------- */
.bento-band { background: var(--surface); border-top: 2px solid var(--hairline); border-bottom: 2px solid var(--hairline); }
.bento {
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--canvas); border: 2px solid var(--hairline); border-radius: 4px;
  padding: 26px; box-shadow: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--lifted); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.98rem; }
.card .tel { font-weight: 700; color: var(--brand); text-decoration: none; }
.card .tel:hover { text-decoration: underline; }

.b-services { grid-column: span 2; grid-row: span 2; border-color: var(--brand); }
.b-services .svc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 26px; margin: 14px 0 20px; }
.b-services h3 { font-size: 1.35rem; }
.b-services h4 { font-family: "Archivo", system-ui, sans-serif; font-size: 1rem; color: var(--ink); margin: 10px 0 4px; }
.b-services ul { list-style: disc; padding-left: 20px; font-size: 0.96rem; }
.b-services li { margin: 3px 0; }

.b-photo { padding: 0; overflow: hidden; display: flex; }
.b-photo img { object-fit: cover; width: 100%; height: 100%; min-height: 210px; }

.b-map { grid-column: span 3; display: flex; gap: 26px; align-items: center; }
.b-map img { width: 32%; min-width: 150px; border-radius: 4px; border: 1px solid var(--hairline); }
.b-map .btn { margin-top: 12px; }

/* review card (standard format: brand top bar, star row, attribution) */
.quote-card { border-top: 6px solid var(--brand); }
.stars { color: var(--accent-dark); font-size: 1.02rem; letter-spacing: 2px; margin-bottom: 8px; }
.quote-card blockquote { font-size: 0.98rem; }
.quote-card .who { margin-top: 10px; color: var(--muted); font-size: 0.9rem; }

/* ---------- Crew split ---------- */
.split { display: grid; grid-template-columns: 3fr 2fr; gap: 54px; align-items: center; }
.split.flip { grid-template-columns: 2fr 3fr; }
.split img { border-radius: 4px; border: 2px solid var(--hairline); box-shadow: var(--soft); }
.split h2 { margin-bottom: 14px; }
.split .btn { margin-top: 22px; }

/* ---------- Proof band (full-bleed navy) ---------- */
.proof { background: var(--brand-deep); color: #dbe2ee; }
.proof h2 { color: #ffffff; }
.proof .section-head p { color: #aeb9cc; }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 48px; }
.counter .num {
  font-family: "Archivo", system-ui, sans-serif; font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 3.6rem); color: var(--accent); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.counter .label { margin-top: 8px; color: #dbe2ee; }
.proof .quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.proof .quote-card { background: var(--canvas); border: none; border-top: 6px solid var(--accent); }
.proof .quote-card blockquote { color: var(--body); }
.proof .google-line { margin-top: 18px; color: #aeb9cc; font-size: 0.95rem; }

/* ---------- Chips (service areas) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chips span {
  border: 2px solid var(--hairline); border-radius: 4px; padding: 9px 18px;
  font-weight: 600; color: var(--ink); background: var(--canvas);
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--surface); border-top: 2px solid var(--hairline); text-align: center; }
.cta-band .wrap > * { margin-left: auto; margin-right: auto; }
.cta-band p { max-width: 52ch; margin-top: 12px; color: var(--muted); }
.cta-band .cta-row { justify-content: center; margin-top: 26px; }

/* ---------- Content pages ---------- */
.page-head { padding: 64px 0 8px; }
.page-head .lead { max-width: 60ch; margin-top: 14px; font-size: 1.08rem; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-grid .card ul { list-style: disc; padding-left: 20px; margin-top: 8px; }
.svc-grid .card li { margin: 5px 0; font-size: 0.97rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 2fr 3fr; gap: 54px; align-items: start; }
.btn-stack { display: flex; flex-direction: column; gap: 12px; align-items: stretch; max-width: 340px; }
.btn-stack .btn { text-align: center; }
.address { margin-top: 22px; }
.address strong { color: var(--ink); }
.note { margin-top: 22px; padding: 18px 20px; background: var(--surface); border-left: 4px solid var(--accent); border-radius: 4px; font-size: 0.97rem; }

form { display: grid; gap: 16px; }
label { font-weight: 600; color: var(--ink); display: block; margin-bottom: 6px; }
input, textarea {
  width: 100%; font: inherit; color: var(--body);
  padding: 12px 14px; border: 2px solid var(--hairline); border-radius: 4px; background: var(--canvas);
}
input:focus, textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--brand); }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: #c3c9d4; padding: 56px 0 30px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
footer h3 { color: #ffffff; font-size: 1rem; margin-bottom: 12px; }
footer a { color: #ffffff; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer nav a { display: block; padding: 3px 0; font-size: 0.97rem; }
footer .contact-list span { display: block; padding: 3px 0; font-size: 0.97rem; }
footer .bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid #333c4d;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 0.88rem; color: #8e97a8;
}
footer .bottom a { color: #aeb6c6; }

/* ---------- Sticky mobile call bar ---------- */
.call-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: var(--brand-deep); text-align: center;
}
.call-bar a {
  display: block; color: #ffffff; font-weight: 700; text-decoration: none;
  padding: 15px 10px;
}
.call-bar a:hover { background: var(--brand); }

/* ---------- Animation initial states (gated: no flash without JS) ---------- */
.js-anim [data-reveal] { opacity: 0; transform: translateY(22px); }
.js-anim [data-reveal-group] > * { opacity: 0; transform: translateY(22px); }
.js-anim .hero .kicker,
.js-anim .hero h1,
.js-anim .hero .lead,
.js-anim .hero .cta-row { opacity: 0; transform: translateY(18px); }

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .b-services { grid-column: span 2; grid-row: auto; }
  .b-map { grid-column: span 2; }
  .proof .quotes { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .split, .split.flip { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  section { padding: 60px 0; }
  .hero { padding: 54px 0 48px; }
  header.site .nav { padding-top: 14px; padding-bottom: 14px; }
  .brand img { height: 44px; }
  .menu-btn { display: block; }
  nav.links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--canvas); border-bottom: 2px solid var(--hairline);
    padding: 12px 22px 18px; box-shadow: var(--lifted);
  }
  nav.links.open { display: flex; }
  nav.links a { padding: 9px 0; width: 100%; }
  nav.links .btn { margin-top: 8px; text-align: center; }

  .bento { grid-template-columns: 1fr; }
  .b-services { grid-column: auto; }
  .b-map { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .b-map img { width: 100%; }
  .b-photo { order: 9; }
  .b-services .svc-cols { grid-template-columns: 1fr; }
  .counters { grid-template-columns: 1fr; gap: 30px; }
  .cta-row .btn { width: 100%; text-align: center; }
  .call-bar { display: block; }
  body { padding-bottom: 52px; }
  footer .cols { grid-template-columns: 1fr; gap: 28px; }
}
