/* =============================================================
   Lightspeed Electrical Services — site styles
   Palette matches the logo: electric blue / cyan neon + lime green.
   Brand colors live in :root below. Change --brand* / --accent to rebrand.
   ============================================================= */

:root {
  /* Brand palette (logo: electric blue + cyan glow, lime accent) */
  --brand:        #0e63d6;   /* primary electric blue */
  --brand-dark:   #0a49a6;   /* hover / deep blue */
  --cyan:         #19a8ff;   /* neon cyan-blue glow (gradients) */
  --navy:         #08090b;   /* dark sections / footer (black, matches logo bg) */
  --navy-2:       #161a20;   /* near-black for subtle gradient depth */
  --accent:       #a3e635;   /* lime green accent */
  --accent-dark:  #84cc16;   /* deeper lime (hover/contrast) */
  --star:         #f5b50a;   /* gold — review stars only */
  --ink:          #14202e;   /* body text */
  --muted:        #5b6b7c;   /* secondary text */
  --line:         #e3e9f0;   /* borders */
  --bg:           #ffffff;
  --bg-soft:      #f1f7fe;   /* light blue-tinted section */
  --white:        #ffffff;

  --radius:       14px;
  --radius-sm:    10px;
  --shadow:       0 10px 30px rgba(10, 37, 64, .10);
  --shadow-lg:    0 24px 60px rgba(10, 37, 64, .18);
  --maxw:         1160px;
  --font:         "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --head:         "Poppins", var(--font);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #cdd9e6; }
.section--navy h2, .section--navy h3 { color: #fff; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--head); font-weight: 600;
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: .6rem;
}
.section--navy .eyebrow { color: var(--accent); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--head); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(13,91,209,.35); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; box-shadow: 0 12px 28px rgba(13,91,209,.45); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: #eef4fd; color: var(--brand-dark); }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy); color: #c9d6e5; font-size: .88rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #c9d6e5; }
.topbar a:hover { color: #fff; }
.topbar .topbar__left { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .lic { color: var(--accent); font-weight: 600; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(10,37,64,.05);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand__name { font-family: var(--head); font-weight: 700; font-size: 1.18rem; color: var(--navy); line-height: 1.05; }
.brand__name span { display: block; font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--head); font-weight: 500; color: var(--navy);
  padding: 10px 14px; border-radius: 8px; font-size: .98rem;
}
.nav__links a:hover, .nav__links a.active { background: var(--bg-soft); color: var(--brand); }
.nav__cta { margin-left: 10px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 3px; margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #eaf2fb;
  background:
    linear-gradient(115deg, rgba(8,24,43,.94) 0%, rgba(14,99,214,.80) 100%),
    url("../assets/hero.jpg") center/cover no-repeat;
}
.hero__inner { padding: 96px 0 104px; max-width: 720px; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.18rem; color: #d8e6f6; max-width: 600px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero__badges { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 36px; }
.hero__badge { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 600; color: #fff; font-size: .95rem; }
.hero__badge svg { flex: none; }

/* ---------- Trust strip ---------- */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust .container { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 18px; padding-top: 26px; padding-bottom: 26px; }
.trust__item { text-align: center; }
.trust__num { font-family: var(--head); font-weight: 700; font-size: 1.7rem; color: var(--brand); }
.trust__label { font-size: .9rem; color: var(--muted); }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--brand)); color: #fff; margin-bottom: 16px;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin: 0; }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-family: var(--head); font-weight: 600; font-size: .95rem; }

/* ---------- Feature / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list svg { flex: none; margin-top: 3px; color: var(--accent-dark); }
.feature-list strong { display: block; color: var(--navy); font-family: var(--head); }
.img-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid #fff; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__num {
  counter-increment: step; flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand); color: #fff; font-family: var(--head); font-weight: 700;
  display: grid; place-items: center;
}
.step__num::before { content: counter(step); }

/* ---------- Reviews ---------- */
.review { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.review .stars { color: var(--star); font-size: 1.1rem; letter-spacing: 2px; }
.review p { font-style: italic; color: var(--ink); margin: 12px 0 16px; }
.review .who { font-family: var(--head); font-weight: 600; color: var(--navy); font-style: normal; }
.review .where { color: var(--muted); font-size: .9rem; }

/* ---------- Area chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 20px; font-family: var(--head); font-weight: 500; color: var(--navy);
}
.section--navy .chip { background: var(--navy-2); border-color: rgba(255,255,255,.12); color: #fff; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(115deg, var(--cyan) 0%, var(--brand-dark) 100%);
  color: #fff; border-radius: 20px; padding: 52px 44px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #e4eefb; max-width: 560px; margin: 0 auto 22px; }
.cta-band .btn { margin: 6px; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.info-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.info-row svg { flex: none; color: var(--brand); margin-top: 3px; }
.info-row strong { display: block; font-family: var(--head); color: var(--navy); }
.info-row a { color: var(--muted); }
form .field { margin-bottom: 16px; }
form label { display: block; font-family: var(--head); font-weight: 500; font-size: .92rem; color: var(--navy); margin-bottom: 6px; }
form input, form select, form textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 1rem; color: var(--ink); background: #fff; transition: border .15s, box-shadow .15s;
}
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13,91,209,.15); }
form textarea { min-height: 130px; resize: vertical; }
.form-card { background: #fff; padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(115deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #dce7f3; padding: 70px 0; text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: .3rem; }
.page-hero p { color: #b9cadd; max-width: 620px; margin: 0 auto; }
.breadcrumb { font-size: .85rem; color: #8ea7c2; margin-bottom: 14px; }
.breadcrumb a { color: #b9cadd; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #9fb3c8; padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 36px; align-items: start; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; letter-spacing: .02em; }
.site-footer a { color: #9fb3c8; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-brand .brand__name { color: #fff; }
.footer-logo { width: 100%; max-width: 340px; height: auto; display: block; margin-bottom: 18px; }
@media (max-width: 720px) { .footer-logo { max-width: 240px; } }
.footer-brand p { color: #9fb3c8; margin-top: 14px; max-width: 280px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }

/* ---------- Floating call button (mobile) ---------- */
.call-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; display: none;
  background: var(--brand); color: #fff; padding: 14px 20px; border-radius: 999px;
  font-family: var(--head); font-weight: 600; box-shadow: var(--shadow-lg); align-items: center; gap: 8px;
}
.call-fab:hover { color: #fff; background: var(--brand-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split .img-frame { order: -1; }
}
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .nav__links {
    position: absolute; top: 76px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 18px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 13px 12px; border-radius: 8px; }
  .nav__cta { margin: 8px 0 0; }
  .nav__toggle { display: block; }
  .nav.open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .topbar__left .hide-sm { display: none; }
  .cta-band { padding: 40px 22px; }
  .call-fab { display: inline-flex; }
}

/* =============================================================
   Education / Code & Safety Guide
   ============================================================= */
.notice {
  background: #fff7e6; border: 1px solid #ffe2a8; border-left: 5px solid var(--accent);
  border-radius: var(--radius-sm); padding: 18px 20px; color: #6b5410; font-size: .95rem;
}
.notice strong { color: #5a4708; }

.toc { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.toc a {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-family: var(--head); font-weight: 500; font-size: .9rem; color: var(--navy);
}
.toc a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.topic { padding: 34px 0; border-top: 1px solid var(--line); scroll-margin-top: 130px; }
.topic:first-of-type { border-top: 0; }
.topic__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.topic__head h3 { font-size: 1.5rem; margin: 0; }
.topic__ref { font-family: var(--head); font-weight: 600; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); background: var(--bg-soft); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.compare__col { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.compare__col--old { border-color: #f0c9c9; }
.compare__col--new { border-color: #bfe3c8; }
.compare__media { aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; }
.compare__media img { width: 100%; height: 100%; object-fit: cover; }
.compare__body { padding: 18px 20px; }
.compare__tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--head); font-weight: 600; font-size: .9rem; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.compare__col--old .compare__tag { background: #fdecec; color: #b3261e; }
.compare__col--new .compare__tag { background: #e6f5ec; color: #1d7a3e; }
.compare__body ul { margin: 0; padding-left: 18px; }
.compare__body li { margin-bottom: 7px; color: var(--ink); }
.compare__col--old .compare__body li::marker { color: #b3261e; }
.compare__col--new .compare__body li::marker { color: #1d7a3e; }

.safety-callout {
  margin-top: 18px; background: var(--navy); color: #dbe7f4; border-radius: var(--radius-sm);
  padding: 16px 20px; display: flex; gap: 12px; align-items: flex-start; font-size: .96rem;
}
.safety-callout svg { flex: none; color: var(--accent); margin-top: 2px; }
.safety-callout strong { color: #fff; }

@media (max-width: 760px) {
  .compare { grid-template-columns: 1fr; }
  .topic__head h3 { font-size: 1.3rem; }
}
