/*header-nav.css*/

/* === HEADER ================================================ */
.header-banner {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.header-image {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}
.header-overlay {
  position: absolute;
  bottom: 16px;
  left: 20px;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6), 0 0 6px rgba(0,0,0,0.4);
  pointer-events: none;
  z-index: 2;
}
.header-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.5));
  border-radius: 12px;
  z-index: 1;
  pointer-events: none;
}

/* === NAVBAR ================================================ */
.navbar a:visited {
  color: black;
}
.navbar {
  position: relative;
  background: rgba(255,255,255,0.8);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 14px 24px;
  margin-top: 8px;
}
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* shared button style */
.navbar a,
.dropdown > span,
.submenu > span,
.submenu-content a {
  display: inline-block;
  padding: 10px 20px;
  background: white;
  color: black;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  transition: background 0.2s, box-shadow 0.2s;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.navbar a:hover,
.dropdown > span:hover,
.submenu > span:hover,
.submenu-content a:hover {
  background: #ffd6ea;
  box-shadow: 0 4px 10px rgba(255,120,190,0.3);
}
.navbar a:active,
.dropdown > span:active,
.submenu > span:active,
.submenu-content a:active {
  background: #ff8fc6;
  color: white;
}

/* === DROPDOWN ============================================== */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  background: rgba(255,246,251,0.98);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  width: 160px;
}

.dropdown.open > .dropdown-content {
  display: flex;
}

/* desktop: float it below the trigger */
@media (min-width: 701px) {
  .dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    margin-top: 0;
  }
}

/* === SUBMENUS ============================================== */
.submenu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

/* submenu trigger fills the dropdown width */
.submenu > span {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
  padding: 8px 12px;
  text-align: left;
}

/* submenu links: vertical list, indented */
.submenu-content {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding-left: 10px;
}

.submenu.open > .submenu-content {
  display: flex;
}

.submenu-content a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-size: 13px;
  padding: 6px 12px;
  text-align: left;
}

/* === MOBILE ================================================ */
@media (max-width: 700px) {
  .navbar {
    padding: 16px;
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .navbar a,
  .dropdown > span {
    display: block;
    text-align: center;
    font-size: 15px;
    padding: 12px 16px;
    box-sizing: border-box;
  }
  .dropdown {
    width: 100%;
  }
  .dropdown-content {
    position: static;
    transform: none;
    width: 100%;
    box-sizing: border-box;
  }
  .submenu > span {
    text-align: center;
  }
  .submenu-content a {
    text-align: center;
  }
}