/* ============================================
   TAVLO MOBILE NAV — Clean, standalone file
   Loaded LAST so it wins all specificity battles
   ============================================ */

@media (max-width: 768px) {

  /* ---- HEADER: full width fixed bar ---- */
  header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999999;
    background: #FAFAF8;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }

  nav.nav-bar {
    width: 100%;
    height: 64px;
  }

  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 1rem;
  }

  /* ---- HAMBURGER: always visible on mobile ---- */
  button.nav-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 999999;
  }

  button.nav-hamburger svg.icon {
    width: 24px;
    height: 24px;
    stroke: #1A1918;
    fill: none;
  }

  /* ---- NAV LINKS: hidden by default, full screen overlay when open ---- */
  ul.nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 68px);
    margin: 0;
    padding: 0;
    list-style: none;
    background: #FAFAF8;
    z-index: 999998;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  nav.nav-bar.nav--open ul.nav-links {
    display: flex;
  }

  /* ---- NAV ITEMS ---- */
  ul.nav-links > li.nav-item {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    width: 100%;
  }

  ul.nav-links > li.nav-item > button.nav-link,
  ul.nav-links > li.nav-item > a.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #1A1918;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
  }

  ul.nav-links > li.nav-item > button.nav-link svg.icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
  }

  ul.nav-links > li.nav-item > button.nav-link[aria-expanded="true"] svg.icon {
    transform: rotate(180deg);
  }

  /* ---- MEGA PANEL: accordion on mobile ---- */
  div.mega-panel {
    position: static;
    display: block;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    background: #F0EFEC;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  div.mega-panel.is-open {
    max-height: 80vh;
    padding: 0.75rem 1.5rem 1.25rem;
    overflow-y: auto;
  }

  /* ---- MEGA GRID: single column ---- */
  div.mega-panel .mega-grid {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  div.mega-panel .mega-col {
    display: flex;
    flex-direction: column;
  }

  div.mega-panel .mega-heading {
    font-size: 0.65rem;
    color: #A8A59E;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    margin: 1rem 0 0.4rem;
    padding: 0;
    border: none;
  }

  div.mega-panel .mega-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  div.mega-panel .mega-col ul li a {
    display: block;
    padding: 0.65rem 0;
    font-size: 0.95rem;
    color: #4A4843;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.04);
  }

  div.mega-panel .mega-col ul li:last-child a {
    border-bottom: none;
  }

  div.mega-panel .mega-col ul li a:active {
    color: #E39214;
  }

  /* ---- HERO: below nav ---- */
  section.hero-slider {
    position: relative;
    z-index: 0;
  }


/* Fix: Pages starting with who-we-are hero need top offset for fixed nav */
@media (max-width: 768px) {
  body {
    padding-top: 64px;
  }
}
