/* ══════════════════════════════════════════════
   Saint Petersburg Electricians
   styles.css — stpetersburgelectricians.co
   Palette: ocean night / amber spark / ember red
══════════════════════════════════════════════ */

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

:root {
  --night:    #0B1F2E;
  --night-2:  #0f2840;
  --night-3:  #1A3A4A;
  --amber:    #F5A623;
  --amber-d:  #D4891A;
  --ember:    #FF4D1C;
  --ember-d:  #e03a0c;
  --ice:      #E8F4F8;
  --mist:     #7FA8BB;
  --white:    #FFFFFF;
  --disp:     'Bebas Neue', 'Impact', sans-serif;
  --body:     'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--night);
  color: var(--ice);
  overflow-x: hidden;
  line-height: 1.65;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--amber); color: var(--night);
  padding: .5rem 1rem; border-radius: 4px;
  font-weight: 700; z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ══ ANNOUNCEMENT BAR ══ */
.announce {
  background: var(--ember);
  text-align: center;
  padding: 9px 5vw;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
  position: relative; z-index: 101;
}
.announce a { color: #fff; text-decoration: underline; }

/* ══ NAV ══ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 64px;
  background: rgba(11,31,46,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(245,166,35,.18);
  transition: background .3s;
}
nav.scrolled { background: rgba(11,31,46,.99); }

.nav-brand {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none;
}
.nav-bolt {
  width: 36px; height: 36px;
  background: var(--amber);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-bolt svg { width: 20px; height: 20px; }
.nav-name {
  font-family: var(--disp);
  font-size: 1.35rem;
  letter-spacing: .06em;
  color: var(--white);
  line-height: 1;
}
.nav-name small {
  display: block;
  font-family: var(--body);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mist);
  margin-top: 1px;
}

.nav-right { display: flex; align-items: center; gap: .9rem; }
.nav-phone {
  font-size: .85rem; font-weight: 600;
  color: var(--amber); text-decoration: none;
  display: none;
  transition: color .2s;
}
.nav-phone:hover { color: var(--amber-d); }
@media(min-width:860px){ .nav-phone { display: block; } }

.nav-cta {
  display: flex; align-items: center; gap: .45rem;
  background: var(--ember); color: #fff;
  font-family: var(--disp);
  font-size: 1rem; letter-spacing: .08em;
  padding: 9px 18px; border-radius: 5px;
  text-decoration: none; white-space: nowrap;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--ember-d); transform: translateY(-1px); }

/* ══ HERO ══ */
.hero {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 110px 5vw 70px;
  overflow: hidden;
}

/* Animated electric grid background */
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(245,166,35,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,166,35,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 40%, transparent 100%);
}

/* Glowing orb */
.hero-orb {
  position: absolute;
  top: -10%; right: -5%;
  width: 60vw; max-width: 700px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(245,166,35,.12) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none; z-index: 0;
  animation: orb-pulse 5s ease-in-out infinite;
}
@keyframes orb-pulse {
  0%,100%{ transform: scale(1); opacity: .7; }
  50%{ transform: scale(1.1); opacity: 1; }
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: auto; width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,77,28,.12);
  border: 1px solid rgba(255,77,28,.4);
  color: #FF7A55;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 1.2rem;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #FF7A55;
  animation: bdot 1.4s ease-in-out infinite;
}
@keyframes bdot { 0%,100%{opacity:1} 50%{opacity:.1} }

/* THE signature element: animated spark headline */
.hero-headline {
  font-family: var(--disp);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: .95;
  letter-spacing: .02em;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-headline .line-amber {
  color: var(--amber);
  display: block;
  position: relative;
}
/* Spark underline draws in on load */
.hero-headline .line-amber::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--amber), transparent);
  animation: spark-draw 1s cubic-bezier(.4,0,.2,1) .6s forwards;
}
@keyframes spark-draw { to { width: 100%; } }

.hero-sub {
  font-size: 1.05rem;
  color: rgba(232,244,248,.72);
  line-height: 1.75; max-width: 480px;
  margin-bottom: 2.2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.btn-ember {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--ember); color: #fff;
  font-family: var(--disp);
  font-size: 1.15rem; letter-spacing: .08em;
  padding: 15px 28px; border-radius: 5px;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(255,77,28,.5);
  animation: cta-pulse 2.5s ease-in-out 1.5s infinite;
  transition: background .2s, transform .15s;
}
.btn-ember:hover { background: var(--ember-d); transform: translateY(-2px); animation: none; }
@keyframes cta-pulse {
  0%,100%{ box-shadow: 0 0 0 0 rgba(255,77,28,.5); }
  50%{ box-shadow: 0 0 0 14px rgba(255,77,28,0); }
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent;
  border: 1px solid rgba(245,166,35,.35);
  color: var(--amber); font-size: .92rem; font-weight: 600;
  padding: 14px 22px; border-radius: 5px;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.btn-ghost:hover { background: rgba(245,166,35,.08); border-color: var(--amber); }

.hero-phone-block {
  margin-top: 2rem; padding-top: 2rem;
  border-top: 1px solid rgba(245,166,35,.15);
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap;
}
.hero-phone-label {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--mist);
}
.hero-phone-num {
  font-family: var(--disp);
  font-size: 2rem; letter-spacing: .05em;
  color: var(--amber); text-decoration: none;
  transition: color .2s;
}
.hero-phone-num:hover { color: var(--amber-d); }

/* Hero right — image + stats card */
.hero-right { position: relative; }
.hero-img-wrap {
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(245,166,35,.2);
  box-shadow: 0 24px 64px rgba(0,0,0,.55);
  animation: float-card 7s ease-in-out infinite;
}
@keyframes float-card { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.hero-img-wrap img {
  width: 100%; display: block;
  height: 420px; object-fit: cover;
}

.hero-stat-card {
  position: absolute; bottom: -20px; left: -20px;
  background: var(--night-3);
  border: 1px solid rgba(245,166,35,.3);
  border-radius: 10px; padding: 1.2rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  animation: badge-pop .6s cubic-bezier(.34,1.56,.64,1) 1.2s both;
}
@keyframes badge-pop { from{transform:scale(0) rotate(-8deg);opacity:0} to{transform:scale(1) rotate(0);opacity:1} }
.stat-card-num {
  font-family: var(--disp);
  font-size: 2.2rem; letter-spacing: .04em;
  color: var(--amber); line-height: 1;
}
.stat-card-label {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--mist); margin-top: .2rem;
}

/* ══ TRUST STRIP ══ */
.trust-strip {
  position: relative; z-index: 1;
  background: rgba(245,166,35,.1);
  border-top: 1px solid rgba(245,166,35,.2);
  border-bottom: 1px solid rgba(245,166,35,.2);
  padding: 14px 5vw;
  display: flex; justify-content: center;
  flex-wrap: wrap; gap: 1.4rem;
}
.trust-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600;
  color: var(--amber); letter-spacing: .03em;
}
.trust-item svg { flex-shrink: 0; }

/* ══ SECTIONS ══ */
section { position: relative; z-index: 1; }
.section-inner { max-width: 1200px; margin: auto; padding: 90px 5vw; }

.eyebrow {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber); margin-bottom: .7rem;
}
h2 {
  font-family: var(--disp);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: .04em; line-height: 1.05;
  color: var(--white); margin-bottom: 1rem;
}
h2 em { font-style: normal; color: var(--amber); }
.sec-lead {
  font-size: 1rem; color: rgba(232,244,248,.68);
  line-height: 1.75; max-width: 620px; margin-bottom: 3rem;
}

/* ══ SERVICES ══ */
.svc-bg { background: var(--night-2); }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.3rem;
}
.svc-card {
  background: rgba(255,255,255,.033);
  border: 1px solid rgba(245,166,35,.1);
  border-radius: 10px; padding: 2rem 1.8rem;
  position: relative; overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.svc-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--amber), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.svc-card:hover { transform: translateY(-5px); border-color: rgba(245,166,35,.3); box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-icon {
  width: 50px; height: 50px; border-radius: 10px;
  background: rgba(245,166,35,.12);
  border: 1px solid rgba(245,166,35,.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; color: var(--amber);
}
.svc-card h3 {
  font-family: var(--disp);
  font-size: 1.3rem; letter-spacing: .04em;
  color: var(--white); margin-bottom: .6rem;
}
.svc-card p { font-size: .88rem; color: var(--mist); line-height: 1.65; }

/* ══ PROCESS ══ */
.process-bg { background: var(--night-3); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0; position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 28px; left: 5%; right: 5%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,166,35,.3), transparent);
  pointer-events: none;
}
.proc-step { text-align: center; padding: 0 1rem; }
.proc-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--night-2);
  border: 2px solid var(--amber);
  color: var(--amber);
  font-family: var(--disp);
  font-size: 1.4rem; letter-spacing: .05em;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  box-shadow: 0 0 20px rgba(245,166,35,.25);
}
.proc-step h3 {
  font-family: var(--disp);
  font-size: 1.05rem; letter-spacing: .05em;
  color: var(--white); margin-bottom: .35rem;
}
.proc-step p { font-size: .84rem; color: var(--mist); }

/* ══ REVIEWS ══ */
.rev-bg { background: var(--night-2); }
.rev-carousel-wrap { overflow: hidden; }
.rev-carousel {
  display: flex; gap: 1.3rem;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.rev-card {
  flex: 0 0 calc(33.333% - .87rem);
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(245,166,35,.12);
  border-radius: 10px; padding: 1.8rem 1.6rem;
}
.rev-stars { color: var(--amber); font-size: 1rem; letter-spacing: .05em; margin-bottom: .8rem; }
.rev-text { font-size: .9rem; color: rgba(232,244,248,.82); line-height: 1.7; margin-bottom: 1rem; }
.rev-footer { display: flex; align-items: center; gap: .75rem; }
.rev-init {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--disp); font-size: 1.1rem; color: #fff;
  flex-shrink: 0;
}
.rev-name { font-weight: 600; font-size: .9rem; color: var(--white); }
.rev-loc { font-size: .75rem; color: var(--mist); margin-top: .1rem; }

.carousel-controls {
  display: flex; justify-content: center; align-items: center;
  gap: 1rem; margin-top: 2rem;
}
.car-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(245,166,35,.25);
  color: var(--amber); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: background .2s;
}
.car-btn:hover { background: rgba(245,166,35,.12); }
.car-dots { display: flex; gap: .5rem; }
.car-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: none; cursor: pointer;
  transition: background .2s, transform .2s;
}
.car-dot.active { background: var(--amber); transform: scale(1.3); }

/* ══ WHY US ══ */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.why-list { list-style: none; }
.why-list li {
  display: flex; gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.why-list li:last-child { border-bottom: none; }
.why-ic {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 8px;
  background: rgba(245,166,35,.1);
  border: 1px solid rgba(245,166,35,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--amber); margin-top: 2px;
}
.why-text strong { display: block; font-weight: 700; color: var(--white); margin-bottom: .2rem; }
.why-text p { font-size: .88rem; color: var(--mist); line-height: 1.6; }
.why-panel {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-d) 100%);
  border-radius: 14px; padding: 2.5rem 2rem; text-align: center;
  box-shadow: 0 20px 60px rgba(245,166,35,.25);
}
.panel-big { font-family: var(--disp); font-size: 5rem; letter-spacing: .02em; color: var(--night); line-height: 1; }
.panel-label { font-size: .82rem; font-weight: 700; color: rgba(11,31,46,.7); letter-spacing: .06em; margin-bottom: 2rem; }
.panel-review {
  background: rgba(11,31,46,.15); border-radius: 8px;
  padding: 1.2rem; text-align: left; margin-top: 1.2rem;
}
.panel-review .stars { color: var(--night); font-size: .9rem; margin-bottom: .4rem; }
.panel-review p { font-size: .84rem; color: rgba(11,31,46,.88); line-height: 1.6; }
.panel-review cite { font-size: .72rem; color: rgba(11,31,46,.6); font-style: normal; display: block; margin-top: .35rem; }

/* ══ CTA BAND ══ */
.cta-band {
  background: linear-gradient(135deg, #1a0a00 0%, #2a1000 100%);
  border-top: 1px solid rgba(255,77,28,.3);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(232,244,248,.75); font-size: 1rem; margin-bottom: 2rem; }

/* ══ CONTACT ══ */
.contact-bg { background: var(--night-3); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.info-rows { display: flex; flex-direction: column; gap: 2rem; }
.info-row { display: flex; gap: 1rem; align-items: flex-start; }
.info-ic {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(245,166,35,.1);
  border: 1px solid rgba(245,166,35,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--amber);
}
.info-lbl { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); margin-bottom: .25rem; }
.info-val { color: var(--white); font-size: 1rem; font-weight: 500; line-height: 1.5; }
.info-val a { color: var(--white); text-decoration: none; }
.info-val a:hover { color: var(--amber); }

.map-wrap {
  border-radius: 12px; overflow: hidden;
  height: 340px; border: 1px solid rgba(245,166,35,.15);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ══ FAQ ══ */
.faq-bg { background: var(--night-2); }
details {
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 1.2rem 0;
}
details summary {
  cursor: pointer; list-style: none;
  font-family: var(--disp);
  font-size: 1.1rem; letter-spacing: .04em;
  color: var(--white);
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
details summary::-webkit-details-marker { display: none; }
.faq-icon { color: var(--amber); font-size: 1.4rem; margin-left: 1rem; flex-shrink: 0; transition: transform .25s; }
details[open] .faq-icon { transform: rotate(45deg); }
details p { margin-top: .85rem; font-size: .9rem; color: var(--mist); line-height: 1.7; }

/* ══ FOOTER ══ */
footer { background: #050e17; padding: 48px 5vw 24px; position: relative; z-index: 1; }
.foot-inner { max-width: 1200px; margin: auto; }
.foot-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 2rem; flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 1.5rem;
}
.foot-brand p { font-size: .8rem; color: var(--mist); margin-top: .6rem; max-width: 280px; line-height: 1.65; }
.foot-cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.foot-col h5 {
  font-family: var(--disp); font-size: .9rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--white); margin-bottom: .9rem;
}
.foot-col ul { list-style: none; }
.foot-col ul li { margin-bottom: .45rem; }
.foot-col ul li a { font-size: .8rem; color: var(--mist); text-decoration: none; transition: color .2s; }
.foot-col ul li a:hover { color: var(--amber); }
.foot-bottom {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.foot-bottom p { font-size: .74rem; color: rgba(127,168,187,.45); }
.foot-nap { font-size: .74rem; color: rgba(127,168,187,.45); font-style: normal; }
.foot-nap a { color: inherit; text-decoration: none; }

/* ══ FLOATING CALL BUTTON ══ */
.fab-wrap {
  position: fixed; bottom: 24px; right: 22px; z-index: 200;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.fab-label {
  background: rgba(11,31,46,.95); color: var(--amber);
  font-size: .67rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 11px; border-radius: 100px;
  white-space: nowrap; border: 1px solid rgba(245,166,35,.3);
  animation: fablabel .5s 2s both;
}
@keyframes fablabel { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
.fab {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--ember);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; position: relative;
  box-shadow: 0 4px 24px rgba(255,77,28,.65);
  transition: transform .2s;
}
.fab::before, .fab::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--ember);
  animation: fab-ripple 2.4s ease-out infinite;
}
.fab::after { animation-delay: 1.2s; }
@keyframes fab-ripple {
  0%{ transform: scale(1); opacity: .7; }
  100%{ transform: scale(2.5); opacity: 0; }
}
.fab:hover { transform: scale(1.1); }
.fab svg { position: relative; z-index: 1; }

/* ══ SCROLL REVEAL ══ */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s ease; }
.rv.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }

/* ══ RESPONSIVE ══ */
@media(max-width:900px){
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-right { order: -1; }
  .hero-img-wrap img { height: 260px; }
  .why-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .why-panel { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .rev-card { flex: 0 0 calc(50% - .65rem); }
  .process-grid::before { display: none; }
}
@media(max-width:640px){
  .svc-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .rev-card { flex: 0 0 100%; }
  .foot-top { flex-direction: column; }
  .hero-stat-card { bottom: -10px; left: 0; }
}
@media(max-width:480px){
  .section-inner { padding: 64px 5vw; }
  .process-grid { grid-template-columns: 1fr; }
  .trust-strip { gap: .8rem; }
  .fab { width: 58px; height: 58px; }
}
@media(prefers-reduced-motion:reduce){
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
