:root {
  --green: #1d5c3f;
  --green-bright: #27a55a;
  --green-deep: #14402c;
  --tint: #e8f3ea;
  --tint-soft: #f2f8f3;
  --bg: #ffffff;
  --ink: #1a231d;
  --ink-soft: #5c6b61;
  --line: #e3ece5;
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { margin-top: 0; line-height: 1.2; }

h2 {
  font-size: 2.1rem;
  text-align: center;
  margin-bottom: 44px;
  letter-spacing: -0.5px;
}

h2.left { text-align: left; margin-bottom: 20px; }

.eyebrow {
  color: var(--green-bright);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.eyebrow.center { text-align: center; }

a { color: var(--green); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo img { height: 42px; width: auto; }
.logo img.logo-full { height: 72px; }

.logo em { font-style: normal; color: var(--green-bright); }

.site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-header nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
}

.site-header nav a:hover { color: var(--green-bright); }

.nav-cta {
  background: var(--green);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 26px;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--green-deep); }

/* Hero – inset rounded photo card */
.hero-wrap { padding: 8px 0 0; }

.hero-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 96px 64px;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(13, 42, 29, 0.82) 0%, rgba(13, 42, 29, 0.45) 55%, rgba(13, 42, 29, 0.2) 100%),
    url("images/hero.webp") center / cover no-repeat,
    linear-gradient(140deg, #1d5c3f 0%, #14402c 55%, #0d2a1d 100%);
}

.hero-card .eyebrow { color: #9fdcb8; }

.hero-card h1 {
  font-size: 3rem;
  max-width: 560px;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-card .lead {
  max-width: 500px;
  font-size: 1.12rem;
  color: #d9eadf;
  margin: 0 0 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn:active { transform: scale(0.98); }

.btn-solid {
  background: var(--green);
  color: #fff;
}
.btn-solid:hover { background: var(--green-deep); }

.btn-glass {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.28); }

.btn-ghost {
  border: 2px solid var(--green);
  color: var(--green);
}
.btn-ghost:hover { background: var(--tint); }

.btn-wide { width: 100%; }

/* Stats band */
.stats-band { padding: 40px 0 8px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 26px 20px;
  background: #fff;
}

.stat.tint {
  background: var(--tint);
  border-color: transparent;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.stat-label {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 6px;
}

/* Sections */
.section { padding: 84px 0; }

.section-tint {
  background: var(--tint-soft);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(20, 64, 44, 0.12);
}

.service-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--tint);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background 0.25s, color 0.25s;
}

.service-card .icon svg { width: 30px; height: 30px; }

.service-card:hover .icon {
  background: var(--green);
  color: #fff;
}

.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); margin: 0 0 16px; font-size: 0.96rem; flex: 1; }

.card-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.card-link:hover { text-decoration: underline; }

/* Split sections with photos */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-text p { color: var(--ink-soft); }
.split-text .eyebrow { color: var(--green-bright); }

.photo {
  border-radius: var(--radius);
  background-color: var(--tint);
  background-image: linear-gradient(140deg, #2a7d50 0%, #1d5c3f 50%, #14402c 100%);
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 44px rgba(20, 64, 44, 0.18);
}

.photo-collage {
  position: relative;
  min-height: 460px;
}

.photo-a {
  position: absolute;
  top: 0;
  left: 0;
  width: 78%;
  height: 82%;
}

.photo-b {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  height: 52%;
  border: 6px solid #fff;
}

.photo-big { min-height: 440px; }

.arrow-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 30px;
}

.arrow-list li {
  position: relative;
  padding: 7px 0 7px 28px;
  color: var(--ink);
}

.arrow-list li::before {
  content: "›";
  position: absolute;
  left: 4px;
  top: 4px;
  color: var(--green-bright);
  font-size: 1.3rem;
  font-weight: 700;
}

/* Promises (Miks meie) */
.promise {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.promise:last-of-type { margin-bottom: 26px; }

.promise h3 { font-size: 1.12rem; margin-bottom: 6px; }
.promise p { margin: 0; font-size: 0.96rem; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(20, 64, 44, 0.1);
}

.step-num {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint);
  color: var(--green);
  font-weight: 800;
  font-size: 1.15rem;
  border-radius: 50%;
}

.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }

/* Form */
.inquiry-form {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: 0 10px 30px rgba(20, 64, 44, 0.07);
}

.form-success {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 56px 38px;
  box-shadow: 0 10px 30px rgba(20, 64, 44, 0.07);
  text-align: center;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-bright), var(--green));
  color: #fff;
  font-size: 1.8rem;
}

.form-success h3 { margin: 0 0 8px; }
.form-success p { margin: 0; color: #5b6b62; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.form-row label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-row input,
.form-row select,
.form-row textarea {
  padding: 12px 14px;
  border: 1px solid #cfdcd2;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--green-bright);
  outline-offset: 1px;
}

.form-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin: 14px 0 0;
}

/* Footer (dark green, includes team) */
.site-footer {
  background: linear-gradient(160deg, var(--green-deep) 0%, #0d2a1d 100%);
  color: #d9eadf;
  padding: 72px 0 24px;
  margin-top: 8px;
}

.footer-top { text-align: center; }

.site-footer h2 { color: #fff; margin-bottom: 10px; }

.footer-lead {
  color: #a9c9b5;
  margin: 0 0 36px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
  gap: 22px;
  justify-content: center;
  margin-bottom: 64px;
}

.team-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  transition: transform 0.25s, background 0.25s;
}

.team-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
}

.team-avatar img {
  width: 62%;
  height: 62%;
  object-fit: contain;
}

.team-avatar:has(img) { background: #fff; }

.team-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-bright), var(--green));
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.team-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: 2px; }

.team-card .team-role {
  color: #9fdcb8;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 14px;
}

.team-card p { margin: 4px 0; }

.team-card a { color: #e9f4ec; text-decoration: none; }
.team-card a:hover { color: #9fdcb8; }

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo { margin-bottom: 10px; color: #fff; }
.footer-logo img { height: 38px; }
.footer-logo em { color: #9fdcb8; }

.footer-inner h4 { margin: 0 0 10px; color: #fff; }
.footer-inner p { margin: 4px 0; color: #a9c9b5; }
.footer-inner a { color: #d9eadf; text-decoration: none; }
.footer-inner a:hover { color: #9fdcb8; }

.footer-copy {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: #7da58c;
  font-size: 0.85rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

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

/* Responsive */
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .photo-collage { min-height: 340px; }
  .photo-big { min-height: 300px; }
}

@media (max-width: 760px) {
  .hero-card { padding: 64px 28px; }
  .hero-card h1 { font-size: 2.2rem; }
  .header-inner { flex-direction: column; gap: 10px; }
  .site-header nav { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
