/* Louaa Site System 1.3.0 — dedicated mobile header (feature: mobile_header_v2).
   Below 768px this header is the only one; from 768px up the Elementor Pro header is the only one. */

.louaa-mh { display: none; }

@media (max-width: 767px) {
  /* the Pro desktop header is removed from view and from the interaction flow (JS adds inert too) */
  /* whichever header the site normally shows on mobile steps aside (Pro template, or the theme's own) */
  body.louaa-mh-on .elementor-location-header,
  body.louaa-mh-on > header.site-header, body.louaa-mh-on #site-header,
  body.louaa-mh-on .site-header:not(.louaa-mh__bar) { display: none !important; }

  .louaa-mh { display: block; position: sticky; top: 0; z-index: 120; }
  body.admin-bar .louaa-mh { top: 46px; }          /* logged-in administrators only */

  .louaa-mh__bar {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(44px, 1fr) auto minmax(44px, 1fr);
    grid-template-rows: auto;
    align-items: center;
    direction: rtl;
    column-gap: 10px;
    min-height: 80px;
    padding-block: 6px;
    padding-inline: max(14px, env(safe-area-inset-right, 0px)) max(14px, env(safe-area-inset-left, 0px));
    background: linear-gradient(180deg, #071C32 0%, #00295B 100%);
    box-shadow: 0 1px 0 rgba(145,216,241,.14), 0 10px 26px rgba(3,12,24,.18);
  }
  .louaa-mh__burger { grid-column: 1; grid-row: 1; justify-self: start;
    width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 0; padding: 0; cursor: pointer; color: #FCFDFC; border-radius: 10px; }
  .louaa-mh__bars { display: block; width: 21px; }
  .louaa-mh__bars i { display: block; height: 1.6px; margin: 5px 0; border-radius: 2px; background: currentColor;
    transition: transform .22s ease, opacity .22s ease; }
  .louaa-mh[data-open] .louaa-mh__bars i:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
  .louaa-mh[data-open] .louaa-mh__bars i:nth-child(2) { opacity: 0; }
  .louaa-mh[data-open] .louaa-mh__bars i:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

  .louaa-mh__logo { grid-column: 2; grid-row: 1; justify-self: center; min-width: 0; line-height: 0; text-decoration: none; }
  /* the crop, not the header height, is what makes the logo read */
  .louaa-mh__logo-img { display: block; width: min(176px, 46vw); max-width: 176px; height: auto;
    max-height: 54px; object-fit: contain; }
  @media (max-width: 389px) { .louaa-mh__logo-img { width: min(166px, 45vw); max-width: 166px; } }
  @media (max-width: 374px) { .louaa-mh__logo-img { width: min(158px, 44vw); max-width: 158px; } }
  @media (max-width: 359px) { .louaa-mh__logo-img { width: min(150px, 43vw); max-width: 150px; } }
  @media (max-width: 339px) { .louaa-mh__logo-img { width: min(138px, 43vw); max-width: 138px; } }
  .louaa-mh__logo { display: flex; align-items: center; justify-content: center; }
  .louaa-mh__logo-text { display: block; line-height: 1.25; color: #FCFDFC; font-weight: 700; font-size: 17px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: min(180px, 44vw); }

  .louaa-mh__cta, .louaa-mh__cta-spacer { grid-column: 3; grid-row: 1; justify-self: end; }
  @media (max-width: 375px) {
    .louaa-mh__cta { padding-inline: 11px; font-size: 13px; }
  }
  .louaa-mh__cta { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding-inline: 14px;
    background: #FCFDFC; color: #071C32; border-radius: 8px; font-size: 14px; font-weight: 600;
    text-decoration: none; white-space: nowrap; box-shadow: 0 6px 16px rgba(3,12,24,.22); }
  .louaa-mh__cta-spacer { width: 44px; height: 1px; }

  /* off-canvas panel from the inline start (right in RTL) */
  .louaa-mh__backdrop { position: fixed; inset: 0; background: rgba(3,12,24,.55); -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px); z-index: 121; opacity: 0; transition: opacity .22s ease; }
  .louaa-mh[data-open] .louaa-mh__backdrop { opacity: 1; }
  .louaa-mh__panel { position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 122;
    width: min(88vw, 380px); max-width: 100vw; display: flex; flex-direction: column;
    background: #071C32; color: #FCFDFC; box-shadow: -18px 0 40px rgba(3,12,24,.35);
    transform: translateX(100%); transition: transform .24s cubic-bezier(.2,.7,.2,1);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
  html[dir="ltr"] .louaa-mh__panel { transform: translateX(-100%); }
  .louaa-mh[data-open] .louaa-mh__panel { transform: none; }
  body.admin-bar .louaa-mh__panel { inset-block-start: 46px; }

  .louaa-mh__panel-head { display: flex; justify-content: flex-start; padding: 14px 16px 4px; }
  .louaa-mh__close { width: 44px; height: 44px; border: 0; border-radius: 10px; background: rgba(252,253,252,.08);
    color: #FCFDFC; font-size: 18px; cursor: pointer; }
  .louaa-mh__list { list-style: none; margin: 0; padding: 6px 8px 10px; }
  .louaa-mh__item { position: relative; border-bottom: 1px solid rgba(252,253,252,.08); }
  .louaa-mh__link { display: block; padding: 15px 16px; min-height: 48px; color: #FCFDFC; font-size: 16px;
    font-weight: 600; text-decoration: none; }
  .louaa-mh__link.is-current { color: #91D8F1; }
  .louaa-mh__item--parent > .louaa-mh__link { padding-inline-end: 56px; }
  .louaa-mh__toggle { position: absolute; inset-block-start: 4px; inset-inline-end: 8px; width: 44px; height: 44px;
    border: 0; background: rgba(252,253,252,.06); border-radius: 10px; cursor: pointer; }
  /* a symmetric glyph: physical borders keep it pointing down / up in RTL and LTR alike */
  .louaa-mh__chev { display: block; width: 9px; height: 9px; margin: -3px auto 0; border-right: 1.6px solid #FCFDFC;
    border-bottom: 1.6px solid #FCFDFC; transform: rotate(45deg); transition: transform .2s ease; }
  .louaa-mh__toggle[aria-expanded="true"] .louaa-mh__chev { margin: 3px auto 0; transform: rotate(-135deg); }
  .louaa-mh__sub { list-style: none; margin: 0 0 10px; padding: 0 10px; background: rgba(252,253,252,.04); border-radius: 10px; }
  .louaa-mh__sub .louaa-mh__item { border-bottom: 0; }
  .louaa-mh__sub .louaa-mh__link { font-size: 15px; font-weight: 500; padding: 13px 14px; color: rgba(252,253,252,.9); }

  .louaa-mh__actions { margin-top: auto; display: grid; gap: 10px; padding: 16px; }
  .louaa-mh__action { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 10px;
    font-weight: 600; text-decoration: none; }
  .louaa-mh__action--primary { background: #FCFDFC; color: #071C32; }
  .louaa-mh__action--wa { color: #FCFDFC; box-shadow: inset 0 0 0 1px rgba(252,253,252,.35); }

  .louaa-mh :focus-visible, .louaa-mh__burger:focus-visible { outline: 2px solid #91D8F1; outline-offset: 2px; }
  body.louaa-mh-open { overflow: hidden; }          /* scroll lock */
  body.louaa-mh-open .louaa-dock { display: none !important; }
}

/* from 768px up the mobile header does not exist for anyone, including assistive technology */
@media (min-width: 768px) { .louaa-mh { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  .louaa-mh__panel, .louaa-mh__backdrop, .louaa-mh__bars i, .louaa-mh__chev { transition: none !important; }
}
