/* ===== Top bar, header, sticky navigation, mega menus, search overlay ===== */
.topbar { background: var(--navy-2); color: #c8d4e2; font-size: .8rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; flex-wrap: wrap; }
.topbar-info, .topbar-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar a { color: #c8d4e2; } .topbar a:hover { color: #fff; }
.topbar i { color: var(--orange); margin-right: 6px; }
.topbar-links { display: flex; gap: 14px; } .topbar-links a { opacity: .85; }
.social { display: flex; gap: 6px; }
.social a { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; background: rgba(255, 255, 255, .1); color: #fff; font-size: .8rem; transition: background .2s, transform .2s; }
.social a:hover { background: var(--orange); transform: translateY(-2px); }
.site-header { position: sticky; top: 0; z-index: 900; background: #fff; box-shadow: 0 2px 14px rgba(16, 42, 67, .08); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 0; }
.header-badges { display: flex; gap: 26px; align-items: center; }
.hbadge { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); line-height: 1.2; }
.hbadge i { font-size: 1.35rem; color: var(--gold); }
.hbadge b { display: block; color: var(--navy); font-size: .95rem; font-family: var(--font-head); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-call { display: flex; align-items: center; gap: 10px; color: var(--navy); font-size: .74rem; line-height: 1.2; }
.header-call i { width: 38px; height: 38px; display: grid; place-items: center; background: var(--blue); color: #fff; border-radius: 50%; }
.header-call b { display: block; font-size: .95rem; font-family: var(--font-head); }
.wa-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #25D366; color: #fff; font-size: 1.3rem; transition: transform .2s; }
.wa-icon:hover { color: #fff; transform: scale(1.1); }
.nav-bar { background: var(--navy); }
.nav-bar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-list { display: flex; list-style: none; margin: 0; padding: 0; align-items: stretch; flex-wrap: wrap; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: 6px; color: #e8eef6; padding: 14px 15px; font-weight: 600; font-size: .92rem; background: none; border: 0; }
.nav-link:hover, .nav-item:hover > .nav-link { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-link.active { background: var(--orange); color: #fff; border-radius: 8px 8px 0 0; }
.nav-link .fa-chevron-down { font-size: .6rem; transition: transform .25s; }
.nav-item:hover .fa-chevron-down { transform: rotate(180deg); }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border-radius: 0 0 14px 14px; box-shadow: var(--shadow-lg); padding: 12px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s; z-index: 50; border-top: 3px solid var(--orange); }
.nav-item:hover > .dropdown, .nav-item.open > .dropdown, .nav-item:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-size: .88rem; font-weight: 500; }
.dropdown a:hover { background: var(--bg); color: var(--blue); }
.dropdown a i { width: 18px; text-align: center; color: var(--accent, var(--blue)); }
.mega { left: 50%; width: min(1100px, 94vw); transform: translate(-50%, 10px); }
.nav-item:hover > .mega, .nav-item.open > .mega, .nav-item:focus-within > .mega { transform: translate(-50%, 0); }
.nav-item.pos-static { position: static; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 24px; max-height: 70vh; overflow: auto; }
.mega-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 6px; padding-left: 10px; color: var(--accent); display: flex; gap: 8px; align-items: center; }
.mega-foot { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.dd-2col { min-width: 520px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; font-size: 1rem; }
.icon-btn:hover { background: var(--orange); }
.hamburger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); font-size: 1.2rem; }
/* search overlay */
.search-overlay { position: fixed; inset: 0; background: rgba(11, 29, 48, .72); z-index: 2000; display: none; padding: 8vh 16px; backdrop-filter: blur(3px); }
.search-overlay.open { display: block; }
.search-box { max-width: 720px; margin: 0 auto; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.search-box input { width: 100%; border: 0; padding: 20px 22px; font-size: 1.1rem; outline: none; border-bottom: 1px solid var(--line); }
.search-results { max-height: 55vh; overflow: auto; }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 12px 22px; color: var(--ink); border-bottom: 1px solid var(--line); }
.sr-item:hover { background: var(--bg); }
.sr-item small { margin-left: auto; color: var(--muted); text-transform: uppercase; font-size: .68rem; letter-spacing: .06em; }
.sr-item i { color: var(--blue); width: 20px; text-align: center; }

/* keep right-most dropdowns inside the viewport (no horizontal page scroll) */
.nav-item:nth-last-child(-n+3) > .dropdown { left: auto; right: 0; }

/* ===== responsive header / mobile menu ===== */
.nav-toggle { display: none; }
@media (max-width: 1180px) { .header-badges { display: none; } }
@media (max-width: 992px) {
  .topbar-right .topbar-links, .topbar-info span:nth-child(2) { display: none; }
  .header-call span, .btn-cta { display: none; }
  .hamburger { display: grid; place-items: center; }
  .nav-bar { display: none; }
  .site-header.nav-open .nav-bar { display: block; max-height: calc(100vh - 120px); overflow-y: auto; }
  .nav-bar .container { flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .nav-list { flex-direction: column; flex-wrap: nowrap; }
  .nav-item { display: flex; flex-wrap: wrap; align-items: stretch; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-item > .nav-link { flex: 1; border-radius: 0 !important; }
  .nav-toggle { display: grid; place-items: center; width: 48px; border: 0; background: transparent; color: #fff; }
  .nav-item .dropdown, .nav-item .mega { position: static; display: none; width: 100%; min-width: 0; flex-basis: 100%; opacity: 1; visibility: visible; transform: none !important; box-shadow: none; border-radius: 8px; max-height: 60vh; overflow: auto; margin-bottom: 8px; }
  .nav-item.open > .dropdown, .nav-item.open > .mega { display: block; }
  .nav-item:hover > .dropdown, .nav-item:hover > .mega { display: none; }
  .nav-item.open:hover > .dropdown, .nav-item.open:hover > .mega { display: block; }
  .dd-2col { min-width: 0; grid-template-columns: 1fr; }
  .mega-grid { grid-template-columns: 1fr; max-height: none; }
  .nav-cta { justify-content: flex-end; padding-top: 8px; }
}
