:root {
  --ink: #10201d;
  --muted: #60706b;
  --paper: #f8fffd;
  --mist: #e6f7f1;
  --foam: #c8fff0;
  --teal: #087765;
  --teal-dark: #054f46;
  --lime: #e9ff6a;
  --line: rgba(16, 32, 29, 0.13);
  --shadow: 0 24px 70px rgba(5, 79, 70, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
  color: #f8fffd;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled,
body.menu-open .site-header {
  color: var(--ink);
  background: rgba(248, 255, 253, 0.92);
  box-shadow: 0 12px 28px rgba(5, 79, 70, 0.12);
  backdrop-filter: blur(18px);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--teal);
}

.nav-logo svg {
  width: 100%;
  height: 100%;
}

.desktop-nav {
  display: flex;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(248, 255, 253, 0.25);
  border-radius: 999px;
  background: rgba(4, 32, 28, 0.18);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled .desktop-nav {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.75);
}

.desktop-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 700;
}

.desktop-nav a:hover {
  background: rgba(140, 231, 211, 0.24);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  background: transparent;
}

.menu-button span {
  width: 17px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.mobile-nav {
  position: fixed;
  z-index: 18;
  inset: 72px 0 auto 0;
  display: none;
  padding: 16px 22px 22px;
  background: rgba(248, 255, 253, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 32px rgba(16, 32, 29, 0.11);
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #f8fffd;
  background: #06231f;
}

.hero-video,
.hero-canvas,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video,
.hero-canvas {
  object-fit: cover;
  transform: scale(1.02);
}

.hero-canvas {
  opacity: 0;
  pointer-events: none;
}

.hero-shade {
  background:
    radial-gradient(circle at 50% 44%, rgba(248, 255, 253, 0.1), transparent 25%),
    linear-gradient(180deg, rgba(1, 18, 16, 0.28), rgba(1, 18, 16, 0.42) 58%, rgba(1, 18, 16, 0.72));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: min(920px, calc(100% - 40px));
  padding-top: 36px;
  text-align: center;
}

.hero-logo {
  display: grid;
  justify-items: center;
  gap: 12px;
  transform: translate3d(var(--float-x, 0), var(--float-y, 0), 0);
  transition: transform 220ms ease-out;
}

.hero-logo-mark {
  width: clamp(106px, 16vw, 168px);
  color: var(--teal);
  filter: drop-shadow(0 26px 42px rgba(0, 0, 0, 0.4));
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 8.2vw, 7.6rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

.hero p {
  max-width: 520px;
  color: rgba(248, 255, 253, 0.84);
  font-size: clamp(1.03rem, 1.8vw, 1.28rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

.button.primary {
  color: var(--ink);
  background: var(--lime);
}

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

.button.ghost {
  color: #f8fffd;
  border-color: rgba(248, 255, 253, 0.44);
  background: rgba(248, 255, 253, 0.08);
  backdrop-filter: blur(10px);
}

.button.full {
  width: 100%;
}

.hero-meta {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  left: 50%;
  display: flex;
  max-width: calc(100% - 28px);
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(248, 255, 253, 0.18);
  border-radius: 999px;
  background: rgba(1, 18, 16, 0.26);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.hero-meta span {
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(248, 255, 253, 0.1);
  font-size: 0.82rem;
  font-weight: 800;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-band div {
  display: grid;
  gap: 8px;
  padding: clamp(22px, 4vw, 38px);
  background: var(--paper);
}

.trust-band strong {
  font-size: 1rem;
}

.trust-band span,
.section-copy p,
.estimate-panel p,
.contact p,
.service-card p,
.process-list p {
  color: var(--muted);
  line-height: 1.65;
}

.split-section,
.services,
.estimate,
.process,
.contact {
  padding: clamp(58px, 9vw, 118px) clamp(20px, 5vw, 72px);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 86px);
  background: linear-gradient(180deg, var(--paper), #eefaf6);
}

.section-copy,
.section-head {
  display: grid;
  gap: 16px;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4.8vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.2;
}

.reveal {
  position: relative;
  --reveal: 58%;
  min-height: 460px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: ew-resize;
  touch-action: none;
  isolation: isolate;
}

.reveal-before,
.reveal-after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 18px;
  background: #d3ddd7;
}

.reveal-before {
  z-index: 1;
}

.reveal-after {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--reveal)) 0 0);
  box-shadow: 12px 0 28px rgba(8, 119, 101, 0.2);
}

.reveal img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reveal-before span,
.reveal-after span {
  position: relative;
  z-index: 2;
  padding: 8px 10px;
  border-radius: 999px;
  color: #f8fffd;
  background: rgba(16, 32, 29, 0.58);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reveal-handle {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: var(--reveal);
  width: 44px;
  border: 0;
  background: transparent;
  cursor: ew-resize;
  transform: translateX(-50%);
}

.reveal-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--lime);
  transform: translateX(-50%);
}

.reveal-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  border: 3px solid var(--lime);
  border-radius: 999px;
  background: var(--teal-dark);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
}

.services {
  background: #f5fbf8;
}

.section-head {
  margin-bottom: 30px;
}

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

.service-card {
  display: grid;
  min-height: 258px;
  align-content: space-between;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.service-card:hover {
  border-color: rgba(8, 119, 101, 0.36);
  box-shadow: 0 22px 54px rgba(5, 79, 70, 0.12);
  transform: translateY(-5px);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: var(--foam);
  font-size: 0.78rem;
  font-weight: 900;
}

.estimate {
  background:
    linear-gradient(90deg, rgba(8, 119, 101, 0.08), transparent 48%),
    var(--paper);
}

.estimate-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 480px);
  gap: clamp(28px, 7vw, 90px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.estimate-panel > div:first-child {
  display: grid;
  gap: 18px;
}

.quote-card {
  display: grid;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #eefaf6;
}

.segment {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.segment.active {
  color: #ffffff;
  background: var(--teal);
}

.range-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.range-row span {
  color: var(--muted);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}

.quote-total {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 4px;
  border-top: 1px solid var(--line);
}

.quote-total span {
  color: var(--muted);
}

.quote-total strong {
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 0.9;
}

.process {
  background: #10201d;
  color: #f8fffd;
}

.process .eyebrow {
  color: var(--lime);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  background: rgba(248, 255, 253, 0.14);
}

.process-list li {
  display: grid;
  gap: 18px;
  min-height: 220px;
  padding: 24px;
  background: #10201d;
}

.process-list span {
  color: var(--foam);
  font-size: 1.4rem;
  font-weight: 900;
}

.process-list p {
  color: rgba(248, 255, 253, 0.68);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 480px);
  gap: clamp(28px, 7vw, 90px);
  align-items: start;
  background: var(--paper);
}

.contact > div {
  display: grid;
  gap: 16px;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #f9fdfc;
}

.contact-form input:focus,
.contact-form select:focus {
  outline: 3px solid rgba(140, 231, 211, 0.45);
  border-color: var(--teal);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .split-section,
  .estimate-panel,
  .contact {
    grid-template-columns: 1fr;
  }

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

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

  .menu-button {
    display: inline-flex;
  }

  body.menu-open .mobile-nav {
    display: block;
  }

  .site-header {
    height: 64px;
    padding-inline: 16px;
  }

  .mobile-nav {
    inset: 64px 0 auto 0;
  }

  .hero {
    min-height: 86svh;
  }

  .hero-content {
    gap: 22px;
    width: min(100% - 28px, 520px);
  }

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

  .hero-meta {
    overflow-x: auto;
    justify-content: flex-start;
    width: calc(100% - 28px);
  }

  .trust-band,
  .service-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .reveal {
    min-height: 340px;
  }

  .segmented {
    border-radius: 8px;
  }

  .segment {
    border-radius: 6px;
    font-size: 0.86rem;
  }

  .quote-card,
  .contact-form {
    padding: 18px;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
