/* ===== Logo swap (top vs sticky) ===== */

/* Ensure logo wrapper can stack 2 images */
.atura-logo{
  position: relative;         /* allows absolute overlay */
  display: inline-flex;
  align-items: center;
}

/* Keep your existing height rule (25px) and make both images share it */
.atura-logo-img{
  height: 25px;
  width: auto;
  display: block;
}

/* Put sticky logo on top of the other one */
.atura-logo-sticky{
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}

/* Default (not scrolled): show whiteout logo, hide sticky logo */
.atura-logo-top{ opacity: 1; }

/* Scrolled: hide whiteout, show coloured */
.atura-header.is-scrolled .atura-logo-top{
  opacity: 0;
}

.atura-header.is-scrolled .atura-logo-sticky{
  opacity: 1;
}

/* Optional: make the transition feel smooth */
.atura-logo-top,
.atura-logo-sticky{
  transition: opacity .18s ease;
}



/* ========== Atura Header v2 (Poppins + alignment + sticky bg) ========== */
.atura-header,
.atura-header *{
  font-family: "Poppins", sans-serif !important;
  font-weight: 500;
  font-size: 14px;
}

.atura-header-spacer{ height: 88px; }

.atura-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 99999;
  padding: 14px 0;
  pointer-events: none;
}

.atura-header-inner{
  pointer-events: auto;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;

  position: relative;
  border-radius: 100px;
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
  padding: 8px 0;
}

/* Sticky scrolled state */
.atura-header.is-scrolled .atura-header-inner{
  background: #fff;
  padding: 20px 22px;
}

/* Inset movement on scroll */
.atura-left, .atura-right{ transition: transform .25s ease; }
.atura-header.is-scrolled .atura-left{ transform: translateX(6px); }
.atura-header.is-scrolled .atura-right{ transform: translateX(-6px); }

/* Logo */
.atura-logo{ display:flex; align-items:center; text-decoration:none; }
.atura-logo-img{ height: 25px; width:auto; display:block; }
.atura-logo-text{ font-weight: 500; font-size: 14px; color:#111; }

/* Desktop nav */
.atura-nav{
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 26px;
}

.atura-nav li{
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
}

/* Kill bullets */
.atura-nav li::before,
.atura-nav > li::before{
  content: none !important;
  display: none !important;
}

.atura-nav a{
  text-decoration:none;
  color:#111;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  padding: 14px 0;
  display:inline-flex;
  align-items:center;
}

/* Desktop underline animation (TOP-LEVEL ONLY) */
@media (min-width: 981px){
  .atura-nav > li > .atura-toplinkwrap > .atura-toplink{
    position: relative;
  }

  .atura-nav > li > .atura-toplinkwrap > .atura-toplink::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;

    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .25s ease;
  }

  .atura-nav > li > .atura-toplinkwrap > .atura-toplink:hover::after{
    transform: scaleX(1);
    transform-origin: left center;
  }
}

/* Remove underline behaviour on submenu items */
.atura-nav .sub-menu a::after{ content:none !important; display:none !important; }
.atura-nav .sub-menu a{ text-decoration:none !important; }

/* Basic dropdown base (kept) */
.atura-nav .sub-menu{
  position:absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  margin-top: 10px;
  list-style:none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: .18s ease;
  box-shadow: 0 14px 40px rgba(0,0,0,.12);
  z-index: 999999;
}
.atura-nav li{ position:relative; }
.atura-nav li:hover > .sub-menu{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.atura-nav .sub-menu a{ padding: 10px 10px; width: 100%; }

/* Right side */
.atura-right{
  display:flex;
  align-items:center;
  gap: 18px;
}

.atura-email{
  color:#111;
  text-decoration:none;
  font-weight: 500;
  font-size: 14px;
  opacity: .9;
  white-space: nowrap;
  line-height: 1;
  padding: 14px 0;
}

/* Desktop email underline animation */
@media (min-width: 981px){
  .atura-email{
    position: relative;
  }

  .atura-email::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    border-radius: 1.5px;

    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .25s ease;
  }

  .atura-email:hover::after{
    transform: scaleX(1);
    transform-origin: left center;
  }

  .atura-email:hover{ text-decoration: none; }
}

/* CTA */
.atura-cta{
  background:#111;
  color:#fff;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 16px 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  transition: none;
}
.atura-cta:hover{
  transform: none;
  box-shadow: none;
}

/* Arrow area fixed */
.atura-cta-arrow{
  width: 30px;
  height: 20px;
  flex: 0 0 30px;
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  padding-right: 2px;
  position: relative;
  overflow: visible;
  background: transparent;
}

.atura-cta-line{
  position:absolute;
  left: 21px;
  right: 2px;
  height: 2px;
  border-radius: 50px;
  background: #fff;
  top: 50%;
  transform: translateY(-50%) scaleX(0);
  transform-origin: right center;
  transition: transform .22s ease;
  opacity: .95;
}

/* CTA chevron smaller */
.atura-cta-chevron{
  position:absolute;
  right: 3px;
  width: 7px;
  height: 7px;
  border-right: 2px solid #fff;
  border-top: 2px solid #fff;
  transform: rotate(45deg);
  border-radius: 1px;
  transition: transform .22s ease;
  will-change: transform;
}

.atura-cta:hover .atura-cta-line{
  transform: translateY(-50%) scaleX(1);
}
.atura-cta:hover .atura-cta-chevron{
  transform: translateX(3px) rotate(45deg);
}

/* Secondary / Inverted CTA */
.atura-cta--secondary{
  background:#fff;
  color:#111;
  border: 1px solid #111;
}

/* Arrow colour swap */
.atura-cta--secondary .atura-cta-line{
  background:#111;
}

.atura-cta--secondary .atura-cta-chevron{
  border-right: 2px solid #111;
  border-top: 2px solid #111;
}


/* Mobile hamburger button */
.atura-burger{
  display: none !important;
  pointer-events: auto;
  border: 0;
  background: transparent;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  justify-self: end;
}

/* Hamburger icon */
.atura-burger-lines{
  width: 26px;
  height: 18px;
  display:block;
  position: relative;

  background: linear-gradient(#111,#111);
  background-size: 26px 2px;
  background-repeat: no-repeat;
  background-position: 0 8px;
}

.atura-burger-lines::before,
.atura-burger-lines::after{
  content:"";
  position:absolute;
  left:0;
  width: 26px;
  height: 2px;
  background:#111;
  border-radius: 99px;
  transition: transform .2s ease, top .2s ease, opacity .2s ease;
}

.atura-burger-lines::before{ top: 2px; }
.atura-burger-lines::after{ top: 14px; }

/* Hamburger -> X */
.atura-header.is-open .atura-burger-lines{
  background: none;
}
.atura-header.is-open .atura-burger-lines::before{
  top: 8px;
  transform: rotate(45deg);
}
.atura-header.is-open .atura-burger-lines::after{
  top: 8px;
  transform: rotate(-45deg);
}

/* Mobile panel wrapper */
.atura-mobile-wrap{
  pointer-events: auto;
  width: min(1240px, calc(100% - 48px));
  margin: 10px auto 0;
  position: relative;
  display:block;
  max-height: none;
  overflow: visible;              /* keep pointer visible */
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  padding-top: 12px;              /* space for pointer + rounded top */
}

/* open */
.atura-header.is-open .atura-mobile-wrap{
  max-height: 720px;
  opacity: 1;
  pointer-events: auto;
}

.atura-mobile-pointer{
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #fff;
  position:absolute;
  right: 35px;
  top: 2px;
  opacity: 0;
  transition: opacity .18s ease;
}

.atura-mobile-panel{
  background:#fff;
  border-radius: 18px;
  box-shadow: none;

  /* 👇 key changes */
  max-height: calc(95vh - 120px); /* leaves ~5% viewport gap + header */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  opacity: 0;
  transition: opacity .18s ease;
}

.atura-header.is-open .atura-mobile-pointer,
.atura-header.is-open .atura-mobile-panel{
  opacity: 1;
}

.atura-mobile-panel{
  scrollbar-width: none;       /* Firefox */
}
.atura-mobile-panel::-webkit-scrollbar{
  display: none;               /* WebKit */
}

/* Mobile menu list */
.atura-mobile-menu{
  list-style:none !important;
  margin:0 !important;
  padding: 10px !important;
}
.atura-mobile-menu li{
  list-style:none !important;
  margin:0 !important;            /* prevent default margins */
  padding:0 !important;
}
.atura-mobile-menu li::before{ content:none !important; display:none !important; }

/* Top-level mobile items */
.atura-mobile-menu .atura-toplink{
  display:block;
  padding: 12px 12px;
  text-decoration:none;
  color:#111;
  font-family: "Dinamit", sans-serif !important;
  font-weight: 700;
  font-size: 18px;
}

/* ===== FIXED: Mobile submenus (no peeking + correct styling) ===== */
.atura-mobile-menu .sub-menu{
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 !important;          /* remove padding that creates “gap/peek” */
  margin: 0 !important;
  list-style: none !important;
}
.atura-mobile-menu .sub-menu li{
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Style the submenu row like desktop */
.atura-mobile-menu .sub-menu .atura-subitem{
  display:block;                  /* not flex: prevents icon/desc stacking weirdness */
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration:none !important;
  color:#111 !important;          /* override default blue links */
  background: transparent;
}
.atura-mobile-menu .sub-menu .atura-subitem:hover{
  background: #f4f4f4;
}

/* Title line: icon immediately before title */
.atura-mobile-menu .sub-menu .atura-subtitle{
  display:inline-flex;
  align-items:center;
  gap: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color:#111 !important;
}

/* Icon size for mobile (inline, before title) */
.atura-mobile-menu .sub-menu .atura-subicon{
  width: 13px;
  height: 13px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-right: 8px !important;
  transform: translateY(0px);
}
.atura-mobile-menu .sub-menu .atura-subicon img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Description on its own line under title */
.atura-mobile-menu .sub-menu .atura-subdesc{
  display:block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  opacity: .7;
  line-height: 1.35;
  color:#111 !important;
}

/* Ensure any stray anchors in submenu never go blue/underlined */
.atura-mobile-menu .sub-menu a,
.atura-mobile-menu .sub-menu a:visited{
  color:#111 !important;
  text-decoration:none !important;
}

/* Hide desktop top-right arrow inside mobile list */
.atura-mobile-menu .sub-menu .atura-subarrow{ display:none !important; }

/* Mobile divider */
.atura-mobile-divider{ height: 10px; }

/* Meta (email + CTA) */
.atura-mobile-meta{
  padding: 14px 12px 14px;
  display:flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  background: #f4f4f4;
  border-top: 1px solid rgba(0,0,0,.06);
  flex-wrap: nowrap;
}

.atura-mobile-meta .atura-email{
  flex: 1 1 auto;
  min-width: 0;                 /* ✅ allow flexbox to shrink */
  font-size: 13px;              /* slightly smaller on mobile */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;      /* graceful fallback on tiny screens */
}
.atura-mobile-meta .atura-cta{
  flex: 0 0 auto;
  white-space: nowrap;
}

.atura-cta--block{ width: fit-content; }

/* Overlay (mobile) */
.atura-overlay{
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
body.atura-menu-open .atura-overlay{
  opacity: 1;
  pointer-events: auto;
}
/* Prevent page scrolling when mobile menu is open */
body.atura-menu-open{
  overflow: hidden;
  touch-action: none;
}

/* Responsive */
@media (max-width: 980px){
  .atura-middle{ display:none !important; }
  .atura-right{ display:none !important; }
  .atura-burger{ display:inline-flex !important; }
}

@media (max-width: 520px){
  .atura-header-inner{ width: calc(100% - 28px); }
  .atura-mobile-wrap{ width: calc(100% - 28px); }
  .atura-logo-img{ height: 25px; }
}

/* ===== Desktop mega dropdown styling (white panel + list items) ===== */
@media (min-width: 981px){

  /* Your original rule kept (works when ul is direct child) */
  .atura-nav > li > .atura-mega-submenu{
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    margin-top: 30px;
    box-shadow: 0 18px 50px rgba(0,0,0,.10);
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    visibility: hidden;
    transition: .18s ease;
    min-width: 520px;
    max-width: 820px;
    width: max-content;
  }

  /*
    ✅ FIX (NEW):
    If the markup is different on this site (not a direct child),
    this ensures the mega dropdown still gets the correct padding.
  */
  .atura-nav .atura-mega-submenu{
    background: #fff;
    border-radius: 18px;
    padding: 18px !important;
    margin-top: 30px;
    box-shadow: 0 18px 50px rgba(0,0,0,.10);
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    visibility: hidden;
    transition: .18s ease;
    min-width: 520px;
    max-width: 820px;
    width: max-content;
    z-index: 999999;
  }

  .atura-nav > li > .atura-mega-submenu::before,
  .atura-nav .atura-mega-submenu::before{
    content:"";
    position:absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #fff;
  }

  .atura-nav > li:hover > .atura-mega-submenu,
  .atura-nav li:hover .atura-mega-submenu{
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .atura-mega-submenu.atura-cols-1{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .atura-mega-submenu.atura-cols-2{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* Submenu items */
  .atura-subitem{
    display:flex;
    align-items:flex-start;
    gap: 14px;
    padding: 14px 14px;
    border-radius: 16px;
    text-decoration:none !important;
    color:#111;
    position: relative;
    background: transparent;
    transition: background .15s ease;
  }

  .atura-subitem:hover{
    background: #f4f4f4;
  }

  /* Icon inline, before title */
  .atura-subicon{
    width: 13px;
    height: 13px;
    transform: translateY(0px);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-right: 8px;
    flex: 0 0 auto;
  }
  .atura-subicon img{
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .atura-subtext{
    display:flex;
    flex-direction:column;
    gap: 6px;
    padding-right: 26px;
  }

  .atura-subtitle{
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2;
    display:inline-flex;
    align-items:center;
  }

  .atura-subdesc{
    font-size: 14px;
    font-weight: 500;
    opacity: .7;
    line-height: 1.35;
  }

  /* Desktop top-right arrow */
  .atura-subarrow{
    position:absolute;
    top: 14px;
    right: 14px;
    width: 10px;
    height: 10px;
    opacity: 0;
    transform: translateY(1px);
    transition: opacity .15s ease, transform .15s ease;
    pointer-events: none;
  }

  .atura-subarrow::before{
    content:"";
    position:absolute;
    right: 0;
    top: 0;
    width: 7px;
    height: 7px;
    border-right: 2px solid #111;
    border-top: 2px solid #111;
    transform: rotate(0deg);
    border-radius: 1px;
  }

  .atura-subarrow::after{
    content:"";
    position:absolute;
    left: 1px;
    bottom: 0px;
    width: 11px;
    height: 2px;
    background: #111;
    border-radius: 2px;
    transform: rotate(-45deg);
    transform-origin: left center;
    opacity: .95;
  }

  .atura-subitem:hover .atura-subarrow{
    opacity: .65;
    transform: translateY(0);
  }

  .atura-subtoggle{ display:none !important; }
}

/* ===== Mobile submenu toggles ===== */
@media (max-width: 980px){

  .atura-mobile-menu .atura-toplinkwrap{
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 10px;
  }

  .atura-mobile-menu .atura-toplink{
    display:block;
    flex: 1 1 auto;
  }

  .atura-subtoggle{
    display:inline-flex;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    flex: 0 0 28px;
  }

  .atura-subtoggle::before{
    content:"";
    position:absolute;
    right: 8px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid #111;
    border-bottom: 2px solid #111;
    transform: translateY(-55%) rotate(45deg);
    border-radius: 1px;
    opacity: .7;
    transition: transform .2s ease;
  }

  .atura-subtoggle[aria-expanded="true"]::before{
    transform: translateY(-35%) rotate(-135deg);
  }
}

/* ===== Desktop dropdown overlay + blur (JS toggled) ===== */
@media (min-width: 981px){
  .atura-desktop-overlay{
    position: fixed;
    inset: 0;
    z-index: 99980;
    background: rgba(0,0,0,.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }

  body.atura-desktop-dropdown-open .atura-desktop-overlay{
    opacity: 1;
    pointer-events: auto;
  }

  .atura-header{ z-index: 99999; }
  .atura-nav > li > .sub-menu{ z-index: 99999; }
  .atura-nav > li > .atura-mega-submenu{ z-index: 99999; }
}

@media (min-width: 981px){

  /* Increase hover hitbox above mega dropdown so it doesn’t flicker */
  .atura-nav > li > .atura-mega-submenu{
    margin-top: 30px; /* your current gap */
  }

  .atura-nav > li > .atura-mega-submenu::after,
  .atura-nav .atura-mega-submenu::after{
    content:"";
    position:absolute;
    left: 0;
    right: 0;

    /* This is the “bridge” that fills the gap */
    top: -30px;       /* match your margin-top */
    height: 30px;     /* match your margin-top */

    background: transparent;
  }
}

/* ===== Fix: first/last mega dropdown item corner rounding ===== */
@media (min-width: 981px){

  /* Force the clickable card to always be rounded (even on hover) */
  .atura-mega-submenu .atura-subitem,
  .atura-mega-submenu .atura-subitem:hover{
    border-radius: 16px !important;
    overflow: hidden; /* prevents any inner background from showing square corners */
  }

  /* If the background is being applied to the <li> instead of the <a>, round that too */
  .atura-mega-submenu > li:first-child,
  .atura-mega-submenu > li:last-child{
    border-radius: 16px !important;
    overflow: hidden;
  }

  /* Common culprit: theme sets border-radius:0 on first/last links */
  .atura-mega-submenu > li:first-child > a,
  .atura-mega-submenu > li:last-child > a{
    border-radius: 16px !important;
  }
}

/* ===== Force LEFT alignment for all dropdown items (all devices) ===== */

/* Desktop + mobile submenu cards */
.atura-subitem{
  text-align: left !important;
  align-items: flex-start !important;
}

/* Text container */
.atura-subtext{
  text-align: left !important;
  align-items: flex-start !important;
}

/* Title row (icon + title) */
.atura-subtitle{
  justify-content: flex-start !important;
  text-align: left !important;
}

/* Title text itself */
.atura-subtitle-text{
  text-align: left !important;
}

/* Description under title */
.atura-subdesc{
  text-align: left !important;
}

/* Mobile-specific safety (some themes override these) */
.atura-mobile-menu .atura-subitem,
.atura-mobile-menu .atura-subtitle,
.atura-mobile-menu .atura-subdesc{
  text-align: left !important;
}
