/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── CSS VARIABLES ── */
:root {
  --green:      #1B4332;
  --mint:       #6EE7A0;
  --bg:         #F4F7F4;
  --bg-card:    #ffffff;
  --text:       #0f1c14;
  --text-muted: #4a5e50;
  --radius:     14px;
  --font-head:  'DM Sans', sans-serif;
  --font-body:  'DM Sans', sans-serif;
}

/* ── TYPOGRAPHY ── */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}
h1, h2, h3, h4 { font-family: var(--font-head); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #fff;
  padding: 14px 28px; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  cursor: pointer; border: none; text-decoration: none;
  transition: opacity .15s, transform .15s;
  letter-spacing: -.01em;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--green);
  padding: 14px 28px; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  cursor: pointer; border: 2px solid var(--green); text-decoration: none;
  transition: all .15s;
}
.btn-ghost:hover { background: var(--green); color: #fff; }

/* ── SECTION LABEL ── */
.section-label {
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); margin-bottom: 12px; display: block;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatPhoto {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.fade-in { animation: fadeUp .6s ease both; }
.float-photo { animation: floatPhoto 5s ease-in-out infinite; }

/* ── REVEAL ON SCROLL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── NAV ── */
.nav-links { display: flex; }
.nav-hamburger { display: none; }

/* ── HERO COPY STAGGER ── */
.hero-copy > * { animation: fadeInDown .6s ease both; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .18s; }
.hero-copy > *:nth-child(3) { animation-delay: .32s; }
.hero-copy > *:nth-child(4) { animation-delay: .46s; }
.hero-copy > *:nth-child(5) { animation-delay: .58s; }

/* ── ACCORDION ── */
.accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.accordion-body.open { max-height: 200px; }

/* ── RANGE SLIDER (calculator) ── */
input[type=range] {
  -webkit-appearance: none;
  width: 100%; height: 6px; border-radius: 3px;
  outline: none; cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green); cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green); cursor: pointer;
  border: 2px solid #fff;
}

/* ── CHAT BUBBLES (calculator) ── */
.bubble { animation: fadeUp .4s ease both; }
@keyframes dotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .4; }
  40%            { transform: translateY(-6px); opacity: 1; }
}
.dot {
  width: 7px; height: 7px; background: var(--green);
  border-radius: 50%; display: inline-block;
  animation: dotBounce 1.2s ease infinite;
}
.dot:nth-child(2) { animation-delay: .15s; }
.dot:nth-child(3) { animation-delay: .3s; }

/* ── FOOTER ── */
.footer-link {
  color: rgba(255,255,255,.5); text-decoration: none;
  font-size: 14px; transition: color .15s;
}
.footer-link:hover { color: #6EE7A0; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none !important; }
  .nav-links.open {
    display: flex !important; flex-direction: column;
    position: fixed; top: 68px; left: 0; right: 0;
    background: rgba(244,247,244,.98); backdrop-filter: blur(12px);
    padding: 16px 24px 24px; gap: 4px !important;
    border-bottom: 1px solid rgba(27,67,50,.1); z-index: 99;
  }
  .nav-links.open a {
    padding: 12px 0; font-size: 17px !important;
    border-bottom: 1px solid rgba(27,67,50,.06);
  }
  .nav-hamburger {
    display: flex; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 8px; margin-right: -8px;
  }
  .nav-hamburger span {
    width: 24px; height: 2px; background: var(--text);
    border-radius: 2px; transition: all .2s; display: block;
  }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Hero */
  .grid-hero { grid-template-columns: 1fr !important; min-height: auto !important; position: relative !important; }
  .hero-right {
    position: absolute !important; inset: 0 !important;
    width: 100% !important; height: 100% !important; min-height: unset !important;
    pointer-events: none !important;
  }
  .float-photo { display: none !important; }
  .hero-copy {
    padding: 88px 7vw 56px !important; width: 100% !important;
    max-width: 100% !important; position: relative !important; z-index: 2 !important;
  }
  .hero-copy h1 { font-size: clamp(34px, 9vw, 52px) !important; }
  .hero-copy p { font-size: 16px !important; max-width: 100% !important; }
  .guarantee-pills { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }

  /* Grids */
  .grid-2col, .grid-3col, .how-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .partner-grid { grid-template-columns: 1fr !important; }
  .partner-cards { grid-template-columns: 1fr 1fr !important; }

  /* Sections */
  section { padding-left: 5vw !important; padding-right: 5vw !important; padding-top: 64px !important; padding-bottom: 64px !important; }
  #offer { padding: 72px 6vw !important; }

  /* Solution right column hidden */
  .solution-right { display: none !important; }

  /* Team photos */
  .team-photos { flex-direction: column !important; gap: 16px !important; }
  .team-photos > div { flex: none !important; width: 100% !important; }

  /* Buttons */
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }

  /* How it works arrows */
  .how-arrow { display: none !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* Calc branch grid */
  .branch-grid { grid-template-columns: 1fr 1fr !important; }
}
