:root {
  color-scheme: light dark;
  --bg: #f4f6f2;
  --surface: #ffffff;
  --surface-soft: #e5ece7;
  --ink: #10201c;
  --muted: #596b63;
  --line: #d6ded9;
  --accent: #24594d;
  --accent-strong: #102723;
  --accent-soft: #dbe9e2;
  --metal: #6f807b;
  --radius: 18px;
  --shadow: 0 24px 70px rgb(24 52 45 / .15);
  --font: ui-sans-serif, "Aptos", "Segoe UI", Helvetica, Arial, sans-serif;
  --container: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101513;
    --surface: #18201d;
    --surface-soft: #1f2a26;
    --ink: #edf3ef;
    --muted: #a9b6b0;
    --line: #314039;
    --accent: #7bb49f;
    --accent-strong: #d9efe5;
    --accent-soft: #20342d;
    --shadow: 0 24px 70px rgb(0 0 0 / .32);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 8%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 32rem),
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--metal) 14%, transparent), transparent 30rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
p { color: var(--muted); }
h1, h2, h3 { color: var(--ink); letter-spacing: -.035em; line-height: 1.02; }
h1 { max-width: 14.5ch; font-size: clamp(3rem, 6vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.65rem); }

.shell { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 132px) 0; }
.narrow { max-width: 780px; margin-bottom: 34px; }
.narrow p { max-width: 58ch; margin-top: 14px; font-size: 1.08rem; }

.skip-link {
  position: absolute;
  top: -60px;
  left: 18px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent-strong);
  color: var(--bg);
}
.skip-link:focus { top: 18px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand { display: grid; gap: 2px; }
.brand-mark { font-size: 1.15rem; font-weight: 780; letter-spacing: -.035em; color: var(--ink); }
.brand-sub { color: var(--muted); font-size: .74rem; }
.nav-main { justify-self: center; display: flex; align-items: center; gap: 26px; }
.nav-main a {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 720;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-main a:hover { color: var(--ink); }
.phone-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  font-weight: 760;
  transition: transform .22s var(--ease), background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.phone-link {
  padding: 0 18px;
  color: var(--bg);
  background: var(--accent-strong);
}
.phone-link:hover,
.button:hover { transform: translateY(-1px); }
.phone-link:active,
.button:active { transform: translateY(1px) scale(.99); }
.mobile-toggle { display: none; }

.hero { padding: clamp(44px, 7vw, 84px) 0 clamp(60px, 8vw, 96px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy p {
  max-width: 48ch;
  margin-top: 22px;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { padding: 0 24px; border: 1px solid transparent; white-space: nowrap; }
.button.primary { background: var(--accent-strong); color: var(--bg); }
.button.secondary { border-color: var(--accent); color: var(--accent-strong); background: transparent; }
.hero-media {
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) + 12px);
  box-shadow: var(--shadow);
  background: var(--surface-soft);
  transform: rotate(.45deg);
}
.hero-media img { aspect-ratio: 5 / 4; object-fit: cover; filter: saturate(.92) contrast(1.02); }

.intro-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}
.intro-card {
  min-height: 360px;
  display: flex;
  align-items: end;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgb(16 39 35 / .92), rgb(36 89 77 / .7)),
    url("assets/electrical-hero.png") center / cover;
  box-shadow: var(--shadow);
}
.intro-card p { max-width: 24ch; color: #f4f6f2; font-size: clamp(1.45rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: -.04em; }
.intro-text { padding-top: 10px; }
.intro-text p { max-width: 64ch; margin-top: 18px; font-size: 1.08rem; }

.service-layout {
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  grid-template-areas:
    "large image"
    "small image"
    "small2 image";
  gap: 18px;
}
.service-layout article,
.service-layout figure,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.service-layout article { padding: clamp(24px, 4vw, 42px); }
.service-layout article p { margin-top: 12px; max-width: 44ch; }
.service-large { grid-area: large; min-height: 240px; display: flex; flex-direction: column; justify-content: end; background: var(--accent-soft) !important; }
.service-layout article:nth-of-type(2) { grid-area: small; }
.service-layout article:nth-of-type(3) { grid-area: small2; }
.service-layout figure { grid-area: image; margin: 0; overflow: hidden; min-height: 100%; }
.service-layout figure img { height: 100%; object-fit: cover; filter: saturate(.88); }

.standards { background: color-mix(in srgb, var(--surface-soft) 70%, transparent); }
.standards-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.standards-grid p { margin-top: 18px; max-width: 52ch; }
.standards-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.standards-list li {
  display: grid;
  grid-template-columns: minmax(150px, .45fr) 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.standards-list strong { font-size: 1.08rem; }
.standards-list span { color: var(--muted); }

.process-panel {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(32px, 5vw, 70px);
  padding: clamp(28px, 5vw, 58px);
  border-radius: calc(var(--radius) + 8px);
  background: var(--accent-strong);
  color: var(--bg);
}
.process-panel h2,
.process-panel p { color: var(--bg); }
.process-panel p { opacity: .82; margin-top: 14px; }
.process-panel ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.process-panel li {
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--bg) 24%, transparent);
  border-radius: var(--radius);
}
.process-panel span { font-weight: 760; }

.faq-grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}
.faq-react,
.faq-list { display: grid; gap: 12px; }
details,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
summary,
.faq-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 760;
  text-align: left;
  cursor: pointer;
}
summary::-webkit-details-marker { display: none; }
details p,
.faq-item p { padding: 0 22px 22px; }
.faq-icon { font-size: .78rem; color: var(--accent); }

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.contact-grid > div:first-child p { margin-top: 16px; max-width: 42ch; }
.contact-card { padding: 26px; }
.contact-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-card p + span { margin-top: 24px; }
.contact-card a { color: var(--ink); font-weight: 720; }

.site-footer {
  padding: 54px 0 28px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr .55fr .65fr 1.15fr;
  gap: 28px;
}
.footer-grid nav { display: grid; align-content: start; gap: 10px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: .82rem;
}

.legal-content {
  max-width: 880px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.legal-content h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); }
.legal-content h2 { margin-top: 34px; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.legal-content p { margin-top: 12px; max-width: 72ch; }
.legal-content a { color: var(--accent-strong); font-weight: 720; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .phone-link { display: none; }
  .mobile-toggle {
    display: inline-grid;
    gap: 4px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
  }
  .mobile-toggle span { width: 18px; height: 2px; background: var(--ink); }
  .nav-main {
    position: absolute;
    inset: 74px 20px auto;
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  .nav-main.open { display: grid; justify-items: start; }
  .hero-grid,
  .intro-grid,
  .standards-grid,
  .process-panel,
  .faq-grid,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .service-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "large" "image" "small" "small2";
  }
  .service-layout figure img { aspect-ratio: 4 / 3; height: auto; }
  .standards-list li { grid-template-columns: 1fr; gap: 8px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 28px, var(--container)); }
  h1 { font-size: clamp(2.7rem, 14vw, 4.1rem); }
  .hero { padding-top: 34px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .intro-card { min-height: 280px; }
}
