:root {
  --yellow: #f5c400;
  --yellow-dark: #c99a00;
  --black: #0b0b0b;
  --black-2: #141414;
  --black-3: #1e1e1e;
  --white: #f4f4f4;
  --muted: #b8b8b8;
  --line: #2c2c2c;
  --font-display: "Oswald", sans-serif;
  --font-body: "Barlow", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.5;
  min-height: 100vh;
}

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

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

.wrap {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 11, 11, 0.94);
  border-bottom: 3px solid var(--yellow);
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.mark {
  width: 38px;
  height: 38px;
  background: var(--yellow);
  color: var(--black);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--yellow);
}

.btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 12px 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: #ffd84a;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--yellow);
  border: 2px solid var(--yellow);
}

.btn-outline:hover {
  background: var(--yellow);
  color: var(--black);
}

/* Landing */
.landing {
  min-height: calc(100vh - 68px);
  display: grid;
  align-items: stretch;
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.72) 0%, rgba(8, 8, 8, 0.82) 45%, rgba(8, 8, 8, 0.94) 100%),
    url("../images/landing-bg.png") center / cover no-repeat;
}

.landing-inner {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  padding: 48px 0 36px;
  min-height: calc(100vh - 68px);
}

.brand-block {
  text-align: center;
  animation: rise 0.7s ease both;
}

.brand-block .logo-lg {
  justify-content: center;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 10px;
}

.brand-block .mark {
  width: 52px;
  height: 52px;
  font-size: 16px;
}

.brand-block h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.brand-block h1 span {
  color: var(--yellow);
}

.brand-block p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 40ch;
  margin: 0 auto;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-content: center;
}

.choice {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(245, 196, 0, 0.12), transparent 45%),
    var(--black-2);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  animation: rise 0.8s ease both;
}

.choice:nth-child(2) {
  animation-delay: 0.12s;
  background:
    linear-gradient(200deg, rgba(245, 196, 0, 0.08), transparent 50%),
    var(--black-2);
}

.choice::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    transparent 0 14px,
    rgba(255, 255, 255, 0.015) 14px 28px
  );
  pointer-events: none;
}

.choice:hover {
  border-color: var(--yellow);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.choice-label {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
}

.choice-copy {
  color: var(--muted);
  max-width: 28ch;
  position: relative;
}

.choice-cta {
  position: relative;
  color: var(--yellow);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.landing-phone {
  text-align: center;
  color: var(--muted);
  animation: rise 0.9s ease both;
  animation-delay: 0.2s;
}

.landing-phone a {
  color: var(--yellow);
  font-weight: 700;
}

/* Page sections */
.hero {
  padding: 64px 0 56px;
  background:
    linear-gradient(180deg, rgba(11, 11, 11, 0.2), rgba(11, 11, 11, 0.92)),
    repeating-linear-gradient(135deg, #111 0 12px, #0d0d0d 12px 24px);
  border-bottom: 8px solid var(--yellow);
}

.eyebrow {
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
  max-width: 14ch;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.hero h1 span {
  color: var(--yellow);
}

.hero p {
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.phone-line {
  color: var(--muted);
  margin-top: 18px;
}

.phone-line a {
  color: var(--yellow);
  font-weight: 700;
}

section {
  padding: 64px 0;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.section-lead {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 60ch;
}

.band {
  background: var(--black-2);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.service-item {
  background: var(--black);
  border-left: 3px solid var(--yellow);
  padding: 22px;
}

.service-item h3 {
  font-family: var(--font-display);
  color: var(--yellow);
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.service-item p {
  color: var(--muted);
  font-size: 0.98rem;
}

.about-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.stat-box {
  background: var(--yellow);
  color: var(--black);
  padding: 28px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stat-box strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-box p {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

/* Work gallery / carousel */
.hero-electrical {
  background:
    linear-gradient(105deg, rgba(8, 8, 8, 0.92) 0%, rgba(8, 8, 8, 0.78) 42%, rgba(8, 8, 8, 0.45) 100%),
    url("../images/electrical-panel-complete.jpg") right center / cover no-repeat;
}

.hero-generator {
  background:
    linear-gradient(105deg, rgba(8, 8, 8, 0.92) 0%, rgba(8, 8, 8, 0.78) 45%, rgba(8, 8, 8, 0.42) 100%),
    url("../images/generator-hero.jpg") right 18% / cover no-repeat;
}

.carousel {
  position: relative;
  max-width: 820px;
  width: 100%;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: var(--black-3);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  max-height: 620px;
}

.carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.4s ease;
  will-change: transform;
}

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  height: 100%;
  box-sizing: border-box;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  color: var(--white);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 2px solid var(--yellow);
  background: rgba(11, 11, 11, 0.85);
  color: var(--yellow);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.carousel-btn:hover {
  background: var(--yellow);
  color: var(--black);
}

.carousel-btn.prev {
  left: 12px;
}

.carousel-btn.next {
  right: 12px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border: 0;
  padding: 0;
  border-radius: 0;
  background: #444;
  cursor: pointer;
}

.carousel-dot.is-active {
  background: var(--yellow);
}

@media (max-width: 800px) {
  .carousel-viewport {
    aspect-ratio: 3 / 4;
    max-height: 520px;
  }

  .carousel-btn {
    width: 38px;
    height: 38px;
  }
}

/* Forms */
.estimate-form {
  display: grid;
  gap: 12px;
  max-width: 560px;
}

.estimate-form label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--muted);
}

.estimate-form label span {
  color: var(--white);
  font-weight: 600;
}

.field-row {
  display: grid;
  gap: 12px;
}

.conditional-fields {
  display: grid;
  gap: 12px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
}

.conditional-fields.is-open {
  max-height: 240px;
  opacity: 1;
  transform: translateY(0);
}

input,
textarea,
select {
  width: 100%;
  background: var(--black-3);
  border: 1px solid #333;
  color: var(--white);
  padding: 12px 14px;
  font: inherit;
  border-radius: 0;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--yellow);
  border-color: var(--yellow);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--yellow) 50%),
    linear-gradient(135deg, var(--yellow) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.form-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  background: var(--black-2);
  border-top: 3px solid var(--yellow);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.thanks {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 16px;
}

.thanks h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 12px;
}

.thanks p {
  color: var(--muted);
  margin-bottom: 24px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 800px) {
  .nav-links {
    display: none;
  }

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

  .choice {
    min-height: 200px;
  }

  .about-block {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .landing-inner {
    padding-top: 32px;
  }
}
