/* Self-hosted font: no visitor IPs sent to Google (GDPR). */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  --green: #245b35;
  --green-dark: #1b4628;
  --green-soft: #dde8dc;
  --bg: #f5f7f3;
  --white: #ffffff;
  --ink: #242824;
  --muted: #5d665e;
  --line: #e3e9e2;
  --wa: #25d366;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(36, 40, 36, 0.08);
  --gutter: max(20px, calc((100% - 1160px) / 2));
  --header-h: 72px;
  --font: "Figtree", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

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

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 200;
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
}
.skip-link:focus { top: 0; }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-white { background: #fff; color: var(--green); }
.btn-white:hover { background: var(--green-soft); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1fb957; }

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand { flex-shrink: 0; }
.brand-logo { height: 54px; width: auto; }

.nav-links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-links a { padding: 6px 0; color: var(--muted); border-bottom: 2px solid transparent; }
.nav-links a:hover,
.nav-links a.active { color: var(--green); border-color: var(--green); }

.header-right { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang-btn {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.lang-btn.active { background: var(--green); color: #fff; }

.header-cta { padding: 10px 18px; font-size: 14px; }

/* —— Hero —— */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 473;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 28px 32px;
  background: var(--hero) center / cover no-repeat;
  color: #fff;
}
.hero-content {
  width: min(480px, 100%);
  min-width: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}
.hero h1 { margin: 0 0 12px; font-size: clamp(40px, 4.8vw, 58px); line-height: 1.05; letter-spacing: -0.03em; }
.hero p { margin: 0 0 18px; font-size: 20px; line-height: 1.45; color: #fff; }
.hero .btn { background: var(--green); color: #fff; padding: 11px 18px; text-shadow: none; }
.hero .btn:hover { background: var(--green-dark); }

/* —— Services strip —— */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 32px var(--gutter);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.service {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 4px 32px;
}
.service + .service { border-left: 1px solid var(--line); }
.service:first-child { padding-left: 0; }
.service-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.services { position: relative; }
.service h3 { margin: 4px 0 4px; font-size: 17px; }
.service p { margin: 0; font-size: 14px; color: var(--muted); }

/* —— Sections —— */
.section { padding: 56px var(--gutter); }
.section-tint { background: #edf2eb; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.section-head h2 { margin: 0 0 4px; font-size: clamp(24px, 3vw, 30px); }
.section-head p { margin: 0; color: var(--muted); }
.section-head.center { justify-content: center; text-align: center; }

.link-more { flex-shrink: 0; font-weight: 700; font-size: 15px; color: var(--green); }
.link-more:hover { text-decoration: underline; }

/* —— Slider —— */
.slider { position: relative; }

.slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 0 8px;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > * { scroll-snap-align: start; }

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  margin-top: -26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: opacity 0.2s ease;
}
.slider-arrow.prev { left: -22px; }
.slider-arrow.next { right: -22px; }
.slider-arrow:disabled { opacity: 0; pointer-events: none; }
.slider.no-scroll .slider-arrow { display: none; }

/* —— Project card —— */
.project-card {
  position: relative;
  flex: 0 0 calc((100% - 60px) / 4);
  height: 250px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #cfd8cd;
  cursor: pointer;
  text-align: left;
  color: #fff;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card:hover img { transform: scale(1.04); }
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 18, 12, 0.78) 100%);
}
.project-card-body {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  gap: 2px;
}
.project-card-title { font-weight: 700; font-size: 16px; line-height: 1.25; }
.project-card-meta { font-size: 13px; opacity: 0.85; }

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 12px;
  font-weight: 700;
}
.card-badge svg { width: 16px; height: 16px; }

/* —— Review card —— */
.review-card {
  flex: 0 0 calc((100% - 40px) / 3);
  display: flex;
  gap: 16px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.review-media {
  position: relative;
  flex: 0 0 42%;
  height: 150px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #cfd8cd;
  cursor: pointer;
}
.review-media img { width: 100%; height: 100%; object-fit: cover; }

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.play-btn.small { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.play-btn.small svg { width: 14px; height: 14px; }

.review-initials {
  flex: 0 0 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
  font-size: 18px;
}

.review-body { display: flex; flex-direction: column; min-width: 0; }
.review-body blockquote { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.review-author { margin: auto 0 2px; display: grid; font-size: 13px; color: var(--muted); }
.review-author strong { color: var(--ink); font-size: 14px; }
.stars { color: #e8a815; letter-spacing: 2px; font-size: 15px; }

/* —— Steps —— */
.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}
.steps li { padding: 8px 12px; }
.step-num {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-weight: 700;
}
.steps h3 { margin: 0 0 4px; font-size: 17px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* —— Team —— */
.team-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.team-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.team-card img {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
}
.team-card h3 { margin: 0 0 2px; font-size: 18px; }
.team-role { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--green); }
.team-bio { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.team-phone { font-weight: 700; font-size: 14px; color: var(--green); }

/* —— Service area —— */
.area { text-align: center; padding-top: 48px; padding-bottom: 48px; }
.area h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 30px); }
.area > p { margin: 0 auto; max-width: 640px; color: var(--muted); }

.area-more { margin-top: 18px; }
.area-more summary {
  display: inline-block;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--green);
  border-bottom: 1px solid currentColor;
}
.area-more summary::-webkit-details-marker { display: none; }
.area-hide,
.area-more[open] .area-show { display: none; }
.area-more[open] .area-hide { display: inline; }

.area-list {
  list-style: none;
  margin: 20px auto 0;
  padding: 0;
  max-width: 820px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.area-list li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}

/* —— Contact —— */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.contact-info h2 { margin: 0 0 10px; font-size: clamp(26px, 3vw, 32px); }
.contact-info > p { margin: 0 0 24px; color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-email { margin: 20px 0 0; }
.contact-email a { color: var(--green); font-weight: 600; }
.contact-email a:hover { text-decoration: underline; }

form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
input:focus, textarea:focus { outline: 2px solid rgba(36, 91, 53, 0.25); border-color: var(--green); }
textarea { resize: vertical; min-height: 110px; }
form .btn { width: 100%; }
form .btn:disabled { opacity: 0.7; cursor: wait; }

.form-success,
.form-error { margin: 0; padding: 12px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.form-success { background: var(--green-soft); color: var(--green); }
.form-error { background: #fdf2e9; color: #8a5a1f; }

/* —— Footer —— */
footer {
  padding: 36px var(--gutter);
  background: #fff;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner { display: grid; gap: 6px; justify-items: center; }
.footer-logo { height: 56px; width: auto; margin-bottom: 6px; }
footer p { margin: 0; }
footer a:hover { color: var(--green); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* —— Floating / mobile contact —— */
.mobile-contact { display: none; }

/* —— Sub-pages —— */
.subpage { padding: 40px var(--gutter) 72px; min-height: 60vh; }
.subpage h1 { margin: 8px 0 8px; font-size: clamp(28px, 4vw, 40px); }
.subpage-lead { margin: 0 0 24px; max-width: 640px; color: var(--muted); }
.back-link { font-weight: 600; font-size: 14px; color: var(--green); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.filter-btn:hover,
.filter-btn.active { background: var(--green); border-color: var(--green); color: #fff; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid .project-card { height: 260px; }
.reviews-grid { grid-template-columns: repeat(2, 1fr); }
.empty-note { grid-column: 1 / -1; color: var(--muted); }

/* —— Lightbox —— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 16, 13, 0.9);
}
.lightbox[hidden] { display: none; }
.lightbox-inner { width: min(1100px, 100%); color: #fff; }
.lightbox-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.lightbox-head > div { flex: 1; min-width: 0; }
.lightbox-title { margin: 0; font-weight: 700; font-size: 18px; }
.lightbox-text { margin: 2px 0 0; font-size: 14px; opacity: 0.8; }
.lightbox-count { font-size: 14px; opacity: 0.8; padding-top: 4px; }
.lightbox-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-stage { position: relative; display: flex; align-items: center; }
.lightbox-media {
  position: relative;
  flex: 1;
  height: min(calc(100vh - 190px), 640px);
  display: grid;
  place-items: center;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.lightbox-media img,
.lightbox-media video { max-width: 100%; max-height: 100%; object-fit: contain; }
.media-label {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  padding: 16px 36px;
  border-radius: 12px;
  background: #fff;
  color: #1b4628;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.thumb-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 3px 4px;
  background: #fff;
  color: #1b4628;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.lightbox-media video { width: 100%; height: 100%; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-nav.prev { left: 12px; }
.lightbox-nav.next { right: 12px; }
.lightbox-nav[hidden] { display: none; }
.lightbox-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: thin; }
.lightbox-thumbs[hidden] { display: none; }
.lightbox-thumbs button {
  position: relative;
  flex: 0 0 88px;
  height: 60px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: #222;
  opacity: 0.6;
  cursor: pointer;
}
.lightbox-thumbs button.active { border-color: #fff; opacity: 1; }
.lightbox-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* —— Responsive —— */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .project-card { flex-basis: calc((100% - 40px) / 3); }
  .review-card { flex-basis: calc((100% - 20px) / 2); }
  .slider-arrow.prev { left: -10px; }
  .slider-arrow.next { right: -10px; }
}

@media (max-width: 860px) {
  .services { grid-template-columns: 1fr; gap: 18px; }
  .service, .service:first-child { padding: 0; }
  .service + .service { border-left: 0; }
  .project-card { flex-basis: calc((100% - 20px) / 2); }
  .review-card { flex-basis: 85%; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .team-grid, .contact-card { grid-template-columns: 1fr; }
  .contact-card { gap: 28px; padding: 28px; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  body { padding-bottom: 64px; }
  .brand-logo { height: 44px; }
  .header-cta { padding: 8px 12px; font-size: 13px; }

  .hero { aspect-ratio: auto; width: 100%; min-height: 560px; align-items: flex-end; padding: 16px; overflow: hidden; }
  .hero-content { width: 100%; }
  .hero p { font-size: 17px; }

  .section { padding-top: 40px; padding-bottom: 40px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .section-head.center { align-items: center; }

  .slider-arrow { display: none; }
  .slider-track { margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .project-card { flex-basis: 78%; height: 230px; }
  .review-card { flex-basis: 88%; flex-direction: column; }
  .review-media { flex: none; height: 170px; }

  .steps { grid-template-columns: 1fr; gap: 14px; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; text-align: left; padding: 0; }
  .step-num { grid-row: span 2; margin: 0; }

  .team-card { flex-direction: column; align-items: center; text-align: center; }
  .contact-actions .btn { flex: 1; }
  .card-grid { grid-template-columns: 1fr; }

  .mobile-contact {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 64px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.08);
  }
  .mobile-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    font-weight: 700;
  }
  .mobile-contact a.wa { background: var(--wa); }

  .media-label { padding: 12px 24px; font-size: 34px; }
  .lightbox { padding: 10px; }
  .lightbox-media { height: 60vh; }
  .lightbox-nav { display: none; }
}
