/* GVN v7.13 – Mobile navigation accordions and front-page slider corrections.
   Only the homepage slider is affected; interior-page banners keep their mobile sizing. */
@media (max-width: 768px) {
  /* Each menu parent remains a real link; the dedicated arrow opens its submenu. */
  .mobile-overlay .mobile-nav-links > li.mobile-has-submenu {
    position: relative;
  }
  .mobile-overlay .mobile-nav-links > li.mobile-has-submenu > a {
    padding-right: 52px;
  }
  .mobile-overlay .mobile-nav-links > li.mobile-has-submenu > .gvn-mobile-submenu-toggle {
    position: absolute;
    top: 1px;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #1a5496;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    max-width: none;
  }
  .mobile-overlay .gvn-mobile-submenu-toggle::after {
    content: '';
    display: block;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 160ms ease;
  }
  .mobile-overlay .mobile-has-submenu.gvn-submenu-open > .gvn-mobile-submenu-toggle::after {
    transform: translateY(2px) rotate(225deg);
  }
  .mobile-overlay .gvn-mobile-submenu-toggle:focus-visible {
    outline: 2px solid #1a5496;
    outline-offset: -3px;
  }
  .mobile-overlay .mobile-has-submenu > .mobile-submenu {
    display: none !important;
    margin-top: 0;
    margin-bottom: 10px;
  }
  .mobile-overlay .mobile-has-submenu.gvn-submenu-open > .mobile-submenu {
    display: block !important;
  }
  .mobile-overlay .mobile-submenu li a {
    line-height: 1.45;
    padding: 10px 0;
  }

  /* The former mobile hardening rule sets all heroes to height:auto. That is
     invalid for the homepage slider: every slide is absolutely positioned. */
  body.home .hero:has(.hero-slides),
  body.home .elementor .e-con.hero:has(.hero-slides) {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    min-height: 535px !important;
    height: clamp(535px, 78svh, 700px) !important;
    padding: 0 !important;
    overflow: hidden !important;
    isolation: isolate;
  }
  body.home .hero .hero-slides,
  body.home .hero .hero-slide {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  body.home .hero .hero-slide {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-direction: row !important;
    padding: 40px 0 76px !important;
  }
  body.home .hero .hero-slide-bg {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 60% center !important;
  }
  body.home .hero .hero-slide:nth-child(2) .hero-slide-bg {
    object-position: 63% center !important;
  }
  body.home .hero .hero-slide::before {
    background: linear-gradient(90deg,
      rgba(8,22,42,.77) 0%,
      rgba(8,22,42,.59) 52%,
      rgba(8,22,42,.28) 100%),
      linear-gradient(0deg,rgba(6,18,40,.32),transparent 55%) !important;
  }
  body.home .hero .hero-slide.hero-slide--bright::before {
    background: linear-gradient(90deg,
      rgba(8,22,42,.70),
      rgba(8,22,42,.50) 52%,
      rgba(8,22,42,.25)) !important;
  }
  body.home .hero .hero-slide .hero-inner {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 22px !important;
    min-width: 0;
  }
  body.home .hero .hero-kicker {
    display: inline-flex;
    max-width: 100%;
    font-size: 10px !important;
    line-height: 1.5 !important;
    letter-spacing: .7px !important;
    margin: 0 0 12px !important;
  }
  body.home .hero .hero-kicker::before { flex: 0 0 18px; }
  body.home .hero .hero-slide h1 {
    font-size: clamp(29px, 8.2vw, 39px) !important;
    line-height: 1.14 !important;
    letter-spacing: -.65px !important;
    margin: 0 0 18px !important;
    color: #fff !important;
    overflow-wrap: normal !important;
    hyphens: none;
  }
  body.home .hero .hero-sub,
  body.home .hero .hero-slide p.hero-sub {
    max-width: 460px !important;
    font-size: 14px !important;
    line-height: 1.58 !important;
    margin: 0 0 25px !important;
    color: rgba(255,255,255,.94) !important;
  }
  body.home .hero .hero-btns {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 360px;
    align-items: stretch !important;
    margin: 0 !important;
  }
  body.home .hero .hero-btns .btn {
    box-sizing: border-box;
    min-height: 46px;
    width: 100% !important;
    max-width: none;
    margin: 0 !important;
    padding: 11px 15px !important;
    justify-content: center;
    text-align: center;
    font-size: 12px !important;
    line-height: 1.35 !important;
    color: #fff !important;
  }
  body.home .hero .hero-dots {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 21px !important;
    z-index: 5;
    padding: 0;
    gap: 12px;
  }
  body.home .hero .hero-dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    padding: 0;
  }
}
@media (max-width: 350px) {
  body.home .hero .hero-slide .hero-inner { padding-inline: 18px !important; }
  body.home .hero .hero-slide h1 { font-size: 28px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-overlay .gvn-mobile-submenu-toggle::after { transition: none; }
}
