/* ============================================================
   AMPED Electrical — demo site
   Design: brutalist-industrial · amber / navy · Anton + Barlow
   ============================================================ */

:root {
  --yellow: #ffc400;
  --ink: #13273a;      /* deep navy */
  --ink-2: #2c4257;
  --paper: #f5f2ea;
  --white: #ffffff;
  --grey: #5d6672;
  --display: "Anton", Impact, sans-serif;
  --body: "Barlow", "Segoe UI", sans-serif;
  --shadow: 6px 6px 0 var(--ink);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: var(--yellow); color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- shared ---- */
.section { padding: clamp(4rem, 8vw, 7.5rem) clamp(1.25rem, 5vw, 5rem); }
.section__head { max-width: 1240px; margin: 0 auto 3.2rem; }
.label {
  display: inline-block;
  font-weight: 800; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase;
  background: var(--ink); color: var(--yellow);
  padding: .35rem .8rem;
  margin-bottom: 1.1rem;
  transform: rotate(-1deg);
}
.label--light { background: var(--yellow); color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .95; letter-spacing: .01em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }

.btn {
  display: inline-block;
  font-weight: 800; font-size: .92rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 1.05rem 1.8rem;
  border: 3px solid var(--ink);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
  cursor: pointer;
}
.btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: var(--shadow); }
.btn--black  { background: var(--ink); color: var(--yellow); box-shadow: 6px 6px 0 var(--yellow); }
.btn--outline { background: transparent; color: var(--ink); }
.btn:hover { transform: translate(-2px, -2px); }
.btn--yellow:hover { box-shadow: 8px 8px 0 var(--ink); }
.btn--black:hover  { box-shadow: 8px 8px 0 var(--yellow); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

/* ---- reveals ---- */
.reveal-load { opacity: 0; transform: translateY(22px); animation: rise .8s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-load { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============ EMERGENCY BAR ============ */
.embar {
  display: flex; justify-content: center; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  background: var(--ink); color: var(--white);
  padding: .55rem 1rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .08em;
}
.embar a { color: var(--yellow); font-weight: 800; font-size: .95rem; letter-spacing: .1em; }
.embar a:hover { text-decoration: underline; }
.embar__pulse {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--yellow); margin-right: .5rem;
  animation: pulse 1.6s ease infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,196,0,.6);} 50% { box-shadow: 0 0 0 7px rgba(255,196,0,0);} }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  padding: .9rem clamp(1.25rem, 4vw, 3rem);
}
.nav__brand { font-family: var(--display); font-size: 1.7rem; letter-spacing: .02em; }
.nav__brand span { color: var(--yellow); -webkit-text-stroke: 1.5px var(--ink); }
.nav__links { display: flex; gap: 1.9rem; }
.nav__links a {
  font-weight: 700; font-size: .85rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .1rem;
  border-bottom: 3px solid transparent;
  transition: border-color .2s;
}
.nav__links a:hover { border-color: var(--yellow); }
.nav__burger { display: none; background: none; border: 0; width: 36px; height: 28px; position: relative; cursor: pointer; }
.nav__burger span { position: absolute; left: 3px; right: 3px; height: 3px; background: var(--ink); transition: .25s var(--ease); }
.nav__burger span:nth-child(1) { top: 5px; } .nav__burger span:nth-child(2) { top: 13px; } .nav__burger span:nth-child(3) { top: 21px; }
.nav__burger.open span:nth-child(1) { top: 13px; transform: rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { top: 13px; transform: rotate(-45deg); }

.mobile-menu[hidden] { display: none; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--yellow);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.6rem;
}
.mobile-menu a { font-family: var(--display); font-size: 2.2rem; text-transform: uppercase; }
.mobile-menu__cta { background: var(--ink); color: var(--yellow); padding: .6rem 1.6rem; }

/* ============ HERO ============ */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  max-width: 1280px; margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 5vw, 5rem);
}
.chip {
  display: inline-block;
  font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  border: 2px solid var(--ink);
  background: var(--white);
  padding: .35rem .9rem;
  box-shadow: 4px 4px 0 var(--ink);
  margin-bottom: 1.4rem;
}
.hero h1 { font-size: clamp(3rem, 7.5vw, 6rem); margin-bottom: 1.4rem; }
.hero h1 span { display: block; }
.hero__hl { color: var(--ink); background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); width: fit-content; }
.hero__lede { font-size: 1.12rem; color: var(--ink-2); max-width: 30rem; margin-bottom: 1.8rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.hero__trust { list-style: none; display: flex; gap: 1.6rem; flex-wrap: wrap; }
.hero__trust li { font-size: .86rem; color: var(--grey); border-left: 3px solid var(--yellow); padding-left: .7rem; }
.hero__trust strong { display: block; color: var(--ink); font-size: 1.05rem; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%; aspect-ratio: 4/4.6; object-fit: cover;
  border: 3px solid var(--ink);
  box-shadow: 12px 12px 0 var(--yellow), 12px 12px 0 3px var(--ink);
}
.hero__badge {
  position: absolute; bottom: -1.6rem; left: -1.6rem;
  display: flex; align-items: center; gap: .8rem;
  background: var(--ink); color: var(--white);
  border: 3px solid var(--ink);
  padding: .9rem 1.2rem;
  box-shadow: 6px 6px 0 var(--yellow);
  transform: rotate(-2deg);
}
.hero__badge-num { font-family: var(--display); font-size: 2.4rem; color: var(--yellow); line-height: 1; }
.hero__badge-num em { font-style: normal; font-size: 1rem; }
.hero__badge-txt { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.35; }

/* ============ HAZARD STRIPE ============ */
.hazard {
  height: 22px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 22px, var(--ink) 22px 44px);
  border-block: 3px solid var(--ink);
}

/* ============ ACCREDITATIONS ============ */
.accred {
  display: flex; justify-content: center; align-items: stretch;
  gap: clamp(.8rem, 2.5vw, 2rem); flex-wrap: wrap;
  padding: 1.6rem clamp(1.25rem, 5vw, 5rem);
  background: var(--paper);
}
.accred__badge {
  font-family: var(--display); font-size: 1.02rem; text-transform: uppercase; letter-spacing: .03em;
  text-align: center; line-height: 1.15;
  border: 2px solid var(--ink);
  padding: .7rem 1.1rem .6rem;
  background: var(--white);
}
.accred__badge small {
  display: block; font-family: var(--body); font-weight: 600;
  font-size: .62rem; letter-spacing: .08em; color: var(--grey); text-transform: none;
  margin-top: .2rem;
}

/* ============ HELLO ============ */
.hello { background: var(--paper); padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hello__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.hello__hi { font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.4rem); text-transform: uppercase; margin-bottom: 1.1rem; }
.hello__body { font-size: 1.12rem; color: var(--ink-2); line-height: 1.75; }
.hello__sig { margin-top: 1.2rem; font-weight: 700; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }

/* ---- review platforms line ---- */
.reviews__platforms { font-weight: 600; color: var(--grey); margin-top: .6rem; }

/* ---- areas served ---- */
.areas { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; max-width: 30rem; }
.areas__label { font-weight: 800; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); width: 100%; }
.areas span:not(.areas__label) {
  font-size: .8rem; font-weight: 600; color: #cfd6dd;
  border: 1px solid rgba(255, 196, 0, .35);
  padding: .22rem .7rem;
}

/* ============ SERVICES ============ */
.services { background: var(--white); }
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  max-width: 1240px; margin: 0 auto;
}
.scard {
  position: relative;
  background: var(--paper);
  border: 3px solid var(--ink);
  padding: 1.8rem 1.6rem 1.4rem;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.scard:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); background: var(--white); }
.scard__num {
  position: absolute; top: -1rem; right: 1rem;
  font-family: var(--display); font-size: 1.2rem;
  background: var(--yellow); border: 3px solid var(--ink);
  padding: .1rem .55rem;
}
.scard h3 { font-size: 1.25rem; margin-bottom: .7rem; }
.scard p { font-size: .95rem; color: var(--ink-2); margin-bottom: 1.1rem; }
.scard__price {
  font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  border-top: 2px dashed var(--ink);
  display: block; padding-top: .8rem;
}

/* ============ STATS ============ */
.stats { background: var(--ink); border-block: 3px solid var(--ink); padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 5rem); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; max-width: 1240px; margin: 0 auto; }
.stat { text-align: center; color: var(--white); }
.stat__num { font-family: var(--display); font-size: clamp(2.6rem, 5vw, 4.2rem); color: var(--yellow); }
.stat__plus { font-family: var(--display); font-size: 1.4rem; color: var(--yellow); }
.stat p { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: #b6c1cc; margin-top: .3rem; }

/* ============ PROCESS ============ */
.process__grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  max-width: 1240px; margin: 0 auto 3rem;
  counter-reset: step;
}
.pstep {
  background: var(--white);
  border: 3px solid var(--ink);
  padding: 2.4rem 1.6rem 1.6rem;
  position: relative;
  box-shadow: var(--shadow);
}
.pstep__num {
  position: absolute; top: -1.4rem; left: 1.4rem;
  font-family: var(--display); font-size: 1.5rem;
  width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center;
  background: var(--yellow); border: 3px solid var(--ink); border-radius: 50%;
}
.pstep h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.pstep p { font-size: .95rem; color: var(--ink-2); }
.process__media { max-width: 1240px; margin: 0 auto; position: relative; }
.process__media img {
  width: 100%; max-height: 480px; object-fit: cover;
  border: 3px solid var(--ink);
}
.process__media figcaption {
  position: absolute; bottom: 1.2rem; left: 1.2rem;
  background: var(--yellow); border: 3px solid var(--ink);
  font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .45rem .9rem;
}

/* ============ REVIEWS ============ */
.reviews { background: var(--white); border-top: 3px solid var(--ink); }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; max-width: 1240px; margin: 0 auto; }
.rcard { background: var(--paper); border: 3px solid var(--ink); padding: 1.7rem 1.5rem; position: relative; }
.rcard::before {
  content: "\201D"; position: absolute; top: -2.1rem; right: 1rem;
  font-family: var(--display); font-size: 5rem; color: var(--yellow);
  -webkit-text-stroke: 2px var(--ink);
}
.rcard__stars { color: var(--ink); background: var(--yellow); display: inline-block; padding: .1rem .5rem; border: 2px solid var(--ink); font-size: .85rem; letter-spacing: .18em; margin-bottom: 1rem; }
.rcard p { font-size: .98rem; color: var(--ink-2); margin-bottom: 1rem; }
.rcard cite { font-style: normal; font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }

/* ============ QUOTE ============ */
.quote { background: var(--ink); color: var(--white); }
.quote__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  max-width: 1240px; margin: 0 auto;
  align-items: start;
}
.quote h2 { color: var(--white); margin-bottom: 1.2rem; }
.quote__lede { color: #b6c1cc; max-width: 28rem; margin-bottom: 2rem; }
.quote__contacts { display: flex; flex-direction: column; gap: 1.1rem; }
.qcontact { display: flex; align-items: center; gap: 1rem; }
.qcontact span { font-size: 1.5rem; width: 3.2rem; height: 3.2rem; display: grid; place-items: center; background: var(--ink-2); border: 2px solid var(--yellow); flex-shrink: 0; }
.qcontact strong { display: block; font-size: 1.05rem; letter-spacing: .03em; }
.qcontact small { color: #93a1af; }
a.qcontact:hover strong { color: var(--yellow); }

.qform { background: var(--white); color: var(--ink); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--yellow); padding: clamp(1.6rem, 3vw, 2.4rem); }
.qform label { display: block; flex: 1; font-weight: 800; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.1rem; }
.qform__row { display: flex; gap: 1rem; }
.qform input, .qform textarea {
  display: block; width: 100%; margin-top: .4rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: .7rem .8rem;
  font-family: var(--body); font-size: .98rem;
  border-radius: 0;
}
.qform input:focus, .qform textarea:focus { outline: 3px solid var(--yellow); outline-offset: -1px; }
.qform textarea { resize: vertical; }
.qform__submit { width: 100%; margin-top: .3rem; }
.qform__ok { margin-top: 1rem; font-weight: 600; text-align: center; }
.qform__ok em { color: var(--grey); font-weight: 400; }

/* ============ FOOTER ============ */
.footer { background: var(--ink); color: #b6c1cc; border-top: 3px solid var(--yellow); }
.footer__inner { max-width: 1240px; margin: 0 auto; padding: 3rem clamp(1.25rem, 5vw, 5rem); text-align: center; }
.footer__brand { font-family: var(--display); font-size: 2rem; color: var(--white); }
.footer__brand span { color: var(--yellow); }
.footer__inner > p { margin: .7rem 0 1.4rem; font-size: .86rem; }
.footer__links { display: flex; justify-content: center; gap: 1.8rem; margin-bottom: 1.8rem; }
.footer__links a { font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.footer__links a:hover { color: var(--yellow); }
.footer__fine { font-size: .8rem; color: #7f8b98; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 520px; }
  .services__grid, .reviews__grid, .process__grid { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 1rem; }
  .quote__grid { grid-template-columns: 1fr; }
}
@media (max-width: 660px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .services__grid, .reviews__grid, .process__grid { grid-template-columns: 1fr; }
  .qform__row { flex-direction: column; gap: 0; }
  .embar { font-size: .72rem; gap: .5rem; }
  .hero__badge { left: 50%; transform: translateX(-50%) rotate(-2deg); }
}
