:root {
  --ink: #111827;
  --muted: #5b6472;
  --line: #d8dee8;
  --panel: #ffffff;
  --mist: #eef4f8;
  --navy: #0f172a;
  --blue: #1769e0;
  --blue-dark: #0d47a1;
  --gold: #f6c343;
  --green: #15803d;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f8fafc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.header-call,
.quick-contact a,
.btn,
.mini-details span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand {
  min-width: 250px;
  text-decoration: none;
}

.brand strong {
  display: block;
  font-size: 16px;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--gold);
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  gap: 22px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--blue);
}

.header-call {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 72px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--navy);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.78) 42%, rgba(15, 23, 42, 0.25) 100%),
    url("assets/electrical-guru-hero.jpg") 58% 48% / cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin: 0 0 clamp(40px, 8vw, 88px) clamp(18px, 5vw, 72px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.18;
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: #dbeafe;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  min-height: 48px;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-secondary {
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 0;
}

.trust-strip div {
  min-width: 128px;
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.12);
}

.trust-strip dt {
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.trust-strip dd {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
}

.quick-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-contact a {
  min-height: 70px;
  justify-content: center;
  padding: 18px;
  background: #fff;
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
}

.quick-contact svg {
  color: var(--blue);
}

.section,
.quote-section,
.seo-section,
.contact-section,
.split-section {
  padding: clamp(60px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.section-heading {
  width: min(820px, 100%);
  margin-bottom: 34px;
}

.section-heading p:last-child,
.quote-copy p,
.split-copy p {
  color: var(--muted);
  font-size: 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.service-card svg {
  width: 34px;
  height: 34px;
  margin-bottom: 24px;
  color: var(--blue);
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: var(--mist);
}

.work-image {
  min-height: 520px;
  border-radius: 8px;
  background: url("https://images.unsplash.com/photo-1565608438257-fac3c27beb36?auto=format&fit=crop&w=1200&q=82") center / cover;
  box-shadow: var(--shadow);
}

.check-list {
  list-style: none;
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 28px 0 0;
}

.check-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 10px;
  font-weight: 800;
}

.check-list svg,
.mini-details svg {
  color: var(--green);
}

.quote-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: #fff;
}

.quote-copy {
  position: sticky;
  top: 100px;
}

.quote-copy a {
  color: var(--blue);
  font-weight: 800;
}

.mini-details {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  color: #334155;
  font-weight: 900;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(23, 105, 224, 0.18);
  border-color: var(--blue);
}

.full {
  grid-column: 1 / -1;
}

.honeypot {
  display: none;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 24px;
  color: var(--green);
  font-weight: 800;
}

.seo-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: center;
  background: var(--navy);
  color: #fff;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-copy {
  margin: 18px 0 0;
  color: #cbd5e1;
  font-size: 17px;
}

.keyword-list span {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.seo-keywords {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  padding: 42px clamp(18px, 5vw, 72px);
  color: #dbeafe;
  background: #08111f;
}

.site-footer p,
.site-footer ul {
  margin: 8px 0 0;
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer a {
  color: #fff;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #93a4ba;
}

svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 720px;
  }

  .service-grid,
  .split-section,
  .quote-section,
  .seo-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .quote-copy {
    position: static;
  }

  .work-image {
    min-height: 360px;
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .brand {
    min-width: 0;
    width: 100%;
  }

  .header-call {
    width: 100%;
    justify-content: center;
  }

  .hero {
    min-height: 760px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(15, 23, 42, 0.68) 0%, rgba(15, 23, 42, 0.34) 38%, rgba(15, 23, 42, 0.9) 100%),
      url("assets/electrical-guru-hero-mobile.jpg") 47% 40% / cover;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 16px 34px;
  }

  h1 {
    font-size: 36px;
    line-height: 1.04;
  }

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

  .hero-actions .btn,
  .contact-actions .btn {
    width: 100%;
  }

  .quick-contact {
    grid-template-columns: 1fr;
  }

  .quick-contact a {
    justify-content: flex-start;
  }

  .quote-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .site-header {
    gap: 12px;
    padding: 12px 14px;
  }

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

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

  .nav-links {
    gap: 16px;
    font-size: 13px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    margin-bottom: 24px;
  }

  .eyebrow {
    font-size: 11px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-copy {
    margin-top: 16px;
    font-size: 16px;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .trust-strip {
    gap: 8px;
    margin-top: 22px;
  }

  .trust-strip div {
    min-width: calc(50% - 8px);
    padding: 10px 12px;
  }

  .trust-strip dd {
    font-size: 16px;
  }
}
