/* Mobile Fullscreen Menu (child theme) */
/* Base: keep overlay hidden by default (desktop) */
.jt-mobile-menu { display: none; }
@media (max-width: 1280px) {
  /* Keep mobile header minimal: only hamburger visible */
  .site-header .top-bar,
  .site-header .logo,
  .site-header .site-branding,
  .site-header .nav .nav-menu,
  .site-header .nav .my-nav,
  .site-header .nav #primary-menu { display: none !important; }

  /* Enlarge the default WordPress toggle */
  .site-header .menu-toggle {
    /*
    position: fixed;
    top: 12px;
    right: 12px;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    position: relative;
    z-index: 1501;
    */
  }
  .site-header .menu-toggle:hover { transform: translateY(-1px); }

  /* Force its icon size if it's an icon font or SVG; safe defaults */
  .site-header .menu-toggle i,
  .site-header .menu-toggle svg { font-size: 26px; width: 26px; height: 26px; }

  /* Fullscreen overlay container */
  .jt-mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--color-primary);
    color: var(--color-white);
    z-index: 1600; /* above the fixed hamburger */
    opacity: 0;
    visibility: hidden;
    display: flex; /* override base hidden display */
    transform: translateY(-4%);
    transition: opacity var(--transition-normal), transform var(--transition-normal), visibility 0s linear var(--transition-normal);
    display: flex;
    flex-direction: column;
  }
  .jt-mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity var(--transition-normal), transform var(--transition-normal), visibility 0s;
  }

  .jt-mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* reduce band height at the top */
    padding: calc(var(--spacing-xs) + env(safe-area-inset-top)) var(--spacing-md) 0 var(--spacing-md);
  }
  .jt-mobile-menu__close {
    width: 40px; height: 40px; border-radius: var(--radius-full); border: none; background: transparent; color: #fff;
    font-size: 26px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: none; /* transparent circle, no shaded band */
  }
  .jt-mobile-menu__close:hover { transform: translateY(-1px); background: transparent; box-shadow: none; }

  .jt-mobile-menu__content {
    padding: var(--spacing-lg);
    padding-top: var(--spacing-xs);  /* move content higher */
    padding-bottom: calc(var(--spacing-lg) + env(safe-area-inset-bottom));
    overflow: auto; /* keep scroll as fallback if very small screens */
  }

  .jt-mobile-menu .site-branding { text-align: center; margin-bottom: var(--spacing-md); }
  .jt-mobile-menu .site-branding .custom-logo { max-width: 120px; margin: 0 auto 4px; display: block; }
  .jt-mobile-menu .site-branding h1.site-title { color: var(--color-white); margin: 0 0 2px 0; font-size: 1.25rem; }
  .jt-mobile-menu .site-branding h1.site-title a { color: var(--color-white); margin: 0 0 2px 0; font-size: 1.25rem; text-decoration: none; }
  .jt-mobile-menu .site-branding .site-description { color: rgba(255,255,255,0.9); font-weight: 500; margin: 0; }

  .jt-mobile-menu__nav ul { list-style: none; margin: 0; padding: 0; }
  .jt-mobile-menu__nav li { border-bottom: 1px solid rgba(255,255,255,0.15); }
  .jt-mobile-menu__nav a {
    display: block;
    color: var(--color-white);
    text-decoration: none;
    padding: var(--spacing-xs) 0; /* tighter vertical spacing */
    font-size: 18px;             /* slightly smaller to avoid scroll */
    font-weight: 600;
  }
  .jt-mobile-menu__nav a:hover { opacity: 0.9; }

  /* Contact & Social blocks under the menu */
  .jt-mobile-menu__meta {
    margin-top: var(--spacing-lg);
    /*border-top: 1px solid rgba(255,255,255,0.2);*/
    padding-top: var(--spacing-sm);
  }
  /* Normalize socials list if theme outputs a UL (single-row, scroll on overflow) */
  .jt-mobile-menu__social,
  .jt-mobile-menu__social ul {
    display: flex;
    align-items: center;
    gap: var(--chip-gap);
    flex-wrap: nowrap;              /* keep one row */
    overflow-x: auto;               /* allow horizontal scroll if needed */
    -webkit-overflow-scrolling: touch;
    list-style: none;
    margin: 0;
    padding: 0;
    scrollbar-width: none;          /* Firefox hide */
  }
  .jt-mobile-menu__social::-webkit-scrollbar,
  .jt-mobile-menu__social ul::-webkit-scrollbar { display: none; }

  /* Chip style (contact + social) */
  .jt-chip,
  .jt-mobile-menu__social a {
    width: var(--chip-size); height: var(--chip-size); /* unified size */
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 var(--chip-size);              /* lock width in flex row */
    border-radius: var(--chip-radius);
    color: var(--color-white);
    background: var(--chip-bg);
    border: var(--chip-border);
    box-shadow: var(--chip-shadow);
    text-decoration: none;
    padding: 0; margin: 0; /* remove inherited spacing */
    box-sizing: border-box;
    line-height: 0;            /* avoid text height affecting box */
  }
  /* Remove list spacing that can misalign sizes */
  .jt-mobile-menu__social li { margin: 0; padding: 0; }

  /* Force icon glyphs to the same visual size across FA/SVG */
  .jt-chip i,
  .jt-mobile-menu__social a i,
  .jt-mobile-menu__social a svg {
    font-size: var(--chip-icon-size) !important;
    width: var(--chip-icon-size); height: var(--chip-icon-size); /* normalize SVGs */
    color: var(--color-white); fill: var(--color-white);
    line-height: 1;
    /* Allow optical centering tweaks */
    transform: translate(var(--chip-offset-x, 0), var(--chip-offset-y, 0));
  }
  .jt-mobile-menu__social a img { width: var(--chip-icon-size); height: var(--chip-icon-size); display: block; }
  /* Per-icon optical offsets (tweak as needed per design eye) */
  .jt-chip i.fa-map-marker-alt,
  .jt-chip i.fa-map-marker { --chip-offset-x: 0.3px; }
  .jt-chip i.fa-location-dot { --chip-offset-x: -1px; }
  .jt-chip i.fa-whatsapp { --chip-offset-x: -0.5px; }
  .jt-chip i.fa-facebook-f { --chip-offset-x: -0.5px; }
  .jt-chip:hover, .jt-mobile-menu__social a:hover { transform: translateY(-2px); background: var(--chip-bg-hover); box-shadow: var(--chip-shadow-hover); }
  .jt-chip:focus-visible, .jt-mobile-menu__social a:focus-visible { outline: 2px solid rgba(255,255,255,0.9); outline-offset: 2px; }
}

/* Prevent background scroll when menu open */
html.mobile-menu-open, html.mobile-menu-open body { overflow: hidden; }


  /* Height-based tweaks to avoid scroll on shorter screens */
  @media (max-height: 740px) {
    .jt-mobile-menu .site-branding .custom-logo { max-width: 110px; }
    .jt-mobile-menu .site-branding h1.site-title, .jt-mobile-menu .site-branding h1.site-title a { font-size: 1.15rem; }
    .jt-mobile-menu .site-branding .site-description { font-size: 0.9rem; }
    .jt-mobile-menu__nav a { font-size: 17px; padding: 6px 0; }
    .jt-mobile-menu__meta { margin-top: var(--spacing-md); }
  }
  @media (max-height: 640px) {
    .jt-mobile-menu .site-branding .custom-logo { max-width: 100px; }
    .jt-mobile-menu .site-branding .site-description { display: none; }
    .jt-mobile-menu__nav a { font-size: 16px; padding: 6px 0; }
    .jt-mobile-menu__meta { margin-top: var(--spacing-sm); }
  }
