/* ============================================================
   LEAF LLC — Premium Redesign 2025
   ============================================================ */

/* ── CSS Variables ── */
:root {
  /* Brand colors */
  --c-forest:       #0D3B2E;
  --c-forest-mid:   #1A5C45;
  --c-forest-lt:    #2D7A5F;

  /* Backgrounds */
  --c-canvas:       #F5F1EA;
  --c-surface:      #FDFAF4;
  --c-surface-2:    #EEF5EC;

  /* Accent */
  --c-amber:        #C8893A;

  /* Text */
  --c-text:         #0F1F18;
  --c-muted:        #3D5245;
  --c-subtle:       #7A8F80;

  /* Lines */
  --c-line:         rgba(28, 48, 40, 0.10);
  --c-line-strong:  rgba(28, 48, 40, 0.20);

  /* White */
  --c-white:        #FFFFFF;

  /* Shadows */
  --shadow-sm:  0 2px 8px  rgba(13, 59, 46, 0.07);
  --shadow-md:  0 8px 32px rgba(13, 59, 46, 0.10);
  --shadow-lg:  0 24px 64px rgba(13, 59, 46, 0.12);
  --shadow-xl:  0 32px 80px rgba(13, 59, 46, 0.16);

  /* Border radius */
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-pill: 999px;

  /* Easing */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Spacing — 8px base */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  background-color: var(--c-canvas);
  background-image:
    radial-gradient(ellipse 80% 50% at 8% 4%,  rgba(238, 245, 236, 0.85) 0%, transparent 52%),
    radial-gradient(ellipse 55% 40% at 92% 82%, rgba(200, 137, 58, 0.06)  0%, transparent 46%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a   { text-decoration: none; }
button, input, textarea, select { font-family: inherit; }

.page-shell { min-height: 100vh; }


/* ============================================================
   NAVBAR
   ============================================================ */
.hero {
  position: relative;
  padding: 20px clamp(20px, 4vw, 56px) 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
}

/* Фоновая картинка в отдельном слое с фиксированной высотой —
   не зависит от длины текста при смене языка */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background:
    linear-gradient(
      160deg,
      rgba(245, 241, 234, 0.82) 0%,
      rgba(238, 245, 236, 0.72) 100%
    ),
    url("assets/hero.jpg") center / cover no-repeat;
  z-index: 0;
  pointer-events: none;
}

.nav {
  position: sticky;
  top: 16px;
  z-index: 100;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: 10px 14px;
  border: 1px solid var(--c-line);
  border-radius: 20px;
  background: rgba(253, 250, 244, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
  background: rgba(253, 250, 244, 0.96);
  box-shadow: var(--shadow-md);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--c-text);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  background: var(--c-white);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-links a {
  display: inline-block;
  padding: 7px 13px;
  border-radius: var(--r-sm);
  color: var(--c-text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--c-forest);
  background: rgba(13, 59, 46, 0.06);
}

.nav-links a.active {
  color: var(--c-forest);
  background: rgba(13, 59, 46, 0.08);
}

/* Nav CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  border-radius: var(--r-sm);
  background: var(--c-forest);
  color: var(--c-white);
  font-weight: 600;
  font-size: 0.855rem;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s var(--ease-spring), box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
  background: var(--c-forest-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(13, 59, 46, 0.07);
  border-radius: var(--r-sm);
  padding: 3px;
  flex-shrink: 0;
}

.lang-btn {
  height: 28px;
  padding: 0 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--c-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  font-family: inherit;
}

.lang-btn:hover {
  background: rgba(13, 59, 46, 0.08);
  color: var(--c-forest);
}

.lang-btn.active {
  background: var(--c-forest);
  color: var(--c-white);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
}

.menu-toggle:hover { background: rgba(13, 59, 46, 0.06); }

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--c-text);
  border-radius: var(--r-pill);
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ============================================================
   HERO CONTENT
   ============================================================ */
.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: var(--sp-8);
  padding-top: 84px;
  position: relative;
  z-index: 1;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px;
  margin-bottom: var(--sp-5);
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line-strong);
  background: rgba(253, 250, 244, 0.92);
  backdrop-filter: blur(12px);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: 0.04em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4DB870;
  box-shadow: 0 0 0 2px rgba(77, 184, 112, 0.25);
  flex-shrink: 0;
  animation: badge-pulse 2.6s ease infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(77, 184, 112, 0.25); }
  50%       { box-shadow: 0 0 0 5px rgba(77, 184, 112, 0.08); }
}

/* H1 */
.hero-copy h1 {
  font-size: clamp(3rem, 7.5vw, 6rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.026em;
  color: var(--c-text);
  max-width: 13ch;
  margin-bottom: var(--sp-5);
}

/* Lead text */
.hero-text {
  max-width: 52ch;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.8;
  margin-bottom: var(--sp-8);
  text-shadow: 0 1px 12px rgba(245, 241, 234, 0.85);
}

/* CTA row */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* Right panel */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

/* Stats panel */
.stats-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: var(--r-xl);
  border: 1px solid var(--c-line);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  gap: 1px;
  background: var(--c-line);
}

.stat-item {
  background: var(--c-surface);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: background 0.25s ease;
}

.stat-item:hover {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96) 0%, rgba(237, 244, 238, 0.92) 100%);
}

.stat-value {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--c-forest);
  transition: color 0.25s ease;
}

.stat-item:hover .stat-value {
  color: var(--c-forest-mid);
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-muted);
  line-height: 1.4;
}

/* Tags row */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line-strong);
  background: rgba(253, 250, 244, 0.72);
  backdrop-filter: blur(8px);
  font-size: 0.765rem;
  font-weight: 600;
  color: var(--c-muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: default;
}

.tag:hover {
  border-color: var(--c-forest-lt);
  color: var(--c-forest);
  background: var(--c-surface-2);
}


/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  padding: 17px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-surface);
  overflow: hidden;
}

.trust-label {
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-subtle);
  white-space: nowrap;
  flex-shrink: 0;
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.trust-item {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-muted);
  transition: color 0.2s;
  white-space: nowrap;
  cursor: default;
}

.trust-item:hover { color: var(--c-forest-mid); }

.trust-divider {
  color: var(--c-line-strong);
  font-weight: 300;
  user-select: none;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: 50px;
  padding: 0 24px;
  border-radius: 14px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.925rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.22s var(--ease-spring),
    box-shadow 0.22s ease;
}

.btn:active { transform: translateY(1px) !important; }

.btn-primary {
  background: var(--c-forest);
  color: var(--c-white);
  box-shadow: 0 2px 12px rgba(13, 59, 46, 0.22);
}

.btn-primary:hover {
  background: var(--c-forest-mid);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(13, 59, 46, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.55);
  color: var(--c-text);
  border: 1.5px solid var(--c-line-strong);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--c-forest-lt);
  transform: translateY(-2px);
}

.btn-full { width: 100%; }


/* ============================================================
   EYEBROW
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-forest-mid);
}

.eyebrow::before {
  content: "";
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--c-forest-mid);
  border-radius: var(--r-pill);
  flex-shrink: 0;
}


/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: var(--sp-20) clamp(20px, 4vw, 56px);
}

.section-header {
  margin-bottom: var(--sp-12);
}

.section-header h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 22ch;
  color: var(--c-text);
}


/* ============================================================
   POSITIONING
   ============================================================ */
.positioning {
  padding: var(--sp-16) clamp(20px, 4vw, 56px);
  background:
    linear-gradient(135deg,
      rgba(238, 245, 236, 0.60) 0%,
      rgba(245, 241, 234, 0.30) 100%
    );
  border-bottom: 1px solid var(--c-line);
}

.positioning-inner {
  max-width: 860px;
}

.positioning-headline {
  font-size: clamp(1.75rem, 3.8vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--c-text);
  margin-bottom: var(--sp-5);
  max-width: 22ch;
}

.positioning-body {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--c-muted);
  line-height: 1.85;
  max-width: 72ch;
}


/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.about-card {
  padding: var(--sp-8);
  border-radius: var(--r-xl);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.about-card.dark {
  background: var(--c-forest);
  border-color: transparent;
  color: var(--c-white);
}

.about-card.dark p { color: rgba(255, 255, 255, 0.68); }

.about-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  color: var(--c-forest);
  flex-shrink: 0;
}

.about-card.dark .about-icon {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
}

.about-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.3;
}

.about-card p {
  color: var(--c-muted);
  font-size: 0.975rem;
  font-weight: 500;
  line-height: 1.8;
}


/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(238, 245, 236, 0.45) 40%,
      transparent 100%
    );
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.service-card {
  position: relative;
  padding: var(--sp-8);
  border-radius: var(--r-xl);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.3s var(--ease-spring),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* Gradient sweep on hover */
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(238, 245, 236, 0.72) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  border-radius: inherit;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--c-line-strong);
}

.service-card:hover::after { opacity: 1; }

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  color: var(--c-forest);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.service-card:hover .service-icon {
  background: rgba(13, 59, 46, 0.10);
  border-color: rgba(13, 59, 46, 0.20);
}

.service-num {
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--c-amber);
  position: relative;
  z-index: 1;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--c-text);
  position: relative;
  z-index: 1;
}

.service-card p {
  color: var(--c-muted);
  font-size: 0.975rem;
  font-weight: 500;
  line-height: 1.8;
  flex: 1;
  position: relative;
  z-index: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: auto;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line);
  color: var(--c-forest);
  font-weight: 600;
  font-size: 0.865rem;
  text-decoration: none;
  position: relative;
  z-index: 1;
  transition: gap 0.2s ease, color 0.2s ease;
}

.service-link:hover {
  gap: 13px;
  color: var(--c-forest-mid);
}


/* ============================================================
   WHY LEAF
   ============================================================ */
.why {
  background: var(--c-forest);
}

.why .section-header .eyebrow {
  color: rgba(255,255,255,0.55);
}

.why .section-header h2 {
  color: var(--c-white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
}

.why-card {
  display: flex;
  gap: var(--sp-5);
  padding: var(--sp-8);
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.why-card:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-3px);
}

.why-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.10);
  color: var(--c-white);
}

.why-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-2);
}

.why-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  position: relative;
}

/* Horizontal connector line */
.process-grid::before {
  content: "";
  position: absolute;
  top: 27px;
  left:  calc(12.5% + 22px);
  right: calc(12.5% + 22px);
  height: 1px;
  background: linear-gradient(90deg,
    var(--c-line-strong),
    var(--c-line),
    var(--c-line-strong)
  );
  pointer-events: none;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.process-num {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--c-line-strong);
  background: var(--c-surface);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--c-forest);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-sm);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

.process-step:hover .process-num {
  background: var(--c-forest);
  border-color: var(--c-forest);
  color: var(--c-white);
  box-shadow: var(--shadow-md);
}

.process-step h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.process-step p {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-muted);
  line-height: 1.75;
}


/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background:
    radial-gradient(ellipse 65% 55% at 0% 100%,
      rgba(238, 245, 236, 0.65) 0%,
      transparent 55%
    );
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  align-items: start;
  gap: var(--sp-10);
}

.contact-info {
  position: sticky;
  top: 100px;
}

.contact-info h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-4);
}

.contact-desc {
  color: var(--c-muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.8;
  margin-bottom: var(--sp-8);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  color: var(--c-text);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.contact-detail-item:hover {
  border-color: var(--c-line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: var(--c-surface-2);
  color: var(--c-forest);
  flex-shrink: 0;
}

/* Form */
.contact-form {
  padding: var(--sp-8);
  border-radius: var(--r-xl);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}

.form-header {
  margin-bottom: var(--sp-6);
}

.form-header h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.2;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.form-field {
  display: grid;
  gap: var(--sp-2);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--c-text);
}

.full-width { grid-column: 1 / -1; }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.65);
  color: var(--c-text);
  font-family: inherit;
  font-size: 0.91rem;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--c-subtle); }

.form-field input:hover,
.form-field textarea:hover {
  border-color: var(--c-line-strong);
  background: rgba(255, 255, 255, 0.85);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--c-forest-lt);
  box-shadow: 0 0 0 3px rgba(45, 122, 95, 0.12);
  background: var(--c-white);
}

.form-field textarea {
  resize: vertical;
  min-height: 118px;
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.form-note {
  font-size: 0.80rem;
  color: var(--c-subtle);
  text-align: center;
  line-height: 1.5;
}

/* Honeypot field — hidden from real visitors, visible to bots that
   fill in every input. If it's non-empty on submit, send.php discards it. */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ============================================================
   FOOTER
   ============================================================ */
/* ── Scroll progress bar ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--c-forest), var(--c-forest-lt));
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── Form validation ── */
.form-field input,
.form-field textarea,
.form-field select {
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.10);
}

.form-field.is-valid input,
.form-field.is-valid textarea,
.form-field.is-valid select {
  border-color: var(--c-forest);
  box-shadow: 0 0 0 3px rgba(13, 59, 46, 0.10);
}

.field-error {
  display: block;
  margin-top: 5px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #c0392b;
  min-height: 1em;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.form-field.has-error .field-error {
  opacity: 1;
  transform: translateY(0);
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--c-forest);
  color: var(--c-white);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), background 0.2s;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--c-forest-mid);
  transform: translateY(-2px);
}

/* ── Select field ── */
.form-field select {
  width: 100%;
  padding: 0 var(--sp-4);
  height: 48px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--c-line-strong);
  background: var(--c-surface);
  color: var(--c-text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233D5245' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field select:focus {
  outline: none;
  border-color: var(--c-forest);
  box-shadow: 0 0 0 3px rgba(13,59,46,0.10);
}

.form-field select option[value=""] {
  color: var(--c-subtle);
}

.footer {
  background: var(--c-forest);
  color: rgba(255, 255, 255, 0.65);
}

.footer-inner {
  padding: var(--sp-16) clamp(20px, 4vw, 56px) var(--sp-8);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.65fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: var(--sp-8);
}

.footer-brand .brand {
  color: var(--c-white);
  margin-bottom: var(--sp-4);
  display: inline-flex;
}

.footer-brand .brand-logo {
  border-color: rgba(255, 255, 255, 0.14);
}

.footer-brand p {
  font-size: 0.865rem;
  line-height: 1.7;
  max-width: 27ch;
}

.footer-slogan {
  margin-top: var(--sp-3) !important;
  font-size: 0.78rem !important;
  font-style: italic;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.30) !important;
  max-width: none !important;
}

.footer-heading {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: var(--sp-4);
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-nav-group a {
  color: rgba(255, 255, 255, 0.80);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav-group a:hover { color: var(--c-white); }

.footer-address {
  font-size: 0.865rem;
  color: rgba(255, 255, 255, 0.40);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer-bottom > p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.30);
}

.footer-social {
  display: flex;
  gap: var(--sp-2);
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.50);
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.social-link:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.07);
}


/* ============================================================
   HOVER COLOR ENHANCEMENTS
   ============================================================ */

/* About cards — heading + border turn green */
.about-card:hover {
  border-color: var(--c-forest-lt);
}

.about-card:not(.dark):hover h3 {
  color: var(--c-forest);
}

.about-card:not(.dark):hover .about-icon {
  background: rgba(13, 59, 46, 0.10);
  border-color: rgba(13, 59, 46, 0.22);
  color: var(--c-forest);
}

/* Dark about card — subtle amber accent */
.about-card.dark:hover {
  border-color: rgba(200, 137, 58, 0.45);
}

.about-card.dark:hover .about-icon {
  background: rgba(200, 137, 58, 0.18);
  border-color: rgba(200, 137, 58, 0.28);
  color: var(--c-amber);
}

/* Service cards — heading + number color change */
.service-card:hover h3 {
  color: var(--c-forest);
}

.service-card:hover .service-num {
  color: var(--c-forest-mid);
}

/* Why cards — icon gets amber tint on hover */
.why-card:hover .why-icon {
  background: rgba(200, 137, 58, 0.22);
  color: var(--c-amber);
  transition: background 0.25s ease, color 0.25s ease;
}

.why-card:hover h4 {
  color: rgba(255, 255, 255, 1);
}

/* Process steps — heading turns forest green */
.process-step:hover h4 {
  color: var(--c-forest);
  transition: color 0.25s ease;
}

/* Contact detail items — green tint background */
.contact-detail-item:hover {
  background: var(--c-surface-2);
  color: var(--c-forest);
}

.contact-detail-item:hover .contact-detail-icon {
  background: rgba(13, 59, 46, 0.12);
  color: var(--c-forest);
}

/* Positioning block — left accent border on hover */
.positioning-inner {
  border-left: 3px solid transparent;
  padding-left: var(--sp-6);
  transition: border-color 0.35s ease;
}

.positioning-inner:hover {
  border-color: var(--c-forest-lt);
}

.positioning-inner:hover .positioning-headline {
  color: var(--c-forest);
  transition: color 0.3s ease;
}

/* Trust bar items — already have color, add underline hint */
.trust-item {
  position: relative;
}

.trust-item::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--c-forest-mid);
  border-radius: var(--r-pill);
  transition: width 0.25s var(--ease-out);
}

.trust-item:hover::after {
  width: 100%;
}

/* Smooth transitions for color-animated elements */
.about-card h3,
.about-card .about-icon,
.service-card h3,
.service-card .service-num,
.process-step h4,
.contact-detail-item,
.contact-detail-item .contact-detail-icon,
.positioning-headline {
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}


/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
}

.reveal-delay   { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   RESPONSIVE — 960px (Tablet)
   ============================================================ */
@media (max-width: 960px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 52px;
    gap: var(--sp-8);
  }

  .about-grid     { grid-template-columns: 1fr 1fr; }
  .services-grid  { grid-template-columns: 1fr 1fr; }
  .why-grid       { grid-template-columns: 1fr 1fr; }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-8) var(--sp-5);
  }

  .process-grid::before { display: none; }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .contact-info { position: static; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }
}


/* ============================================================
   RESPONSIVE — 640px (Mobile)
   ============================================================ */
@media (max-width: 640px) {
  .section  { padding: 60px 20px; }

  .hero {
    padding: 16px 20px 60px;
  }

  .hero-content { padding-top: 40px; }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 13vw, 3.6rem);
  }

  .hero-text { font-size: 0.975rem; }

  .stats-panel { grid-template-columns: 1fr 1fr; }

  .stats-panel .stat-item:last-child {
    grid-column: 1 / -1;
  }

  .about-grid    { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid      { grid-template-columns: 1fr; }
  .process-grid  { grid-template-columns: 1fr 1fr; }
  .form-grid     { grid-template-columns: 1fr; }

  .nav-cta { display: none; }
  .lang-switcher { order: -1; margin-left: auto; }

  .footer-top { grid-template-columns: 1fr; }

  /* Mobile nav dropdown */
  .nav {
    flex-wrap: wrap;
    position: relative;
  }

  .menu-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: var(--sp-3);
    border: 1px solid var(--c-line);
    border-radius: var(--r-lg);
    background: var(--c-surface);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 12px 16px;
    border-radius: var(--r-md);
    font-size: 0.975rem;
    color: var(--c-text);
  }
}


/* ============================================================
   RESPONSIVE — 390px (Small mobile)
   ============================================================ */
@media (max-width: 390px) {
  .hero-copy h1 {
    font-size: 2.45rem;
  }

  .hero-actions { flex-direction: column; }

  .btn { width: 100%; }

  .stats-panel {
    grid-template-columns: 1fr;
  }

  .stats-panel .stat-item:last-child { grid-column: auto; }

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

  .hero-badge { font-size: 0.72rem; }
}
