/* =========================
   HEADER 
========================= */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* =========================
   LOGO
========================= */
header h1 {
  font-family: var(--font-logo);
  font-size: 2rem;
  margin: 0;
  color: #2d7530;
  letter-spacing: 0.5px;
}

/* =========================
   NAVIGATION
========================= */
nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

nav a {
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  position: relative;
  transition: color 0.3s ease;
}

/* Underline hover effect */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background-color: #4caf50;
  transition: width 0.3s ease;
}

nav a:hover {
  color: #2d7530;
}

nav a:hover::after {
  width: 100%;
}

/* =========================
   HAMBURGER MENU
========================= */
.hamburger {
  display: none; /* only show via media query */
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px; /* total height of the 3 lines + gaps */
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 3px; /* line thickness */
  width: 100%; /* full width of hamburger container */
  background-color: #2d7530;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Show hamburger on tablets and mobiles */
@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    right: 1.5rem;
    width: 220px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
  }

  nav.show {
    display: flex;
  }

  nav a::after {
    display: none;
  }
}
