/* components.css — shared nav + footer styles, fully mobile responsive */

/* ── NAV ──────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 3rem;
  background: rgba(250,247,242,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(82,183,136,0.15);
}
nav .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 101;
}
nav .logo img {
  height: 44px;
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}
nav ul a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: #3d5a47;
  transition: color 0.2s;
  font-family: 'DM Sans', sans-serif;
}
nav ul a:hover { color: #2d6a4f; }
nav ul .nav-cta {
  background: #2d6a4f;
  color: white !important;
  padding: 0.5rem 1.3rem;
  border-radius: 100px;
}
nav ul .nav-cta:hover { background: #1a3a2a !important; }

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a3a2a;
  border-radius: 2px;
  transition: all 0.25s;
  transform-origin: center;
}
/* Animate to X when open */
.nav-hamburger-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV ───────────────────────────────────────── */
@media(max-width: 860px) {
  nav { padding: 1rem 1.5rem; }

  .nav-hamburger { display: flex; }

  nav ul {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #faf7f2;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 80px 1.5rem 2rem;
    border-bottom: 2px solid rgba(82,183,136,0.15);
    box-shadow: 0 8px 30px rgba(26,58,42,0.1);
  }
  nav ul.nav-open { display: flex; }
  nav ul li { border-bottom: 1px solid rgba(82,183,136,0.1); }
  nav ul li:last-child { border-bottom: none; margin-top: 0.5rem; }
  nav ul a {
    display: block;
    padding: 0.95rem 0;
    font-size: 1rem;
  }
  nav ul .nav-cta {
    display: block;
    text-align: center;
    padding: 0.85rem;
    border-radius: 10px;
    margin-top: 0.5rem;
  }
}

/* ── ENTERPRISE FOOTER ────────────────────────────────── */
footer {
  background: #1a3a2a;
  padding: 4rem 3.5rem 2rem;
  font-family: 'DM Sans', sans-serif;
  width: 100%;
}

#site-footer {
  width: 100%;
  display: block;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 0.9rem;
}
.footer-brand .logo img {
  height: 44px;
  width: auto;
  display: block;
}

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
  font-weight: 300;
  max-width: 240px;
  margin-bottom: 1.2rem;
}

.footer-social { display: flex; gap: 0.7rem; }
.social-link {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: all 0.2s;
}
.social-link:hover { background: rgba(82,183,136,0.2); color: #52b788; }

.footer-col-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.1rem;
}
.footer-col ul {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.footer-col ul a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 300;
}
.footer-col ul a:hover { color: #52b788; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom-left {
  display: flex; align-items: center;
  gap: 0.6rem; flex-wrap: wrap;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}
.footer-divider { opacity: 0.4; }
.footer-bottom-right { font-size: 0.75rem; color: rgba(255,255,255,0.2); }

/* ── FOOTER MOBILE ────────────────────────────────────── */
@media(max-width: 860px) {
  footer { padding: 3rem 1.5rem 2rem; }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-tagline { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-left { justify-content: center; }
}

@media(max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}
