:root {
  --green: #16a34a;
  --green-light: #f0fdf4;
  --orange: #ea7c0a;
  --black: #111827;
  --gray: #4b7a5a;
  --gray-light: #6b7280;
  --border: rgba(22,163,74,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Barlow', sans-serif; background: #f8faf8; color: var(--black); overflow-x: hidden; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 12px max(24px, calc((100vw - 1240px) / 2));
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(248,250,248,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.08); }
.nav-logo img { height: 96px; display: block; }
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a {
  color: #374151; text-decoration: none;
  font-size: 13px; font-weight: 500; letter-spacing: 1.2px;
  text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--green); }
.nav-cta {
  background: var(--green) !important; color: #fff !important;
  padding: 9px 20px; border-radius: 4px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: #15803d !important; }
.nav-toggle {
  display: none;
  border: 1px solid rgba(17,24,39,0.2);
  background: #fff;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 2px 0;
  border-radius: 2px;
  background: #111827;
}

/* FOOTER */
footer {
  background: #f0fdf4;
  border-top: 1px solid var(--border);
  padding: 52px 80px 32px;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 40px;
}
.footer-brand img { height: 88px; margin-bottom: 16px; }
.footer-brand p { font-size: 13px; color: var(--gray-light); line-height: 1.7; max-width: 260px; }
.footer-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--black);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 13px; color: var(--gray-light);
  text-decoration: none; transition: color 0.2s;
}
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 12px; color: #9ca3af; }
.footer-bottom a { font-size: 12px; color: #9ca3af; text-decoration: none; }
.footer-bottom a:hover { color: var(--green); }

/* HOMEPAGE-STYLE FOOTER (used in legal/contact pages) */
footer.footer-home {
  padding: 34px max(24px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
footer.footer-home img { height: 88px; opacity: 0.9; }
footer.footer-home p {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  letter-spacing: 0.4px;
}
footer.footer-home .footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  justify-content: flex-end;
  flex-wrap: wrap;
}
footer.footer-home .footer-links a {
  font-size: 12px;
  color: #6b7280;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}
footer.footer-home .footer-links a:hover { color: var(--green); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

@media (max-width: 768px) {
  nav { padding: 12px 24px; }
  .page-hero, .section { padding-left: 24px; padding-right: 24px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: span 1; }
  .highlight { flex-direction: column; padding: 32px; }
  .cta-banner { padding: 60px 24px; }

  footer.footer-home {
    padding: 20px 16px 24px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  footer.footer-home .footer-links {
    order: 1;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  footer.footer-home img { order: 2; height: 76px; }
  footer.footer-home p { order: 3; max-width: 320px; line-height: 1.4; }
}

@media (max-width: 980px) {
  nav {
    padding: 10px 16px;
    align-items: center;
    gap: 0;
    min-height: 72px;
    position: relative;
  }

  .nav-logo img { height: 58px; }
  .nav-toggle { display: inline-flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 12px;
    right: 12px;
    width: 100%;
    max-width: calc(100vw - 24px);
    gap: 6px;
    flex-direction: column;
    background: rgba(248,250,248,0.99);
    border: 1px solid rgba(22,163,74,0.15);
    border-radius: 10px;
    padding: 8px;
    z-index: 130;
  }

  nav.menu-open .nav-links { display: flex; }

  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 8px;
    font-size: 12px;
    letter-spacing: 0.8px;
  }

  .nav-cta {
    padding: 10px 14px;
    max-width: 260px;
    margin: 4px auto 0;
  }
}
