/* =========================================================
   SB Global Solution — Header — top bar, navbar, dropdowns / mega menu, mobile menu. Loaded on every page.
   Same rules as html-work/css/style.css.
   ========================================================= */
/* ---------- Top bar ---------- */
.topbar { background: var(--navy-950); color: #B9C4D8; font-size: 13.5px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 16px; }
.topbar__left, .topbar__right { display: flex; align-items: center; }
.topbar__left { gap: 28px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.topbar__item:hover { color: #fff; }
.topbar__item .ic { width: 15px; height: 15px; color: var(--orange-500); }
.topbar__link { padding: 0 16px; border-right: 1px solid rgba(255,255,255,.14); transition: color .2s; }
.topbar__link:hover { color: #fff; }
.topbar__social { display: flex; gap: 4px; padding-left: 12px; }
.topbar__social a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; transition: background .2s; }
.topbar__social a:hover { background: rgba(255,255,255,.1); }
.topbar__social svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Social button + panel (phone only) */
.topbar__social-btn {
  display: none; place-items: center; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255,255,255,.08); color: var(--orange-500); transition: background .2s;
}
.topbar__social-btn .ic { width: 15px; height: 15px; }
.topbar__social-btn[aria-expanded="true"] { background: var(--orange-500); color: #fff; }
.topbar__panel { border-top: 1px solid rgba(255,255,255,.08); padding: 10px 0; animation: panelIn .25s ease; }
.topbar__panel[hidden] { display: none; }
/* Drawer icons reuse the footer icon style (.footer__social in footer.css) */
.topbar__panel-icons { justify-content: center; }
@media (min-width: 601px) {
  .topbar__panel { display: none !important; }
}
/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(15,23,42, .25); }
.header__inner { display: flex; align-items: center; height: 92px; gap: 24px; }
.header__logo { flex-shrink: 0; }
.header__logo img { height: 68px; width: auto; }
.nav { margin-left: auto; margin-right: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 18px; font-family: var(--font-head); font-weight: 600; font-size: 15.5px; color: var(--ink);
  transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--orange-500); transform: scaleX(0); transition: transform .25s;
}
.nav__link:hover, .nav__link.is-active, .has-drop:hover > .nav__link { color: var(--navy-800); }
.nav__link:hover::after, .nav__link.is-active::after, .has-drop:hover > .nav__link::after { transform: scaleX(1); }
.nav__drop-btn .ic { transition: transform .25s; }
.has-drop:hover .nav__drop-btn .ic { transform: rotate(180deg); }
.nav__mobile-extra { display: none; }
/* Services dropdown */
.nav__item { position: relative; }
.drop {
  position: absolute; top: calc(100% + 22px); left: 50%; width: 680px;
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 30px 60px -24px rgba(20,28,85, .3);
  overflow: hidden; transition: opacity .22s, transform .22s, visibility .22s;
}
.drop::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.drop__col { padding: 24px; }
.drop__col + .drop__col { background: #F6F8FC; border-left: 1px solid var(--line); }
.drop__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.drop__head b { display: block; font-family: var(--font-head); font-size: 15px; color: var(--ink); }
.drop__head small { font-size: 12.5px; color: var(--muted); }
.drop__badge { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.drop__badge--blue { background: var(--blue-50); color: var(--blue-600); }
.drop__badge--orange { background: var(--orange-50); color: var(--orange-600); }
/* Column 1 takes the width of its longest name (e.g. "Graphic Design & Branding") so nothing wraps; column 2 gets the rest. */
.drop__links--2col { display: grid; grid-template-columns: max-content 1fr; column-gap: 24px; }
.drop__links a { display: block; padding: 7px 0; font-size: 14px; color: var(--text); transition: color .2s, transform .2s; }
.drop__links a:hover { color: var(--orange-600); transform: translateX(4px); }
.drop__foot {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px; background: var(--navy-900); color: #B9C4D8; font-size: 13.5px;
}
.drop__foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--orange-500); font-weight: 600; }
.drop__foot a.drop__all { color: #fff; }
.drop__foot a.drop__all:hover { color: var(--orange-500); }
/* Small dropdown (Resources) */
.drop--sm { display: block; width: 260px; padding: 10px; }
.drop__list a { display: block; padding: 10px 12px; border-radius: 10px; transition: background .2s; }
.drop__list a:hover { background: var(--blue-50); }
.drop__list b { display: block; font-family: var(--font-head); font-size: 14.5px; font-weight: 600; color: var(--ink); }
.drop__list a:hover b { color: var(--orange-600); }
.drop__list small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
/* Call + button */
.header__actions { display: flex; align-items: center; gap: 20px; }
.burger { display: none; }
@media (max-width: 360px) {
  .topbar { font-size: 11px; }
  .topbar__left { gap: 6px; }
  .topbar__item .ic { display: none; }
  .topbar__social-btn { width: 26px; height: 26px; }
}
@media (max-width: 960px) {
  .topbar__link { display: none; }
  .topbar__social { padding-left: 0; }
  .header__inner { height: 72px; }
  .header__logo img { height: 52px; }
  .header__actions { margin-left: auto; }
  .burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; }
  .burger span { height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .3s, opacity .3s; }
  .header.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header.menu-open .burger span:nth-child(2) { opacity: 0; }
  .header.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; top: var(--nav-top, 116px); margin: 0;
    background: #fff; padding: 12px 24px 32px; overflow-y: auto;
    transform: translateX(100%); transition: transform .35s ease;
  }
  .header.menu-open .nav { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { width: 100%; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav__link::after { display: none; }
  .has-drop:hover .nav__drop-btn .ic { transform: none; }
  .has-drop.is-open .nav__drop-btn .ic { transform: rotate(180deg); }
  .drop {
    position: static; width: auto; transform: none; opacity: 1; visibility: visible;
    display: none; grid-template-columns: 1fr; border: 0; border-radius: 0; box-shadow: none;
  }
  .has-drop:hover .drop { transform: none; }
  .has-drop.is-open .drop { display: grid; }
  .has-drop.is-open .drop--sm { display: block; }
  .drop--sm { width: auto; padding: 8px 0; }
  .drop__list a { padding: 10px 0; }
  .drop__list a:hover { background: none; }
  .drop__col { padding: 16px 0; }
  .drop__col + .drop__col { background: none; border-left: 0; }
  .drop__foot { display: none; }
  .nav__mobile-extra { display: grid; gap: 12px; margin-top: 24px; font-weight: 500; color: var(--ink); }
  .nav__partner { color: var(--orange-600); font-weight: 600; }
}
@media (max-width: 600px) {
  /* Phone: phone + email + a button that opens the social links panel */
  .topbar { font-size: 12px; }
  .topbar__left { width: 100%; gap: 12px; justify-content: space-between; }
  .topbar__item { gap: 5px; white-space: nowrap; }
  .topbar__item .ic { width: 13px; height: 13px; }
  .topbar__right { display: none; }
  .topbar__social-btn { display: inline-grid; }
  .header__actions .btn { display: none; }
  .drop__links--2col { grid-template-columns: 1fr; }
}
.drop { box-shadow: var(--shadow-3); }
/* ---- Frosted glass header while scrolling (desktop only: the phone menu needs a solid header) ---- */
@media (min-width: 961px) {
  .header { transition: background .3s, box-shadow .3s, border-color .3s; }
  .header.is-scrolled {
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%);
    border-bottom-color: rgba(229,233,242,.7);
  }
}
@media (max-width: 600px) and (min-width: 361px) {
  .topbar__social-btn { width: 32px; height: 32px; }
}
