/* Bright Spark Electrical — "Quiet Confidence" */
:root {
  --bg: #efefea;
  --surface: #fafaf7;
  --ink: #111111;
  --muted: #5c5c58;
  --navy: #1f3a5f;
  --navy-deep: #182e4c;
  --gold: #d9b44a;
  --line: rgba(17, 17, 17, 0.14);

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 5.5vw, 6.5rem);
  --max: 82rem;
  --space: clamp(4.5rem, 11vw, 10rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.8rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.2; }
p { margin: 0 0 1em; max-width: 36em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--gold); }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
.on-navy :focus-visible { outline-color: var(--gold); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--navy); color: var(--surface); padding: .6rem 1rem;
}
.skip:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */
.site-header { position: relative; z-index: 2; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 1.4rem; padding-bottom: 1.4rem;
}
.brand { display: block; text-decoration: none; }
.brand svg { width: clamp(168px, 40vw, 236px); height: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { display: none; list-style: none; margin: 0; padding: 0; gap: 1.75rem; }
.nav ul a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav ul a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); }
.nav-call {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
}
.nav-call svg { width: 1rem; height: 1rem; }
.nav-call .long { display: none; }
@media (min-width: 900px) {
  .nav ul { display: flex; }
  .nav-call .long { display: inline; }
}

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 3.1rem; padding: .8rem 1.35rem;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border-radius: 2px;
  border: 1px solid var(--navy);
  transition: background-color .2s ease, color .2s ease;
}
.btn svg { width: 1.1rem; height: 1.1rem; flex: none; }
.btn-solid { background: var(--navy); color: var(--surface); }
.btn-solid:hover { background: var(--navy-deep); }
.btn-line { background: transparent; color: var(--navy); }
.btn-line:hover { background: var(--surface); }
@media (max-width: 420px) { .btn { width: 100%; justify-content: center; } }

/* Hero */
.hero { position: relative; isolation: isolate; margin-top: -5.6rem; padding-top: 5.6rem; border-bottom: 1px solid var(--line); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 20% center;
}
.hero .wrap {
  display: grid; gap: 2.5rem;
  padding-top: clamp(3rem, 9vw, 8rem);
  padding-bottom: clamp(3.5rem, 9vw, 8rem);
}
.hero h1 { max-width: 11.5em; }
.hero h1::after {
  content: ""; display: block;
  width: 5.5rem; height: 2px; background: var(--gold);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  transform-origin: left center;
}
.hero-text { font-size: clamp(1.06rem, 1.3vw, 1.18rem); color: var(--ink); max-width: 30em; }
.hero-where { margin-top: 1.5rem; font-size: .95rem; color: var(--muted); }
@media (min-width: 900px) {
  .hero-bg { object-position: left center; }
  .hero .wrap {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    column-gap: clamp(3rem, 6vw, 7rem);
    align-items: end;
    padding-left: max(var(--gutter), 17vw);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1::after { animation: draw 1.1s cubic-bezier(.2,.7,.1,1) .35s both; }
  @keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* Sections */
.section { padding: var(--space) 0; }
.section + .section { padding-top: 0; }
.split { display: grid; gap: 2.25rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(3rem, 7vw, 8rem); }
}
.lede { color: var(--muted); margin-top: 1.25rem; max-width: 26em; }

/* Promises */
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
.promises li { border-top: 1px solid var(--gold); padding-top: 1.1rem; }
.promises h3 { margin-bottom: .5rem; }
.promises p { color: var(--muted); }
@media (min-width: 640px) { .promises { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }

/* Services */
.services-list { list-style: none; margin: 0; padding: 0; counter-reset: way; }
.services-list li {
  counter-increment: way;
  display: grid; grid-template-columns: 2.4rem minmax(0, 1fr);
  column-gap: 1rem; row-gap: .35rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--gold);
}
.services-list li:last-child { border-bottom: 1px solid var(--gold); }
.services-list li::before {
  content: counter(way);
  grid-row: 1 / span 2;
  font-family: var(--serif); font-size: 1.75rem; line-height: 1.15; color: var(--navy);
}
.services-list p { grid-column: 2; color: var(--muted); }
@media (min-width: 900px) {
  .services-list li { grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 2rem; align-items: baseline; }
  .services-list li::before { grid-row: auto; }
  .services-list p { grid-column: 3; }
}
.services-note { margin-top: 1.75rem; color: var(--muted); font-size: .98rem; }

/* Quote + circuit chart (the signature moment) */
.quote-band { background: var(--navy); color: var(--surface); padding: var(--space) 0; }
.quote-band .wrap { display: grid; gap: 3.5rem; }
@media (min-width: 960px) {
  .quote-band .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(3rem, 7vw, 8rem); align-items: center; }
}
.quote-band blockquote { margin: 0; }
.quote-band blockquote p {
  font-family: var(--serif); font-size: clamp(1.85rem, 3.8vw, 3.1rem); line-height: 1.16;
  color: var(--surface); max-width: 17em; text-indent: -0.42em;
}
.quote-band figcaption {
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--gold);
  display: inline-block; font-size: .98rem; color: #d6dbe3;
}
.quote-band figcaption strong { color: var(--surface); font-weight: 600; }

.chart {
  background: var(--surface); color: var(--ink);
  padding: 1.5rem 1.4rem 1.25rem; border-radius: 3px;
  max-width: 26rem; width: 100%;
}
.chart-title { font-family: var(--serif); color: var(--navy); font-size: 1.35rem; line-height: 1.2; margin-bottom: 1rem; }
.chart ol { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.chart li {
  counter-increment: c;
  display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; gap: .75rem;
  padding: .55rem 0; border-top: 1px solid var(--line); font-size: .95rem;
}
.chart li::before {
  content: counter(c);
  font-weight: 700; font-size: .85rem; color: var(--navy);
  display: grid; place-items: center; width: 1.75rem; height: 1.75rem;
  border: 1px solid var(--navy); border-radius: 2px;
}
.chart .rating { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart-note { margin-top: 1rem; font-size: .82rem; color: var(--muted); }

/* About */
.about-body p { font-size: clamp(1.06rem, 1.4vw, 1.2rem); }
.about-body p:first-child::first-line { font-weight: 600; }

/* How it works + areas */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 1.75rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.4rem minmax(0,1fr); column-gap: 1rem; }
.steps li::before { content: counter(s) "."; font-family: var(--serif); font-size: 1.6rem; color: var(--navy); line-height: 1.2; }
.steps h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.steps p { color: var(--muted); }

.areas { margin-top: 3.5rem; padding-top: 1.25rem; border-top: 1px solid var(--gold); }
.areas h3 { margin-bottom: .75rem; }
.area-list { list-style: none; margin: 0 0 .75rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; }
.area-list li { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--ink); line-height: 1.2; }
.areas p { color: var(--muted); }

/* Contact */
.contact { background: var(--surface); padding: var(--space) 0; }
.contact .wrap { display: grid; gap: 3rem; }
@media (min-width: 900px) { .contact .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(3rem, 7vw, 8rem); align-items: end; } }
.big-phone {
  display: inline-block; margin-top: 1.25rem;
  font-family: var(--serif); font-size: clamp(2.3rem, 7vw, 4.6rem); line-height: 1;
  text-decoration: none; color: var(--navy); white-space: nowrap;
}
.big-phone:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.contact-lines { margin-top: 1.5rem; color: var(--muted); }
.hours h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.hours dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.5rem; }
.hours dt, .hours dd { margin: 0; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.hours dt { font-variant-caps: all-small-caps; letter-spacing: .06em; font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.hours dd { font-variant-caps: all-small-caps; letter-spacing: .05em; font-size: 1.1rem; color: var(--ink); text-align: right; }
.hours p { margin-top: 1rem; font-size: .92rem; color: var(--muted); }

/* Footer */
.site-footer { padding: 2.5rem 0 3rem; font-size: .92rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; justify-content: space-between; }
.site-footer svg { width: 170px; height: auto; }
.site-footer p { margin: 0; }
