/* Chrome compartilhado (header/footer 2026) — páginas internas */
@import url('../fonts/ibrand.css');

:root {
  --h26-blue: #1852a2;
  --h26-cyan: #16cdf5;
  --h26-title: #35549e;
  --h26-text: #4a4a4a;
  --h26-orange: #db8f57;
  --h26-cases: #525252;
  --h26-white: #ffffff;
  --h26-ink: #1a1a1a;
  --h26-content: 1270px;
  --h26-font: 'Urbanist', system-ui, sans-serif;
  --h26-font-display: 'Ibrand', 'Urbanist', system-ui, sans-serif;
  /* Altura do header sticky (border-box: min-height já inclui padding) */
  --h26-header-height: 72px;
}

/* Esconde chrome legado em todas as páginas (admin não usa este include) */
body:not([id^="page-admin"]) .c-header,
body:not([id^="page-admin"]) .c-mobile-nav,
body:not([id^="page-admin"]) .contact-bar,
body:not([id^="page-admin"]) .mobile-contact-bar,
body:not([id^="page-admin"]) #navbar {
  display: none !important;
}

/* Home: header do site fica no hero; some o chrome fixo */
#page-home .h26-site-header {
  display: none !important;
}

.h26-container {
  width: min(100% - 2.5rem, var(--h26-content));
  margin-inline: auto;
}

/* —— Site header (páginas internas) —— */
.h26-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--h26-blue);
  font-family: var(--h26-font);
  height: var(--h26-header-height);
}

/* Âncoras: encaixa o topo da seção exatamente abaixo do header */
html {
  scroll-padding-top: var(--h26-header-height);
}

.h26-site-header__inner {
  width: min(100% - 2rem, var(--h26-content));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 0;
  padding: 0 0;
  box-sizing: border-box;
}

.h26-site-header__logo img {
  display: block;
  width: clamp(100px, 5.55vw, 143px);
  height: auto;
}

.h26-site-header__nav {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(0.55rem, 1.15vw, 1.65rem);
  align-items: center;
}

.h26-site-header__link {
  color: #fff;
  font-family: var(--h26-font);
  /* PSD ~25px / 2575 → ~1vw; piso 14px, teto 18px */
  font-size: clamp(0.875rem, 1vw, 1.125rem);
  font-weight: 600; /* Urbanist SemiBold */
  text-decoration: none;
  text-transform: lowercase;
  opacity: 0.92;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.h26-site-header__link:hover,
.h26-site-header__link.is-active {
  color: var(--h26-cyan);
  opacity: 1;
}

.h26-site-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.h26-site-header__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
}

.h26-site-header__mobile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1rem 1.25rem;
  background: var(--h26-blue);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.h26-site-header__mobile[hidden] {
  display: none !important;
}

.h26-site-header__mobile a {
  color: #fff;
  font-family: var(--h26-font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: lowercase;
  padding: 0.65rem 0.25rem;
}

.h26-site-header__mobile a:hover {
  color: var(--h26-cyan);
}

@media (max-width: 767px) {
  .h26-site-header__nav {
    display: none;
  }

  .h26-site-header__toggle {
    display: flex;
  }
}

/* —— Identidade 2026 nas páginas internas (tipografia + cores da home) —— */
body:not(#page-home):not([id^="page-admin"]) {
  font-family: var(--h26-font);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--h26-text);
  font-synthesis: none;
}

/* Respiro entre header sticky e título (case 2026 tem hero full-bleed) */
body:not(#page-home):not([id^="page-admin"]) main:not(#page-case-2026) {
  padding-top: clamp(1.75rem, 3.5vw, 3rem);
}

/* Remove linhas decorativas dos títulos legados */
body:not(#page-home):not([id^="page-admin"]) .with-line::before,
body:not(#page-home):not([id^="page-admin"]) .with-line::after {
  content: none !important;
  display: none !important;
}

/* Títulos de seção = Ibrand + cor da home */
body:not(#page-home):not([id^="page-admin"]) .section-title,
body:not(#page-home):not([id^="page-admin"]) .section-title strong,
body:not(#page-home):not([id^="page-admin"]) .section-title .has-light-blue-color,
body:not(#page-home):not([id^="page-admin"]) .section-title.has-light-blue-color {
  font-family: var(--h26-font-display) !important;
  font-weight: 400 !important;
  color: var(--h26-title) !important;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Subtítulos / ênfase (Urbanist ExtraBold) */
body:not(#page-home):not([id^="page-admin"]) h3.fw-800,
body:not(#page-home):not([id^="page-admin"]) .fw-800:not(.section-title):not(.section-title *) {
  font-family: var(--h26-font);
  font-weight: 800;
}

body:not(#page-home):not([id^="page-admin"]) h3 {
  color: var(--h26-ink);
}

/* Tokens de cor legado → paleta home */
body:not(#page-home):not([id^="page-admin"]) .has-main-color {
  color: var(--h26-ink) !important;
}

/* Boxes escuros (ex.: Princípios) = cinza dos cases da home */
body:not(#page-home):not([id^="page-admin"]) .has-main-color-bg {
  background-color: var(--h26-cases) !important;
}

body:not(#page-home):not([id^="page-admin"]) .has-blue-color-bg {
  background-color: var(--h26-blue) !important;
}

/* Amarelo legado → ciano da ID */
body:not(#page-home):not([id^="page-admin"]) .has-secondary-color {
  color: var(--h26-cyan) !important;
}

body:not(#page-home):not([id^="page-admin"]) .has-secondary-color-bg {
  background-color: var(--h26-cyan) !important;
}

/* Slider da equipe: thumb amarelo legado → azul da ID */
body:not(#page-home):not([id^="page-admin"]) .c-slider::-webkit-slider-thumb {
  background: var(--h26-blue);
}

body:not(#page-home):not([id^="page-admin"]) .c-slider::-moz-range-thumb {
  background: var(--h26-blue);
  border: 0;
}

/* light-blue legado fora de título → ciano (CTAs/overlays) */
body:not(#page-home):not([id^="page-admin"]) .has-light-blue-color:not(.section-title):not(.section-title *) {
  color: var(--h26-cyan) !important;
}

body:not(#page-home):not([id^="page-admin"]) .has-light-blue-color-bg {
  background-color: var(--h26-cyan) !important;
}

body:not(#page-home):not([id^="page-admin"]) .has-blue-color {
  color: var(--h26-blue) !important;
}

body:not(#page-home):not([id^="page-admin"]) .has-white-color {
  color: var(--h26-white) !important;
}

/* Formulários / inputs internos */
body:not(#page-home):not([id^="page-admin"]) input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
body:not(#page-home):not([id^="page-admin"]) textarea,
body:not(#page-home):not([id^="page-admin"]) select {
  font-family: var(--h26-font);
  color: var(--h26-ink);
}

/* Links voltar / navegação auxiliar */
body:not(#page-home):not([id^="page-admin"]) .go-back,
body:not(#page-home):not([id^="page-admin"]) .go-next {
  font-family: var(--h26-font);
  font-weight: 600;
  color: var(--h26-title);
}

body:not(#page-home):not([id^="page-admin"]) .go-back:hover,
body:not(#page-home):not([id^="page-admin"]) .go-next:hover {
  color: var(--h26-cyan);
}

/* Overlay de serviços (grade) */
body:not(#page-home):not([id^="page-admin"]) .services-grid__overlayer {
  font-family: var(--h26-font);
  font-weight: 800;
}

/* Watermark da seção branca (agência): grafismo do contato da home */
body:not(#page-home):not([id^="page-admin"]) .page-section__watermark {
  background-image: none;
  position: relative;
  isolation: isolate;
}

body:not(#page-home):not([id^="page-admin"]) .page-section__watermark::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1%;
  bottom: 0;
  width: min(28%, 280px);
  background: url("../images/home-2026/deco/contato-bars.png") right center / contain no-repeat;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

body:not(#page-home):not([id^="page-admin"]) .page-section__watermark > .container {
  position: relative;
  z-index: 1;
}

/* —— Footer compartilhado —— */
.h26-footer {
  background: var(--h26-white);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.75rem;
  font-family: var(--h26-font);
  color: var(--h26-text);
}

.h26-footer__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem 2rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.h26-footer__logo img {
  display: block;
  width: clamp(160px, 18vw, 240px);
  height: auto;
}

.h26-footer__info {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.55;
  color: var(--h26-text);
}

.h26-footer__info p {
  margin: 0;
}

.h26-footer__social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
  line-height: 0;
}

.h26-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  margin: 0;
  padding: 0;
  color: var(--h26-blue);
  line-height: 0;
  text-decoration: none;
  border-radius: 50%;
  overflow: hidden;
  vertical-align: middle;
}

.h26-footer__social-icon {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  overflow: visible;
}

.h26-footer__social a:hover {
  color: var(--h26-cyan);
}

.h26-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.35rem;
  padding: 1.1rem 1rem;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.h26-footer__nav a {
  color: var(--h26-title);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: lowercase;
}

.h26-footer__nav a:hover {
  color: var(--h26-cyan);
}

.h26-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
  font-size: 0.75rem;
  color: #888;
}

.h26-footer__legal a {
  color: #888;
  text-decoration: none;
}

.h26-footer__legal a:hover {
  color: var(--h26-title);
}

@media (max-width: 1024px) {
  .h26-footer__top {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .h26-footer__social {
    justify-content: center;
  }
}

/* —— Botões ID 2026 (igual .h26-btn da home) ——
   Páginas internas usam .cta; sobrescreve o estilo legado do main.css */
body:not(#page-home):not([id^="page-admin"]) .cta,
body:not(#page-home):not([id^="page-admin"]) .h26-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 209px;
  width: auto;
  height: 52px;
  line-height: 1.2;
  padding: 0 1.5rem;
  background: var(--h26-cyan);
  color: var(--h26-white);
  font-family: var(--h26-font);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}

body:not(#page-home):not([id^="page-admin"]) .cta:hover,
body:not(#page-home):not([id^="page-admin"]) .cta:focus-visible,
body:not(#page-home):not([id^="page-admin"]) .h26-btn:hover,
body:not(#page-home):not([id^="page-admin"]) .h26-btn:focus-visible {
  filter: brightness(1.05);
  color: var(--h26-white);
  transform: translateY(-1px);
  outline: none;
}

body:not(#page-home):not([id^="page-admin"]) .cta.cta--center {
  display: flex;
  margin-left: auto !important;
  margin-right: auto !important;
}

body:not(#page-home):not([id^="page-admin"]) .cta.cta--block,
body:not(#page-home):not([id^="page-admin"]) .h26-btn--wide {
  width: 100%;
  min-width: 0;
  height: 68px;
  font-size: 0.875rem;
}

/* Esconde footer legado quando o novo está presente */
body:not([id^="page-admin"]) .c-footer {
  display: none !important;
}

/* —— Cards de serviços (home + /servicos) —— */
.h26-services__grid {
  list-style: none;
  margin: 0 0 clamp(2rem, 3.5vw, 2.75rem);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 161px));
  justify-content: space-between;
  row-gap: clamp(2rem, 3.5vw, 3.25rem);
  column-gap: clamp(1rem, 3vw, 2rem);
}

.h26-svc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--h26-title);
  text-align: center;
  transition: transform 0.25s ease;
}

.h26-svc:hover {
  transform: translateY(-3px);
  color: var(--h26-title);
}

.h26-svc__icon {
  display: block;
  width: min(100%, 161px);
  aspect-ratio: 1;
  line-height: 0;
}

.h26-svc__icon img {
  width: 100%;
  height: auto;
  display: block;
}

.h26-svc__label {
  font-family: var(--h26-font);
  font-size: clamp(0.8rem, 0.95vw, 0.95rem);
  font-weight: 800;
  line-height: 1.25;
  max-width: 11.5em;
}

@media (max-width: 1100px) {
  .h26-services__grid {
    grid-template-columns: repeat(2, minmax(120px, 161px));
    justify-content: center;
    column-gap: clamp(2rem, 8vw, 5rem);
  }
}

@media (max-width: 420px) {
  .h26-services__grid {
    grid-template-columns: repeat(2, minmax(110px, 140px));
  }
}
