/* DSS Electrical — clean, clear, spacious one-pager */

:root {
  --bg: #f4f7f8;
  --bg-white: #ffffff;
  --ink: #14202a;
  --ink-soft: #3d4d5c;
  --ink-muted: #6b7c8a;
  --line: rgba(20, 32, 42, 0.1);
  --line-strong: rgba(20, 32, 42, 0.16);
  --green: #7db82f;
  --green-deep: #5f9220;
  --cyan: #2f9fc8;
  --navy: #1e3f66;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 5rem;
  --shell: min(1080px, calc(100% - 3rem));
  --space-section: clamp(5.5rem, 12vw, 9rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(47, 159, 200, 0.1), transparent 55%),
    radial-gradient(ellipse 70% 45% at -10% 20%, rgba(125, 184, 47, 0.08), transparent 50%),
    linear-gradient(180deg, #eef3f5 0%, var(--bg) 28%, #eef2f4 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

address {
  font-style: normal;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition:
    background 350ms var(--ease),
    box-shadow 350ms var(--ease),
    backdrop-filter 350ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(244, 247, 248, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  width: var(--shell);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

.logo .custom-logo-link {
  display: inline-flex;
  line-height: 0;
}

.logo-img,
.logo .custom-logo {
  height: 1.85rem;
  width: auto;
  max-width: min(48vw, 10.5rem);
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: none;
  gap: 2.25rem;
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.nav a {
  position: relative;
  color: #fff;
  transition: color 220ms var(--ease), opacity 220ms var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
  color: #fff;
  opacity: 0.85;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  transition: color 220ms var(--ease);
}

.header-cta:hover,
.header-cta:focus-visible {
  color: var(--green);
}

.site-header.is-scrolled .nav,
.site-header.is-scrolled .nav a {
  color: var(--ink);
}

.site-header.is-scrolled .nav a:hover,
.site-header.is-scrolled .nav a:focus-visible {
  color: var(--ink);
  opacity: 1;
}

.site-header.is-scrolled .header-cta {
  color: var(--cyan);
}

.site-header.is-scrolled .header-cta:hover,
.site-header.is-scrolled .header-cta:focus-visible {
  color: var(--navy);
}

@media (min-width: 800px) {
  .nav {
    display: flex;
  }

  .header-cta {
    margin-left: 0;
  }

  .logo-img,
  .logo .custom-logo {
    height: 2.05rem;
  }
}

/* Hero — full-bleed */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: calc(var(--header-h) + 1rem) max(1.5rem, calc((100% - 1080px) / 2));
  overflow: clip;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.03);
  animation: hero-drift 22s var(--ease) infinite alternate;
}

@keyframes hero-drift {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(-1.2%, -0.8%, 0);
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 22, 32, 0.32) 0%, rgba(12, 22, 32, 0.28) 45%, rgba(12, 22, 32, 0.55) 100%),
    linear-gradient(90deg, rgba(12, 22, 32, 0.55) 0%, rgba(12, 22, 32, 0.2) 50%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(40rem, 100%);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 8vw, 5.25rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 11ch;
}

.hero-sub {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
}

.hero-lede {
  margin: 1.25rem 0 0;
  font-size: 1.15rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  max-width: 28rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  border-radius: 3px;
  transition:
    transform 220ms var(--ease),
    background 220ms var(--ease),
    border-color 220ms var(--ease),
    color 220ms var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--green);
  color: #0f1a08;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #8fd03a;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(12, 22, 32, 0.2);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Shared sections */

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.section-head {
  max-width: 34rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section-head h2,
.about-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.section-lede {
  margin: 1.25rem 0 0;
  color: var(--ink-muted);
  font-size: 1.15rem;
  max-width: 32rem;
}

/* Services — scroll-driven chain through the open right space */

.services {
  position: relative;
  padding: 0;
}

.services-sticky-wrap {
  height: 700vh;
}

.services-pin {
  position: sticky;
  top: var(--header-h);
  z-index: 2;
  height: calc(100svh - var(--header-h));
  display: grid;
  align-items: stretch;
  padding: 1.25rem 0 1.75rem;
  background:
    radial-gradient(ellipse 55% 60% at 85% 18%, rgba(47, 159, 200, 0.1), transparent 55%),
    radial-gradient(ellipse 45% 50% at 70% 70%, rgba(125, 184, 47, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(244, 247, 248, 0.98), rgba(238, 243, 245, 0.99));
}

.services-pin-inner {
  width: var(--shell);
  margin-inline: auto;
  height: 100%;
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.9fr) minmax(0, 1.35fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.services-lead {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 22rem;
  z-index: 2;
}

.services-pin .section-head {
  margin-bottom: 0;
}

.services-lead .section-lede {
  max-width: 20rem;
}

.service-counter {
  margin: 2rem 0 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: var(--green);
}

.service-counter-sep {
  margin: 0 0.35rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.service-progress {
  margin-top: 1.1rem;
  height: 2px;
  width: 100%;
  max-width: 11rem;
  background: var(--line-strong);
  border-radius: 2px;
  overflow: hidden;
}

.service-progress-bar {
  display: block;
  height: 100%;
  width: 16.666%;
  background: var(--green);
  border-radius: 2px;
  transition: width 350ms var(--ease);
}

.service-chain {
  position: relative;
  min-height: 0;
  height: 100%;
  width: 100%;
}

.service-chain-path {
  position: absolute;
  inset: 8% 6% 12% 4%;
  border-radius: 40% 60% 35% 65% / 45% 30% 70% 55%;
  border: 1px dashed rgba(47, 159, 200, 0.18);
  pointer-events: none;
}

.service-node {
  position: absolute;
  width: min(100%, 19rem);
  padding: 1.15rem 1.25rem 1.25rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 32, 42, 0.08);
  box-shadow: 0 10px 30px rgba(20, 32, 42, 0.04);
  backdrop-filter: blur(8px);
  transform-origin: center center;
  transition:
    top 550ms var(--ease),
    left 550ms var(--ease),
    opacity 550ms var(--ease),
    transform 550ms var(--ease),
    filter 550ms var(--ease),
    background 550ms var(--ease),
    box-shadow 550ms var(--ease),
    border-color 550ms var(--ease);
  will-change: top, left, opacity, transform;
}

.service-node-num {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green);
}

.service-node h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
}

.service-node p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Chain slots: 0 = focus (viewing area), then trails up-right and around */
.service-node[data-slot="0"] {
  top: 42%;
  left: 2%;
  width: min(100%, 22rem);
  opacity: 1;
  transform: translateY(-50%) scale(1);
  filter: none;
  z-index: 6;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(125, 184, 47, 0.35);
  box-shadow: 0 18px 40px rgba(20, 32, 42, 0.08);
}

.service-node[data-slot="0"] h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.service-node[data-slot="0"] p {
  font-size: 1.05rem;
}

.service-node[data-slot="1"] {
  top: 58%;
  left: 48%;
  opacity: 0.42;
  transform: translateY(-50%) scale(0.88);
  filter: saturate(0.85);
  z-index: 5;
}

.service-node[data-slot="2"] {
  top: 28%;
  left: 58%;
  opacity: 0.28;
  transform: translateY(-50%) scale(0.82);
  filter: saturate(0.7);
  z-index: 4;
}

.service-node[data-slot="3"] {
  top: 8%;
  left: 62%;
  opacity: 0.18;
  transform: translateY(0) scale(0.76);
  filter: blur(0.2px) saturate(0.55);
  z-index: 3;
}

.service-node[data-slot="4"] {
  top: 4%;
  left: 78%;
  opacity: 0.12;
  transform: translateY(0) scale(0.7);
  filter: blur(0.4px) saturate(0.4);
  z-index: 2;
}

.service-node[data-slot="5"] {
  top: 72%;
  left: 72%;
  opacity: 0.1;
  transform: translateY(-50%) scale(0.68);
  filter: blur(0.5px) saturate(0.35);
  z-index: 1;
}

@media (max-width: 899px) {
  .services-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .services-lead {
    max-width: none;
    justify-content: flex-start;
    padding-top: 0.5rem;
  }

  .services-lead .section-head h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .service-chain {
    min-height: 22rem;
    height: min(52vh, 28rem);
  }

  .service-chain-path {
    display: none;
  }

  .service-node {
    width: min(100%, 17rem);
    padding: 0.95rem 1rem;
  }

  .service-node[data-slot="0"] {
    top: 55%;
    left: 0;
    width: min(100%, 20rem);
  }

  .service-node[data-slot="1"] {
    top: 22%;
    left: 42%;
  }

  .service-node[data-slot="2"] {
    top: 4%;
    left: 52%;
  }

  .service-node[data-slot="3"],
  .service-node[data-slot="4"],
  .service-node[data-slot="5"] {
    top: 0;
    left: 70%;
    opacity: 0.08;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-sticky-wrap {
    height: auto;
  }

  .services-pin {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    padding: var(--space-section) 0;
  }

  .services-layout {
    grid-template-columns: 1fr;
  }

  .service-chain {
    position: relative;
    height: auto;
    display: grid;
    gap: 1.25rem;
  }

  .service-chain-path {
    display: none;
  }

  .service-node {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 36rem;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none;
  }

  .service-counter,
  .service-progress {
    display: none;
  }
}

/* About */

.about {
  padding: 0 0 var(--space-section);
}

.about-shell {
  display: grid;
  gap: 3rem;
}

.about-media {
  overflow: clip;
  border-radius: 2px;
  min-height: 280px;
  background: #d7e0e6;
}

.about-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  filter: saturate(0.92);
}

.about-copy > p:not(.eyebrow) {
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  max-width: 36rem;
  font-size: 1.1rem;
}

@media (min-width: 900px) {
  .about-shell {
    grid-template-columns: 1.05fr 1fr;
    gap: 5rem;
    align-items: center;
  }

  .about-media {
    min-height: 520px;
  }

  .about-media img {
    min-height: 520px;
  }
}

/* Contact */

.contact {
  padding: var(--space-section) 0;
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.7) 20%, rgba(255, 255, 255, 0.85));
  border-top: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  gap: 3.5rem;
  padding-top: 0.5rem;
}

.contact-phone {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  transition: color 220ms var(--ease);
}

.contact-phone:hover,
.contact-phone:focus-visible {
  color: var(--green-deep);
}

.contact-hours,
.contact-alt {
  margin: 1rem 0 0;
  color: var(--ink-muted);
  font-size: 1rem;
}

.contact-alt a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.contact-details {
  display: grid;
  gap: 2.5rem;
}

.person-role {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.person-name {
  margin: 0.45rem 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.contact-email {
  color: var(--green-deep);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 220ms var(--ease), color 220ms var(--ease);
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

.contact-address {
  color: var(--ink-muted);
  line-height: 1.7;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.contact-address strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

@media (min-width: 800px) {
  .contact-layout {
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: start;
  }
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.75rem;
  background: rgba(255, 255, 255, 0.55);
}

.footer-inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.95rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

@media (min-width: 700px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  transition:
    opacity 750ms var(--ease),
    transform 750ms var(--ease);
  transition-delay: var(--d, 0ms);
}

.hero .reveal,
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img {
    animation: none;
  }

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