:root {
  --green-deep: #1b4332;
  --green-dark: #2d6a4f;
  --green-mid: #40916c;
  --green-accent: #95d5b2;
  --green-light: #d8f3dc;
  --green-ghost: #f0faf4;
  --white: #ffffff;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --font-display: 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'Space Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-display); color: var(--slate-800); background: var(--white); overflow-x: hidden; }

body::before {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.018; pointer-events: none; z-index: 9999;
}

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-12px); } }
@keyframes pulse-glow { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.8; } }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.reveal { animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }
.reveal-delay-3 { animation-delay: 0.3s; }

/* Nav */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 48px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(27,67,50,0.06); transition: all 0.3s ease;
}
nav.scrolled { box-shadow: 0 1px 24px rgba(27,67,50,0.08); }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-deep); }
.nav-logo-icon { width: 32px; height: 32px; background: var(--green-deep); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.nav-logo-icon svg { width: 18px; height: 18px; }
.nav-logo-text { font-size: 18px; font-weight: 700; letter-spacing: -0.5px; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--slate-600); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--green-deep); }
.nav-links > li > a.active { color: var(--green-deep); font-weight: 600; }

/* Services dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: flex; align-items: center; gap: 4px; cursor: pointer; text-decoration: none; color: var(--slate-600); font-size: 14px; font-weight: 500; transition: color 0.2s; background: none; border: none; font-family: inherit; padding: 0; }
.nav-dropdown-toggle:hover { color: var(--green-deep); }
.nav-dropdown-toggle svg.dropdown-chevron { width: 12px; height: 12px; transition: transform 0.2s; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 200px; padding: 8px 0; margin-top: 12px;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(27,67,50,0.08); border-radius: 12px;
  box-shadow: 0 8px 32px rgba(27,67,50,0.12);
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 1001;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown.open .dropdown-chevron { transform: rotate(180deg); }
.nav-dropdown-menu a {
  display: block; padding: 10px 20px; font-size: 14px; font-weight: 500;
  color: var(--slate-600); text-decoration: none; transition: all 0.15s;
}
.nav-dropdown-menu a:hover { background: var(--green-ghost); color: var(--green-deep); }
.nav-dropdown-header {
  display: block; font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--slate-400); padding: 12px 16px 4px;
  pointer-events: none; user-select: none;
}
.nav-dropdown-header:first-child { padding-top: 8px; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-deep); color: var(--white) !important;
  padding: 10px 24px; border-radius: 10px; font-size: 14px; font-weight: 600;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 2px 8px rgba(27,67,50,0.2);
}
.nav-cta:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(27,67,50,0.3); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-hamburger span { width: 24px; height: 2px; background: var(--green-deep); border-radius: 2px; transition: all 0.3s; }
.nav-links.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px 32px;
  gap: 20px;
  box-shadow: 0 8px 32px rgba(27,67,50,0.1);
  border-bottom: 1px solid rgba(27,67,50,0.06);
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green-deep); color: var(--white);
  padding: 16px 32px; border-radius: 12px; font-size: 16px; font-weight: 600;
  text-decoration: none; transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 16px rgba(27,67,50,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
  border: none; cursor: pointer; font-family: var(--font-display);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(27,67,50,0.35); }
.btn-primary svg { transition: transform 0.3s; }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--green-deep);
  padding: 16px 32px; border-radius: 12px; font-size: 16px; font-weight: 600;
  text-decoration: none; transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1.5px solid var(--slate-200); cursor: pointer; font-family: var(--font-display);
}
.btn-secondary:hover { background: var(--green-ghost); border-color: var(--green-accent); transform: translateY(-2px); }

/* Section shared */
section { padding: 120px 48px; }
.section-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--green-mid); margin-bottom: 20px; }
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--green-accent); border-radius: 2px; }
.section-title { font-size: clamp(32px, 4vw, 48px); font-weight: 700; line-height: 1.1; letter-spacing: -1.5px; color: var(--green-deep); margin-bottom: 20px; }
.section-desc { font-size: 18px; line-height: 1.7; color: var(--slate-500); max-width: 540px; }

/* Page hero (inner pages) */
.page-hero {
  padding: 160px 48px 80px; text-align: center; position: relative; overflow: hidden;
  background: var(--white);
}
.page-hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(149,213,178,0.15), transparent 70%);
}
.page-hero .section-title { font-size: clamp(36px, 5vw, 56px); max-width: 700px; margin: 0 auto 20px; }
.page-hero .section-desc { max-width: 560px; margin: 0 auto; }

/* CTA section */
.cta-section { background: var(--slate-50); text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 800px; height: 800px; background: radial-gradient(circle, rgba(149,213,178,0.15), transparent 70%); }
.cta-content { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.cta-content .section-desc { margin: 0 auto 40px; max-width: 480px; }
.cta-actions { display: flex; justify-content: center; gap: 16px; margin-bottom: 32px; }
.cta-note { font-size: 13px; color: var(--slate-400); }

/* Footer */
footer { background: var(--green-deep); padding: 64px 48px 32px; position: relative; overflow: hidden; }
footer::before { content: ''; position: absolute; bottom: -100px; right: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(149,213,178,0.06), transparent 70%); }
.footer-top { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); position: relative; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand .nav-logo { color: var(--white); }
.footer-brand .nav-logo-icon { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.45); max-width: 280px; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--green-accent); }
.footer-social-link { display: inline-flex; align-items: center; gap: 6px; }
.footer-social-link svg { vertical-align: middle; }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding-top: 32px; display: flex; justify-content: space-between; align-items: center; position: relative; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 13px; color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* Responsive */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  section { padding: 80px 24px; }
  .page-hero { padding: 120px 24px 60px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  /* Mobile dropdown */
  .nav-dropdown-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    min-width: 0; margin: 0; padding: 0; border: none; border-radius: 0;
    box-shadow: none; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
    display: none; padding-left: 16px;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; transform: none; }
  .nav-dropdown:hover .nav-dropdown-menu { opacity: 0; visibility: hidden; }
  .nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; }
  .nav-dropdown-menu a { padding: 8px 0; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
}
