/* DESKTOP NAVBAR STYLES */
.navbar {
  background: linear-gradient(135deg, #006c67 0%, #003844 100%);
  padding: 0.8rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-section {
  flex-shrink: 0;
}

.logo-link {
  text-decoration: none;
  display: block;
}

.logo-container {
  background: #ece9e4;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  height: 54px;
}

.logo-container:hover {
  transform: scale(1.05);
}

.logo-image {
  width: 70px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-image img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.logo-text {
  color: #003844;
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}

/* DESKTOP NAVIGATION - VISIBLE ON LARGE SCREENS */
.nav-list {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.nav-link {
  color: #ece9e4;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
  white-space: nowrap;
  display: block;
  background-color: rgba(219, 134, 54, 0.2);
}

.nav-link:hover,
.nav-link.active {
  background-color: #db8636;
  color: #003844;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* MOBILE MENU TOGGLE - HIDDEN ON DESKTOP */
.mobile-menu-toggle {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: #ece9e4;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Focus states for accessibility */
.nav-link:focus,
.mobile-menu-toggle:focus,
.logo-link:focus {
  outline: 2px solid #db8636;
  outline-offset: 2px;
}

/* TABLET RESPONSIVE - 768px and below */
@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 1rem;
    height: 60px;
  }

  /* SHOW mobile menu toggle, HIDE desktop nav */
  .mobile-menu-toggle {
    display: flex !important; /* Show hamburger menu */
  }

  .nav-list {
    /* Transform desktop nav into mobile dropdown */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #003844;
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    gap: 0;
  }

  .navbar.mobile-menu-open .nav-list {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem;
    border-radius: 0;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link:hover {
    background-color: #006c67;
    transform: none;
  }

  .nav-link.active {
    background-color: #db8636;
    color: #003844;
  }

  .logo-container {
    padding: 6px 12px;
    height: 48px;
    gap: 8px;
  }

  .logo-image {
    width: 60px;
    height: 60px;
  }

  .logo-text {
    font-size: 1rem;
  }
}

/* MOBILE RESPONSIVE - 480px and below */
@media (max-width: 480px) {
  .navbar {
    padding: 0.6rem 1rem;
    height: 55px;
  }

  .logo-container {
    padding: 4px 8px;
    height: 40px;
    gap: 6px;
  }

  .logo-text {
    font-size: 0.9rem;
  }

  .hamburger-line {
    width: 20px;
    height: 2px;
  }

  .mobile-menu-toggle {
    padding: 0.4rem;
    gap: 3px;
  }
}

/* LANDSCAPE ORIENTATION for mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .navbar {
    height: 50px;
    padding: 0.5rem 1rem;
  }

  .logo-container {
    height: 35px;
    padding: 3px 8px;
  }

  .logo-text {
    font-size: 0.85rem;
  }
}

/* TOUCH-FRIENDLY improvements */
@media (hover: none) and (pointer: coarse) {
  .nav-link {
    padding: 1rem 1.2rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  .logo-container:hover {
    transform: none;
  }
}

/* HAMBURGER MENU ANIMATION */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}