/* EKO FORST — shared stylesheet
   Mobile-first, system-font stack, no external font/CSS dependencies. */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6f2;
  --color-ink: #1c231d;
  --color-ink-soft: #4b564c;
  --color-primary: #2f5d34;
  --color-primary-dark: #1f4023;
  --color-primary-light: #e8f0e6;
  --color-accent: #c98a2b;
  --color-border: #dde3da;
  --color-whatsapp: #25d366;
  --color-focus: #1a73e8;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --shadow-sm: 0 1px 3px rgba(28, 35, 29, 0.08);
  --shadow-md: 0 6px 20px rgba(28, 35, 29, 0.12);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5.5rem;
  --max-width: 1180px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-bg-dark: rgba(20, 26, 21, 0.5);
  --glass-border: rgba(255, 255, 255, 0.45);
  --glass-blur: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-2);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0;
  top: -40px;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 2px solid rgba(47, 93, 52, 0.4);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: var(--color-bg);
  }
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  gap: clamp(0.75rem, 2vw, 2rem);
  max-width: 1280px;
  margin: 0 auto;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-ink);
  text-decoration: none;
  flex: none;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  letter-spacing: -0.5px;
  flex: none;
}

.brand__logo {
  height: 52px;
  width: auto;
  flex: none;
}

@media (max-width: 480px) {
  .brand__text-sub {
    display: none;
  }
}

.footer__logo {
  height: 36px;
  width: auto;
  border-radius: 5px;
  margin-bottom: var(--space-2);
}

.brand__text-sub {
  display: block;
  max-width: 190px;
  font-size: 0.72rem;
  line-height: 1.3;
  font-weight: 500;
  color: var(--color-ink-soft);
}

.main-nav {
  display: none;
  min-width: 0;
  flex: 1 1 auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: clamp(0.7rem, 1.4vw, 1.4rem);
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-ink);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--color-primary-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}

.header-call {
  white-space: nowrap;
}

.header-call svg {
  flex: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  cursor: pointer;
  flex: none;
}

@media (min-width: 1180px) {
  .main-nav {
    display: block;
  }
  .nav-toggle {
    display: none;
  }
}

.mobile-nav {
  border-top: 1px solid var(--color-border);
  padding: var(--space-2) 0;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 500;
  display: block;
  padding: 0.35rem 0;
}

@media (min-width: 1180px) {
  .mobile-nav {
    display: none !important;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #08331b;
}

.btn-whatsapp:hover {
  filter: brightness(0.95);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.btn-outline:hover {
  background: var(--color-primary-light);
}

.btn-sm {
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-bg) 100%);
  padding: var(--space-4) 0;
}

.hero__eyebrow {
  display: inline-block;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-2);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero__eyebrow {
    background: #fff;
  }
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
}

.hero__lead {
  font-size: 1.1rem;
  color: var(--color-ink-soft);
  max-width: 60ch;
  margin: 0 0 var(--space-3);
}

.hero__trust {
  font-size: 0.95rem;
  color: var(--color-ink-soft);
  margin: var(--space-2) 0 0;
}

.hero__grid {
  display: grid;
  gap: var(--space-3);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Hero with background video (homepage) ---------- */

.hero-video {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
}

@media (max-height: 560px) {
  .hero-video {
    min-height: 100vh;
  }
}

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

.hero-video__poster,
.hero-video__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video__video {
  z-index: 1;
}


.hero-video__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(15, 26, 17, 0.62) 0%,
    rgba(18, 32, 21, 0.6) 45%,
    rgba(15, 26, 17, 0.78) 100%
  );
}

.hero-video__content {
  position: relative;
  z-index: 3;
  padding: var(--space-5) 0;
  width: 100%;
}

.hero-video__content .hero__eyebrow {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero-video__content .hero__eyebrow {
    background: rgba(255, 255, 255, 0.22);
  }
}

.hero-video__content h1 {
  color: #fff;
}

.hero-video__content .hero__lead {
  color: rgba(255, 255, 255, 0.92);
}

.hero-video__content .hero__trust {
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Sections ---------- */

section {
  padding: var(--space-4) 0;
  position: relative;
  background: rgba(255, 255, 255, 0.88);
}

@media (min-width: 900px) {
  section {
    padding: var(--space-5) 0;
  }
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  section {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}

.section-alt {
  background: rgba(244, 246, 242, 0.88);
}

/* The hero sections carry their own distinct visual treatment and must stay
   clean/opaque — no translucent leaf-video panel behind the opener. */
.hero,
.hero-video {
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-bg) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-video {
  background: #14201a;
}

.cta-band {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.section-header {
  max-width: 68ch;
  margin: 0 0 var(--space-3);
}

.section-header h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}

.section-header p {
  color: var(--color-ink-soft);
  margin: 0;
}

.grid {
  display: grid;
  gap: var(--space-3);
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.img-rounded {
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card p {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 0.95rem;
}

.service-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.service-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  padding: var(--space-2) 0 0;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
}

.breadcrumbs a {
  color: var(--color-ink-soft);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.3rem;
  color: var(--color-border);
}

/* ---------- Before / After compare slider ---------- */

.compare-intro {
  text-align: center;
  max-width: 62ch;
  margin: 0 auto var(--space-4);
}

.compare-grid {
  display: grid;
  gap: var(--space-4);
}

.compare {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--color-bg-alt);
  --pos: 50%;
  touch-action: pan-y;
  user-select: none;
}

.compare--portrait {
  aspect-ratio: 3 / 4;
  max-width: 420px;
}

.compare__figure {
  position: absolute;
  inset: 0;
  margin: 0;
}

.compare__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.compare__figure--after {
  clip-path: inset(0 0 0 var(--pos));
}

.compare__label {
  position: absolute;
  top: 0.75rem;
  padding: 0.3rem 0.7rem;
  background: var(--glass-bg-dark);
  backdrop-filter: blur(6px) saturate(160%);
  -webkit-backdrop-filter: blur(6px) saturate(160%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  pointer-events: none;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .compare__label {
    background: rgba(28, 35, 29, 0.72);
  }
}

.compare__label--before {
  left: 0.75rem;
}

.compare__label--after {
  right: 0.75rem;
}

.compare__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.compare__handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  z-index: 3;
}

.compare__handle svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary-dark);
}

.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
  -webkit-appearance: none;
  appearance: none;
}

.compare__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 44px;
  height: 44px;
}

.compare__range::-moz-range-thumb {
  width: 44px;
  height: 44px;
  border: none;
}

.compare.is-introducing .compare__handle,
.compare.is-introducing .compare__divider {
  transition: left 1.1s cubic-bezier(0.65, 0, 0.35, 1);
}

@media (prefers-reduced-motion: reduce) {
  .compare.is-introducing .compare__handle,
  .compare.is-introducing .compare__divider {
    transition: none;
  }
}

.project-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  max-width: 720px;
  margin: var(--space-2) auto 0;
}

.project-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.8rem;
  margin: 0.8rem 0;
  font-size: 0.92rem;
}

.project-card dt {
  font-weight: 600;
  color: var(--color-ink-soft);
}

.project-card dd {
  margin: 0;
}

.compare-cta {
  text-align: center;
  margin-top: var(--space-2);
}

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-2) 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--color-primary);
  flex: none;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: 0.6rem 0 0;
  color: var(--color-ink-soft);
}

/* ---------- Service area ---------- */

.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.area-list li {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--color-primary-dark);
  color: #fff;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: #d9e6da;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-ink);
  color: #d9e0da;
  padding: var(--space-4) 0 var(--space-2);
  font-size: 0.9rem;
}

.site-footer a {
  color: #d9e0da;
}

.footer-grid {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #9fac9f;
}

/* ---------- Sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border-top: 1px solid var(--glass-border);
  z-index: 40;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sticky-cta {
    background: #fff;
  }
}

.sticky-cta .btn {
  flex: 1;
}

@media (min-width: 900px) {
  .sticky-cta {
    display: none;
  }
}

body {
  padding-bottom: 68px;
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
}

/* ---------- Table of quick answer ---------- */

.quick-answer {
  background: var(--color-primary-light);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-size: 1.02rem;
}

.list-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.list-check li {
  padding-left: 1.6rem;
  position: relative;
}

.list-check li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ---------- Leaf-fall scroll-scrub video (site-wide, purely decorative) ----------
   Fixed, full-viewport, sits behind all real content. Hidden until the user
   scrolls past the hero (js/main.js toggles .is-active), then its currentTime
   is driven directly by scroll position — the video itself never plays.
   Content panels above it (section-alt, cards, etc.) stay opaque or get a
   translucent off-white so text remains fully legible; see the section rules
   below for how each section reveals or dampens the layer. */

.leaf-scrub {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}

.leaf-scrub.is-active {
  opacity: 1;
}

.leaf-scrub__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .leaf-scrub {
    transition: none;
  }
}

main,
.breadcrumbs,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ---------- Scroll-reveal (progressive enhancement; JS-driven, safe without JS) ---------- */

.reveal-init {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-init.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-init {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
