/* ============================================================
   MOBILE HEADER + DRAWER NAV — JavasMedia (v2, real assets)
   Active only at <=768px. Desktop (.header etc) untouched above that.
   ============================================================ */

.mobile-header-bar,
.mh-search-box,
.mobile-nav-overlay,
.mobile-nav-drawer { display: none; }

@media (max-width: 768px) {

  .page .header { display: none !important; }

  html, body { overflow-x: hidden; }

  .page {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  /* ---- Top bar ---- */
  .mobile-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    width: 100%;
    height: 44px;
    background-image: url('mobile-header-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0 14px;
    z-index: 2000;
    box-sizing: border-box;
  }
  .mobile-header-bar::after {
    content: "";
    position: absolute;
    top: 44px; left: 0;
    width: 100%; height: 12px;
    background-image: url('checkered-strip.png');
    background-size: auto 100%;
    background-repeat: repeat-x;
  }
  .mh-hamburger {
    display: flex;
    align-items: center;
    background: none; border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }
  .mh-hamburger img { height: 20px; width: auto; }
  .mh-logo {
    height: 26px;
    object-fit: contain;
    cursor: pointer;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .mh-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }
  .mh-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .mh-search-toggle img { height: 16px; width: auto; object-fit: contain; }
  .mh-icon {
    width: 16px;
    height: 16px;
    cursor: pointer;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
  }
  .mh-search-box {
    position: fixed;
    top: 56px; left: 0; right: 0;
    background: #16305c;
    padding: 8px 12px;
    z-index: 1999;
    display: none;
  }
  .mh-search-box.open { display: flex; align-items: center; gap: 8px; }
  .mh-search-box input {
    flex: 1;
    padding: 7px 10px;
    border-radius: 6px;
    border: none;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
  }
  .mh-search-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    flex-shrink: 0;
  }

  /* ---- Overlay ---- */
  .mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2998;
  }
  .mobile-nav-overlay.open { display: block; }

  /* ---- Drawer ---- */
  .mobile-nav-drawer {
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 40%;
    max-width: 160px;
    background-image: url('drawer-bg.png');
    background-size: cover;
    background-position: center;
    z-index: 2999;
    transform: translateX(-105%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 10px 10px 18px 0;
    box-sizing: border-box;
  }
  .mobile-nav-drawer.open { transform: translateX(0); }

  .mnd-close {
    background: none;
    border: none;
    cursor: pointer;
    display: block;
    padding: 4px;
    position: absolute;
    top: 8px;
    right: 10px;
  }
  .mnd-close img { height: 16px; width: auto; }

  .mnd-brand {
    text-align: center;
    margin: 32px 0 30px;
  }
  .mnd-brand-logo {
    width: 100%;
    max-width: 110px;
    height: auto;
  }

  .mnd-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 40px;
  }
  .mnd-nav a {
    display: block;
    position: relative;
    width: 80%;
    cursor: pointer;
  }
  .mnd-nav img {
    width: 100%;
    height: auto;
    display: block;
  }
  .mnd-nav span {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Avenir Next Condensed', 'Arial Narrow', Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #1a1a1a;
    pointer-events: none;
    white-space: nowrap;
  }

  .mnd-footer {
    border-top: none;
    padding-top: 0;
    padding-left: 8px;
    text-align: left;
  }
  .mnd-footer-logo {
    height: 65px;
    margin: 0 auto 38px;
    display: block;
    object-fit: contain;
  }
  .mnd-footer p {
    color: #ffffff;
    font-size: 8px;
    line-height: 1.5;
    margin-bottom: 9px;
  }
  .mnd-footer p a[href^="tel"],
  .mnd-footer p a[href^="mailto"] {
    color: inherit;
    text-decoration: none;
  }
  .mnd-social {
    display: flex;
    justify-content: flex-start;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }
  .mnd-social a { display: block; }
  .mnd-social img {
    width: 19px; height: 19px;
    display: block;
  }
  .mnd-links {
    display: flex;
    flex-direction: column;
    gap: 1px;
  }
  .mnd-links a {
    color: rgba(255,255,255,0.65);
    font-size: 7px;
    line-height: 1.1;
    text-decoration: none;
  }

  /* ---- Scale wrapper for the existing 1440px canvas ---- */
  .mobile-scale-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
  }
  .mobile-scale-inner {
    width: 1440px;
    transform-origin: top left;
  }
}
