/* Shared disclosure navigation for the homepage and industry pages. */
.industries-dropdown { position: relative; }
.industries-dropdown > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; }
.industries-dropdown > summary::-webkit-details-marker { display: none; }
.industries-chevron { width: 14px; height: 14px; flex: 0 0 auto; transition: transform .22s ease; }
.industries-dropdown[open] > summary .industries-chevron { transform: rotate(180deg); }
.nav-links { gap: 26px; flex-wrap: nowrap; }
.nav-links > .industries-dropdown > summary { opacity: .78; padding: 12px 0; transition: color .2s ease, opacity .2s ease; }
.nav-links > .industries-dropdown[open] > summary { opacity: 1; color: var(--deep-sky); }
.industry-popover { position: absolute; top: 100%; right: -20px; width: 310px; padding-top: 12px; z-index: 40; animation: industry-reveal .2s ease both; }
.industry-popover-inner { padding: 9px; border: 1px solid var(--line); border-top: 3px solid var(--harvest-orange); border-radius: 16px; background: var(--white); box-shadow: 0 18px 45px rgba(31,43,39,.14); }
.nav-links .industry-link { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 58px; padding: 14px; border-radius: 10px; font-size: 15px; font-weight: 600; opacity: 1; line-height: 1.45; }
.industry-link svg { width: 18px; height: 18px; flex: 0 0 auto; transition: transform .2s ease; }
.industry-link[aria-current="page"] { background: rgba(208,244,234,.38); color: var(--jet-black); }
@keyframes industry-reveal { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 760px) and (max-width: 1080px) {
  .nav { gap: 18px; }
  .nav-links { gap: 20px; }
  .brand img { width: 144px; }
  .brand { gap: 10px; }
  .brand::after { padding-left: 10px; font-size: 10px; letter-spacing: .12em; }
}
/* The extra navigation item needs a compact desktop header near its breakpoint. */
@media (min-width: 760px) and (max-width: 860px) {
  .nav { gap: 14px; padding-left: 20px; padding-right: 20px; }
  .brand::after { display: none; }
  .brand img { width: 132px; }
  .nav-links { gap: 18px; font-size: 14px; }
  .nav-links .contact-link { padding: 9px 14px; }
}
@media (width < 760px) {
  .mobile-menu-links > .industries-dropdown { border-bottom: 1px solid var(--line); }
  .mobile-menu-links > .industries-dropdown > summary { justify-content: center; min-height: 70px; padding: 12px 0; font-size: clamp(24px, 6vw, 32px); font-weight: 600; line-height: 1.2; }
  .mobile-menu-links .industries-chevron { width: 18px; height: 18px; margin-left: 6px; }
  .mobile-menu-links .industry-popover { position: static; width: auto; padding: 0 0 16px; }
  .mobile-menu-links .industry-popover-inner { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .mobile-menu-links .industry-link { min-height: 60px; padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid var(--harvest-orange); border-radius: 12px; background: rgba(208,244,234,.25); font-size: 17px; line-height: 1.4; font-weight: 600; justify-content: space-between; text-align: left; }
  .mobile-menu-links .industry-link[aria-current="page"] { color: var(--jet-black); }
}
@media (hover: hover) and (pointer: fine) {
  .nav-links > .industries-dropdown > summary:hover { opacity: 1; color: var(--deep-sky); }
  .nav-links a.industry-link:hover { background: rgba(208,244,234,.45); color: var(--jet-black); transform: none; }
  .industry-link:hover svg { transform: translateX(3px); }
}
@media (prefers-color-scheme: dark) {
  .industry-popover-inner { background: #25342e; box-shadow: 0 18px 45px rgba(0,0,0,.3); }
  .nav-links > .industries-dropdown[open] > summary { color: var(--cool-sky); }
  .industry-link[aria-current="page"], .nav-links a.industry-link:hover { background: #35493e; color: var(--off-white); }
  .mobile-menu-links > .industries-dropdown > summary { color: var(--off-white); }
  .mobile-menu-links .industry-popover-inner { background: transparent; }
  .mobile-menu-links .industry-link { background: #2a3b33; color: var(--off-white); }
  .mobile-menu-links .industry-link[aria-current="page"] { color: var(--off-white); }
}
@media (prefers-reduced-motion: reduce) {
  .industry-popover { animation: none; }
  .industries-chevron, .industry-link svg { transition: none; }
  .industry-link:hover svg { transform: none; }
}
