/* =========================================================
   EDWARDS ELECTRICAL SERVICES — DESIGN TOKENS
   Palette drawn from the trade itself: charcoal panel housing,
   copper wire, and the cyan-white flash of an electric arc.
   ========================================================= */
:root {
  --bg: #0A0E13;
  --bg-2: #0E141B;
  --surface: #131A22;
  --surface-2: #1A232D;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --copper: #C9814A;
  --copper-bright: #E39A5E;
  --spark: #46E0CE;
  --spark-dim: #2BA79A;
  --amber: #FFB84D;

  --text: #EDF1F5;
  --text-muted: #98A5B3;
  --text-dim: #6C7987;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-soft: 0 20px 60px -20px rgba(0,0,0,0.6);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(600px circle at 15% 10%, rgba(201,129,74,0.10), transparent 60%),
    radial-gradient(700px circle at 85% 30%, rgba(70,224,206,0.08), transparent 60%),
    radial-gradient(900px circle at 50% 90%, rgba(201,129,74,0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea { font: inherit; }

:focus-visible {
  outline: 2px solid var(--spark);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.container--narrow { max-width: 820px; }

.section { padding: 110px 0; position: relative; }
.section--stats { padding: 60px 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; max-width: 720px; }
h3 { font-size: clamp(20px, 2.4vw, 26px); margin: 40px 0 14px; }
h4 { font-size: 17px; margin-bottom: 12px; }

p { color: var(--text-muted); }
.article p { margin-bottom: 18px; font-size: 16.5px; }
.article a { color: var(--copper-bright); border-bottom: 1px solid rgba(227,154,94,0.4); }
.article a:hover { border-color: var(--copper-bright); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--spark);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--spark);
  display: inline-block;
}

.section__lede { max-width: 620px; font-size: 17px; margin-bottom: 48px; }

/* =========================== BUTTONS =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.btn--sm { padding: 10px 18px; font-size: 13px; }
.btn--lg { padding: 16px 30px; font-size: 15.5px; }
.btn--block { width: 100%; }

.btn--copper {
  background: linear-gradient(135deg, var(--copper-bright), var(--copper));
  color: #14100C;
  box-shadow: 0 8px 24px -8px rgba(201,129,74,0.55);
}
.btn--copper:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(201,129,74,0.7); }

.btn--ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--spark); color: var(--spark); transform: translateY(-2px); }

/* =========================== GLASS / CARD =========================== */
.glass-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, var(--copper), transparent 40%, var(--spark));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px) perspective(600px) rotateX(1deg);
  box-shadow: var(--shadow-soft);
}
.card:hover::before { opacity: 1; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* =========================== NAV =========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), padding 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10,14,19,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }

.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo span { color: var(--copper-bright); }
.nav__logo-mark {
  width: 12px; height: 12px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--spark), var(--copper));
  box-shadow: 0 0 12px rgba(70,224,206,0.6);
}

.nav__links { display: flex; gap: 32px; }
.nav__links a { font-size: 14.5px; color: var(--text-muted); transition: color 0.2s; position: relative; }
.nav__links a:hover { color: var(--text); }

.nav__actions { display: flex; align-items: center; gap: 18px; }
.nav__phone { font-family: var(--font-mono); font-size: 14px; color: var(--text-muted); display: none; }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav__burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* =========================== HERO =========================== */
.hero {
  position: relative;
  padding: 168px 0 110px;
  overflow: hidden;
}
.hero__circuit {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
}
.hero__circuit svg { width: 100%; height: 100%; }
.trace { fill: none; stroke: var(--border-strong); stroke-width: 1.5; }
.trace--1 { stroke: rgba(201,129,74,0.35); stroke-dasharray: 6 3000; animation: trace-flow 7s linear infinite; }
.trace--2 { stroke: rgba(70,224,206,0.3); stroke-dasharray: 6 3000; animation: trace-flow 9s linear infinite 1s; }
.trace--3 { stroke: rgba(201,129,74,0.22); stroke-dasharray: 6 3000; animation: trace-flow 8s linear infinite 2.5s; }
@keyframes trace-flow { to { stroke-dashoffset: -3000; } }
.node { fill: var(--spark); opacity: 0.7; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.badge__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--spark);
  box-shadow: 0 0 10px var(--spark);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero__copy h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  margin-bottom: 22px;
  max-width: 620px;
}
.hero__lede { font-size: 18px; max-width: 520px; margin-bottom: 34px; }

.hero__cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 52px; }

.hero__trust { display: flex; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; flex-direction: column; }
.trust-item__num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--copper-bright), var(--spark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.trust-item__label { font-size: 13px; color: var(--text-dim); margin-top: 2px; }

.hero__panel { position: relative; height: 480px; }
.hero__float {
  position: absolute;
  padding: 18px 22px;
  width: 190px;
  animation: float 6s ease-in-out infinite;
}
.hero__float--1 { top: 6%; right: 10%; animation-delay: 0s; }
.hero__float--2 { top: 42%; right: -4%; animation-delay: 1.2s; }
.hero__float--3 { bottom: 6%; right: 20%; animation-delay: 2.4s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.glow-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--copper-bright);
  box-shadow: 0 0 12px var(--copper-bright);
  display: inline-block;
  margin-bottom: 10px;
}
.glow-dot--cyan { background: var(--spark); box-shadow: 0 0 12px var(--spark); }

.hero__float-title { font-size: 12px; color: var(--text-dim); font-family: var(--font-mono); }
.hero__float-value { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-top: 4px; }

.hero__breaker {
  position: absolute;
  left: 4%;
  bottom: 4%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-soft);
}
.hero__breaker-row { display: flex; gap: 8px; }
.hero__breaker-row span {
  width: 14px; height: 34px;
  border-radius: 3px;
  background: linear-gradient(180deg, #2A3540, #1A222B);
  border: 1px solid var(--border-strong);
  position: relative;
}
.hero__breaker-row span::after {
  content: "";
  position: absolute;
  top: 4px; left: 50%;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--spark);
  transform: translateX(-50%);
  box-shadow: 0 0 6px var(--spark);
  opacity: 0;
  animation: breaker-blink 3s ease-in-out infinite;
}
.hero__breaker-row span:nth-child(2)::after { animation-delay: 0.6s; }
.hero__breaker-row span:nth-child(3)::after { animation-delay: 1.2s; }
@keyframes breaker-blink { 0%,80%,100% { opacity: 0; } 90% { opacity: 1; } }

/* =========================== SERVICES =========================== */
.service-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(201,129,74,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-card__icon svg { width: 24px; height: 24px; stroke: var(--copper-bright); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin: 0 0 10px; font-size: 20px; }
.service-card p { font-size: 15px; margin-bottom: 16px; }
.service-card__list { margin-bottom: 20px; }
.service-card__list li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
}
.service-card__list li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--spark);
}
.card-link { font-size: 14px; font-weight: 600; color: var(--spark); }

/* =========================== STATS =========================== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { padding: 32px 24px; text-align: center; }
.stat-card__value {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: var(--text);
}
.stat-card__value span { background: linear-gradient(135deg, var(--copper-bright), var(--spark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card__label { font-size: 13.5px; color: var(--text-dim); margin-top: 6px; }

/* =========================== TIMELINE =========================== */
.timeline { position: relative; max-width: 760px; margin-top: 50px; }
.timeline__line {
  position: absolute; left: 23px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(180deg, var(--copper), var(--spark));
  opacity: 0.4;
}
.timeline__step { display: flex; gap: 26px; margin-bottom: 30px; position: relative; }
.timeline__marker {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  color: var(--spark);
  z-index: 1;
}
.timeline__content { padding: 22px 26px; flex: 1; }
.timeline__content h3 { margin: 0 0 6px; font-size: 18px; }
.timeline__content p { font-size: 14.5px; margin: 0; }

/* =========================== ARTICLE ELEMENTS =========================== */
.checklist li { padding-left: 26px; position: relative; margin-bottom: 10px; color: var(--text-muted); }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--spark);
  font-weight: 700;
}

.callout { border-radius: var(--radius-sm); padding: 20px 24px; margin: 28px 0; border-left: 3px solid; }
.callout--tip { background: rgba(70,224,206,0.06); border-color: var(--spark); }
.callout--warning { background: rgba(255,184,77,0.07); border-color: var(--amber); }
.callout__label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; color: var(--text); }
.callout p { color: var(--text-muted); margin: 0; font-size: 15px; }

.compare-table { width: 100%; border-collapse: collapse; margin: 30px 0; font-size: 14.5px; }
.compare-table th, .compare-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.compare-table th { font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--spark); }
.compare-table td { color: var(--text-muted); }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0; }
.pros-cons__col { padding: 22px 24px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.pros-cons__col--pros { background: rgba(70,224,206,0.05); }
.pros-cons__col--cons { background: rgba(255,255,255,0.02); }
.pros-cons__col li { padding-left: 18px; position: relative; margin-bottom: 8px; font-size: 14.5px; color: var(--text-muted); }
.pros-cons__col--pros li::before { content: "+"; position: absolute; left: 0; color: var(--spark); font-weight: 700; }
.pros-cons__col--cons li::before { content: "–"; position: absolute; left: 0; color: var(--amber); font-weight: 700; }

.stat-box { display: flex; gap: 20px; flex-wrap: wrap; margin: 32px 0; }
.stat-box__item {
  flex: 1; min-width: 150px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  font-size: 13px;
  color: var(--text-dim);
}
.stat-box__item span { display: block; font-family: var(--font-display); font-size: 26px; color: var(--copper-bright); margin-bottom: 4px; }

.pull-quote {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.5;
  color: var(--text);
  border-left: 3px solid var(--copper);
  padding-left: 24px;
  margin: 36px 0;
}

/* =========================== FAQ / ACCORDION =========================== */
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 500;
  color: var(--text);
}
.accordion__icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; margin-left: 20px; }
.accordion__icon::before, .accordion__icon::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  background: var(--spark);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
.accordion__icon::before { width: 12px; height: 2px; }
.accordion__icon::after { width: 2px; height: 12px; }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.accordion__panel p { padding: 0 4px 22px; font-size: 15px; max-width: 680px; }

/* =========================== TESTIMONIALS =========================== */
.testimonial-card { padding: 28px; }
.testimonial-card__top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--copper), var(--spark));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  color: #0A0E13;
}
.testimonial-card__name { font-size: 14.5px; font-weight: 600; }
.testimonial-card__location { font-size: 12.5px; color: var(--text-dim); }
.stars { color: var(--amber); font-size: 14px; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card p:last-child { font-size: 14.5px; color: var(--text-muted); }

/* =========================== CONTACT =========================== */
.contact-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: 60px; align-items: start; }
.contact-list { margin: 34px 0; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.contact-list__icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 10px;
  background: rgba(70,224,206,0.08);
  display: flex; align-items: center; justify-content: center;
}
.contact-list__icon svg { width: 18px; height: 18px; stroke: var(--spark); fill: none; stroke-width: 1.8; }
.contact-list__label { display: block; font-size: 12px; color: var(--text-dim); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px; }
.contact-list a, .contact-list span { font-size: 15.5px; }

.contact-form { padding: 34px; }
.contact-form h3 { margin: 0 0 22px; }
.contact-form label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }
.contact-form input, .contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 13px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--spark); }
.contact-form__note { text-align: center; font-size: 13.5px; color: var(--spark); margin-top: 14px; min-height: 18px; }

/* =========================== FOOTER =========================== */
.footer { border-top: 1px solid var(--border); padding-top: 70px; margin-top: 60px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer__col p { font-size: 14px; margin-top: 14px; max-width: 260px; }
.footer__col h4 { color: var(--text); }
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul a { font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.footer__col ul a:hover { color: var(--spark); }
.footer__social { display: flex; gap: 12px; margin-top: 18px; }
.footer__social a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
}
.footer__social svg { width: 15px; height: 15px; stroke: var(--text-muted); fill: none; stroke-width: 1.6; }
.footer__social a:hover svg { stroke: var(--spark); }
.footer__bottom { border-top: 1px solid var(--border); padding: 24px 0; }
.footer__bottom p { font-size: 13px; color: var(--text-dim); }

/* =========================== SCROLL REVEAL =========================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================== RESPONSIVE =========================== */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__panel { display: none; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .nav__phone { display: inline-flex; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__phone { display: none; }
  .section { padding: 70px 0; }
  .hero { padding: 130px 0 70px; }
  .grid--3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__trust { gap: 24px; }
  .hero__cta-row .btn { width: 100%; }
}

.nav.nav--open .nav__links {
  display: flex;
  position: absolute;
  top: 100%; left: 0; right: 0;
  flex-direction: column;
  background: rgba(10,14,19,0.97);
  padding: 24px;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}
