:root {
  --bg: #080b12;
  --bg-soft: #101725;
  --card: rgba(17, 25, 39, 0.74);
  --card-border: rgba(244, 176, 62, 0.26);
  --text: #f3f6ff;
  --muted: #b8c3db;
  --accent: #f4b03e;
  --accent-strong: #ff8800;
  --accent-soft: rgba(244, 176, 62, 0.15);
  --success: #59d39b;
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  --radius: 20px;
  --radius-sm: 12px;
  --container: min(1180px, 92vw);
  --duration: 0.7s;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 0% 0%, #122137 0%, #080b12 44%),
    radial-gradient(circle at 100% 0%, #1e1f30 0%, rgba(30, 31, 48, 0) 38%), var(--bg);
  min-height: 100vh;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: -1;
}

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

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  color: #000;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  z-index: 999;
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  z-index: 100;
  box-shadow: 0 0 25px rgba(244, 176, 62, 0.6);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(7, 10, 18, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
}

.brand img {
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.main-nav a {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.header-cta {
  border: 1px solid var(--card-border);
  background: rgba(244, 176, 62, 0.1);
  color: var(--text);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.35s ease;
}

.header-cta:hover {
  background: rgba(244, 176, 62, 0.2);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.hero {
  position: relative;
  min-height: min(920px, 100svh);
  display: grid;
  place-items: center;
  background: linear-gradient(120deg, rgba(7, 10, 18, 0.7), rgba(7, 10, 18, 0.35)),
    url("images/hero-electrician.jpg") center/cover no-repeat;
  overflow: clip;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 35%), rgba(244, 176, 62, 0.2), transparent 45%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at center, #000 40%, transparent 90%);
  animation: drift 14s linear infinite;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(68px, 68px, 0);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2rem;
  padding: 6.5rem 0 4.2rem;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

.hero-copy p {
  color: #dce3f9;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 54ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.7rem 0 1.4rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.8rem 1.1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0d111c;
  box-shadow: 0 18px 28px rgba(255, 142, 0, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 24px 36px rgba(255, 142, 0, 0.4);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.11);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-badges li {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  color: #f0f4ff;
  font-size: 0.9rem;
}

.hero-panel {
  border: 1px solid var(--card-border);
  background: linear-gradient(180deg, rgba(15, 19, 31, 0.92), rgba(15, 19, 31, 0.74));
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.hero-panel h2 {
  margin-top: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  line-height: 1.2;
}

.hero-panel p {
  color: var(--muted);
  margin-bottom: 1.15rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.stat-card {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
}

.stat-value {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.stat-label {
  color: #d6def5;
  font-size: 0.84rem;
}

.ticker {
  border-block: 1px solid rgba(255, 255, 255, 0.09);
  background: #070b13;
  overflow: hidden;
}

.ticker-track {
  display: inline-flex;
  gap: 2.2rem;
  padding: 1rem 0;
  white-space: nowrap;
  animation: marquee 24s linear infinite;
}

.ticker-track span {
  color: #d0dbf5;
  font-family: "Space Grotesk", sans-serif;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.section {
  padding: clamp(3.5rem, 5vw, 6rem) 0;
}

.section-dark {
  background: linear-gradient(180deg, #0b1120 0%, #070c15 100%);
}

.section-head {
  max-width: 78ch;
  margin-bottom: 2rem;
}

.section h2 {
  margin: 0.1rem 0 0.7rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.1;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

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

.service-card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(17, 25, 39, 0.72), rgba(17, 25, 39, 0.52));
  padding: 1.3rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: -40% 35% auto auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(244, 176, 62, 0.32), transparent 70%);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-border);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.28);
}

.service-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.12rem;
  line-height: 1.3;
}

.service-card p {
  color: #d6e0f7;
  margin: 0.8rem 0 0.7rem;
}

.service-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #c7d2ee;
}

.service-card li {
  margin: 0.3rem 0;
}

.link-btn {
  margin-top: 0.9rem;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.service-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.35s ease;
}

.service-card.expanded .service-details {
  max-height: 200px;
  opacity: 1;
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.process-list li {
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}

.process-list span {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.process-list h3 {
  margin: 0;
  font-size: 1.02rem;
  font-family: "Space Grotesk", sans-serif;
}

.process-list p {
  margin: 0.6rem 0 0;
  color: #d0daf5;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.gallery-item {
  margin: 0;
}

.gallery-button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  background: transparent;
}

.gallery-button img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: saturate(0.94) contrast(1.04);
}

.gallery-button:hover img {
  transform: scale(1.08);
  filter: saturate(1.1) contrast(1.06);
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 1.4rem;
  align-items: start;
}

.area-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(17, 25, 39, 0.55);
  padding: 1.2rem;
}

.area-panel h3 {
  margin-top: 0;
  font-family: "Space Grotesk", sans-serif;
}

.area-panel ul {
  margin: 0;
  padding-left: 1.1rem;
}

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

.values-grid article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.values-grid h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.values-grid p {
  color: #d0dbf7;
  margin: 0.6rem 0 0;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  border: 0;
  padding: 1rem;
  background: transparent;
  color: var(--text);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  font-family: "Space Grotesk", sans-serif;
  cursor: pointer;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-content p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: #d3def8;
}

.faq-item.open .faq-content {
  max-height: 220px;
}

.faq-item.open .faq-trigger span:last-child {
  transform: rotate(45deg);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  align-items: start;
}

.contact-list {
  padding-left: 1.1rem;
}

.contact-list li {
  margin: 0.35rem 0;
  color: #d0dbf6;
}

.contact-list a {
  color: var(--accent);
}

.contact-form {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: rgba(17, 25, 39, 0.56);
  padding: 1.2rem;
  display: grid;
  gap: 0.55rem;
}

.contact-form label {
  font-size: 0.9rem;
  color: #e0e8ff;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(7, 12, 22, 0.65);
  color: var(--text);
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(244, 176, 62, 0.55);
  outline-offset: 1px;
}

.form-note {
  margin: 0;
  color: #b5c3e1;
  font-size: 0.86rem;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: #05070d;
  padding: 2.2rem 0 1rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0.4rem 0;
  color: #c2cee8;
}

.footer-inner a {
  color: var(--accent);
}

.credits {
  width: var(--container);
  margin: 1.1rem auto 0;
  color: #9fb0d4;
  font-size: 0.84rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 90;
  padding: 1rem;
}

.lightbox img {
  max-width: min(1020px, 95vw);
  max-height: 88vh;
  border-radius: 14px;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-size: 1.7rem;
  cursor: pointer;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(34px) scale(0.98);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
  transition-delay: var(--delay, 0s);
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 1120px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 5.4rem;
    gap: 1.3rem;
  }
}

@media (max-width: 860px) {
  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 4vw;
    left: 4vw;
    flex-direction: column;
    align-items: stretch;
    background: rgba(7, 12, 21, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 0.45rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.28s ease, transform 0.28s ease;
  }

  .main-nav a {
    text-align: center;
  }

  .site-header.menu-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .gallery-grid,
  .values-grid,
  .split-layout,
  .contact-layout,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: 720px;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .gallery-button img {
    height: 250px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
