/* ========================================
   NAVBAR & FOOTER STYLES
   ======================================== */

html,
body {
  width: 100%;
  /* overflow-x: hidden; */
  max-width: 100vw;
}

/* TOP INFO BAR */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--dark-green);
  padding: var(--spacing-sm) 0;
  z-index: 998;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.top-bar.hide {
  transform: translateY(-100%);
}

.top-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  gap: var(--spacing-xl);
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 400;
  transition: all 0.3s ease;
}

.top-bar-item i {
  color: var(--emerald);
  font-size: 1rem;
}

.top-bar-item:hover {
  color: var(--emerald);
}

/* NAVIGATION BAR */
.navbar {
  position: fixed;
  top: 50px;
  left: 0;
  width: 100%;
  height: auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--spacing-md) 0;
  z-index: 999;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-bottom: 1px solid rgba(0, 127, 95, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  will-change: transform, top;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(20px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  padding: var(--spacing-sm) 0;
}

.navbar.hide-top-bar {
  top: 0;
}

.navbar.navbar-hide {
  transform: translateY(-100%);
  box-shadow: none;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.navbar-logo {
  width: 80px;
  height: 80px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.navbar-logo:hover {
  transform: scale(1.08) rotate(2deg);
  filter: drop-shadow(0 8px 16px rgba(0, 127, 95, 0.3));
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
}

.nav-link {
  color: var(--emerald);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  font-family: var(--font-sans);
  text-transform: uppercase;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald), var(--dark-green));
  transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-link:hover {
  color: var(--dark-green);
  transform: translateY(-2px);
}

.nav-link:hover::before {
  width: 100%;
}

.nav-link.active {
  color: var(--dark-green);
}

.nav-link.active::before {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 1000;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--emerald);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* FOOTER */
.footer {
  background: var(--dark-green);
  color: var(--white);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--spacing-lg);
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
  color: var(--white);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.footer-column a:hover {
  color: var(--white);
}

.social-icons {
  display: flex;
  gap: var(--spacing-md);
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--white);
  color: var(--dark-green);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .top-bar {
    padding: var(--spacing-sm) var(--spacing-lg);
    height: auto;
    min-height: 45px;
  }

  .top-bar-container {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }

  .top-bar-left,
  .top-bar-right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
  }

  .top-bar-item {
    font-size: 0.8rem;
  }

  .navbar {
    top: 45px;
    padding: var(--spacing-sm) 0;
    position: fixed;
  }

  .navbar.hide-top-bar {
    top: 0;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .hamburger span {
    width: 24px;
    height: 2.5px;
    background-color: var(--emerald);
  }

  .nav-menu {
    position: fixed;
    top: 105px;
    left: 0;
    width: 100%;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(248, 248, 248, 0.95) 100%
    );
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-menu.active {
    max-height: 600px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  }

  .nav-link {
    padding: 1.2rem var(--spacing-lg);
    border-bottom: 1px solid rgba(0, 127, 95, 0.1);
    font-size: 0.95rem;
    color: var(--dark-green);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link::before {
    display: none;
  }

  .nav-link:active,
  .nav-link:hover {
    background-color: rgba(0, 127, 95, 0.08);
    color: var(--emerald);
    transform: none;
    padding-left: calc(var(--spacing-lg) + 8px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .navbar-logo {
    width: 40px;
    height: 40px;
  }

  .nav-menu {
    top: 90px;
  }

  .nav-link {
    padding: 1rem var(--spacing-md);
    font-size: 0.85rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
