:root {
  --primary: #23452b;
  --leaf: #5d8a3b;
  --accent: #3f6a36;
  --ink: #172018;
  --muted: #6e6e6e;
  --line: #d9e1d4;
  --paper: #ffffff;
  --soft: #f3f6ef;
  --mist: #e9efe3;
  --shadow: 0 24px 70px rgba(20, 42, 24, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Montserrat", "Poppins", Arial, sans-serif;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 52px);
  color: #fff;
  transition: background 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

.site-header.scrolled,
.site-header.nav-active {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 40px rgba(22, 36, 22, 0.12);
  backdrop-filter: blur(18px);
}

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

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}

.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  font-size: 0.86rem;
  font-weight: 700;
}

.nav a {
  position: relative;
  padding: 8px 0;
}

.nav a::after {
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 0;
  height: 2px;
  background: currentColor;
  content: "";
  transition: width 180ms ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
}

.header-cta,
.primary-btn,
.secondary-btn,
.whatsapp-btn,
.filter,
.tab {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.header-cta,
.primary-btn {
  background: var(--primary);
  color: #fff;
  padding: 0 22px;
  box-shadow: 0 14px 26px rgba(35, 69, 43, 0.18);
}

.site-header:not(.scrolled):not(.nav-active) .header-cta {
  background: #fff;
  color: var(--primary);
}

.primary-btn:hover,
.header-cta:hover,
.secondary-btn:hover,
.whatsapp-btn:hover,
.filter:hover,
.tab:hover {
  transform: translateY(-2px);
}

.secondary-btn,
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.68);
  color: #fff;
  padding: 0 22px;
}

.secondary-btn:not(.light) {
  background: rgba(255, 255, 255, 0.12);
}

.secondary-btn.light {
  border-color: rgba(255, 255, 255, 0.5);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 380px);
  align-items: end;
  gap: 36px;
  padding: 130px clamp(18px, 5vw, 72px) 58px;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(14, 28, 15, 0.86), rgba(14, 28, 15, 0.46) 52%, rgba(14, 28, 15, 0.22));
  content: "";
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  max-width: 820px;
  padding-bottom: 5vh;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.catalogue-section .eyebrow,
.booking-card .eyebrow {
  color: #dbeacb;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 7vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--primary);
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 1.25rem;
}

.hero-content > p:not(.eyebrow) {
  max-width: 640px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.75;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-panel {
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(16px);
}

.hero-panel span,
.project-copy span,
.service-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--leaf);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.6rem;
}

.hero-panel p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

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

.metrics div {
  padding: 28px clamp(18px, 4vw, 54px);
  border-right: 1px solid var(--line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 1.2rem;
}

.metrics span,
.section-copy p,
.section-heading p,
.project-copy p,
.service-card p,
.tab-panel p,
.contact-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.split-section,
.services-section,
.portfolio-section,
.catalogue-section,
.contact-section {
  padding: clamp(72px, 10vw, 132px) clamp(18px, 5vw, 72px);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
}

.section-copy,
.section-heading {
  max-width: 780px;
}

.value-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.value-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--primary);
  background: var(--soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.founder-card {
  position: relative;
  margin: 0;
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.founder-card img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.founder-card figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  border-radius: 6px;
  padding: 18px;
  color: #fff;
  background: rgba(35, 69, 43, 0.9);
}

.founder-card strong,
.founder-card span {
  display: block;
}

.founder-card span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
}

.services-section,
.contact-section {
  background: var(--soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.service-card,
.estimator,
.project-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(30, 52, 32, 0.08);
}

.service-card,
.estimator {
  padding: 26px;
}

.estimator {
  display: grid;
  gap: 16px;
  background: var(--primary);
}

.estimator h3,
.estimator label,
.estimate-result strong {
  color: #fff;
}

.estimator label,
.contact-form label,
.booking-card label {
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 800;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
}

input[type="range"] {
  accent-color: var(--leaf);
}

.estimate-result {
  border-radius: 6px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.estimate-result span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0;
}

.filter,
.tab {
  border: 1px solid var(--line);
  padding: 0 18px;
  color: var(--primary);
  background: #fff;
}

.filter.active,
.tab.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  overflow: hidden;
}

.project-card.is-hidden {
  display: none;
}

.compare,
.single-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--mist);
}

.compare > img,
.after img,
.single-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.after {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  border-right: 3px solid #fff;
}

.after img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  max-width: none;
  /* JavaScript dynamically keeps the width updated to prevent scaling misalignment */
}

.compare input {
  position: absolute;
  inset: auto 16px 16px;
  z-index: 3;
  width: calc(100% - 32px);
  padding: 0;
  opacity: 0.94;
}

.before-label,
.after-label {
  position: absolute;
  top: 14px;
  z-index: 3;
  border-radius: 999px;
  padding: 8px 11px;
  color: #fff;
  background: rgba(23, 32, 24, 0.66);
  font-size: 0.72rem;
  font-weight: 800;
}

.before-label {
  right: 14px;
}

.after-label {
  left: 14px;
}

.project-copy {
  padding: 24px;
}

.catalogue-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  color: #fff;
  background: var(--primary);
}

.catalogue-section h2,
.catalogue-section .section-copy p {
  color: #fff;
}

.catalogue-section .section-copy p {
  opacity: 0.82;
}

.catalogue-tabs {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.09);
}

.tab-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel h3 {
  color: #fff;
}

.tab-panel p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.65fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.contact-copy {
  max-width: 620px;
}

.whatsapp-btn {
  border-color: var(--leaf);
  color: var(--primary);
  background: #fff;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--accent);
  font-weight: 700;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(18px, 5vw, 72px);
  color: #fff;
  background: #172018;
}

.site-footer img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
}

.booking-modal {
  width: min(92vw, 560px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
}

.booking-modal::backdrop {
  background: rgba(14, 28, 15, 0.74);
  backdrop-filter: blur(5px);
}

.booking-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: clamp(24px, 5vw, 42px);
  color: #fff;
  background: var(--primary);
}

.booking-card h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 640ms ease, transform 640ms ease;
}

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

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

  .nav-toggle {
    position: relative;
    z-index: 22;
    display: grid;
    gap: 6px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 1px solid currentColor;
    border-radius: 6px;
    color: inherit;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span {
    width: 20px;
    height: 2px;
    background: currentColor;
  }

  .nav,
  .header-cta {
    display: none;
  }

  .nav.active {
    position: fixed;
    inset: 74px 16px auto;
    z-index: 21;
    display: grid;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    color: var(--primary);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav.active a {
    padding: 12px;
  }

  .hero,
  .split-section,
  .catalogue-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 118px;
  }

  .hero-content {
    padding-bottom: 0;
  }

  .hero-panel {
    margin-bottom: 0;
  }

  .service-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }
}

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

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

  .metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics div:last-child {
    border-bottom: 0;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .primary-btn,
  .secondary-btn,
  .whatsapp-btn {
    width: 100%;
  }

  .founder-card,
  .founder-card img {
    min-height: 390px;
  }

  .split-section,
  .services-section,
  .portfolio-section,
  .catalogue-section,
  .contact-section {
    padding-block: 64px;
  }
}
