:root {
  --ink: #082d49;
  --muted: #5a6f73;
  --paper: #f7f3e8;
  --panel: #ffffff;
  --line: #ded6c4;
  --teal: #176f86;
  --gold: #c8aa64;
  --copper: #9b7439;
  --shadow: 0 22px 60px rgba(8, 45, 73, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 10px clamp(18px, 4vw, 56px);
  color: #fff;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(247, 243, 232, 0.96);
  box-shadow: 0 10px 34px rgba(8, 45, 73, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
}

.site-header:not(.is-scrolled):not(.is-open) .brand-logo {
  padding: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 28px);
  font-size: 0.95rem;
  font-weight: 850;
}

.site-nav a {
  opacity: 0.92;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold);
  opacity: 1;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: min(88vh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

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

.hero-media {
  background-image: url("assets/hero-electrical.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
}

.hero-overlay {
  background:
    radial-gradient(circle at 22% 20%, rgba(200, 170, 100, 0.24), transparent 28%),
    linear-gradient(90deg, rgba(8, 45, 73, 0.92), rgba(8, 45, 73, 0.62) 54%, rgba(8, 45, 73, 0.22)),
    linear-gradient(0deg, rgba(8, 45, 73, 0.82), rgba(8, 45, 73, 0.06) 48%);
}

.hero-inner {
  position: relative;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 150px 0 72px;
}

.hero-logo {
  width: min(360px, 78vw);
  margin-bottom: 24px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  mix-blend-mode: normal;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: normal;
  word-break: normal;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.4rem, 5.8vw, 5.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.16rem;
}

.hero-copy {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 950;
}

.button-primary {
  background: var(--gold);
  color: #1d2430;
}

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

.trust-strip,
.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  transform: translateY(-34px);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow);
}

.trust-strip div {
  min-height: 132px;
  padding: 24px;
  background: #fff;
}

.trust-strip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.trust-strip span,
.section p,
.service-grid p,
.process-list span,
.site-footer {
  color: var(--muted);
}

.section {
  padding: clamp(42px, 7vw, 88px) 0;
}

.section-heading {
  margin-bottom: 28px;
}

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

.service-grid article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(8, 45, 73, 0.08);
}

.service-grid span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 950;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-grid figure {
  position: relative;
  min-height: 330px;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.gallery-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 45, 73, 0.82), rgba(8, 45, 73, 0.1) 64%);
}

.gallery-grid figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 950;
  line-height: 1.16;
}

.gallery-grid figure:hover img {
  transform: scale(1.04);
}

.process {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 66px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.process-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  min-height: 76px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.process-list strong {
  color: var(--ink);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 66px);
  align-items: center;
  margin-bottom: 42px;
  padding: clamp(34px, 5vw, 56px);
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.contact p {
  color: rgba(255, 255, 255, 0.75);
}

.contact-card {
  display: grid;
  gap: 10px;
}

.contact-card a,
.contact-card span {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 850;
}

.contact-card .map-link {
  justify-content: center;
  border-color: transparent;
  background: var(--gold);
  color: #1d2430;
  text-align: center;
}

.contact-map {
  grid-column: 1 / -1;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 40px;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--ink);
  font-weight: 850;
}

@media (max-width: 960px) {
  .trust-strip,
  .service-grid,
  .gallery-grid,
  .process,
  .contact {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
  }

  .brand-logo {
    width: 62px;
    height: 62px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 14px 12px;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-inner {
    padding: 112px 0 46px;
  }

  h1 {
    font-size: clamp(2.2rem, 12vw, 3.7rem);
  }

  .trust-strip,
  .service-grid,
  .gallery-grid,
  .process-list li,
  .contact,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    transform: none;
    margin-top: 18px;
  }

  .gallery-grid figure,
  .gallery-grid img {
    min-height: 260px;
  }

  .contact {
    width: calc(100% - 24px);
    padding: 26px 18px;
  }

  .site-footer {
    flex-direction: column;
  }
}
