/* ============================================================
   THIS IS DIGITAL AGENCY — MOBILE NAVIGATION (shared)
   Hamburger + full-screen overlay menu for ALL page types
   (home, brands, legal — TR + EN). Loaded after each page's
   own styles so it wins on equal specificity.
   Desktop (>768px): nothing here applies except the larger
   touch target on the TR/EN toggle (visually unchanged).
   ============================================================ */

/* ---------- TR / EN toggle: 44px touch target (all viewports) ----------
   The visible glyphs are NOT resized — an invisible 44px hit area is
   centered over each link so pointer/touch targets meet the minimum
   without changing the desktop appearance. */
.nav .lang a{position:relative}
.nav .lang a::after{
  content:"";
  position:absolute;
  left:50%;top:50%;
  transform:translate(-50%,-50%);
  min-width:44px;height:44px;
}

/* ---------- Hamburger toggle ---------- */
.nav-toggle{
  display:none;               /* hidden on desktop, shown ≤768px */
  width:44px;height:44px;
  align-items:center;justify-content:center;
  background:none;border:none;cursor:pointer;
  color:inherit;             /* white over hero / black on light navs */
  padding:0;margin:0;
  -webkit-tap-highlight-color:transparent;
  flex:0 0 auto;
}
.nav-toggle .bars{position:relative;display:block;width:24px;height:16px}
.nav-toggle .bars span{
  position:absolute;left:0;right:0;height:2px;border-radius:1px;
  background:currentColor;
  transition:transform .3s ease, opacity .2s ease;
}
.nav-toggle .bars span:nth-child(1){top:0}
.nav-toggle .bars span:nth-child(2){top:7px}
.nav-toggle .bars span:nth-child(3){top:14px}

/* ---------- Full-screen overlay menu ---------- */
.mobile-menu{
  position:fixed;inset:0;z-index:200;
  background:var(--black,#010101);
  color:var(--white,#ffffff);
  display:flex;flex-direction:column;
  padding:18px clamp(24px,7vw,48px) 40px;
  transform:translateY(-101%);
  opacity:0;visibility:hidden;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;overflow-y:auto;
  transition:transform .42s cubic-bezier(.4,0,.1,1),
             opacity .28s ease,
             visibility 0s linear .42s;
}
.mobile-menu.is-open{
  transform:translateY(0);
  opacity:1;visibility:visible;
  transition:transform .46s cubic-bezier(.16,1,.3,1),
             opacity .3s ease;
}

/* top bar with close button */
.mobile-menu-top{
  display:flex;align-items:center;justify-content:flex-end;
  height:54px;flex:0 0 auto;
}
.mobile-menu-close{
  position:relative;
  width:48px;height:48px;
  display:inline-flex;align-items:center;justify-content:center;
  background:none;border:none;color:inherit;cursor:pointer;
  margin-right:-10px;
  -webkit-tap-highlight-color:transparent;
}
.mobile-menu-close::before,
.mobile-menu-close::after{
  content:"";position:absolute;top:50%;left:50%;
  width:26px;height:2px;background:currentColor;border-radius:1px;
}
.mobile-menu-close::before{transform:translate(-50%,-50%) rotate(45deg)}
.mobile-menu-close::after{transform:translate(-50%,-50%) rotate(-45deg)}

/* link stack */
.mobile-menu-links{
  display:flex;flex-direction:column;
  margin:24px 0 0;
  flex:1 1 auto;
}
.mobile-menu-links a{
  font-family:'Khand',sans-serif;font-weight:600;
  font-size:clamp(32px,8.5vw,46px);
  line-height:1.04;letter-spacing:0.005em;
  text-transform:uppercase;
  color:var(--white,#fff);
  text-decoration:none;
  display:flex;align-items:center;
  min-height:60px;padding:8px 0;
  border-bottom:1px solid rgba(255,255,255,0.10);
  transition:color .2s ease, padding-left .28s cubic-bezier(.16,1,.3,1);
}
.mobile-menu-links a:first-child{border-top:1px solid rgba(255,255,255,0.10)}
.mobile-menu-links a:hover,
.mobile-menu-links a:focus-visible{
  color:var(--yellow,#FCB017);
  padding-left:12px;
  outline:none;
}

/* TR / EN inside the overlay */
.mobile-menu-lang{
  display:flex;align-items:center;gap:12px;
  margin-top:28px;padding-top:26px;
  border-top:1px solid rgba(255,255,255,0.14);
  flex:0 0 auto;
}
.mobile-menu-lang .label{
  font-size:11px;letter-spacing:0.24em;text-transform:uppercase;
  font-weight:500;color:rgba(255,255,255,0.45);
  margin-right:auto;
}
.mobile-menu-lang a{
  min-width:54px;min-height:46px;
  display:inline-flex;align-items:center;justify-content:center;
  font-family:'Khand',sans-serif;font-weight:600;
  font-size:18px;letter-spacing:0.12em;
  color:var(--white,#fff);text-decoration:none;
  border:1px solid rgba(255,255,255,0.3);
  padding:0 16px;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}
.mobile-menu-lang a:hover{border-color:rgba(255,255,255,0.7)}
.mobile-menu-lang a.active,
.mobile-menu-lang a[aria-current="page"]{
  background:var(--yellow,#FCB017);color:var(--black,#010101);
  border-color:var(--yellow,#FCB017);
}

/* ---------- scroll lock when menu open ---------- */
html.menu-open,
body.menu-open{overflow:hidden}

/* ---------- show hamburger / hide desktop nav on mobile ---------- */
@media (max-width:768px){
  .nav-toggle{display:inline-flex}
  .nav .nav-links{display:none}
  .nav .nav-right{display:none}
}
