/* ════════════════════════════════════════════════════════════
   MOBILE — hamburger button, overlay, drawer, mobile nav
   ════════════════════════════════════════════════════════════ */

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: 1.5px solid var(--border-dk);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 0;
  margin-left: 0;

  body.lang-en & {
    margin-right: 0;
    margin-left: 0;
  }

  & span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
    transform-origin: center;
  }

  &[aria-expanded="true"] {
    & span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    & span:nth-child(2) { opacity: 0; }
    & span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  }
}

/* ─── OVERLAY ─── */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44,74,46,0.4);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.25s;

  &.active {
    display: block;
    opacity: 1;
  }
}

/* ─── DRAWER ─── */
.mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: auto;
  width: min(85vw, 360px);
  background: var(--white);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(44,74,46,0.12);

  body.lang-en & {
    right: auto;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 4px 0 24px rgba(44,74,46,0.12);
  }

  &.open {
    transform: translateX(0) !important;
  }
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.drawer-logo {
  width: 200px;
  max-width: calc(100% - 60px);
  height: auto;
  display: block;
}

.drawer-close {
  background: none;
  border: 1.5px solid var(--border-dk);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-md);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;

  &:hover {
    border-color: var(--navy);
    color: var(--navy);
  }
}

/* ─── MOBILE SEARCH ─── */
.mobile-search {
  position: relative;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;

  & input {
    width: 100%;
    background: var(--sky);
    border: 1.5px solid transparent;
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    padding: 0.55rem 2.5rem 0.55rem 1rem;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    text-align: right;

    body.lang-en & {
      padding: 0.55rem 1rem 0.55rem 2.5rem;
      text-align: left;
    }

    &::placeholder { color: var(--text-lt); }
    &:focus { background: var(--white); border-color: var(--navy); }
  }

  & .search-icon {
    position: absolute;
    right: calc(1.25rem + 0.75rem);
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-lt);
    pointer-events: none;

    body.lang-en & {
      right: auto;
      left: calc(1.25rem + 0.75rem);
    }
  }
}

/* ─── MOBILE NAV LIST ─── */
.mobile-nav-list {
  list-style: none;
  flex: 1;
  padding: 0.5rem 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  text-align: right;

  body.lang-en & {
    font-weight: 600;
    text-align: left;
  }

  &:hover {
    background: var(--sky);
    color: var(--navy);
  }
}

.mobile-chevron {
  transition: transform 0.25s;
  flex-shrink: 0;
  color: var(--text-lt);

  .mobile-nav-toggle[aria-expanded="true"] & {
    transform: rotate(180deg);
  }
}

/* ─── MOBILE SUBNAV (accordion) ─── */
.mobile-subnav {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--sky);

  &.open { max-height: 500px; }
}

.mobile-subnav-heading {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-lt);
  padding: 0.75rem 1.5rem 0.25rem;
}

.mobile-subnav-link {
  display: block;
  padding: 0.6rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-md);
  text-decoration: none;
  transition: color 0.12s, background 0.12s;
  text-align: right;

  body.lang-en & { text-align: left; }

  &:hover {
    color: var(--navy);
    background: var(--border);
  }
}

/* ─── DRAWER FOOTER ─── */
.mobile-drawer-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Prevent body scroll when drawer is open */
body.drawer-open { overflow: hidden; }
