/* ===== Design tokens ===== */
:root {
  --green-600: #0d6b3f;
  --green-500: #16a34a;
  --green-400: #34d399;
  --dark-900: #07130d;
  --dark-800: #0b1f15;
  --dark-700: #112b1e;
  --ink: #14201a;
  --ink-soft: #4b5a52;
  --paper: #ffffff;
  --paper-soft: #f2f8f4;
  --line: #dbe8e0;
  --amber-tint: #e8f5ec;
  --shadow-card: 0 20px 45px rgba(10, 34, 20, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; margin: 0 0 .5em; line-height: 1.15; }
p { margin: 0 0 1em; color: var(--ink-soft); }
button { font-family: inherit; cursor: pointer; }

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

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow--dark {
  background: var(--amber-tint);
  color: var(--green-600);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--green-500); color: #fff; box-shadow: 0 12px 24px rgba(22,163,74,0.35); }
.btn--primary:hover { background: var(--green-600); transform: translateY(-2px); }
.btn--dark { background: var(--dark-900); color: #fff; }
.btn--dark:hover { background: #000; transform: translateY(-2px); }
.btn--outline { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,0.12); }
.btn--outline-dark { background: transparent; border-color: var(--green-500); color: var(--green-600); }
.btn--outline-dark:hover { background: var(--green-500); color: #fff; }
.btn--ghost { background: none; color: var(--green-600); font-weight: 700; padding: 14px 6px; }
.btn--ghost:hover { text-decoration: underline; }
.btn--sm { padding: 10px 20px; font-size: .85rem; }
.btn--block { width: 100%; }

/* ===== Top utility bar ===== */
.topbar {
  background: var(--dark-900);
  color: rgba(255,255,255,0.85);
  font-size: .82rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 9px;
  padding-bottom: 9px;
  flex-wrap: wrap;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-item { display: flex; align-items: center; gap: 7px; }
.topbar-item strong { color: #fff; }
.topbar-socials { display: flex; gap: 10px; }
.topbar-socials a {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.topbar-socials a:hover { background: var(--green-500); }
.topbar-socials svg { width: 15px; height: 15px; }

/* ===== Main nav ===== */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--ink); line-height: 1.1; }
.brand-tag { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 600; font-size: .95rem; color: var(--ink); position: relative; padding: 6px 0; }
.nav-links a.active, .nav-links a:hover { color: var(--green-600); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { display: none; }
.nav-toggle svg { width: 20px; height: 20px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero-content { max-width: 560px; padding: 90px 0; }
.hero-content h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
.hero-content p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-page { min-height: 340px; }
.hero-page .hero-content { padding: 70px 0; }

/* ===== Stats strip ===== */
.stats-band {
  background: linear-gradient(120deg, var(--dark-900), var(--green-600) 130%);
  padding: 48px 0;
}
.stats-intro { color: #fff; text-align: center; max-width: 780px; margin: 0 auto 34px; }
.stats-intro h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.stats-intro p { color: rgba(255,255,255,0.8); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat-card {
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  color: #fff;
}
.stat-card .num { font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; display: block; }
.stat-card .label { font-size: .85rem; color: rgba(255,255,255,0.78); }

/* ===== Map section ===== */
.map-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; flex-wrap: wrap; gap: 12px;
  border-bottom: 1px solid var(--line);
}
#map { width: 100%; height: 420px; }
#map-contact { width: 100%; }
.map-popup strong { display: block; margin-bottom: 4px; color: var(--green-600); }

/* ===== Service cards ===== */
.service-card {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 30px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 34px;
  margin-bottom: 26px;
}
.service-card:nth-of-type(even) { grid-template-columns: .9fr 1.1fr; }
.service-card:nth-of-type(even) .service-media { order: 2; }
.service-media img { border-radius: var(--radius-md); width: 100%; height: 260px; object-fit: cover; }
.service-features { margin: 16px 0 22px; display: flex; flex-direction: column; gap: 10px; }
.service-features li {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--amber-tint); padding: 10px 14px; border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: var(--ink);
}
.service-features svg { flex: none; width: 18px; height: 18px; color: var(--green-500); margin-top: 1px; }
.service-actions { display: flex; align-items: center; gap: 18px; }

.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mini-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 26px; text-align: left; box-shadow: var(--shadow-card);
}
.mini-card .icon-badge {
  width: 52px; height: 52px; border-radius: 14px; background: var(--amber-tint);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.mini-card .icon-badge svg { width: 26px; height: 26px; color: var(--green-600); }

/* ===== CTA banner ===== */
.cta-banner {
  background: radial-gradient(circle at 80% 20%, rgba(22,163,74,0.35), transparent 55%), var(--dark-900);
  color: #fff; border-radius: var(--radius-lg);
  padding: 54px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.78); margin-bottom: 0; max-width: 460px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Gallery carousel ===== */
.gallery-carousel { position: relative; }
.gallery-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 8px;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item { flex: 0 0 320px; }
.gallery-item img {
  width: 100%; height: 230px; object-fit: cover; border-radius: var(--radius-md);
  margin-bottom: 12px;
}
.gallery-item span { font-size: .92rem; font-weight: 700; color: var(--ink); }
.carousel-arrow {
  position: absolute; top: 40%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
}
.carousel-arrow.prev { left: -22px; }
.carousel-arrow.next { right: -22px; }
.carousel-arrow svg { width: 18px; height: 18px; }

/* ===== Certificates tabs ===== */
.cert-card {
  background: var(--paper-soft); border-radius: var(--radius-lg); padding: 40px; text-align: center;
}
.tab-row { display: inline-flex; gap: 8px; background: #fff; border-radius: 999px; padding: 6px; margin: 22px 0 30px; box-shadow: var(--shadow-card); }
.tab-btn { border: none; background: none; padding: 10px 22px; border-radius: 999px; font-weight: 700; color: var(--ink-soft); }
.tab-btn.active { background: var(--green-500); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.doc-thumb { background: #fff; border-radius: var(--radius-sm); padding: 18px 12px; border: 1px solid var(--line); }
.doc-thumb svg { width: 40px; height: 40px; color: var(--green-500); margin: 0 auto 10px; }
.doc-thumb span { font-size: .82rem; font-weight: 600; color: var(--ink); }

/* ===== About extras ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius-lg); width: 100%; height: 420px; object-fit: cover; }
.timeline { display: flex; flex-direction: column; gap: 22px; margin-top: 20px; }
.timeline-item { display: flex; gap: 18px; }
.timeline-year { font-family: var(--font-head); font-weight: 800; color: var(--green-600); flex: 0 0 70px; }

/* ===== Contact ===== */
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
.contact-info-card {
  background: var(--dark-900); color: #fff; border-radius: var(--radius-lg); padding: 40px; height: fit-content;
}
.contact-info-card h3 { color: #fff; }
.contact-info-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.contact-info-row svg { width: 22px; height: 22px; color: var(--green-400); flex: none; }
.contact-info-row strong { display: block; color: #fff; }
.contact-info-row span { color: rgba(255,255,255,0.7); font-size: .9rem; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-card); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 700; color: var(--ink); }
.field input, .field textarea, .field select {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-family: inherit; font-size: .95rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--green-400); }
.form-note { font-size: .82rem; color: var(--ink-soft); margin-top: 10px; }
.form-success {
  display: none; background: var(--amber-tint); color: var(--green-600); border-radius: var(--radius-sm);
  padding: 16px 18px; font-weight: 700; margin-top: 16px; align-items: center; gap: 10px;
}
.form-success.show { display: flex; }
.form-error {
  display: none; background: #fdecec; color: #b3261e; border-radius: var(--radius-sm);
  padding: 16px 18px; font-weight: 700; margin-top: 16px; align-items: center; gap: 10px;
}
.form-error.show { display: flex; }
.field--hp { position: absolute; left: -9999px; top: -9999px; }

/* ===== Footer ===== */
.site-footer { background: var(--dark-900); color: rgba(255,255,255,0.75); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand span { color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; }
.site-footer ul li { margin-bottom: 12px; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; flex-wrap: wrap; gap: 12px; font-size: .82rem; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.footer-socials svg { width: 16px; height: 16px; }

/* ===== Skip link (accessibility) ===== */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 999;
  background: var(--green-500); color: #fff; font-weight: 700;
  padding: 12px 20px; border-radius: var(--radius-sm);
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ===== FAQ accordion ===== */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 6px 26px; box-shadow: var(--shadow-card);
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--amber-tint); color: var(--green-600);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.faq-item summary .faq-icon svg { width: 16px; height: 16px; }
.faq-item[open] summary .faq-icon { background: var(--green-500); color: #fff; transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 0 22px; margin: 0; color: var(--ink-soft); }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.bg-soft { background: var(--paper-soft); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .stats-grid, .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .service-card, .service-card:nth-of-type(even) { grid-template-columns: 1fr; }
  .service-card:nth-of-type(even) .service-media { order: 0; }
  .split, .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tab-panel.active { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-links { position: fixed; top: 0; right: -100%; height: 100vh; width: 78%; max-width: 320px;
    background: #fff; flex-direction: column; align-items: flex-start; padding: 100px 28px; gap: 22px;
    transition: right .25s ease; box-shadow: -20px 0 40px rgba(0,0,0,0.15); z-index: 60; }
  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; }
  .topbar-left { display: none; }
  .stats-grid, .card-grid-3 { grid-template-columns: 1fr; }
  .contact-info-card, .contact-form { padding: 26px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { padding: 36px 26px; flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
  .service-actions { justify-content: center; }
  .carousel-arrow { display: none; }
}
