/* ============================================================
   LADO — Navbar & Mobile Drawer  (matches lado.edu)
   ============================================================ */

/* ── Navbar Shell ──────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary-dark);
}

.navbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 1.25rem;
  height: 64px;
  max-width: 100%;
  margin: 0 auto;
}

/* ── Logo ──────────────────────────────────────────────────── */
.navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 1rem;
}

.navbar-logo img {
  height: 46px;
  width: auto;
}

/* ── Desktop Nav ───────────────────────────────────────────── */
.navbar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.9rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 400;
  font-family: var(--font-nav);
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* English Program is bold */
.nav-link.nav-highlight {
  font-weight: 600;
}

.chevron {
  opacity: 0.75;
  transition: transform 0.2s;
  display: inline-block;
  flex-shrink: 0;
}

.nav-item.open > .nav-link .chevron {
  transform: rotate(180deg);
}

/* ── Dropdown ──────────────────────────────────────────────── */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--primary);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
  overflow: hidden;
  list-style: none;
  padding: 0.35rem 0;
}

.nav-item.open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 0.65rem 1.1rem;
  color: var(--white);
  font-size: 0.9rem;
  font-family: var(--font-nav);
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
  text-decoration: none;
}

.dropdown li a:hover {
  background: var(--primary-light);
  color: var(--white);
  border-left-color: var(--secondary);
}

/* ── Right-side controls ───────────────────────────────────── */
.navbar-end {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  flex-shrink: 0;
}

/* Apply Now button */
.navbar-apply {
  background: var(--secondary);
  color: var(--white) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 5px;
  font-weight: 500;
  font-size: 0.875rem;
  font-family: var(--font-body);
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.navbar-apply:hover {
  background: var(--secondary-dark);
  transform: translateY(-1px);
}

.navbar-apply svg {
  flex-shrink: 0;
}

/* Divider between Apply Now and social icons */
.navbar-divider {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.25);
  margin: 0 0.3rem;
}

/* Social icons */
.navbar-socials {
  display: flex;
  gap: 0.3rem;
}

.navbar-socials a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}
.navbar-socials a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

/* ── Hamburger ─────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease;
  transform-origin: center;
}

/* ── Overlay ───────────────────────────────────────────────── */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer-overlay.open {
  display: block;
  opacity: 1;
}

/* ── Mobile Drawer — WHITE, slides from right ──────────────── */
.drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: 300px;
  height: 100dvh;
  background: var(--white);
  z-index: 1150;
  overflow-y: auto;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
}

.drawer.open {
  right: 0;
}

/* Drawer header: logo left, "Lado Menu" centered */
.drawer-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e8eaed;
  gap: 0.75rem;
  min-height: 60px;
}

.drawer-header img {
  height: 34px;
  width: auto;
  /* The logo image might be white — invert for white bg */
  filter: invert(1) hue-rotate(180deg) brightness(0.2) saturate(0);
}

.drawer-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  font-family: var(--font-body);
  flex: 1;
  text-align: center;
  padding-right: 34px; /* balance the logo width */
}

/* Nav list */
.drawer-nav {
  flex: 1;
  padding: 0.5rem 0;
  list-style: none;
}

.drawer-link {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 400;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}

.drawer-link:hover {
  background: var(--off-white);
  color: var(--primary);
  border-left-color: var(--secondary);
}

/* Sub-items indented */
.drawer-sublink {
  display: block;
  padding: 0.6rem 1.5rem 0.6rem 2.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: var(--font-body);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}

.drawer-sublink:hover {
  background: var(--off-white);
  color: var(--primary);
  border-left-color: var(--secondary);
}

/* English Program label (non-link) */
.drawer-group-label {
  display: block;
  padding: 0.75rem 1.5rem 0.25rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 400;
  cursor: default;
}

.drawer-divider {
  height: 1px;
  background: #e8eaed;
  margin: 0.4rem 1.25rem;
}

/* Apply Now — full-width red block */
.drawer-footer {
  padding: 0.75rem 1.25rem 1.5rem;
  border-top: 1px solid #e8eaed;
}

.drawer-apply {
  display: block;
  background: var(--secondary);
  color: var(--white) !important;
  text-align: center;
  padding: 0.8rem 1rem;
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font-body);
  text-decoration: none;
  transition: background 0.2s;
  margin-bottom: 1rem;
}
.drawer-apply:hover { background: var(--secondary-dark); }

.drawer-socials {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.drawer-socials a {
  width: 40px;
  height: 40px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.drawer-socials a:hover {
  background: var(--primary);
  color: var(--white);
}

/* ── Responsive Breakpoints ────────────────────────────────── */
@media (max-width: 1200px) {
  .navbar-nav,
  .navbar-end {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .drawer-overlay {
    /* shown/hidden via JS — base display:none overridden by .open */
  }
}

@media (min-width: 1201px) {
  .hamburger {
    display: none !important;
  }
  .drawer {
    display: none !important;
  }
}
