:root {
  --ink: #111827;
  --muted: #5a6472;
  --line: #d7dde7;
  --paper: #f4f1eb;
  --panel: #ffffff;
  --dark: #0d1118;
  --dark-soft: #171d27;
  --dark-line: #2b3340;
  --accent: #f0b429;
  --accent-strong: #d79013;
  --steel: #2e5f87;
  --green: #276749;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(46, 95, 135, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 95, 135, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 58%);
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  transition: background 220ms ease, box-shadow 220ms ease, padding 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(13, 17, 24, 0.96);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
  padding-block: 12px;
}

.brand img {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.24));
}

.site-nav {
  justify-self: center;
  display: flex;
  gap: 26px;
  font-size: 0.9rem;
  font-weight: 800;
}

.site-nav a,
.header-call {
  opacity: 0.9;
  transition: color 180ms ease, opacity 180ms ease;
}

.site-nav a:hover,
.header-call:hover {
  color: var(--accent);
  opacity: 1;
}

.header-call {
  font-weight: 900;
  white-space: nowrap;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.language-switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.language-switch a.is-active {
  color: #15120a;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  color: #fff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  padding: 150px clamp(18px, 5vw, 70px) 34px;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 112px clamp(18px, 5vw, 70px) auto auto;
  width: min(430px, 36vw);
  height: 210px;
  z-index: -1;
  border-top: 1px solid rgba(240, 180, 41, 0.42);
  border-right: 1px solid rgba(240, 180, 41, 0.42);
}

.hero-media,
.hero-media::after {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 12, 18, 0.94) 0%, rgba(8, 12, 18, 0.76) 48%, rgba(8, 12, 18, 0.2) 100%),
    linear-gradient(0deg, rgba(8, 12, 18, 0.88) 0%, rgba(8, 12, 18, 0) 54%);
}

.hero-content {
  max-width: 960px;
  margin-bottom: 52px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3,
.hero-panel strong,
.trust-strip strong {
  font-family: "Archivo", "Inter", Arial, sans-serif;
  font-stretch: 85%;
}

h1 {
  margin-bottom: 24px;
  max-width: 1000px;
  font-size: 5.4rem;
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-size: 3.8rem;
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.16rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button.primary {
  background: var(--accent);
  color: #15120a;
}

.button.primary:hover {
  background: #ffd166;
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1160px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.hero-panel div {
  min-height: 132px;
  padding: 22px;
  background: rgba(13, 17, 24, 0.72);
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel strong {
  margin-bottom: 10px;
  color: #fff;
  font-size: 1.18rem;
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.75);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--dark);
  color: #fff;
}

.trust-strip div {
  position: relative;
  padding: 26px clamp(18px, 4vw, 46px);
  background: var(--dark-soft);
}

.trust-strip div::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 28px;
  height: 28px;
  border-right: 2px solid rgba(240, 180, 41, 0.5);
  border-bottom: 2px solid rgba(240, 180, 41, 0.5);
}

.trust-strip span,
.project-type {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-strip strong {
  font-size: 1.08rem;
}

.section {
  padding: clamp(76px, 10vw, 128px) clamp(18px, 5vw, 70px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(30px, 6vw, 86px);
  align-items: center;
}

.section-copy {
  max-width: 850px;
}

.section-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.capability-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.capability-row span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #26313f;
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  font-weight: 800;
}

.credential-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.credential-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #fff;
}

.credential-card div {
  padding: 26px;
}

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

.section-heading {
  max-width: 910px;
  margin-bottom: 38px;
}

.services {
  background: #fff;
}

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

.service-card {
  display: grid;
  grid-template-rows: 240px 1fr;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card div {
  position: relative;
  padding: 28px;
}

.service-card div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  width: 64px;
  height: 4px;
  background: var(--accent);
}

.service-card span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--steel);
  font-weight: 900;
}

.service-card p,
.project-card p {
  color: var(--muted);
}

.dark-section {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}

.dark-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.42;
  pointer-events: none;
  background-image:
    linear-gradient(var(--dark-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--dark-line) 1px, transparent 1px);
  background-size: 56px 56px;
}

.dark-section > * {
  position: relative;
}

.dark-section .section-heading h2,
.dark-section h3 {
  color: #fff;
}

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

.project-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}

.project-card.featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 440px;
}

.project-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.project-card.featured img {
  height: 100%;
}

.project-card div {
  padding: 26px;
}

.project-card.featured > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px);
}

.project-subtitle {
  font-weight: 800;
  color: var(--ink) !important;
}

.project-facts {
  display: grid;
  gap: 14px;
  margin: 10px 0 0;
}

.project-facts div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 0;
}

.project-facts dt {
  color: var(--steel);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-facts dd {
  margin-left: 0;
  color: var(--muted);
}

.project-facts.compact div {
  grid-template-columns: 1fr;
  gap: 6px;
}

.gallery-section {
  background: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 150px;
  gap: 10px;
}

.gallery-item {
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: #e5e7eb;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(5) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item:nth-child(7) {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(50px, 7vw, 82px) clamp(18px, 5vw, 70px);
  background: var(--green);
  color: #fff;
}

.cta-band h2 {
  max-width: 780px;
  margin-bottom: 0;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(30px, 6vw, 82px);
  background: var(--paper);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  font-weight: 800;
}

.contact-list span {
  color: var(--muted);
  font-weight: 400;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: clamp(22px, 4vw, 36px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form label,
.contact-form .full {
  grid-column: span 1;
}

.contact-form label.full,
.contact-form button.full,
.form-note {
  grid-column: 1 / -1;
}

.contact-form span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 800;
}

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

input:focus,
textarea:focus {
  outline: 3px solid rgba(240, 180, 41, 0.34);
  border-color: var(--accent-strong);
}

textarea {
  resize: vertical;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
}

.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 12, 18, 0.94), rgba(8, 12, 18, 0.74)),
    url("assets/hero-electrician.jpg") center / cover;
}

.thanks-wrap {
  max-width: 760px;
}

.thanks-wrap .brand img {
  width: 160px;
  margin-bottom: 56px;
}

.thanks-wrap h1 {
  margin-bottom: 20px;
}

.thanks-wrap p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 42px 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.76);
  background: #090d13;
}

.site-footer img {
  width: 146px;
}

.site-footer p {
  margin-bottom: 0;
}

.mobile-action-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(13, 17, 24, 0.94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.mobile-action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  color: #fff;
  font-weight: 900;
}

.mobile-action-bar a:last-child {
  color: #15120a;
  background: var(--accent);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(6, 9, 14, 0.88);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-height: 84vh;
  max-width: min(1060px, 92vw);
  border-radius: var(--radius);
}

.lightbox button {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  h1 {
    font-size: 4.5rem;
  }

  h2 {
    font-size: 3.1rem;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 14px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav,
  .header-call {
    display: none;
  }

  .header-tools {
    justify-self: end;
  }

  .site-nav.is-open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 10px 18px 18px;
    background: rgba(13, 17, 24, 0.98);
  }

  .site-nav.is-open a {
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero {
    min-height: auto;
    padding-top: 126px;
  }

  .hero::before {
    display: none;
  }

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

  .hero-panel,
  .trust-strip,
  .service-grid,
  .project-grid,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .project-card.featured img {
    height: 300px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 74px;
  }

  .brand img {
    width: 126px;
  }

  h1 {
    font-size: 2.85rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero {
    padding-inline: 16px;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .hero-actions .button,
  .cta-band .button {
    width: 100%;
  }

  .hero-actions .button.secondary {
    display: none;
  }

  .trust-strip div {
    padding: 22px 18px;
  }

  .service-card {
    grid-template-rows: 210px 1fr;
  }

  .project-facts div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 138px;
  }

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(5),
  .gallery-item:nth-child(7) {
    grid-column: span 1;
    grid-row: span 1;
  }

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

  .mobile-action-bar {
    display: grid;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 2.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
