/* ================================
   SITE HEADER
================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;

  /* 🔑 IMPORTANT: allow dropdown nav to flow */
  overflow: visible;
}

/* ================================
   HEADER INNER
================================ */

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ================================
   LOGO
================================ */

.logo {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}

/* ================================
   MENU BUTTON (MOBILE)
================================ */

.menu-btn {
  font-size: 22px;
  background: none;
  border: none;
  color: #0f172a;
  cursor: pointer;
}

/* ================================
   MOBILE NAV
================================ */

.mobile-nav {
  /* layout */
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;

  /* positioning */
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;

  /* 🔑 CRITICAL FIX */
  pointer-events: none;
  opacity: 0;

  /* smooth */
  transition: opacity 0.2s ease;
}

/* OPEN STATE */
.mobile-nav.open {
  pointer-events: auto;
  opacity: 1;
}

/* NAV LINKS */
.mobile-nav a {
  padding: 14px 18px;
  font-size: 16px;
  color: #0f172a;
  text-decoration: none;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-nav a:hover {
  background: #f8fafc;
}

/* ================================
   DESKTOP BEHAVIOR
================================ */

@media (min-width: 768px) {
  .menu-btn {
    display: none;
  }

  .mobile-nav {
    position: static;
    flex-direction: row;
    border-top: none;

    /* desktop must always be clickable */
    pointer-events: auto;
    opacity: 1;
  }

  .mobile-nav a {
    border-bottom: none;
    padding: 0 14px;
    height: 64px;
    display: flex;
    align-items: center;
  }
}

/* ================================
   BACK BUTTON
================================ */

.back-btn {
  font-size: 20px;
  background: none;
  border: none;
  color: #0f172a;
  cursor: pointer;
  margin-right: 8px;
}

@media (min-width: 768px) {
  .back-btn {
    margin-right: 12px;
  }
}
