:root {
  --bg: #05090d;
  --panel: rgba(12, 19, 25, 0.82);
  --panel-solid: #0b1218;
  --line: rgba(255, 255, 255, 0.16);
  --line-warm: rgba(255, 126, 13, 0.45);
  --text: #f8fafc;
  --muted: #c6cbd1;
  --soft: #8f99a4;
  --orange: #ff7a00;
  --orange-2: #ff9d17;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.11), transparent 30rem),
    linear-gradient(180deg, #020507 0%, var(--bg) 44%, #070b0f 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 110px;
  padding: 18px clamp(20px, 3.2vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 10, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff4c12 0%, #ff8d08 72%, #ffb01a 100%);
  box-shadow: 0 12px 28px rgba(255, 122, 0, 0.24);
  position: relative;
  overflow: hidden;
}

.brand-mark span {
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-5px);
}

.brand-mark svg {
  position: absolute;
  bottom: 6px;
  width: 24px;
  height: 24px;
  fill: #fff;
  stroke-width: 1.5;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 26px;
  letter-spacing: 0;
}

.brand small {
  color: var(--text);
  font-size: 18px;
  margin-top: -2px;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 36px);
  color: #e9edf2;
}

.main-nav a {
  position: relative;
  padding: 16px 0;
  font-weight: 550;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--orange-2);
}

.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: var(--orange);
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
}

.phone-link svg,
.btn svg {
  width: 20px;
  height: 20px;
}

.phone-link svg {
  color: var(--orange);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  border-radius: 8px;
  padding: 0 28px;
  border: 1px solid transparent;
  font-size: 17px;
  font-weight: 850;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #ff6410 0%, #ff8a00 62%, #ffad16 100%);
  color: #fff;
  box-shadow: 0 16px 36px rgba(255, 122, 0, 0.24);
}

.btn-outline {
  border-color: var(--orange);
  background: rgba(3, 7, 10, 0.6);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  width: 46px;
  height: 46px;
  border-radius: 8px;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(2, 5, 7, 0.98) 0%, rgba(2, 5, 7, 0.9) 28%, rgba(2, 5, 7, 0.28) 55%, rgba(2, 5, 7, 0.08) 82%, rgba(2, 5, 7, 0.42) 100%),
    linear-gradient(180deg, rgba(2, 5, 7, 0.08) 0%, rgba(2, 5, 7, 0.74) 100%),
    url("./assets/electrician-hero.png");
  background-size: cover;
  background-position: 74% center;
  transform: scale(1.01);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(660px, calc(100% - 40px));
  padding: 58px 0 54px clamp(20px, 3.2vw, 56px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--orange-2);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(44px, 4.8vw, 68px);
  font-weight: 950;
}

h1 span,
h2 span {
  color: var(--orange);
}

.hero-copy {
  max-width: 470px;
  margin: 22px 0 28px;
  color: #d8dde2;
  font-size: 21px;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 0;
  margin-top: 34px;
  max-width: 820px;
}

.feature-row article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 86px;
  padding: 0 24px;
  border-right: 1px solid var(--line);
}

.feature-row article:first-child {
  padding-left: 0;
}

.feature-row article:last-child {
  border-right: 0;
}

.feature-row svg,
.stats svg,
.service-grid svg,
.contact-card svg,
.check-list svg {
  color: var(--orange);
}

.feature-row svg {
  grid-row: span 2;
  width: 54px;
  height: 54px;
  stroke-width: 1.7;
}

.feature-row strong,
.feature-row span {
  display: block;
}

.feature-row strong {
  font-size: 16px;
  line-height: 1.22;
}

.feature-row span {
  color: var(--muted);
  font-size: 14px;
}

.rating-card {
  position: absolute;
  right: clamp(20px, 3.5vw, 60px);
  bottom: 34px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: min(460px, calc(100% - 40px));
  padding: 24px 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 15, 21, 0.92);
  box-shadow: var(--shadow);
}

.rating-card svg {
  width: 44px;
  height: 44px;
  color: var(--orange);
}

.rating-card strong,
.rating-card span {
  display: block;
}

.rating-card strong {
  font-size: 21px;
}

.rating-card span {
  color: var(--muted);
}

.stars {
  margin-left: auto;
  color: var(--orange);
  letter-spacing: 0.14em;
}

.trust-strip,
.stats,
.section,
.contact {
  width: min(1440px, calc(100% - 64px));
  margin-inline: auto;
}

.trust-strip {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr;
  align-items: center;
  gap: 28px;
  min-height: 86px;
  color: #f2f5f7;
  border-bottom: 1px solid var(--line);
}

.trust-strip > * {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 54px;
  border-right: 1px solid var(--line);
}

.trust-strip > :last-child {
  border-right: 0;
}

.trust-strip svg {
  color: #f7f9fb;
  width: 40px;
  height: 40px;
}

.trust-strip strong {
  font-size: 28px;
  line-height: 0.95;
}

.trust-strip strong span {
  color: #ff4e38;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent),
    var(--panel);
  box-shadow: var(--shadow);
}

.stats article {
  display: grid;
  grid-template-columns: 56px auto;
  align-items: center;
  justify-content: center;
  column-gap: 22px;
  min-height: 120px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.stats article:last-child {
  border-right: 0;
}

.stats svg {
  grid-row: span 2;
  width: 52px;
  height: 52px;
  stroke-width: 1.8;
}

.stats strong {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
}

.stats span {
  color: var(--muted);
  font-size: 16px;
}

.section {
  padding: 86px 0 0;
}

.two-col,
.positioning,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}

h2 {
  max-width: 820px;
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 930;
}

.section-head {
  max-width: 860px;
  margin-bottom: 34px;
}

.check-list {
  display: grid;
  gap: 16px;
}

.check-list p {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #edf1f4;
  font-size: 18px;
}

.check-list svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 3px;
}

.service-grid,
.steps,
.mini-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-grid article,
.steps article,
.mini-panels article,
.quote-panel,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 46%),
    var(--panel);
  box-shadow: var(--shadow);
}

.service-grid article,
.steps article,
.mini-panels article {
  padding: 30px;
}

.service-grid svg {
  width: 44px;
  height: 44px;
  margin-bottom: 26px;
}

h3 {
  font-size: 25px;
  margin-bottom: 12px;
}

.service-grid p,
.steps p,
.mini-panels p,
.contact p {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}

.steps article {
  position: relative;
  overflow: hidden;
}

.steps span {
  display: block;
  color: var(--orange);
  font-size: 54px;
  font-weight: 950;
  line-height: 1;
  margin-bottom: 26px;
}

.quote-panel {
  padding: clamp(28px, 4vw, 46px);
}

.quote-panel blockquote {
  margin: 30px 0 0;
  padding-left: 22px;
  border-left: 4px solid var(--orange);
  color: #f4f7fa;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 750;
  line-height: 1.25;
}

.mini-panels {
  grid-template-columns: 1fr;
}

.mini-panels article span {
  display: block;
  color: var(--orange-2);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.contact {
  align-items: center;
  margin-block: 94px 60px;
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid var(--line-warm);
  border-radius: 8px;
  background:
    linear-gradient(100deg, rgba(255, 122, 0, 0.16), transparent 45%),
    var(--panel-solid);
  box-shadow: var(--shadow);
}

.contact h2 {
  margin-bottom: 18px;
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 26px;
}

.contact-card a,
.contact-card span,
.contact-card strong {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: #f7f9fb;
  font-size: clamp(17px, 2vw, 21px);
  overflow-wrap: anywhere;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    justify-self: end;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  body.nav-open .main-nav {
    position: fixed;
    inset: 92px 18px auto;
    display: grid;
    gap: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(5, 9, 13, 0.98);
    box-shadow: var(--shadow);
  }

  body.nav-open .main-nav a {
    padding: 14px 10px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-bottom: 140px;
  }

  .feature-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .feature-row article {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: rgba(4, 8, 12, 0.62);
  }

  .feature-row article:first-child {
    padding-left: 16px;
  }

  .stats,
  .service-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 88px;
    padding: 14px 18px;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
  }

  .brand strong {
    font-size: 20px;
  }

  .brand small {
    font-size: 15px;
  }

  .hero-bg {
    background-image:
      linear-gradient(90deg, rgba(2, 5, 7, 0.96), rgba(2, 5, 7, 0.44)),
      linear-gradient(180deg, rgba(2, 5, 7, 0.04), rgba(2, 5, 7, 0.88)),
      url("./assets/electrician-hero.png");
    background-position: 70% center;
  }

  .hero-content {
    width: 100%;
    padding: 44px 20px 180px;
  }

  .eyebrow {
    font-size: 13px;
    letter-spacing: 0.2em;
  }

  h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  h2 {
    font-size: clamp(32px, 10vw, 46px);
  }

  .hero-copy {
    font-size: 18px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 360px;
  }

  .feature-row,
  .stats,
  .service-grid,
  .steps,
  .two-col,
  .positioning,
  .contact,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .feature-row article {
    min-height: 72px;
  }

  .rating-card {
    left: 20px;
    right: 20px;
    bottom: 24px;
    min-width: 0;
    padding: 18px;
    gap: 14px;
  }

  .rating-card svg {
    width: 34px;
    height: 34px;
  }

  .stars {
    display: none;
  }

  .trust-strip,
  .stats,
  .section,
  .contact {
    width: calc(100% - 36px);
  }

  .trust-strip {
    padding: 18px 0;
    gap: 12px;
  }

  .trust-strip > *,
  .stats article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-strip > :last-child,
  .stats article:last-child {
    border-bottom: 0;
  }

  .stats article {
    min-height: 104px;
  }

  .section {
    padding-top: 64px;
  }

  .service-grid article,
  .steps article,
  .mini-panels article,
  .quote-panel {
    padding: 24px;
  }

  .contact {
    margin-block: 68px 36px;
    padding: 24px;
  }
}

@media (max-width: 420px) {
  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand-mark span {
    font-size: 21px;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand small {
    font-size: 13px;
  }

  .btn {
    width: 100%;
    padding-inline: 14px;
    font-size: 16px;
  }

  .feature-row article,
  .stats article {
    grid-template-columns: 46px 1fr;
  }

  .feature-row svg,
  .stats svg {
    width: 42px;
    height: 42px;
  }
}
