/* Hide hamburger by default */
.hamburger { display: none; }

/* Mobile styles */
@media (max-width: 768px) {

  :root {
    --header-bg: rgb(197, 216, 219);
    --menu-bg: rgb(197, 216, 219);
    --menu-text: #000;
    --divider: rgba(0,0,0,0.12);
  }

  /* Header */
  header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    background-color: var(--header-bg);
    padding: 0;
  }

  /* Contact bar */
  header .kontact {
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    width: 100%;
    font-size: 14px;
    background-color: var(--header-bg);
    border-bottom: 1px solid #ccc;
    white-space: nowrap;
  }
  header .kontact .boarded { display: none; }
  header .buraz { display: none; }

  /* Logo (in header row) */
  .odv {
    max-height: 70px;
    display: block;
    align-self: flex-end;
    justify-self: start;
    margin-left: -20%;
    margin-bottom: 20px;
  }

  /* Nav */
  header > nav {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    align-items: flex-end;
    position: relative;
    z-index: 10000;
  }

  /* Hamburger */
  .hamburger {
    grid-column: 2;
    grid-row: 2;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--header-bg);
    border: none;
    font-size: 40px;
    height: 80px;
    width: 80px;
    cursor: pointer;
    margin-top: 40%;
  }

  /* Reset all ULs */
  header > nav ul,
  header > nav ul ul {
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Fullscreen UL */
  header > nav > ul {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw !important;
    height: 100vh !important;
    background: var(--menu-bg);
    z-index: 9998;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    overflow-y: auto;
  }

  header > nav.active > ul,
  header > nav > ul.show {
    display: flex;
  }

  /* Top-level LI */
  header > nav > ul > li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    background-color: var(--menu-bg) !important;
    border-bottom: 1px solid var(--divider) !important;
  }
  header > nav > ul > li:last-child {
    border-bottom: none !important;
  }

  /* Submenu LI */
  header > nav > ul li ul li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    background-color: var(--menu-bg) !important;
  }
  .ena2 { height: auto; }

  /* Submenu ULs flow naturally (push content down) */
  header > nav > ul ul {
    display: none;
    position: static !important; /* ✅ no absolute */
    flex-direction: column;
    width: 100% !important;
    background: var(--menu-bg) !important;
    box-sizing: border-box;
  }
  header > nav > ul li.open > ul {
    display: flex;
  }

  /* Menu links */
  header > nav > ul > li > a {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 20px !important;
    font-size: 20px !important;
    text-align: center !important;
    background-color: var(--menu-bg) !important;
    color: var(--menu-text) !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid var(--divider) !important;
  }

  /* Logo inside fullscreen menu */
  header > nav > ul .menu-logo {
    width: 100%;
    text-align: center;
    padding: 20px; /* same as links */
    border-bottom: 1px solid var(--divider);
    background-color: var(--menu-bg);
    box-sizing: border-box;
  }
  header > nav > ul .menu-logo img {     
      max-height: none;     
      width: 70%;     
      height: auto;     
      padding: 5%;   
  }

  /* Close button */
  .menu-close {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 99999;
    background: transparent;
    border: none;
    font-size: 24px;        /* ✅ smaller */
    line-height: 1;
    cursor: pointer;
    color: rgba(0,0,0,0.5); /* transparent gray */
    font-weight: bold;
  }

  /* Prevent scroll when menu open */
  body.menu-open {
    overflow: hidden;
    touch-action: none;
  }

  /* Override restrictive widths/heights from style.css */
  .mainlist,
  .mainlist1,
  .mainlist15 {
    max-width: none !important;
    max-height: none !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    text-align: center !important;
    box-sizing: border-box !important;
    background-color: var(--menu-bg) !important;
    border-bottom: 1px solid var(--divider) !important;
  }

  .ok, .ok1 { max-width: none !important; }
  .column { display: none; }
}

/* Tiny phones */
@media (max-width: 480px) {
  .odv { max-height: 60px; margin-left: -20%; margin-bottom: 10px; }
  .hamburger { height: 70px; width: 70px; font-size: 36px; margin-top: 40%; }
}
