/* TGA menus 3.4: additive styling; works beside TGA Assets v2.3 and TGA Design v3.0. */
.tga-header .tga-desktop-nav{min-width:0!important;align-items:center!important;justify-content:flex-end!important}
.tga-header .tga-wp-primary-menu{width:100%!important;min-width:0!important;flex:1 1 auto!important;margin:0!important}
.tga-header .tga-wp-primary-menu .elementor-widget-container{width:100%!important}
.tga-header .tga-wp-primary-menu .elementor-nav-menu--main .elementor-item,
.tga-header .tga-wp-primary-menu .elementor-nav-menu--main .elementor-sub-item{font:600 14px/1.5 'Poppins',Arial,sans-serif!important;white-space:nowrap!important;text-transform:none!important;letter-spacing:0!important}
.tga-header .tga-wp-primary-menu .elementor-nav-menu--main .elementor-item{color:#fff!important;background:transparent!important;padding:9px 10px!important;transition:color .2s ease!important}
.tga-header .tga-wp-primary-menu .elementor-nav-menu--main .elementor-item:hover,
.tga-header .tga-wp-primary-menu .elementor-nav-menu--main .elementor-item:focus-visible,
.tga-header .tga-wp-primary-menu .elementor-nav-menu--main .elementor-item.elementor-item-active{color:#b9d7a7!important}
.tga-header .tga-wp-primary-menu .elementor-nav-menu--dropdown{background:#0b2341!important;border:1px solid rgba(255,255,255,.1)!important;box-shadow:0 16px 34px rgba(0,0,0,.16)!important}
.tga-header .tga-wp-primary-menu .elementor-nav-menu--dropdown a{color:#fff!important;background:transparent!important;font:500 15px/1.5 'Poppins',Arial,sans-serif!important;padding:12px 18px!important}
.tga-header .tga-wp-primary-menu .elementor-nav-menu--dropdown a:hover,
.tga-header .tga-wp-primary-menu .elementor-nav-menu--dropdown .elementor-item-active{background:#153754!important;color:#b9d7a7!important}
.tga-header .tga-wp-primary-menu .elementor-menu-toggle{background:transparent!important;color:#fff!important;margin-left:auto!important;font-size:26px!important;padding:7px!important}
.tga-header .tga-wp-primary-menu .elementor-menu-toggle:hover{color:#b9d7a7!important}
.tga-header .tga-menu-mobile{display:none!important}
/* Footer: preserve original two-heading hierarchy, but manage links via WordPress. */
.tga-footer .tga-wp-footer-menu{width:100%!important}
.tga-footer .tga-wp-footer-menu .elementor-nav-menu,
.tga-footer .tga-wp-footer-menu .elementor-nav-menu--main,
.tga-footer .tga-wp-footer-menu .elementor-widget-container{background:transparent!important}
.tga-footer .tga-wp-footer-menu .elementor-nav-menu{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:5px!important}
.tga-footer .tga-wp-footer-menu a.elementor-item,
.tga-footer .tga-wp-footer-menu .elementor-nav-menu .elementor-item{display:block!important;background:transparent!important;color:#dee9ed!important;font:400 15px/1.65 'Poppins',Arial,sans-serif!important;padding:3px 0!important;white-space:normal!important}
.tga-footer .tga-wp-footer-menu a:hover,.tga-footer .tga-wp-footer-menu .elementor-item-active{color:#b9d7a7!important}
.tga-footer .tga-wp-footer-menu .elementor-menu-toggle{display:none!important}
/* Shortcode fallback: WP nav menus, including nested menu items and mobile <details>. */
.tga-header .tga-wp-header-fallback{width:100%}
.tga-header .tga-wp-menu-items,.tga-footer .tga-wp-menu-items{list-style:none!important;margin:0!important;padding:0!important}
.tga-header .tga-wp-header-desktop>.tga-wp-menu-items{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:18px!important}
.tga-header .tga-wp-header-desktop .menu-item{position:relative!important}
.tga-header .tga-wp-header-desktop a{display:block;color:#fff!important;text-decoration:none!important;font:600 14px/1.4 'Poppins',Arial,sans-serif!important;padding:10px 2px!important;white-space:nowrap!important;transition:color .2s ease!important}
.tga-header .tga-wp-header-desktop a:hover,.tga-header .tga-wp-header-desktop .current-menu-item>a,.tga-header .tga-wp-header-desktop .current-menu-ancestor>a{color:#b9d7a7!important}
.tga-header .tga-wp-header-desktop .sub-menu{display:none;position:absolute;top:100%;left:-12px;min-width:210px;background:#0b2341;box-shadow:0 16px 36px rgba(0,0,0,.22);z-index:200;list-style:none;margin:0;padding:8px 12px}
.tga-header .tga-wp-header-desktop .menu-item:hover>.sub-menu,.tga-header .tga-wp-header-desktop .menu-item:focus-within>.sub-menu{display:block}
.tga-header .tga-wp-header-desktop .sub-menu a{padding:10px 8px!important;font-size:14px!important}
.tga-header .tga-wp-header-mobile{display:none}
.tga-footer .tga-wp-footer-nav .tga-wp-menu-items{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.tga-footer .tga-wp-footer-nav a{font:400 15px/1.65 'Poppins',Arial,sans-serif!important;color:#dee9ed!important;text-decoration:none!important;padding:3px 0!important;display:block}
.tga-footer .tga-wp-footer-nav a:hover{color:#b9d7a7!important}
@media(max-width:1024px){
 .tga-header .tga-wp-primary-menu .elementor-nav-menu--main .elementor-item{font-size:13px!important;padding:8px 7px!important}
}
@media(max-width:900px){
 .tga-header .tga-desktop-nav{display:flex!important;flex:0 0 56px!important;min-width:50px!important;max-width:56px!important;width:56px!important;margin-left:auto!important;justify-content:flex-end!important;gap:0!important}
 .tga-header .tga-header-logo{margin-right:auto!important}
 .tga-header .tga-wp-primary-menu{width:56px!important;flex:0 0 56px!important}
 .tga-header .tga-wp-primary-menu .elementor-nav-menu--main{display:none!important}
 .tga-header .tga-wp-primary-menu .elementor-menu-toggle{display:flex!important;justify-content:center!important;align-items:center!important}
 .tga-header .tga-wp-primary-menu .elementor-nav-menu--dropdown{position:absolute!important;right:16px!important;top:calc(100% - 1px)!important;width:min(320px,calc(100vw - 32px))!important;z-index:200!important}
 .tga-header .tga-wp-header-desktop{display:none!important}
 .tga-header .tga-wp-header-mobile{display:block!important;position:relative!important}
 .tga-header .tga-wp-header-mobile summary{cursor:pointer;list-style:none;color:#fff;font:600 14px/1.4 'Poppins',Arial,sans-serif;white-space:nowrap;padding:8px 0}
 .tga-header .tga-wp-header-mobile summary::-webkit-details-marker{display:none}
 .tga-header .tga-wp-header-mobile summary span{font-size:24px;vertical-align:middle;margin-left:5px}
 .tga-header .tga-wp-header-mobile nav{position:absolute;right:0;top:100%;background:#0b2341;border:1px solid rgba(255,255,255,.15);width:min(320px,calc(100vw - 30px));padding:16px;box-shadow:0 16px 36px rgba(0,0,0,.22);z-index:250}
 .tga-header .tga-wp-header-mobile a{display:block;color:#fff!important;text-decoration:none!important;font:500 15px/1.6 'Poppins',Arial,sans-serif!important;padding:7px 4px!important}
 .tga-header .tga-wp-header-mobile .sub-menu{margin:0 0 4px 15px!important;padding:0 0 0 12px!important;list-style:none;border-left:2px solid #84ad6b}
}
@media(prefers-reduced-motion:reduce){.tga-header .tga-wp-primary-menu *, .tga-footer .tga-wp-footer-menu *{transition:none!important}}


/* v3.3 Mobile navigation correction. Works with existing Elementor Free header JSON. */
@media (max-width:900px) {
  .tga-header,
  .tga-header .tga-header-inner,
  .tga-header .tga-desktop-nav,
  .tga-header .tga-wp-primary-menu,
  .tga-header .tga-wp-primary-menu > .elementor-widget-container,
  .tga-header .tga-wp-header-fallback {overflow:visible!important}
  .tga-header .tga-header-inner {
    display:flex!important;flex-direction:row!important;align-items:center!important;
    flex-wrap:nowrap!important;gap:12px!important;min-width:0!important;
    justify-content:space-between!important;position:relative!important;
  }
  .tga-header .tga-header-logo {flex-shrink:0!important;min-width:0!important;margin-right:auto!important}
  .tga-header .tga-desktop-nav {
    display:flex!important;flex:0 0 44px!important;width:44px!important;
    min-width:44px!important;max-width:44px!important;margin:0 0 0 auto!important;
    align-items:center!important;justify-content:center!important;padding:0!important;
    position:static!important;
  }
  .tga-header .tga-wp-primary-menu,
  .tga-header .tga-wp-primary-menu > .elementor-widget-container,
  .tga-header .tga-wp-header-fallback,
  .tga-header .tga-wp-header-mobile {
    display:block!important;box-sizing:border-box!important;flex:0 0 44px!important;
    width:44px!important;min-width:44px!important;max-width:44px!important;
    margin:0!important;padding:0!important;
  }
  .tga-header .tga-wp-primary-menu {position:static!important}
  .tga-header .tga-wp-header-mobile {position:static!important}
  .tga-header .tga-wp-header-mobile summary {
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:44px!important;height:44px!important;min-width:44px!important;
    padding:0!important;margin:0!important;box-sizing:border-box!important;
    border:1px solid rgba(255,255,255,.2)!important;border-radius:4px!important;
    background:rgba(255,255,255,.04)!important;color:#fff!important;
    cursor:pointer!important;font-size:0!important;line-height:0!important;
    list-style:none!important;-webkit-appearance:none!important;
    transition:background-color .2s ease,border-color .2s ease!important;
  }
  .tga-header .tga-wp-header-mobile summary::-webkit-details-marker {display:none!important}
  .tga-header .tga-wp-header-mobile summary::marker {content:''!important}
  .tga-header .tga-wp-header-mobile summary:hover,
  .tga-header .tga-wp-header-mobile[open] summary {
    border-color:#84AD6B!important;background:rgba(132,173,107,.13)!important;
  }
  .tga-header .tga-wp-header-mobile .tga-menu-icon {
    position:relative!important;display:block!important;width:23px!important;height:18px!important;
    font-size:0!important;line-height:0!important;margin:0!important;
  }
  .tga-header .tga-wp-header-mobile .tga-menu-icon > span {
    position:absolute!important;left:0!important;display:block!important;
    width:23px!important;height:2px!important;background:#fff!important;
    margin:0!important; /* Overrides old `summary span` margin-left:5px on ALL three bars. */
    border-radius:2px!important;transition:transform .2s ease,opacity .2s ease!important;
  }
  .tga-header .tga-wp-header-mobile .tga-menu-icon > span:nth-child(1) {top:1px!important}
  .tga-header .tga-wp-header-mobile .tga-menu-icon > span:nth-child(2) {top:8px!important}
  .tga-header .tga-wp-header-mobile .tga-menu-icon > span:nth-child(3) {top:15px!important}
  .tga-header .tga-wp-header-mobile[open] .tga-menu-icon > span:nth-child(1) {transform:translateY(7px) rotate(45deg)!important}
  .tga-header .tga-wp-header-mobile[open] .tga-menu-icon > span:nth-child(2) {opacity:0!important}
  .tga-header .tga-wp-header-mobile[open] .tga-menu-icon > span:nth-child(3) {transform:translateY(-7px) rotate(-45deg)!important}
  .tga-header .tga-wp-header-mobile nav {
    position:absolute!important;top:calc(100% - 1px)!important;
    right:0!important;left:auto!important;
    width:min(330px,calc(100vw - 36px))!important;
    min-width:0!important;max-width:calc(100vw - 36px)!important;
    max-height:calc(100dvh - 110px)!important;overflow-y:auto!important;
    box-sizing:border-box!important;margin:0!important;
    padding:12px!important;background:#0B2341!important;
    border:1px solid rgba(255,255,255,.2)!important;
    border-top:2px solid #84AD6B!important;border-radius:0 0 7px 7px!important;
    box-shadow:0 18px 36px rgba(0,0,0,.25)!important;z-index:99999!important;
  }
  .tga-header .tga-wp-header-mobile nav .tga-wp-menu-items,
  .tga-header .tga-wp-header-mobile nav .sub-menu {
    display:block!important;list-style:none!important;box-sizing:border-box!important;
  }
  .tga-header .tga-wp-header-mobile nav .menu-item {margin:0!important;padding:0!important}
  .tga-header .tga-wp-header-mobile nav a {
    font:600 15px/1.45 'Poppins',Arial,sans-serif!important;
    padding:12px 12px!important;display:block!important;color:#fff!important;
    white-space:normal!important;border-radius:3px!important;transition:background .2s ease,color .2s ease!important;
  }
  .tga-header .tga-wp-header-mobile nav a:hover,
  .tga-header .tga-wp-header-mobile nav a:focus-visible,
  .tga-header .tga-wp-header-mobile nav .current-menu-item > a {
    background:rgba(132,173,107,.13)!important;color:#B9D7A7!important;
  }
  .tga-header .tga-wp-header-mobile nav .sub-menu {
    margin:2px 0 6px 12px!important;padding:0 0 0 10px!important;border-left:2px solid #84AD6B!important;
  }
  .tga-header .tga-wp-header-mobile nav .sub-menu a {
    font-size:14px!important;font-weight:500!important;padding:9px 10px!important;
  }
}
@media(max-width:400px){
  .tga-header .tga-header-logo {
    width:min(172px,calc(100vw - 140px))!important;
    max-width:min(172px,calc(100vw - 140px))!important;
    flex:0 1 min(172px,calc(100vw - 140px))!important;
  }
}
@media(prefers-reduced-motion:reduce){
  .tga-header .tga-wp-header-mobile summary,
  .tga-header .tga-wp-header-mobile .tga-menu-icon > span,
  .tga-header .tga-wp-header-mobile nav a {transition:none!important}
}


/* -----------------------------------------------------------
   v3.5.0 — mobile horizontal overflow safeguard for TGA pages.

   Problem: some interior-page decorative/animated elements
   can extend beyond the visual viewport on mobile Safari.
   This contains those elements at their own sections, and
   prevents document-level side scrolling. It does not make
   any changes to the WordPress menu items or Elementor JSON.
   The header remains overflow:visible so its dropdown works.
   ----------------------------------------------------------- */
@media screen and (max-width: 900px) {
  html {
    max-width:100%!important;
    overflow-x:hidden!important;
    overscroll-behavior-x:none;
  }
  body {
    max-width:100%!important;
    overflow-x:hidden!important;
    margin-inline:0!important;
  }
  /* Contain off-canvas decorations and slide-in effects within the page. */
  body .tga3-page, body .tga-homepage {
    max-width:100%!important;
    min-width:0!important;
    overflow-x:clip!important;
  }
  body .tga3-page .tga3-hero,
  body .tga3-page .tga3-section,
  body .tga-homepage .tga-hero {
    max-width:100%!important;
    min-width:0!important;
    overflow-x:clip!important;
  }
  /* Grid and Elementor flex children can otherwise force ancestor width. */
  body .tga3-page .tga3-hero-grid,
  body .tga3-page .tga3-wrap,
  body .tga3-page .tga3-hero-copy,
  body .tga3-page .tga3-hero-media,
  body .tga3-page .e-con,
  body .tga-header .tga-header-inner,
  body .tga-header .tga-desktop-nav {
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  body .tga3-page img,
  body .tga-homepage img {
    max-width:100%;
    height:auto;
  }
  /* Do not clip dropdown at the header level. */
  body .tga-header,
  body .tga-header .tga-header-inner {
    overflow:visible!important;
  }
}
