/* =====================================================================
   IMAGENET — Cabeçalho único (includes/header.php)
   Desktop (> 1024px): menu + mega menu, mesmas medidas da Home (v74)
   Tablet/celular (<= 1024px): botão ☰ abre gaveta lateral
   Classes com prefixo "sh-" para não conflitar com o CSS das páginas.
   ===================================================================== */
.sh, .sh *, .sh *::before, .sh *::after { box-sizing: border-box; }
.sh {
  --sh-orange: #ff6a00; --sh-orange-d: #e95d00; --sh-ink: #111827; --sh-navy: #071a35;
  --sh-muted: #748198; --sh-line: #edf0f3; --sh-h: 76px;
  position: sticky; top: 0; z-index: 500;
  height: var(--sh-h); background: #fff; border-bottom: 1px solid var(--sh-line);
  font-family: Inter, Arial, sans-serif; line-height: 1.55;
}
.sh a { text-decoration: none; }
.sh svg { display: block; }
.sh button { font-family: inherit; cursor: pointer; }

.sh-skip { position: absolute; left: -9999px; top: 8px; z-index: 600; background: var(--sh-orange, #ff6a00); color: #fff; padding: 10px 14px; border-radius: 8px; font: 700 14px Inter, Arial, sans-serif; text-decoration: none; }
.sh-skip:focus { left: 12px; }

.sh-wrap {
  width: min(1240px, calc(100% - 40px)); margin: 0 auto; height: var(--sh-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.sh-logo { display: flex; align-items: center; flex: 0 0 auto; color: var(--sh-ink); }
.sh-logo img { height: 55px; width: auto; max-width: none; display: block; }

/* ---------- Menu desktop ---------- */
.sh-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; color: var(--sh-ink); }
.sh-link {
  position: relative; display: flex; align-items: center; gap: 6px;
  padding: 29px 0; background: none; border: 0; color: var(--sh-ink); font-weight: 600; font-size: 14px; line-height: 1.55;
}
.sh-link:hover::after, .sh-link.is-active::after, .sh-services.is-active > .sh-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 19px; height: 2px; background: var(--sh-orange);
}
.sh-link:focus-visible, .sh-cta:focus-visible, .sh-burger:focus-visible { outline: 2px solid var(--sh-orange); outline-offset: 3px; border-radius: 4px; }
.sh-chevron { width: 12px; height: 12px; transition: transform .2s; }
.sh-services.open .sh-chevron, .sh-acc[aria-expanded="true"] .sh-chevron { transform: rotate(180deg); }

.sh-cta {
  display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto;
  background: var(--sh-orange); color: #fff !important; border-radius: 8px; padding: 12px 18px;
  font-size: 13px; font-weight: 700; box-shadow: 0 10px 24px rgba(255,106,0,.22); transition: .2s;
}
.sh-cta:hover { background: var(--sh-orange-d); transform: translateY(-2px); }
.sh-cta svg, .sh-mega-btn svg, .sh-dbtn svg { width: 17px; height: 17px; flex: 0 0 auto; }

/* ---------- Mega menu (desktop) ---------- */
.sh-services { position: static; }
.sh-mega {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: min(1840px, calc(100vw - 80px)); min-height: 500px;
  background: #fff; border: 1px solid #e1e7ee; border-radius: 18px; box-shadow: 0 28px 70px rgba(7,26,53,.22);
  display: none; grid-template-columns: 300px minmax(0,1fr) 320px; overflow: hidden; z-index: 520;
  font-weight: 400;
}
.sh-services.open .sh-mega { display: grid; }
.sh-services.open::before { /* fundo escurecido atrás do mega menu */
  content: ""; position: fixed; inset: var(--sh-h) 0 0; background: rgba(7,18,32,.38);
  backdrop-filter: blur(2px); z-index: 510; pointer-events: none;
}
.sh-kicker { font-size: 11px; letter-spacing: 3px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.sh-kicker::before { content: ""; display: inline-block; width: 24px; height: 3px; background: var(--sh-orange); vertical-align: middle; margin-right: 10px; }
.sh-mega h3 { color: #fff; margin: 0 0 13px; }
.sh-mega h3 span { color: var(--sh-orange); }
.sh-mega-feature {
  min-height: 500px; padding: 34px 28px 30px; position: relative; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, rgba(4,18,35,.72), rgba(4,18,35,.96)), url("hero-servidores.jpg") center/cover;
}
.sh-mega-feature::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,17,32,.05), rgba(3,17,32,.82)); }
.sh-mega-feature > *, .sh-mega-contact > * { position: relative; z-index: 1; }
.sh-mega-feature h3 { font-size: 30px; line-height: 1.04; letter-spacing: -.6px; }
.sh-mega-feature p { font-size: 14px; line-height: 1.55; color: #dbe4ef; max-width: 245px; margin: 0 0 22px; }
.sh-mega-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 240px; min-height: 82px; padding: 14px 17px; border-radius: 9px;
  background: var(--sh-orange); color: #fff !important; font-size: 13px; font-weight: 800; white-space: nowrap;
}
.sh-mega-btn:hover { background: #ed5f00; }
.sh-mega-cols { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); padding: 38px 14px 30px; background: #fff; }
.sh-mega-col { padding: 0 22px; border-right: 1px solid #e7ebef; }
.sh-mega-col:last-child { border-right: 0; }
.sh-mega-title { font-size: 11px; letter-spacing: 3px; color: #68778d; font-weight: 800; margin: 2px 0 18px; }
.sh-mega-title::before { content: ""; display: inline-block; width: 25px; height: 3px; background: var(--sh-orange); margin-right: 10px; vertical-align: middle; }
.sh-mega-item { color: #0a1a31; display: grid; grid-template-columns: 54px minmax(0,1fr) 12px; gap: 12px; align-items: start; padding: 14px 0; transition: transform .18s; }
.sh-mega-item:hover { transform: translateX(3px); }
.sh-mega-item:hover strong { color: var(--sh-orange); }
.sh-ico { width: 48px; height: 48px; border-radius: 12px; background: #fff4ec; color: var(--sh-orange); display: grid; place-items: center; }
.sh-ico svg { width: 27px; height: 27px; }
.sh-txt strong { display: block; color: #0a1a31; font-size: 14px; line-height: 1.3; margin: 2px 0 5px; font-weight: 700; }
.sh-txt > span { display: block; color: var(--sh-muted); font-size: 12px; line-height: 1.5; }
.sh-mega-arrow { color: var(--sh-orange); font: 400 28px/1 Arial, sans-serif; padding-top: 7px; }
.sh-mega-contact {
  margin: 18px 18px 18px 0; min-height: 464px; border-radius: 14px; overflow: hidden; position: relative;
  display: flex; align-items: flex-end; padding: 26px 25px;
  background: #071a35 url("hero-servidores.jpg") center/cover;
}
.sh-mega-contact::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,26,53,.12), rgba(7,26,53,.95)); }
.sh-mega-contact .sh-kicker { font-size: 10px; letter-spacing: 2px; margin-bottom: 10px; }
.sh-mega-contact .sh-kicker::before { width: 20px; margin-right: 8px; }
.sh-mega-contact h3 { font-size: 26px; line-height: 1.05; letter-spacing: -.4px; }
.sh-mega-contact p { color: #dbe4ef; font-size: 13px; line-height: 1.55; margin: 0 0 18px; max-width: 230px; }

@media (max-width: 1200px) {
  .sh-mega { width: calc(100vw - 40px); grid-template-columns: 250px minmax(0,1fr) 270px; }
  .sh-mega-cols { padding-left: 12px; padding-right: 8px; }
  .sh-mega-col { padding: 0 14px; }
  .sh-mega-feature { padding-left: 22px; padding-right: 22px; }
  .sh-mega-contact { padding-left: 20px; padding-right: 20px; }
  .sh-mega-btn { width: 100%; }
  .sh-nav { gap: 22px; }
}

/* ---------- Botão ☰ ---------- */
.sh-burger {
  display: none; width: 46px; height: 46px; border: 1px solid #e3e8ee; border-radius: 10px; background: #fff;
  padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.sh-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--sh-ink); }

/* ---------- Gaveta (tablet/celular) ---------- */
.sh-overlay { position: fixed; inset: 0; background: rgba(7,18,32,.55); z-index: 590; opacity: 0; transition: opacity .25s; }
.sh-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); z-index: 600;
  background: #fff; display: flex; flex-direction: column; box-shadow: -20px 0 50px rgba(7,26,53,.25);
  transform: translateX(100%); transition: transform .28s ease; overscroll-behavior: contain;
}
.sh.is-open .sh-overlay { opacity: 1; }
.sh.is-open .sh-drawer { transform: none; }
.sh-overlay[hidden], .sh-drawer[hidden] { display: none; }
.sh-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--sh-line); min-height: 68px; }
.sh-drawer-head .sh-logo img { height: 46px; }
.sh-close { width: 44px; height: 44px; border: 0; border-radius: 10px; background: #f4f6f8; color: var(--sh-ink); display: grid; place-items: center; }
.sh-close svg { width: 22px; height: 22px; }
.sh-drawer-nav { flex: 1; overflow-y: auto; padding: 8px 12px 16px; -webkit-overflow-scrolling: touch; }
.sh-dlink {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 52px; padding: 0 12px; border: 0; border-bottom: 1px solid #f0f2f5; background: none;
  color: var(--sh-ink); font-size: 16px; font-weight: 700; text-align: left; border-radius: 0;
}
.sh-dlink.is-active, .sh-link.is-active { color: var(--sh-orange); }
.sh-dlink .sh-chevron { width: 18px; height: 18px; }
.sh-acc-panel { padding: 4px 4px 10px; background: #fafbfc; border-bottom: 1px solid #f0f2f5; }
.sh-acc-panel[hidden] { display: none; }
.sh-acc-title { font-size: 11px; letter-spacing: 2px; font-weight: 800; color: #68778d; padding: 14px 8px 6px; }
.sh-ditem { color: #0a1a31; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 9px 8px; border-radius: 10px; }
.sh-ditem:hover, .sh-ditem[aria-current="page"] { background: #fff4ec; }
.sh-ditem .sh-ico { width: 40px; height: 40px; border-radius: 10px; }
.sh-ditem .sh-ico svg { width: 22px; height: 22px; }
.sh-ditem .sh-txt strong { font-size: 14px; margin: 0; }
.sh-ditem .sh-txt > span { font-size: 12px; }
.sh-drawer-foot { padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--sh-line); display: grid; gap: 10px; }
.sh-dbtn {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; border-radius: 10px;
  border: 1px solid var(--sh-orange); color: var(--sh-ink) !important; font-size: 15px; font-weight: 700; background: #fff;
}
.sh-dbtn-primary { background: var(--sh-orange); color: #fff !important; }
html.sh-lock, html.sh-lock body { overflow: hidden; }

@media (max-width: 1024px) {
  .sh-nav, .sh-cta { display: none; }
  .sh-burger { display: flex; }
}
@media (max-width: 760px) {
  .sh { --sh-h: 68px; }
  .sh-wrap { width: calc(100% - 28px); }
  .sh-logo img { height: 48px; }
}
@media (min-width: 1025px) {
  .sh-overlay, .sh-drawer { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .sh *, .sh *::before, .sh *::after { transition: none !important; }
}
