:root {
  --green: #2f8f46;
  --dark: #1f2a24;
  --muted: #637066;
  --light: #f4f7f2;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 7%;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.logo {
  font-weight: 900;
  letter-spacing: 1px;
  text-decoration: none;
  font-size: 1.2rem;
  color: var(--green);
}

.nav { display: flex; gap: 24px; }
.nav a { text-decoration: none; font-weight: 700; }
.menu-toggle { display: none; border: 0; background: none; font-size: 1.7rem; }

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 80px 7%;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(31,42,36,.9), rgba(31,42,36,.55));
  z-index: 1;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1.2s ease, transform 6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .8rem;
  font-weight: 900;
  color: var(--green);
}
.hero .eyebrow { color: #a9e5b3; }
h1 { font-size: clamp(2.35rem, 5.5vw, 4.8rem); line-height: 1.02; margin: 0 0 20px; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; margin: 0 0 18px; }
h3 { margin-top: 0; font-size: 1.35rem; }
.hero-text { font-size: 1.25rem; max-width: 650px; font-weight: 700; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  border: 2px solid transparent;
  cursor: pointer;
}
.primary { background: var(--green); color: var(--white); }
.secondary { border-color: var(--white); color: var(--white); }
.instagram { background: var(--dark); color: var(--white); margin-top: 12px; }

.section, .why, .about, .contact { padding: 80px 7%; }
.section-heading { max-width: 800px; margin-bottom: 34px; }
.section-heading p:not(.eyebrow) { color: var(--muted); font-weight: 700; }
.cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.card {
  padding: 26px;
  background: var(--light);
  border-radius: 22px;
  border: 1px solid #e2e8df;
}
.card p { color: var(--muted); margin-bottom: 0; }

.why {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  background: var(--dark);
  color: var(--white);
}
.why-list {
  display: grid;
  gap: 12px;
  font-weight: 800;
}
.why-list p { margin: 0; background: rgba(255,255,255,.08); padding: 14px 16px; border-radius: 14px; }

.before-after-section { background: #fbfcfa; }
.slider-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.comparison-card h3 {
  margin: 14px 0 0;
  text-align: center;
}
.image-comparison {
  --position: 50%;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 360px;
  background: var(--dark);
  box-shadow: 0 18px 35px rgba(0,0,0,.15);
}
.comparison-img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.image-comparison--wide {
  min-height: 300px;
}
.image-comparison--wide .comparison-img {
  height: 320px;
  object-position: center center;
}

.comparison-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--position)) 0 0);
}
.comparison-overlay .comparison-img {
  width: 100%;
  max-width: 100%;
}
.comparison-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}
.comparison-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position);
  width: 4px;
  transform: translateX(-50%);
  background: var(--white);
  pointer-events: none;
}
.comparison-handle::after {
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.label {
  position: absolute;
  top: 14px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(31,42,36,.88);
  color: var(--white);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.before-label { left: 14px; }
.after-label { right: 14px; background: var(--green); }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 18px;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--light);
}
.about img { border-radius: 22px; width: 100%; height: 420px; object-fit: cover; }

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info a { color: var(--green); font-weight: 900; }
.quote-form {
  display: grid;
  gap: 14px;
  padding: 28px;
  background: var(--light);
  border-radius: 22px;
}
label { font-weight: 800; }
input, textarea {
  width: 100%;
  margin-top: 6px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #cfd8cc;
  font: inherit;
}

footer { padding: 26px 7%; text-align: center; background: var(--dark); color: var(--white); }

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .cards, .gallery, .why, .about, .contact, .slider-grid { grid-template-columns: 1fr; }
  .gallery img { height: 260px; }
  .comparison-img { height: 360px; }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 20px 7%;
    background: var(--white);
  }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
}

@media (max-width: 520px) {
  .section, .why, .about, .contact, .hero { padding-left: 5%; padding-right: 5%; }
  .comparison-img { height: 300px; }
}

/* Version 4 branding updates */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(47, 143, 70, .28);
}
.hero-kicker {
  margin: -6px 0 12px;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 900;
  color: #a9e5b3;
}
footer a { color: var(--white); font-weight: 900; }
.privacy-page {
  padding: 70px 7%;
  max-width: 1000px;
  margin: 0 auto;
}
.privacy-page h1 {
  color: var(--dark);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}
.privacy-page h2 { font-size: 1.55rem; margin-top: 34px; }
.privacy-page p, .privacy-page li { color: var(--muted); font-weight: 600; }
.privacy-page a { color: var(--green); font-weight: 900; }
