/* ============================================================
   A.V. ELECTRICIAN OF TORONTO — design system
   Matches brand mark: white ground, royal blue + black wordmark,
   gold bolt accent, navy Toronto skyline. Light, crisp, editorial.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@500;600;700;800;900&family=Work+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --white:      #ffffff;
  --paper:      #f4f6fb;
  --ink:        #14161c;
  --blue:       #1e4fd8;
  --blue-dark:  #143aa8;
  --navy:       #12306b;
  --navy-deep:  #0c2050;
  --gold:       #f5c518;
  --gold-dark:  #d9a800;
  --line:       #e3e6ee;
  --muted:      #5b6072;
  --muted-2:    #868c9e;

  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Work Sans', sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

p { margin: 0; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- brand rule (top of page) ---------- */
.brand-rule {
  height: 5px;
  width: 100%;
  background: var(--gold);
}

/* ---------- gold divider (echoes the dashes around "OF TORONTO") ---------- */
.divider-gold {
  height: 4px;
  width: 100%;
  background: var(--gold);
}
.divider-thin {
  height: 1px;
  width: 100%;
  background: var(--line);
}

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 58px; width: auto; }

nav.main-nav { display: flex; align-items: center; gap: 38px; }
nav.main-nav a {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--ink); }
nav.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--gold);
}

.header-cta { display: flex; align-items: center; gap: 14px; }
.phone-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  border: 1.5px solid var(--line);
  padding: 9px 18px;
  border-radius: 999px;
  transition: border-color 0.2s ease;
}
.phone-pill:hover { border-color: var(--blue); }
.phone-pill .bolt-dot { width: 13px; height: 13px; color: var(--gold-dark); flex-shrink: 0; }

.btn {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline-white:hover { border-color: var(--white); }

.header-cta .btn-gold span.short { display: none; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span { width: 26px; height: 2px; background: var(--ink); }

/* ================= HERO ================= */
.hero { padding: 76px 0 0; background: var(--white); }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
  padding-bottom: 80px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1.5px solid var(--gold);
  background: #fffaea;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.eyebrow svg { width: 14px; height: 14px; color: var(--gold-dark); }

.hero h1 {
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 0.98;
  font-weight: 800;
}
.hero h1 .accent { color: var(--blue); }
.accent-underline {
  position: relative;
  display: inline-block;
}
.accent-underline svg {
  position: absolute;
  left: 0; bottom: -10px;
  width: 100%; height: 12px;
}

.hero-sub {
  margin-top: 26px;
  max-width: 480px;
  font-size: 18px;
  color: var(--muted);
}
.hero-actions { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats { margin-top: 52px; display: flex; gap: 38px; flex-wrap: wrap; }
.hero-stats div { border-left: 3px solid var(--blue); padding-left: 14px; }
.hero-stats .num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  color: var(--ink);
  display: block;
}
.hero-stats .lbl {
  font-size: 12.5px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* hero brand graphic — echoes logo: bolt + skyline on soft tint disc */
.hero-art {
  position: relative;
  aspect-ratio: 1 / 0.95;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art .disc {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #eaf0fd 0%, #f4f6fb 62%, transparent 100%);
}
.hero-art svg.mark { position: relative; z-index: 2; width: 82%; }

/* ================= SECTION SHELLS ================= */
section { position: relative; }
.section-pad { padding: 92px 0; }
.section-head { max-width: 640px; margin: 0 0 54px; }
.section-head .kicker {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(29px, 3.8vw, 42px); line-height: 1.05; }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 17px; }
.section-alt { background: var(--paper); }

/* ================= SERVICES GRID ================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 6px;
  padding: 32px 28px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover {
  border-color: var(--blue);
  box-shadow: 0 14px 28px rgba(18, 48, 107, 0.08);
  transform: translateY(-3px);
}
.service-card .ic-badge {
  width: 46px; height: 46px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.service-card .ic-badge svg { width: 22px; height: 22px; }
.service-card h3 { font-size: 20px; margin-bottom: 10px; font-weight: 700; }
.service-card p { color: var(--muted); font-size: 15px; }

/* ================= TRUST BAR ================= */
.trust-bar { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-bar .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 32px 26px; border-left: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.trust-item:first-child { border-left: none; }
.trust-item .ic-round {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-item .ic-round svg { width: 20px; height: 20px; }
.trust-item strong { display: block; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; text-transform: uppercase; }
.trust-item span { color: var(--muted-2); font-size: 13px; }

/* ================= PROCESS ================= */
.process-list { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process-item { position: relative; padding-top: 18px; border-top: 3px solid var(--blue); }
.process-item::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--display);
  font-weight: 800;
  font-size: 40px;
  color: var(--gold-dark);
  display: block;
  margin-bottom: 12px;
}
.process-item h3 { font-size: 18px; margin-bottom: 8px; font-weight: 700; }
.process-item p { color: var(--muted); font-size: 14.5px; }

/* ================= CTA BAND ================= */
.cta-band { background: var(--navy); position: relative; overflow: hidden; }
.cta-band .wrap {
  padding: 70px 28px 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.cta-band h2 { color: var(--white); font-size: clamp(26px, 3.4vw, 38px); max-width: 560px; }
.cta-band h2 .accent { color: var(--gold); }
.cta-band-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ================= AREA CHIPS ================= */
.area-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.area-chip {
  border: 1.5px solid var(--line);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--navy);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.area-chip.hq { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ================= ABOUT ================= */
.about-hero { padding: 118px 0 64px; background: var(--white); }
.about-hero .kicker {
  font-family: var(--display); font-weight: 700; color: var(--blue);
  letter-spacing: 0.12em; text-transform: uppercase; font-size: 13.5px;
  display: block; margin-bottom: 18px;
}
.about-hero h1 { font-size: clamp(36px, 5.2vw, 60px); max-width: 780px; font-weight: 800; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.value-card {
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: 26px;
  border-left: 4px solid var(--gold);
}
.value-card h3 { font-size: 17px; margin-bottom: 8px; font-weight: 700; }
.value-card p { color: var(--muted); font-size: 14.5px; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--line); border-radius: 6px; overflow: hidden; }
.stat-strip div { padding: 36px 24px; text-align: center; border-left: 1px solid var(--line); background: var(--white); }
.stat-strip div:first-child { border-left: none; }
.stat-strip .num { font-family: var(--display); font-weight: 800; font-size: 40px; color: var(--blue); display: block; }
.stat-strip .lbl { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 6px; display: block; }

/* ================= CONTACT ================= */
.contact-hero { padding: 118px 0 56px; background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 46px; align-items: start; }
.contact-card { border: 1.5px solid var(--line); border-radius: 8px; padding: 34px; background: var(--white); }
.contact-method { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-method:last-of-type { border-bottom: none; }
.contact-method .ic-round { width: 40px; height: 40px; }
.contact-method .ic-round svg { width: 18px; height: 18px; }
.contact-method strong { display: block; font-family: var(--display); font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; font-size: 12.5px; color: var(--muted-2); margin-bottom: 4px; }
.contact-method a, .contact-method span { font-size: 17px; color: var(--ink); font-weight: 500; }

.field { margin-bottom: 20px; }
.field label {
  display: block; font-family: var(--display); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--paper);
  border: 1.5px solid var(--line);
  color: var(--ink);
  padding: 13px 16px;
  font-family: var(--body);
  font-size: 15px;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); background: var(--white); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hp-field { position: absolute; left: -9999px; }

/* ================= FOOTER ================= */
footer.site-footer { background: var(--paper); border-top: 4px solid var(--gold); padding: 60px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-brand img { height: 54px; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; max-width: 320px; }
.footer-col h4 { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; color: var(--navy); margin-bottom: 16px; text-transform: uppercase; }
.footer-col a, .footer-col span { display: block; color: var(--muted); font-size: 14.5px; padding: 6px 0; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; color: var(--muted-2); font-size: 13px; flex-wrap: wrap; gap: 10px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
  nav.main-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-cta .btn-gold span.long { display: none; }
  .header-cta .btn-gold span.short { display: inline; }
  .phone-pill { display: none; }
  .hero .wrap { grid-template-columns: 1fr; padding-bottom: 56px; }
  .hero-art { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .trust-bar .wrap { grid-template-columns: 1fr 1fr; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .trust-bar .wrap { grid-template-columns: 1fr; }
  .trust-item { border-left: none !important; border-top: 1px solid var(--line); }
  .trust-item:first-child { border-top: none; }
  .process-list { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip div { border-left: none !important; border-top: 1px solid var(--line); }
  .stat-strip div:first-child { border-top: none; }
  .field-row { grid-template-columns: 1fr; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
}

/* ---------- mobile nav drawer ---------- */
.mobile-nav {
  position: fixed; inset: 0; background: var(--white); z-index: 200;
  display: flex; flex-direction: column; padding: 28px;
  transform: translateX(100%); transition: transform 0.28s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 46px; }
.mobile-nav-close { background: none; border: none; color: var(--ink); font-size: 28px; cursor: pointer; }
.mobile-nav a {
  font-family: var(--display); font-weight: 700; font-size: 30px; text-transform: uppercase;
  padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink);
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
