/* ============================================================
   header-footer.css — Unified Header and Footer styles
   Encapsulated and isolated, 100% compatible across all pages
   ============================================================ */

/* ── HEADER NAVIGATION ── */
.site-nav,
.site-footer,
.nav-mobile-menu {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #E5E7EB;
  height: 64px;
  transition: box-shadow 0.25s ease;
}

.site-nav.nav-scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: #111827;
  text-decoration: none;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #16A34A;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1rem;
}

.nav-logo-accent {
  color: #16A34A;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4B5563;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: #111827;
  background: #F3F4F6;
}

.nav-link.active {
  color: #16A34A;
  font-weight: 700;
  background: #F0FDF4;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  margin-left: 8px;
  border-radius: 999px;
  background: #16A34A;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.30);
}

.nav-cta:hover {
  background: #15803D;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.40);
  color: #ffffff;
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  cursor: pointer;
  padding: 13px;
}

.nav-mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: transform 0.18s, opacity 0.18s;
}

.nav-mobile-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-mobile-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-mobile-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid #E5E7EB;
  padding: 12px 20px 20px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  animation: menu-slide 0.2s ease;
}

.nav-mobile-menu.is-open {
  display: flex;
}

@keyframes menu-slide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-mobile-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  color: #4B5563;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.nav-mobile-link:hover {
  color: #111827;
  background: #F3F4F6;
}

.nav-mobile-link.active {
  color: #16A34A;
  font-weight: 700;
  background: #F0FDF4;
}

.nav-mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 13px;
  border-radius: 12px;
  background: #16A34A;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

/* ── FOOTER ── */
.site-footer {
  background: #ffffff;
  border-top: 1px solid #F3F4F6;
  padding: 64px 24px 32px;
  color: #374151;
}

.site-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 12px;
  text-decoration: none;
}

.footer-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #16A34A;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.85rem;
}

.footer-brand-accent {
  color: #16A34A;
}

.footer-desc {
  font-size: 0.85rem;
  color: #4B5563;
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4B5563;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.footer-social:hover {
  background: #DCFCE7;
  color: #16A34A;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #374151;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 2px 0;
  font-size: 0.875rem;
  color: #4B5563;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-link:hover {
  color: #16A34A;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid #F3F4F6;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.82rem;
  color: #6B7280;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  font-size: 0.75rem;
  color: #374151;
}

.footer-badge i {
  color: #22C55E;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .site-nav .nav-links {
    display: none;
  }
  .nav-mobile-toggle {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-badges {
    justify-content: center;
  }
}
