/* MacKinnon Electric — Fable build. Palette from the van logo: royal blue + gold. */
:root {
  --blue: #223a75;
  --blue-dark: #16254d;
  --blue-ink: #1a2340;
  --gold: #d4a03a;
  --gold-dark: #a2781c;
  --paper: #faf9f6;
  --white: #ffffff;
  --line: #e4e1d8;
  --text: #2a2f3a;
  --muted: #5a6070;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Archivo", system-ui, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}

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

h1, h2, h3 { font-family: "Archivo", system-ui, sans-serif; font-weight: 800; line-height: 1.15; color: var(--blue-ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); letter-spacing: -0.3px; }
h3 { font-size: 1.15rem; }

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

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

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* Header */
.topline { background: var(--blue-dark); color: #dfe5f5; font-size: 0.88rem; }
.topline .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 7px; padding-bottom: 7px; gap: 12px; flex-wrap: wrap; }
.topline a { color: var(--white); font-weight: 700; text-decoration: none; }
.topline a:hover { color: var(--gold); }

header.site {
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 8px rgba(22, 41, 92, 0.08);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 16px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { height: 52px; width: auto; }
@media (max-width: 900px) { .brand img { height: 42px; } }
.brand-name { font-weight: 800; font-size: 1.22rem; color: var(--blue); letter-spacing: -0.2px; line-height: 1.1; }
.brand-name span { display: block; font-size: 0.78rem; font-weight: 600; color: var(--gold-dark); letter-spacing: 2.5px; text-transform: uppercase; }

nav.main { display: flex; align-items: center; gap: 26px; }
nav.main a { color: var(--blue-ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 4px 0; border-bottom: 2px solid transparent; }
nav.main a:hover { border-bottom-color: var(--gold); }
nav.main a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--blue); }
nav.main a.cta {
  background: var(--gold); color: var(--blue-ink); padding: 10px 20px; border-radius: 6px;
  border: none; font-weight: 800;
}
nav.main a.cta:hover { background: var(--gold-dark); color: var(--white); }

#nav-toggle { display: none; background: none; border: 2px solid var(--blue); border-radius: 6px; padding: 7px 11px; color: var(--blue); font-weight: 700; font-size: 1rem; cursor: pointer; }

/* Hero */
.hero { position: relative; color: var(--white); background: var(--blue-dark); }
.hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15, 26, 61, 0.92) 0%, rgba(21, 38, 86, 0.72) 45%, rgba(21, 38, 86, 0.28) 100%); }
.hero .wrap { position: relative; padding-top: 96px; padding-bottom: 104px; max-width: 1120px; }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero .kicker { display: inline-block; background: var(--gold); color: var(--blue-ink); font-weight: 800; font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; padding: 5px 13px; border-radius: 4px; margin-bottom: 18px; }
.hero p.lead { font-size: 1.18rem; max-width: 52ch; margin: 18px 0 30px; color: #e8ecf8; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; text-decoration: none; font-weight: 800; padding: 15px 28px; border-radius: 6px; font-size: 1.02rem; }
.btn.gold { background: var(--gold); color: var(--blue-ink); }
.btn.gold:hover { background: var(--gold-dark); color: var(--white); }
.btn.ghost { border: 2px solid var(--white); color: var(--white); }
.btn.ghost:hover { background: var(--white); color: var(--blue-ink); }

/* Trust strip */
.trust { background: var(--blue); color: var(--white); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-top: 22px; padding-bottom: 22px; }
.trust .item { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 0.95rem; line-height: 1.3; }
.trust .item svg { flex: none; }

/* Sections */
section.block { padding: 74px 0; }
section.block.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--gold-dark); font-weight: 800; text-transform: uppercase; letter-spacing: 2.5px; font-size: 0.82rem; margin-bottom: 10px; }
.block h2 { margin-bottom: 14px; }
.block .intro { max-width: 62ch; color: var(--muted); margin-bottom: 40px; font-size: 1.05rem; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 8px; padding: 30px 28px; }
.alt .card { background: var(--paper); }
.card h3 { margin-bottom: 12px; color: var(--blue); }
.card ul { list-style: none; }
.card li { padding: 7px 0 7px 26px; position: relative; border-bottom: 1px dashed var(--line); font-size: 0.97rem; }
.card li:last-child { border-bottom: none; }
.card li { padding-left: 20px; }
.card li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

/* Split sections (photo + copy) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .photo { border-radius: 10px; overflow: hidden; box-shadow: 12px 12px 0 var(--gold); }
.split .photo.blue { box-shadow: 12px 12px 0 var(--blue); }
.split p { margin-bottom: 14px; }

/* Why list */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 34px; }
.why .point { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: 6px; padding: 18px 22px; }
.why .point strong { display: block; color: var(--blue); font-size: 1.03rem; margin-bottom: 3px; }
.why .point p { font-size: 0.95rem; color: var(--muted); }

/* Area band */
.area { background: linear-gradient(115deg, var(--blue-dark), var(--blue)); color: var(--white); }
.area h2 { color: var(--white); }
.area .wrap { padding-top: 64px; padding-bottom: 64px; }
.area p { max-width: 60ch; color: #dfe5f5; margin: 12px 0 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip { border: 1.5px solid rgba(255,255,255,0.45); border-radius: 999px; padding: 7px 17px; font-weight: 600; font-size: 0.92rem; }
.chip.gold { background: var(--gold); border-color: var(--gold); color: var(--blue-ink); font-weight: 800; }

/* Big CTA */
.cta-band { background: var(--white); border-top: 4px solid var(--gold); }
.cta-band .wrap { padding-top: 64px; padding-bottom: 64px; text-align: center; }
.cta-band p { max-width: 54ch; margin: 12px auto 28px; color: var(--muted); }
.cta-band .phone-big { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; color: var(--blue); text-decoration: none; display: inline-block; margin-bottom: 20px; }
.cta-band .phone-big:hover { color: var(--gold-dark); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 30px; }
.info-card h3 { color: var(--blue); margin-bottom: 14px; }
.info-card p { margin-bottom: 14px; }
.info-card .big { font-size: 1.25rem; font-weight: 800; }
.info-card a { text-decoration: none; font-weight: 700; }
.info-card a:hover { text-decoration: underline; }

form.contact { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 8px; padding: 32px; }
form.contact label { display: block; font-weight: 700; color: var(--blue-ink); margin: 16px 0 6px; font-size: 0.95rem; }
form.contact label:first-of-type { margin-top: 0; }
form.contact input, form.contact textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #c9c5b8; border-radius: 6px;
  font: inherit; background: var(--paper); color: var(--text);
}
form.contact input:focus, form.contact textarea:focus { border-color: var(--blue); outline: 2px solid var(--gold); outline-offset: 1px; }
form.contact button {
  margin-top: 22px; background: var(--blue); color: var(--white); font: inherit; font-weight: 800;
  padding: 14px 34px; border: none; border-radius: 6px; cursor: pointer; font-size: 1.02rem;
}
form.contact button:hover { background: var(--blue-dark); }
.hp { position: absolute; left: -9999px; }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(115deg, var(--blue-dark), var(--blue)); color: var(--white); }
.page-hero .wrap { padding-top: 58px; padding-bottom: 58px; }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.7rem); }
.page-hero p { color: #dfe5f5; max-width: 58ch; margin-top: 10px; }

/* Footer */
footer.site { background: var(--blue-ink); color: #c9d0e4; padding: 54px 0 30px; margin-top: 0; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,0.14); }
footer.site h3 { color: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; }
footer.site a { color: #e8ecf8; text-decoration: none; }
footer.site a:hover { color: var(--gold); }
footer.site ul { list-style: none; }
footer.site li { padding: 4px 0; }
footer.site p { font-size: 0.95rem; }
.footnote { padding-top: 22px; font-size: 0.85rem; color: #8f98b5; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* Testimonials */
.cards.quotes { grid-template-columns: repeat(2, 1fr); max-width: 900px; }
.quote .stars { display: inline-flex; gap: 3px; margin-bottom: 12px; }
.quote blockquote { margin: 0 0 14px; font-size: 0.99rem; color: var(--text); }
.quote .attrib { font-weight: 700; color: var(--blue); font-size: 0.92rem; }

/* Map preview */
.map-link { display: block; border-radius: 6px; overflow: hidden; margin-bottom: 16px; border: 1px solid var(--line); }
.map-link img { width: 100%; }
.map-link:hover { outline: 2px solid var(--gold); }

/* Scroll reveal (class added by JS; no-JS users see everything). Kept subtle: small scale-up, gentle overshoot. */
.reveal { opacity: 0; transform: scale(0.88); }
.reveal.is-visible {
  opacity: 1; transform: scale(1);
  transition: opacity 0.5s cubic-bezier(0.3, 1.15, 0.5, 1), transform 0.5s cubic-bezier(0.3, 1.15, 0.5, 1);
  transition-delay: var(--rd, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* Mobile call bar */
.callbar { display: none; }

/* Responsive */
@media (max-width: 900px) {
  .cards, .cards.quotes, .why, .split, .contact-grid { grid-template-columns: 1fr; }
  .split { gap: 34px; }
  .trust .wrap { grid-template-columns: 1fr 1fr; gap: 16px; }
  footer.site .cols { grid-template-columns: 1fr; gap: 28px; }

  #nav-toggle { display: block; }
  nav.main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 3px solid var(--gold); box-shadow: 0 12px 24px rgba(22,41,92,0.15);
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 15px 24px; border-bottom: 1px solid var(--line); }
  nav.main a.cta { margin: 14px 24px 20px; text-align: center; border-radius: 6px; }

  .hero .wrap { padding-top: 66px; padding-bottom: 74px; }

  .callbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 120;
    background: var(--gold); justify-content: center; padding: 13px;
  }
  .callbar a { color: var(--blue-ink); font-weight: 800; text-decoration: none; font-size: 1.05rem; }
  body { padding-bottom: 54px; }
}
