/* Cabeçalho e rodapé compartilhados — Rei do PPCI */
:root {
  --shell-red: #ed151c;
  --shell-bg: #090b0d;
  --shell-page: 1200px;
  --shell-alert-h: 34px;
  --shell-header-h: 88px;
  --shell-stack-h: calc(var(--shell-alert-h) + var(--shell-header-h));
  --shared-mobile-hero-image: none;
}

html {
  scroll-padding-top: calc(var(--shell-header-h) + 12px);
}

body {
  padding-top: var(--shell-stack-h) !important;
}

.top-alert {
  width: 100vw !important;
  min-height: 34px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 4px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(90deg, #c80009 0%, var(--shell-red) 50%, #c80009 100%) !important;
  color: #fff !important;
  text-align: center !important;
  text-transform: uppercase !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: 1.7px !important;
  border: 0 !important;
  box-shadow: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: var(--shell-alert-h) !important;
  min-height: var(--shell-alert-h) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  z-index: 9991 !important;
  transform: translateY(0);
  transition: transform .32s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.top-alert > div {
  white-space: nowrap;
}


body.shell-alert-hidden .top-alert {
  transform: translateY(-100%) !important;
}

body.shell-alert-hidden .topbar {
  top: 0 !important;
  box-shadow: 0 8px 26px rgba(0,0,0,.22) !important;
}


.topbar {
  position: fixed !important;
  top: var(--shell-alert-h) !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9990 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transition:
    top .32s cubic-bezier(.22,.61,.36,1),
    box-shadow .22s ease;
  will-change: top;
  width: 100vw !important;
  height: var(--shell-header-h) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding:
    0 max(40px, calc((100vw - var(--shell-page)) / 2)) !important;
  display: flex !important;
  align-items: center !important;
  background: var(--shell-bg) !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
}

.brand {
  width: 346px !important;
  height: 74px !important;
  flex: 0 0 346px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  overflow: hidden !important;
}

.brand img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 74px !important;
  object-fit: contain !important;
  object-position: left center !important;
}

.nav {
  position: absolute !important;
  left: 50% !important;
  top: 0 !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  height: 100% !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 29px !important;
  white-space: nowrap !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.nav a {
  position: relative !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  color: #f1f1f1 !important;
  text-decoration: none !important;
}

.nav a::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  bottom: 24px !important;
  width: 0 !important;
  height: 3px !important;
  background: var(--shell-red) !important;
  transform: translateX(-50%) !important;
  transition: width .18s ease !important;
}

.nav a.active::after,
.nav a:hover::after {
  width: 34px !important;
}

.header-cta {
  margin-left: auto !important;
  min-width: 236px !important;
  height: 48px !important;
  padding: 0 28px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: var(--shell-red) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.header-cta .wa {
  width: 26px !important;
  height: 26px !important;
  flex: 0 0 26px !important;
}

.mobile-menu,
.menu-btn {
  display: none !important;
}

.site-footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #0a0c0e;
  border-top: 1px solid rgba(255,255,255,.035);
  color: #f2f2f2;
}

.footer-main {
  width: min(var(--shell-page), calc(100% - 80px));
  min-height: 118px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr 315px;
  align-items: center;
  gap: 34px;
  padding: 23px 8px 18px;
}

.footer-brand {
  width: 232px !important;
  height: 54px !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
}

.footer-brand img {
  display: block !important;
  width: 232px !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: left center !important;
}

.footer-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 31px !important;
  white-space: nowrap !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.footer-nav a {
  color: rgba(255,255,255,.88) !important;
  text-decoration: none !important;
}

.footer-nav a:hover,
.footer-nav a.active {
  color: var(--shell-red) !important;
}

.footer-location {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: 270px;
  color: rgba(255,255,255,.88);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}

.footer-location svg {
  width: 27px;
  height: 33px;
  flex: 0 0 27px;
}

.footer-bottom {
  width: min(var(--shell-page), calc(100% - 80px));
  min-height: 55px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 8px;
  color: rgba(255,255,255,.53);
  font-size: 10px;
  line-height: 1.4;
}

.footer-bottom strong {
  color: rgba(255,255,255,.64);
  font-weight: 500;
}

@media (max-width: 1050px) {
  .topbar {
    padding: 0 22px !important;
  }

  .brand {
    width: 320px !important;
    height: 68px !important;
    flex-basis: 320px !important;
  }

  .brand img {
    max-height: 68px !important;
  }

  .nav {
    gap: 18px !important;
    font-size: 12px !important;
  }

  .header-cta {
    min-width: 190px !important;
  }
}

@media (max-width: 820px) {
  :root {
    --shell-alert-h: 32px;
    --shell-header-h: 84px;
  }

  .top-alert {
    min-height: 32px !important;
    padding: 4px 12px !important;
    font-size: 10px !important;
    letter-spacing: 1.25px !important;
  }

  .topbar {
    height: 84px !important;
    padding: 0 18px !important;
  }

  .brand {
    width: min(350px, calc(100% - 62px)) !important;
    height: 72px !important;
    flex-basis: auto !important;
  }

  .brand img {
    max-height: 72px !important;
  }

  .nav,
  .header-cta {
    display: none !important;
  }

  .mobile-menu,
  .menu-btn {
    margin-left: auto !important;
    display: grid !important;
    place-items: center !important;
    width: 44px !important;
    height: 44px !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 24px !important;
  }

  .footer-main {
    width: calc(100% - 48px);
    grid-template-columns: 1fr auto;
    padding-left: 0;
    padding-right: 0;
  }

  .footer-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 18px 28px !important;
  }

  .footer-bottom {
    width: calc(100% - 48px);
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 680px) {
  .brand {
    width: min(310px, calc(100% - 60px)) !important;
    height: 66px !important;
  }

  .brand img {
    max-height: 66px !important;
  }

  .footer-main {
    width: calc(100% - 36px);
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
    padding-top: 29px;
    padding-bottom: 24px;
    text-align: center;
  }

  .footer-brand {
    width: 220px !important;
    justify-self: center !important;
    justify-content: center !important;
  }

  .footer-brand img {
    width: 220px !important;
    object-position: center center !important;
  }

  .footer-location {
    justify-self: center;
    justify-content: center;
    max-width: 290px;
    text-align: center;
  }

  .footer-nav {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    justify-content: center !important;
    gap: 14px 22px !important;
    text-align: center;
  }

  .footer-bottom {
    width: calc(100% - 36px);
    min-height: 88px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    text-align: center;
  }

  .footer-bottom span,
  .footer-bottom strong {
    width: 100%;
    text-align: center;
  }
}

/* PRELOADER COMPARTILHADO — páginas Sobre e Projetos */
.site-page-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: #090b0d;
  opacity: 1;
  visibility: visible;
  transition: opacity .28s ease, visibility .28s ease;
}

.site-page-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-page-preloader-logo {
  display: block;
  width: min(330px, 72vw);
  max-height: 120px;
  object-fit: contain;
  transform-origin: center center;
  visibility: hidden;
  opacity: 0;
  will-change: transform, opacity;
}

.site-page-preloader-logo.is-ready {
  visibility: visible;
  animation: sitePreloaderPulse 2.2s ease-in-out infinite;
}

@keyframes sitePreloaderPulse {
  0%, 100% {
    transform: scale(1);
    opacity: .80;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-page-preloader-logo {
    animation: none !important;
    opacity: 1;
  }

  .site-page-preloader {
    transition-duration: .12s;
  }
}

/* MENU MOBILE — cabeçalho compartilhado */
@keyframes shellMobileMenuIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  body.shell-mobile-menu-open {
    overflow: hidden !important;
  }

  body.shell-mobile-menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9980;
    background: rgba(0,0,0,.56);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  body.shell-mobile-menu-open .topbar .nav {
    display: flex !important;
    position: fixed !important;
    top: var(--shell-stack-h) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 10px 18px 18px !important;
    transform: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    background: #090b0d !important;
    border-top: 1px solid rgba(255,255,255,.06) !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: 0 18px 34px rgba(0,0,0,.34) !important;
    z-index: 9992 !important;
    animation: shellMobileMenuIn .22s ease both;
  }

  body.shell-alert-hidden.shell-mobile-menu-open .topbar .nav {
    top: var(--shell-header-h) !important;
  }

  body.shell-mobile-menu-open .topbar .nav a {
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
  }

  body.shell-mobile-menu-open .topbar .nav a:last-child {
    border-bottom: 0 !important;
  }

  body.shell-mobile-menu-open .topbar .nav a::after {
    bottom: 5px !important;
  }

  .mobile-menu[aria-expanded="true"],
  .menu-btn[aria-expanded="true"] {
    border-color: rgba(237,21,28,.7) !important;
    background: rgba(237,21,28,.10) !important;
  }
}

/* SHARED MOBILE HERO — ALL PUBLIC TABS */
@media (max-width: 820px) {
  /* Uma única altura e composição para Início, Sobre, Serviços e Projetos. */
  body.shared-mobile-hero-active .hero,
  body.shared-mobile-hero-active .projects-hero {
    min-height: 500px !important;
    height: 500px !important;
    max-height: 500px !important;
    overflow: hidden !important;
    position: relative !important;
  }

  /* A imagem compartilhada sempre cobre toda a Hero. */
  body.shared-mobile-hero-active .hero-photo,
  body.shared-mobile-hero-active .hero-visual,
  body.shared-mobile-hero-active .hero-media {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    background-image: var(--shared-mobile-hero-image) !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
  }

  /* Projetos usa a própria seção como camada de imagem. */
  body.shared-mobile-hero-active .projects-hero {
    background-image: var(--shared-mobile-hero-image) !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }

  /* Degradê mais escuro e uniforme para melhorar a leitura. */
  body.shared-mobile-hero-active .hero::before,
  body.shared-mobile-hero-active .projects-hero::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    background:
      linear-gradient(180deg,
        rgba(5, 8, 10, .76) 0%,
        rgba(5, 8, 10, .68) 24%,
        rgba(5, 8, 10, .74) 52%,
        rgba(5, 8, 10, .88) 82%,
        rgba(5, 8, 10, .94) 100%) !important;
    pointer-events: none !important;
  }

  /* Conteúdo sempre acima da imagem/degradê e centralizado. */
  body.shared-mobile-hero-active .hero-copy,
  body.shared-mobile-hero-active .hero-inner,
  body.shared-mobile-hero-active .projects-hero-copy,
  body.shared-mobile-hero-active .projects-hero-inner {
    position: relative !important;
    z-index: 3 !important;
  }

  body.shared-mobile-hero-active .hero-copy,
  body.shared-mobile-hero-active .projects-hero-copy {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 500px !important;
    height: 500px !important;
    padding: 86px 24px 30px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  body.shared-mobile-hero-active .hero-inner,
  body.shared-mobile-hero-active .projects-hero-inner {
    width: calc(100% - 36px) !important;
    max-width: 760px !important;
    min-height: 500px !important;
    height: 500px !important;
    margin: 0 auto !important;
    padding: 80px 0 28px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Serviços possui uma camada intermediária de conteúdo. */
  body.shared-mobile-hero-active .hero-copy-shell {
    width: 100% !important;
    max-width: 540px !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  /* Centralização explícita dos elementos internos. */
  body.shared-mobile-hero-active .eyebrow,
  body.shared-mobile-hero-active .section-kicker,
  body.shared-mobile-hero-active .tagline,
  body.shared-mobile-hero-active .hero-actions,
  body.shared-mobile-hero-active .hero-features {
    justify-content: center !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.shared-mobile-hero-active h1,
  body.shared-mobile-hero-active .lead,
  body.shared-mobile-hero-active .hero-lead,
  body.shared-mobile-hero-active .hero-text,
  body.shared-mobile-hero-active .hero-copy p {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  body.shared-mobile-hero-active .hero-actions,
  body.shared-mobile-hero-active .hero-wa {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* A linha/tagline da Home também fica centralizada. */
  body.shared-mobile-hero-active .tagline {
    width: fit-content !important;
  }
}

@media (max-width: 560px) {
  body.shared-mobile-hero-active .hero,
  body.shared-mobile-hero-active .projects-hero {
    min-height: 475px !important;
    height: 475px !important;
    max-height: 475px !important;
  }

  body.shared-mobile-hero-active .hero-copy,
  body.shared-mobile-hero-active .projects-hero-copy,
  body.shared-mobile-hero-active .hero-inner,
  body.shared-mobile-hero-active .projects-hero-inner {
    min-height: 475px !important;
    height: 475px !important;
  }

  body.shared-mobile-hero-active .hero-copy,
  body.shared-mobile-hero-active .projects-hero-copy {
    padding: 72px 20px 26px !important;
  }

  body.shared-mobile-hero-active .hero-inner,
  body.shared-mobile-hero-active .projects-hero-inner {
    padding: 68px 0 24px !important;
  }
}
/* END SHARED MOBILE HERO */

