:root {
  --protex-header-black: #09090d;
  --protex-header-black-soft: #111117;
  --protex-header-red: #d61d36;
  --protex-header-red-dark: #9f0d24;
  --protex-header-red-bright: #f0444f;
  --protex-header-white: #fff;
}

body.mobi-protex-header-bridge #header.ct-header,
body.home.mobi-protex-home-bridge #main {
  display: none !important;
}

/*
 * A homepage nativa é injetada antes do wrapper legado do Blocksy.
 * Como Header, Main e Footer antigos já estão substituídos, o #main-container
 * legado deve sair inteiramente do fluxo para não reservar 100vh em branco.
 */
body.home.mobi-protex-home-bridge #main-container {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.mobi-protex-header,
.mobi-protex-header *,
.mobi-protex-header *::before,
.mobi-protex-header *::after {
  box-sizing: border-box;
}

.mobi-protex-header {
  position: relative;
  z-index: 999;
  width: 100%;
  color: var(--protex-header-white);
  background: #09090d;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.mobi-protex-top-row {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% -50%, rgba(214,29,54,.22), transparent 36%),
    linear-gradient(180deg, #111116 0%, #0a0a0e 100%);
}

.mobi-protex-top-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(214,29,54,.72) 28%, rgba(214,29,54,.72) 72%, transparent 100%);
}

.mobi-protex-top-row__inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 102px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobi-protex-brand {
  flex: 0 0 auto;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.mobi-protex-brand__logo {
  display: block;
  width: auto;
  height: 88px;
  max-width: 140px;
  object-fit: contain;
}

.mobi-protex-top-row__spacer {
  flex: 1 1 auto;
  min-width: 24px;
}

.mobi-protex-contact-card {
  flex: 0 0 auto;
  min-width: 192px;
  min-height: 52px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: var(--protex-header-white);
  background: rgba(255,255,255,.025);
  text-align: left;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.mobi-protex-contact-card:hover,
.mobi-protex-contact-card:focus-visible {
  color: #fff;
  border-color: rgba(214,29,54,.38);
  background: rgba(214,29,54,.07);
  transform: translateY(-2px);
}

.mobi-protex-contact-card__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(240,68,79,.45);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff5e68;
  background: rgba(214,29,54,.08);
}

.mobi-protex-contact-card__icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.mobi-protex-contact-card__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobi-protex-contact-card strong {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.mobi-protex-contact-card small {
  color: rgba(255,255,255,.52);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .075em;
}

.mobi-protex-nav-row {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(8,8,12,.93);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  backdrop-filter: blur(14px);
}

body.admin-bar .mobi-protex-nav-row {
  top: 32px;
}

.mobi-protex-nav-row__inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.mobi-protex-desktop-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 3px;
}

.mobi-protex-desktop-nav a {
  position: relative;
  min-height: 38px;
  padding: 10px 11px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,.76);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.mobi-protex-desktop-nav a::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 4px;
  height: 2px;
  border-radius: 99px;
  background: #e72a42;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.mobi-protex-desktop-nav a:hover,
.mobi-protex-desktop-nav a:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.035);
  outline: none;
}

.mobi-protex-desktop-nav a:hover::after,
.mobi-protex-desktop-nav a:focus-visible::after,
.mobi-protex-desktop-nav a.is-active::after,
.mobi-protex-desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.mobi-protex-desktop-nav a.is-active,
.mobi-protex-desktop-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(214,29,54,.08);
}

.mobi-protex-budget {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #e1263d 0%, #aa0d25 100%);
  box-shadow: 0 8px 22px rgba(124,6,25,.22);
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.mobi-protex-budget:hover,
.mobi-protex-budget:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(.98);
  box-shadow: 0 12px 28px rgba(124,6,25,.3);
  outline: none;
}

.mobi-protex-mobile-toggle,
.mobi-protex-mobile-nav {
  display: none;
}

.mobi-protex-header a:focus-visible,
.mobi-protex-header button:focus-visible {
  outline: 2px solid #ff5964;
  outline-offset: 3px;
}

@media (max-width: 1080px) and (min-width: 981px) {
  .mobi-protex-top-row__inner,
  .mobi-protex-nav-row__inner {
    width: calc(100% - 30px);
  }

  .mobi-protex-contact-card {
    min-width: 178px;
    padding-inline: 10px;
  }

  .mobi-protex-desktop-nav a {
    padding-inline: 8px;
    font-size: 10.5px;
  }

  .mobi-protex-budget {
    padding-inline: 13px;
    font-size: 10.5px;
  }
}

@media (max-width: 980px) {
  .mobi-protex-header {
    position: sticky;
    top: 0;
    z-index: 1001;
  }

  body.admin-bar .mobi-protex-header {
    top: 46px;
  }

  .mobi-protex-top-row {
    box-shadow: 0 8px 24px rgba(0,0,0,.24);
  }

  .mobi-protex-top-row__inner {
    width: min(100% - 28px, 760px);
    min-height: 78px;
    gap: 14px;
  }

  .mobi-protex-brand {
    min-width: 0;
  }

  .mobi-protex-brand__logo {
    height: 66px;
    max-width: 110px;
  }

  .mobi-protex-top-row__spacer,
  .mobi-protex-contact-card,
  .mobi-protex-nav-row {
    display: none;
  }

  .mobi-protex-mobile-toggle {
    margin-left: auto;
    width: 44px;
    height: 44px;
    padding: 11px 10px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: rgba(255,255,255,.04);
    color: #fff;
    cursor: pointer;
  }

  .mobi-protex-mobile-toggle span {
    width: 100%;
    height: 2px;
    border-radius: 2px;
    display: block;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .mobi-protex-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobi-protex-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .mobi-protex-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobi-protex-mobile-nav {
    width: min(100% - 28px, 760px);
    margin: 0 auto;
    padding: 6px 0 18px;
  }

  .mobi-protex-mobile-nav:not([hidden]) {
    display: grid;
  }

  .mobi-protex-mobile-nav a {
    min-height: 46px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    border-radius: 8px;
    display: flex;
    align-items: center;
    color: rgba(255,255,255,.86);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
  }

  .mobi-protex-mobile-nav a:hover,
  .mobi-protex-mobile-nav a:focus-visible,
  .mobi-protex-mobile-nav a[aria-current="page"] {
    color: #fff;
    background: rgba(214,29,54,.12);
  }

  .mobi-protex-mobile-nav .mobi-protex-mobile-nav__cta {
    justify-content: center;
    min-height: 44px;
    margin-top: 12px;
    border: 0;
    background: linear-gradient(135deg, #e1263d 0%, #aa0d25 100%);
  }
}

@media (max-width: 782px) {
  body.admin-bar .mobi-protex-header {
    top: 46px;
  }
}

@media (max-width: 480px) {
  .mobi-protex-top-row__inner {
    min-height: 72px;
  }

  .mobi-protex-brand__logo {
    height: 60px;
  }

  .mobi-protex-mobile-toggle {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobi-protex-header *,
  .mobi-protex-header *::before,
  .mobi-protex-header *::after {
    transition-duration: .01ms !important;
  }
}


.mobi-protex-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100000;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: #b51028;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 140ms ease;
}
.mobi-protex-skip-link:focus { transform: translateY(0); }
