/* Navigation with dropdowns (Gemini child theme).
   Works with the WordPress menu assigned to the Primary location. */

/* ---------- Desktop ---------- */
.gps-nav-list > li { position: relative; }
.gps-nav-list > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; }
.gps-nav-list > li.menu-item-has-children > a::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s;
}
.gps-nav-list > li.menu-item-has-children:hover > a::after,
.gps-nav-list > li.open > a::after { transform: rotate(225deg); margin-top: 3px; }

.gps-nav-list .sub-menu {
  position: absolute; top: 100%; left: -14px; z-index: 60;
  min-width: 230px; margin: 0; padding: 8px; list-style: none;
  display: none; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 18px 40px rgba(3,20,44,.16);
}
.gps-nav-list .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
.gps-nav-list > li:hover > .sub-menu,
.gps-nav-list > li:focus-within > .sub-menu,
.gps-nav-list > li.open > .sub-menu { display: flex; }
.gps-nav-list .sub-menu li { margin: 0; }
.gps-nav-list .sub-menu a { display: block; padding: 9px 12px; border-radius: 7px; font-size: .88rem; font-weight: 600; color: #1c2d45; white-space: nowrap; }
.gps-nav-list .sub-menu a:hover,
.gps-nav-list .sub-menu .current-menu-item > a { background: var(--ice); color: var(--blue); }
.desktop-nav .menu-item-has-children.current-menu-ancestor > a,
.desktop-nav .menu-item-has-children.current-menu-parent > a { color: var(--blue); }

/* ---------- Mobile (inside the Menu button): tap a group to reveal its links ---------- */
.mobile-menu nav { width: 270px; }
.gps-mobile-list, .gps-mobile-list .sub-menu { list-style: none; margin: 0; padding: 0; }
.gps-mobile-list li { margin: 0; padding: 0; }
.gps-mobile-list > li > a { display: block; padding: 12px 10px; font-weight: 800; color: var(--ink); border-bottom: 1px solid #edf1f5; }
.gps-mobile-list > li.menu-item-has-children > a { display: flex; align-items: center; justify-content: space-between; }
.gps-mobile-list > li.menu-item-has-children > a::after {
  content: ""; width: 8px; height: 8px; margin-right: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s;
}
.gps-mobile-list > li.open > a { color: var(--blue); }
.gps-mobile-list > li.open > a::after { transform: rotate(225deg); }
.gps-mobile-list .sub-menu { display: none; padding: 2px 0 8px; border-bottom: 1px solid #edf1f5; background: #f8fafd; }
.gps-mobile-list > li.open > .sub-menu { display: block; }
.gps-mobile-list .sub-menu a { display: block; padding: 10px 10px 10px 22px; font-weight: 700; font-size: .95rem; color: #1c2d45; border-bottom: 0; }
.gps-mobile-list .sub-menu .current-menu-item > a { color: var(--blue); }
.mobile-menu .mobile-quote-link { display: block; margin-top: 10px; padding: 12px 10px; text-align: center; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
