/* Visual refresh global — preserva o HTML e a estrutura editorial existentes. */
:root {
  --color-primary: #087fd4;
  --color-primary-dark: #06438f;
  --color-accent: #25c8ff;
  --color-text: #102b4e;
  --color-muted: #5b7693;
  --color-bg: #fff;
  --color-surface: #f3f8fd;
  --color-surface-2: #e7f2ff;
  --color-border: #cbdff1;
  --navy-900: #031742;
  --navy-800: #062b68;
  --navy-700: #0a4d9a;
  --header-offset: 86px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 5px 18px rgba(7, 43, 71, .055);
  --shadow-md: 0 14px 36px rgba(7, 43, 71, .10);
  --shadow-lg: 0 28px 70px rgba(7, 43, 71, .16);
  --site-ease: cubic-bezier(.2, .75, .25, 1);
}

html { scroll-padding-top: calc(var(--header-offset) + 18px); }
body:not(.admin-page) { color: var(--color-text); background: #fff; line-height: 1.68; }
/* Reserve the fixed header's measured height, including on pages with a hero. */
body:not(.admin-page):has(> .site-header) { padding-top: var(--header-offset); }
body:not(.admin-page) ::selection { color: #fff; background: #087eae; }
body:not(.admin-page) .container { max-width: 1320px; }
body:not(.admin-page) h1,
body:not(.admin-page) h2,
body:not(.admin-page) h3,
body:not(.admin-page) h4 { color: var(--navy-800); letter-spacing: -.035em; text-wrap: balance; }
body:not(.admin-page) p { text-wrap: pretty; }

/* Navegação: contraste limpo, presença institucional e toque confortável. */
.site-header { position: fixed; isolation: isolate; height: auto; background: linear-gradient(105deg, #092746 0%, #07527f 58%, #0784b3 100%); box-shadow: 0 8px 26px rgba(4, 35, 62, .12); border-bottom: 0; transition: box-shadow .35s ease; }
.site-header::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: rgba(7, 47, 78, .97); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-scrolled { box-shadow: 0 12px 32px rgba(4, 35, 62, .17); }
.site-header__inner { min-height: 86px; gap: clamp(1rem, 2vw, 2rem); }
.site-header .brand { gap: .7rem; font-size: 1rem; letter-spacing: -.025em; }
.site-header .brand__logo { width: 56px; height: 56px; filter: drop-shadow(0 4px 12px rgba(0, 10, 30, .22)); }
.primary-nav__list { gap: clamp(1.1rem, 2.15vw, 2.1rem); }
.primary-nav__link { position: relative; padding-block: .65rem; color: rgba(255,255,255,.9); font-size: .91rem; font-weight: 650; transition: color .2s ease; }
.primary-nav__link::after { content: ""; position: absolute; right: 0; bottom: .15rem; left: 0; height: 2px; border-radius: 2px; background: #71d7f0; transform: scaleX(0); transform-origin: left; transition: transform .22s var(--site-ease); }
.primary-nav__link:hover, .primary-nav__link:focus-visible { color: #fff; }
.primary-nav__link:hover::after, .primary-nav__link:focus-visible::after { transform: scaleX(1); }
.site-search__form { min-height: 44px; border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.1); backdrop-filter: blur(12px); }
.site-search__form:focus-within { border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.16); box-shadow: 0 0 0 3px rgba(255,255,255,.1); }
body:not(.admin-page) .site-search__form { display:flex; align-items:center; gap:.55rem; width:100%; padding:.18rem .35rem .18rem .8rem; border-radius:999px; }
body:not(.admin-page) .site-search__input { width:100%; min-width:0; min-height:0; padding:0; border:0; border-radius:0; outline:0; background:transparent; box-shadow:none; color:#fff; font:500 .88rem/1.2 var(--font-body); }
body:not(.admin-page) .site-search__input::placeholder { color:rgba(255,255,255,.82); }
.site-header .icon-btn { width: 42px; height: 42px; border-color: rgba(255,255,255,.3); border-radius: 12px; background: rgba(255,255,255,.08); }
.site-header .icon-btn:hover { background: rgba(255,255,255,.18); }

/* Marquee compacta: mantém o texto e a animação, reduzindo apenas a faixa vertical. */
.marquee {
  padding: 5px 0;
  border-top: 0;
  border-bottom: 0;
}

/* Aberturas de página com hierarquia editorial e recorte visual mais elegante. */
.page-hero { min-height: 370px; background: #092746; }
.page-hero__media img { opacity: .58; transform: scale(1.015); }
.page-hero__duotone { background: linear-gradient(105deg, rgba(5,25,45,.92), rgba(7,69,105,.75) 58%, rgba(7,126,174,.48)); }
.page-hero__inner { max-width: 1320px; padding: 7rem 24px 4rem; }
.page-hero__eyebrow { margin-bottom: .8rem; color: #8ee6fa; font-size: .7rem; letter-spacing: .2em; }
.page-hero__title { max-width: 18ch; margin: 0 0 .55rem; color: #fff; font-size: clamp(2.5rem, 5.4vw, 4.8rem); line-height: 1.04; letter-spacing: -.055em; }
.page-hero .page-hero__title, .page-hero .page-hero__h2, .hero .hero__title, .hero .page-hero__h2 { color: #fff; }
body:has(.blog-hub-hero) { padding-top: var(--header-offset); }
body:not(.admin-page) .blog-hub-hero #blog-title { color: #fff !important; -webkit-text-fill-color: #fff; text-shadow: 0 2px 24px rgba(0,15,30,.25); }
body.has-hero:has(.page-hero) { padding-top: var(--header-offset); }
.page-hero__subtitle { max-width: 58ch; margin: 0; color: rgba(255,255,255,.84); font-size: clamp(1rem,1.45vw,1.18rem); }
.section { padding-block: clamp(4rem, 7vw, 6.5rem); }
.section--muted { background: linear-gradient(180deg, #f4f8fb 0%, #fbfdfe 100%); }
.section__head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section__num, .section__eyebrow { color: #087eae; letter-spacing: .17em; }
.section__title { margin: 0 0 .55rem; font-size: clamp(2rem, 3.7vw, 3.25rem); line-height: 1.1; }
.section__lead { max-width: 66ch; margin: 0; color: #61788b; font-size: clamp(1rem, 1.35vw, 1.12rem); line-height: 1.75; }
.section--dark { background: radial-gradient(ellipse at 82% 0%, rgba(15,117,162,.32), transparent 45%), #081c31; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section__lead { margin-inline: auto; color: rgba(255,255,255,.84); }
body:not(.admin-page) .section--dark h1,
body:not(.admin-page) .section--dark h2,
body:not(.admin-page) .section--dark h3 { color: #fff; }

/* Ações, campos e cartões compartilham uma mesma linguagem tátil. */
body:not(.admin-page) .btn { min-height: 48px; padding: .86rem 1.35rem; border-radius: 12px; font-size: .9rem; font-weight: 700; letter-spacing: -.01em; transition: transform .2s var(--site-ease), box-shadow .2s ease, background .2s ease, border-color .2s ease; }
body:not(.admin-page) .btn:hover { transform: translateY(-2px); }
body:not(.admin-page) .btn--primary { background: linear-gradient(120deg,#087eae,#0799c4); box-shadow: 0 9px 22px rgba(8,126,174,.22); }
body:not(.admin-page) .btn--primary:hover, body:not(.admin-page) .btn--primary:focus-visible { background: linear-gradient(120deg,#07547d,#087eae); box-shadow: 0 13px 28px rgba(8,84,125,.28); }
body:not(.admin-page) .btn--outline { border-color: #9abaca; color: #0b4b70; background: #fff; }
body:not(.admin-page) .btn--outline:hover, body:not(.admin-page) .btn--outline:focus-visible { border-color: #087eae; background: #eaf6fa; color: #073953; }
body:not(.admin-page) input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not(.site-search__input),
body:not(.admin-page) select,
body:not(.admin-page) textarea { border-color: #cbdce5; border-radius: 11px; background-color: #fff; color: #173a54; }
body:not(.admin-page) input:not(.site-search__input):focus-visible, body:not(.admin-page) select:focus-visible, body:not(.admin-page) textarea:focus-visible { outline: 3px solid rgba(8,126,174,.16); border-color: #0784b3; }
body:not(.admin-page) .lead-form { padding: clamp(1.25rem, 3vw, 2.25rem); border: 1px solid #dbe8ee; border-radius: 22px; background: #fff; box-shadow: var(--shadow-md); }
body:not(.admin-page) .lead-form__field { gap: .48rem; font-size: .88rem; font-weight: 650; }
body:not(.admin-page) .lead-form__field input, body:not(.admin-page) .lead-form__field textarea { min-height: 48px; padding: .8rem .95rem; }
body:not(.admin-page) .lead-form__field textarea { min-height: 130px; }
body:not(.admin-page) .lead-form__consent { line-height: 1.55; }

/* Catálogo: cartões consistentes e páginas de produto com tratamento premium. */
.catalog-hero .page-hero__title { max-width: 17ch; }
body:has(#catalog-products) #main > .section { padding-top: clamp(1.75rem,3vw,2.75rem); }
.catalog-results { color: var(--color-text); }
#catalog-products.catalog-grid { gap: 1.15rem; }
#catalog-products .catalog-card { padding: 1rem; border-color: #dce8ee; border-radius: 18px; background: linear-gradient(180deg,#fff,#fbfdfe); box-shadow: 0 5px 20px rgba(8,44,71,.055); }
#catalog-products .catalog-card:hover { transform: translateY(-3px); border-color: #b7d7e4; box-shadow: 0 17px 34px rgba(8,44,71,.12); }
#catalog-products .catalog-card__image-link { border: 1px solid #edf2f5; border-radius: 13px; background: linear-gradient(145deg,#f8fbfc,#eef5f8); }
#catalog-products .catalog-card__image { padding: 8px; }
#catalog-products .catalog-card__tag { color: #087eae; font-size: .66rem; letter-spacing: .12em; }
#catalog-products .catalog-card h2 { color: #0b2c49; font-size: clamp(.88rem, .98vw, .98rem); letter-spacing: -.025em; }
#catalog-products .catalog-card .catalog-card__description { color: #657b8b; }
#catalog-products .catalog-card__link { display: inline-flex; align-items: center; gap: .4rem; padding-top: .72rem; color: #087eae; font-size: .82rem; font-weight: 750; }
.catalog-filters { border-color: #dce8ee; border-radius: 18px; background: #f7fafc; box-shadow: 0 4px 16px rgba(8,44,71,.035); }
.catalog-filters select { border-color: #cbdce5; border-radius: 10px; }
.catalog-results__toolbar { padding-block: .2rem .8rem; }
.catalog-results__toolbar p { color: #657b8b; font-size: .9rem; }
.catalog-product { padding-top: clamp(3rem,5vw,5rem); padding-bottom: clamp(3rem,5vw,5rem); background: radial-gradient(ellipse at 0 12%, #edf7fa 0, transparent 47%); }
.catalog-product__hero { max-width: 1180px; gap: clamp(2.25rem,6vw,5.5rem); }
.catalog-product__hero figure { padding: clamp(.7rem,2vw,1.35rem); border: 1px solid #e1ebf0; border-radius: 24px; background: linear-gradient(145deg,#fff,#f5f9fb); box-shadow: var(--shadow-md); }
.catalog-product__hero figure>img { max-height: min(58vw,540px); border-radius: 16px; background: radial-gradient(ellipse,#fff,#f1f6f8); }
.catalog-product__hero .section__num { margin-bottom: .75rem; }
.catalog-product__hero .section__title { margin-bottom: 1rem; font-size: clamp(2.1rem,4vw,3.5rem); }
.catalog-product__hero .section__lead { margin-bottom: 1.25rem; }
.catalog-product__hero .btn { margin-top: .4rem; }
.catalog-detail { max-width: 1080px; }
.catalog-detail>h2 { margin: 0 0 1.25rem; font-size: clamp(1.8rem,3.2vw,2.6rem); }
.catalog-tabs { gap: .5rem; margin: 1.3rem 0 1rem; padding-bottom: .9rem; border-bottom: 1px solid #dbe7ed; }
.catalog-tabs button { min-height: 42px; padding: .7rem 1rem; border-color: #c9dce6; border-radius: 10px; background: #fff; color: #37566d; font-size: .84rem; transition: .18s ease; }
.catalog-tabs button.is-active, .catalog-tabs button:hover, .catalog-tabs button:focus-visible { border-color: #087eae; background: #087eae; color: #fff; box-shadow: 0 5px 14px rgba(8,126,174,.18); }
.catalog-tab-panel { padding: clamp(1.15rem,3vw,2rem); border-color: #dce8ee; border-radius: 18px; box-shadow: var(--shadow-sm); }
.catalog-tab-panel h3 { margin: .25rem 0 .8rem; font-size: 1.28rem; }
.catalog-tab-panel h3:not(:first-child) { margin-top: 1.7rem; }
.catalog-tab-panel .cdi-rich-content { color: #405b70; }
.catalog-tab-panel .cdi-rich-content table { display: block; overflow-x: auto; border-radius: 10px; }
.catalog-tab-panel .cdi-rich-content th { background: #f1f8fb; color: #123c58; }
.catalog-model-image { border: 1px solid #e0eaf0; box-shadow: var(--shadow-sm); }

/* Blog, páginas institucionais e rodapé. */
.article__body, .cdi-rich-content { color: #304c63; }
.article__header--hub .article__title { color: #fff; }
.article__body h2, .article__body h3 { color: #0b2c49; letter-spacing: -.03em; }
.article__figure img, .blog-card img, .blog-hub__featured img { border-radius: 16px; }
.about-pillar, .card, .feature-card { border-color: #dce8ee; border-radius: 18px; box-shadow: 0 8px 24px rgba(8,44,71,.06); }
.about-pillar { padding: clamp(1.2rem,2.4vw,1.8rem); background: linear-gradient(155deg,#fff,#f8fbfc); transition: transform .22s var(--site-ease), box-shadow .22s ease; }
.about-pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.about-pillar h3 { margin: 1rem 0 .55rem; font-size: 1.15rem; }
.about-pillar p { color: #61788b; }
.site-footer { padding: 4.5rem 0 1.75rem; background: radial-gradient(ellipse at 88% 0%,rgba(8,126,174,.2),transparent 42%),#081c31; }
.site-footer h3.site-footer__title { color: #8ee6fa; }
.site-footer__grid { gap: clamp(1.5rem,4vw,3rem); }
.site-footer__title { color: #72d9f1; letter-spacing: .13em; }
.site-footer__list { color: rgba(255,255,255,.78); }
.site-footer__list a { transition: color .18s ease; }
.site-footer__list a:hover { color: #8ee6fa; }
.site-footer__social a { border-radius: 10px; }
.site-footer__bottom { margin-top: 2.75rem; border-color: rgba(255,255,255,.14); }

@media (max-width: 959px) {
  :root { --header-offset: 76px; }
  .site-header__inner { min-height: 76px; }
  .site-header .brand__logo { width: 50px; height: 50px; }
  .site-header .nav-toggle { border-radius: 11px; box-shadow: 0 3px 10px rgba(2,25,45,.1); }
  .primary-nav { inset-block-start: var(--header-offset); border-bottom: 0; box-shadow: none; }
  .primary-nav.is-open { box-shadow: 0 18px 32px rgba(7,43,71,.12); }
  .primary-nav__list { padding: .65rem 22px 1.3rem; }
  .primary-nav__link { min-height: 48px; color: #123c58; }
  .primary-nav__link::after { display: none; }
  .site-search.is-open .site-search__form { min-height: 48px; border-color: #c9e3f1; background: #fff; color: var(--navy-800); box-shadow: 0 10px 26px rgba(0,29,63,.16); }
  body:not(.admin-page) .site-search.is-open .site-search__input { color: var(--navy-800); font-size: .95rem; }
  body:not(.admin-page) .site-search.is-open .site-search__input::placeholder { color: #58758f; }
  .site-search.is-open .site-search__icon, .site-search.is-open .site-search__clear { color: var(--navy-800); }
  .page-hero { min-height: 330px; }
  .page-hero__inner { padding: 6.3rem 24px 3.4rem; }
  .catalog-product__hero { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
}
@media (max-width: 760px) {
  .section { padding-block: 3.75rem; }
  .page-hero { min-height: 310px; }
  .page-hero__inner { padding: 5.8rem 20px 3rem; }
  .page-hero__title { max-width: 19ch; font-size: clamp(2.1rem,8vw,3.6rem); }
  .page-hero__subtitle { font-size: 1rem; }
  .section__head { margin-bottom: 2.1rem; }
  .catalog-product__hero { grid-template-columns: 1fr; gap: 1.6rem; }
  .catalog-product__hero figure { max-width: 620px; width: 100%; margin-inline: auto; }
  .catalog-product__hero figure>img { max-height: none; }
  .catalog-product__hero .section__title { font-size: clamp(2rem,7vw,3rem); }
  .site-footer { padding-top: 3.5rem; }
}
@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .page-hero { min-height: 285px; }
  .page-hero__inner { padding: 5.2rem 18px 2.6rem; }
  .page-hero__eyebrow { font-size: .64rem; letter-spacing: .15em; }
  .section__title { font-size: clamp(1.8rem,8vw,2.4rem); }
  .catalog-product { padding-block: 2.4rem 3rem; }
  .catalog-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .catalog-tabs button { width: 100%; min-height: 44px; padding-inline: .6rem; line-height: 1.25; }
  .catalog-tab-panel { padding: 1rem; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .site-footer__bottom { margin-top: 2rem; padding-top: 1.2rem; }
  body:not(.admin-page) .lead-form { padding: 1rem; border-radius: 16px; }
  body:not(.admin-page) .btn { min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.admin-page) *, body:not(.admin-page) *::before, body:not(.admin-page) *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Na tela estreita, a leitura começa pelo título e revela a imagem antes do texto. */
@media (max-width: 820px) {
  .authority-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .authority-copy { display: contents; }
  .authority-copy > .section__num { order: 1; }
  .authority-copy > h2 { order: 2; }
  .authority-media { order: 3; }
  .authority-copy > p:not(.section__num) { order: 4; }
  .authority-copy > .authority-list { order: 5; }
  .authority-copy > .btn { order: 6; }
}

/* Paleta institucional baseada nos azuis dos banners oficiais. */
body:not(.admin-page) ::selection { background: #087fd4; }
.site-header {
  background: linear-gradient(105deg, #031742 0%, #063d84 56%, #078fc9 100%);
}
.site-header::before { background: rgba(2, 20, 62, .97); }
.site-search__form { border-color: rgba(111, 210, 255, .42); background: rgba(2, 42, 91, .34); }
.site-search__form:focus-within { border-color: rgba(150, 231, 255, .9); background: rgba(2, 55, 114, .5); }
.primary-nav__link::after { background: #25c8ff; }
.page-hero { background: #031742; }
.page-hero__duotone { background: linear-gradient(105deg, rgba(2,18,58,.94), rgba(3,57,125,.78) 58%, rgba(0,145,211,.48)); }
.section--dark { background: radial-gradient(ellipse at 82% 0%, rgba(0,121,218,.36), transparent 45%), #031742; }
body:not(.admin-page) .btn--primary { background: linear-gradient(120deg, #087fd4, #08b5e6); box-shadow: 0 9px 22px rgba(0,126,220,.25); }
body:not(.admin-page) .btn--primary:hover,
body:not(.admin-page) .btn--primary:focus-visible { background: linear-gradient(120deg, #06438f, #087fd4); box-shadow: 0 13px 28px rgba(3,55,126,.3); }
body:not(.admin-page) .btn--outline:hover,
body:not(.admin-page) .btn--outline:focus-visible { border-color: #087fd4; background: #e6f4ff; color: #062b68; }
.section__num, .section__eyebrow { color: #087fd4; }
.section__num { color: #006a99; }
.section--dark .section__eyebrow { color: #62dcff; }
.marquee { background: #e9f6ff; }
.marquee__item { color: #062b68; }
.marquee__dot { background: #25c8ff; }
.catalog-filters { background: #f3f8fd; border-color: #cbdff1; }
#catalog-products .catalog-card__tag,
#catalog-products .catalog-card__link { color: #087fd4; }
.catalog-tabs button.is-active, .catalog-tabs button:hover, .catalog-tabs button:focus-visible { border-color: #087fd4; background: #087fd4; }
.site-footer { background: radial-gradient(ellipse at 88% 0%, rgba(0,121,218,.26), transparent 42%), #031742; }
.site-footer h3.site-footer__title { color: #62dcff; }

/* Imagens editoriais preenchem o quadro sem deformar a proporção original. */
body:not(.admin-page) .card--article > .card__image {
  display: block;
  width: 100%;
  height: clamp(220px, 20vw, 280px);
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

/* WhatsApp: tamanho-base único, com escala proporcional no mobile. */
body:not(.admin-page) {
  --wa-size-base: 46px;
  --wa-icon-size-base: 30px;
  --wa-mobile-scale: .8;
  --wa-intro-scale: 2.6;
  --wa-size: var(--wa-size-base);
  --wa-icon-size: var(--wa-icon-size-base);
}

/* Entrada de destaque: o botão parte do centro e o fundo recebe uma camada suave. */
body:not(.admin-page)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background: rgba(3, 23, 66, .46);
  opacity: 0;
  transition: opacity 1.35s ease;
}

body.wa-intro-active::before {
  opacity: 1;
}

body:not(.admin-page) .wa-float {
  transform-origin: bottom right;
  transition: transform 1.35s cubic-bezier(.16, 1, .3, 1), box-shadow .55s ease;
}

body:not(.admin-page) .wa-float.is-intro {
  transform: scale(var(--wa-intro-scale)) !important;
  box-shadow: 0 24px 70px rgba(37, 211, 102, .72), 0 0 0 3px rgba(255, 255, 255, .72) !important;
}

@media (max-width: 959px) {
  body:not(.admin-page) {
    --wa-size: calc(var(--wa-size-base) * var(--wa-mobile-scale));
    --wa-icon-size: calc(var(--wa-icon-size-base) * var(--wa-mobile-scale));
    --wa-intro-scale: 1.9;
  }
}
