/*!
 * Hidrart · site.css
 * 1. Fontes  2. Tokens  3. Base  4. Utilitários  5. Botões  6. Topbar e cabeçalho
 * 7. Mega menu  8. Drawer  9. Breadcrumbs  10. Rodapé  11. WhatsApp  12. Barra mobile
 * 13. Páginas (404, provisória)  14. Acessibilidade e movimento
 * Plus Jakarta Sans: SIL Open Font License 1.1 (assets/fonts/LICENSE-OFL.txt).
 */

/* 1. Fontes ---------------------------------------------------------------- */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-800.woff2") format("woff2"); }
/* Fallback com métricas próximas para reduzir CLS na troca de fonte */
@font-face { font-family: "Jakarta Fallback"; src: local("Arial"); size-adjust: 104%; ascent-override: 94%; descent-override: 24%; line-gap-override: 0%; }

/* 2. Tokens ---------------------------------------------------------------- */
:root {
  /* Marca (Fase 0: cores oficiais da logo + laranja de apoio AA) */
  --c-blue: #14387F;
  --c-blue-dark: #0E2A61;
  --c-orange: #E84E0F;          /* superfícies, ícones, texto grande */
  --c-orange-ink: #C6430D;      /* botões com texto branco, links e texto laranja pequeno (AA) */
  --c-orange-hover: #A9390B;
  --c-orange-soft: #FDE3D7;
  --c-orange-tint: #FEEEE7;

  /* Texto e superfícies */
  --c-text: #2D2D2D;
  --c-text-muted: #5C5C5C;
  --c-white: #FFFFFF;
  --c-surface-alt: #F4F4F4;
  --c-border: #E8E8E8;
  --c-border-strong: #C9C9C9;
  --c-on-blue: #D3DDF0;         /* texto sobre o azul (8,1:1) */
  --c-on-blue-muted: #B3C2E0;   /* 6,2:1 */
  --c-on-blue-faint: #9FB2D9;   /* 5,2:1 */

  /* Estados */
  --c-wa: #1E7B3C;              /* verde de botão (5,3:1 com branco) */
  --c-wa-hover: #176531;
  --c-wa-brand: #25D366;        /* só o botão flutuante (ícone grande) */
  --c-wa-soft: #E7F4EA;
  --c-success-soft: #E7F5EC;
  --c-error: #B42318;
  --c-online: #4ADE80;

  /* Tipografia */
  --font-sans: "Plus Jakarta Sans", "Jakarta Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: .8125rem;   /* 13 */
  --fs-sm: .875rem;    /* 14 */
  --fs-base: 1rem;     /* 16 */
  --fs-md: 1.0625rem;  /* 17 */
  --fs-lg: 1.375rem;   /* 22 */
  --fs-h1: clamp(2rem, 5.6vw, 3.625rem);
  --fs-h2: clamp(1.625rem, 3.4vw, 2.5rem);
  --fs-h2-home: clamp(1.75rem, 3.8vw, 2.75rem);

  /* Espaçamento (escala de 4 px) */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.25rem;
  --sp-6: 1.5rem; --sp-8: 2rem; --sp-10: 2.5rem; --sp-12: 3rem; --sp-14: 3.5rem;
  --section-y: clamp(4.5rem, 9vw, 7rem);
  --gutter: 1.25rem;
  --container: 80rem;      /* 1280 */
  --container-md: 77.5rem; /* 1240 */
  --container-sm: 45rem;   /* 720 */

  /* Raios e sombras */
  --r-sm: 6px; --r-btn: 7px; --r-card: 8px; --r-lg: 12px; --r-xl: 14px; --r-pill: 999px;
  --shadow-card: 0 30px 60px -30px rgba(20, 56, 127, .32);
  --shadow-pop: 0 24px 60px -20px rgba(25, 25, 25, .35);

  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 3. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--font-sans); font-size: var(--fs-base); line-height: 1.55; color: var(--c-text); background: var(--c-white); -webkit-font-smoothing: antialiased; text-wrap: pretty; }
main { flex: 1; outline: none; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; line-height: 1.2; letter-spacing: -.01em; color: var(--c-blue); }
p { margin: 0; }
a { color: var(--c-blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--c-orange-ink); }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
button { font: inherit; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--c-orange-ink); outline-offset: 2px; border-radius: 4px; }
.on-blue :focus-visible { outline-color: var(--c-white); }
::selection { background: var(--c-orange-ink); color: var(--c-white); }
.ico { width: 1em; height: 1em; flex: 0 0 auto; display: inline-block; vertical-align: -.125em; fill: currentColor; }

/* 4. Utilitários ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-md { max-width: var(--container-md); }
.container-sm { max-width: var(--container-sm); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.eyebrow { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-orange-ink); }
.on-blue .eyebrow { color: var(--c-orange-soft); }
.muted { color: var(--c-text-muted); }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 200; padding: 12px 18px; background: var(--c-blue); color: var(--c-white); border: 2px solid var(--c-white); border-radius: var(--r-btn); font-weight: 600; font-size: 15px; transform: translateY(-160%); transition: transform .15s; }
.skip-link:focus { transform: translateY(0); color: var(--c-white); }

/* 5. Botões ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 1.5px solid transparent; border-radius: var(--r-btn); font-weight: 600; font-size: 15px; line-height: 1.2; letter-spacing: -.005em; text-align: center; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--c-orange-ink); color: var(--c-white); }
.btn-primary:hover { background: var(--c-orange-hover); color: var(--c-white); box-shadow: 0 8px 20px rgba(198, 67, 13, .3); }
.btn-secondary { background: var(--c-blue); color: var(--c-white); }
.btn-secondary:hover { background: var(--c-blue-dark); color: var(--c-white); }
.btn-outline { background: var(--c-white); color: var(--c-blue); border-color: var(--c-border-strong); }
.btn-outline:hover { background: var(--c-surface-alt); color: var(--c-blue); border-color: var(--c-blue); }
.btn-ghost-light { background: transparent; color: var(--c-white); border-color: rgba(255, 255, 255, .3); }
.btn-ghost-light:hover { border-color: var(--c-white); color: var(--c-white); }
.btn-wa { background: var(--c-wa); color: var(--c-white); font-weight: 700; }
.btn-wa:hover { background: var(--c-wa-hover); color: var(--c-white); }
.btn-block { display: flex; width: 100%; }
.btn-lg { min-height: 52px; font-size: 16px; }
.btn .ico { font-size: 1.1em; }
.btn-icon { width: 42px; height: 42px; min-height: 0; padding: 0; border: 1px solid var(--c-border); border-radius: var(--r-btn); background: transparent; color: var(--c-blue); display: inline-flex; align-items: center; justify-content: center; }
.btn-icon:hover { border-color: var(--c-orange-ink); color: var(--c-orange-ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--c-orange-ink); min-height: 44px; }
.link-arrow .ico { font-size: 12px; transition: transform .15s ease; }
.link-arrow:hover .ico { transform: translateX(3px); }

/* 6. Topbar e cabeçalho ---------------------------------------------------- */
.topbar { background: var(--c-blue); color: var(--c-on-blue); font-size: var(--fs-xs); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 9px; flex-wrap: wrap; }
.topbar__msg { min-height: 20px; display: flex; align-items: center; gap: 10px; flex: 1 1 300px; overflow: hidden; }
.topbar__msg .ico { color: var(--c-orange); font-size: 12px; }
.topbar__phrase { display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__phrase.is-in { animation: fadeIn .5s ease; }
.topbar__right { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.topbar__phone { color: var(--c-white); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.topbar__phone .ico { color: var(--c-orange); font-size: 12px; }
.topbar__phone:hover { color: var(--c-orange-soft); }
.topbar__social { display: flex; align-items: center; gap: 10px; padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .14); }
.topbar__social:first-child { padding-left: 0; border-left: 0; }
.topbar__social a { color: var(--c-on-blue); width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 12px; }
.topbar__social a:hover { background: var(--c-orange-ink); color: var(--c-white); }
@media (max-width: 719px) { .topbar__right { display: none; } }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid rgba(230, 232, 236, .7); }
.site-header__inner { display: flex; align-items: center; gap: 24px; padding-block: 14px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 162px; height: 42px; }
@media (max-width: 380px) { .brand img { width: 139px; height: 36px; } }
.nav-desktop { display: none; flex: 1; justify-content: center; }
.nav-desktop > ul { display: flex; gap: 4px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-desktop li { position: relative; display: flex; align-items: center; }
.nav-link { padding: 10px 14px; border-radius: var(--r-sm); font-size: 15px; font-weight: 500; color: var(--c-text); display: inline-flex; align-items: center; gap: 6px; }
.nav-link[aria-current="page"], .nav-link.is-active { color: var(--c-orange-ink); }
.nav-toggle { margin-left: -10px; width: 28px; height: 32px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--c-text-muted); border-radius: var(--r-sm); font-size: 11px; }
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] { color: var(--c-orange-ink); }
.nav-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
.header-actions { display: none; align-items: center; gap: 10px; flex: 0 0 auto; }
.btn-burger { margin-left: auto; font-size: 18px; }
@media (min-width: 960px) {
  .nav-desktop, .header-actions { display: flex; }
  .btn-burger { display: none; }
}
/* Entre 960 e 1099 px o menu completo não cabia (rolagem horizontal perto de 960 px): versão compacta */
@media (min-width: 960px) and (max-width: 1099px) {
  .site-header__inner { gap: 12px; }
  .nav-desktop { min-width: 0; }
  .nav-link { padding: 10px 8px; font-size: 14px; }
  .header-actions .btn { padding-inline: 14px; }
}
/* Sem JS: o menu desktop vira uma faixa rolável no mobile e o hambúrguer some. */
.no-js .btn-burger { display: none; }
@media (max-width: 959px) {
  .no-js .nav-desktop { display: flex; order: 3; flex-basis: 100%; overflow-x: auto; justify-content: flex-start; }
  .no-js .site-header__inner { flex-wrap: wrap; }
  .no-js .nav-toggle { display: none; }
}

/* 7. Mega menu ------------------------------------------------------------- */
.mega { position: absolute; top: 100%; left: 0; right: 0; background: var(--c-white); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); box-shadow: 0 28px 48px -24px rgba(20, 56, 127, .25); animation: megaIn .22s var(--ease); }
.mega[hidden] { display: none; }
.mega__inner { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 32px; padding-block: 28px 32px; }
.mega__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.mega__label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-muted); }
.mega__all { font-size: var(--fs-sm); font-weight: 600; color: var(--c-orange-ink); display: inline-flex; align-items: center; gap: 6px; }
.mega__all .ico { font-size: 12px; }
.mega__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.mega-card { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border: 1px solid var(--c-border); border-radius: var(--r-card); color: var(--c-text); transition: border-color .18s ease, background-color .18s ease, transform .18s ease; height: 100%; }
.mega-card:hover { border-color: var(--c-orange); background: var(--c-surface-alt); transform: translateY(-2px); color: var(--c-text); }
.icon-tile { flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--r-btn); background: var(--c-orange-soft); color: var(--c-orange); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.mega-card__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mega-card__title { font-size: var(--fs-base); font-weight: 600; color: var(--c-blue); }
.mega-card__desc { font-size: var(--fs-sm); color: var(--c-text-muted); line-height: 1.45; }
.help-card { background: var(--c-blue); color: var(--c-white); border-radius: var(--r-card); padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.help-card h3 { margin: 6px 0 8px; font-size: var(--fs-lg); font-weight: 700; line-height: 1.25; color: var(--c-white); }
.help-card p { font-size: 15px; color: var(--c-on-blue); }
.help-card__actions { display: flex; flex-direction: column; gap: 10px; }
.help-card__phone .ico { color: var(--c-orange); font-size: 12px; }

/* 8. Drawer mobile --------------------------------------------------------- */
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(360px, 90vw); max-width: none; height: 100%; max-height: none; padding: 0; border: 0; background: var(--c-white); box-shadow: -20px 0 48px rgba(25, 25, 25, .18); display: flex; flex-direction: column; color: var(--c-text); }
.drawer:not([open]) { display: none; }
.drawer[open] { animation: slideInRight .25s var(--ease); }
.drawer::backdrop { background: rgba(25, 25, 25, .45); animation: fadeIn .2s ease; }
.drawer__head { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--c-border); }
.drawer__head img { width: 124px; height: 32px; }
.drawer__close { width: 44px; height: 44px; font-size: 18px; }
.drawer__nav { flex: 1; overflow-y: auto; padding: 12px 12px 24px; }
.drawer__nav > ul { list-style: none; margin: 0; padding: 0; }
.drawer__item { margin-bottom: 2px; }
.drawer__row { display: flex; align-items: stretch; border-radius: var(--r-btn); overflow: hidden; }
.drawer__row:hover { background: var(--c-surface-alt); }
.drawer__link { flex: 1; padding: 14px; font-weight: 600; color: var(--c-text); font-size: var(--fs-base); min-height: 48px; }
.drawer__link[aria-current="page"] { color: var(--c-orange-ink); }
.drawer__expand { padding: 0 16px; background: transparent; border: 0; border-left: 1px solid var(--c-border); color: var(--c-text-muted); min-width: 48px; }
.drawer__expand[aria-expanded="true"] .ico { transform: rotate(180deg); }
.drawer__sub { padding: 4px 0 8px 14px; }
.drawer__sub[hidden] { display: none; }
.drawer__sub > ul { list-style: none; margin: 0; padding: 0; }
.drawer__sublink { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 15px; color: var(--c-text); min-height: 44px; }
.drawer__sublink .ico { color: var(--c-orange); width: 14px; font-size: 12px; }
.drawer__sublink:hover { background: var(--c-surface-alt); color: var(--c-blue); }
.drawer__banner { margin: 10px 0 4px; background: var(--c-blue); color: var(--c-white); border-radius: var(--r-card); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.drawer__banner .eyebrow { font-size: 11px; margin-bottom: 6px; display: block; }
.drawer__banner strong { display: block; font-size: var(--fs-md); line-height: 1.3; }
.drawer__foot { padding: 16px 20px; border-top: 1px solid var(--c-border); display: flex; flex-direction: column; gap: 12px; }
.contact-card { border: 1px solid var(--c-border); border-radius: var(--r-card); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.contact-card__head { display: flex; align-items: center; gap: 12px; }
.contact-card__icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--r-btn); background: var(--c-wa-soft); color: var(--c-wa); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.contact-card__icon.is-form { background: var(--c-orange-tint); color: var(--c-orange-ink); }
.contact-card__title { font-size: var(--fs-base); font-weight: 700; color: var(--c-blue); line-height: 1.3; }
.contact-card__desc { font-size: var(--fs-sm); color: var(--c-text-muted); }
html.drawer-open { overflow: hidden; }

/* 9. Breadcrumbs ----------------------------------------------------------- */
.breadcrumbs { padding-block: 20px; font-size: 13.5px; color: var(--c-text-muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; align-items: center; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs a { color: var(--c-text-muted); font-weight: 500; }
.breadcrumbs a:hover { color: var(--c-orange-ink); }
.breadcrumbs [aria-current="page"] { color: var(--c-blue); font-weight: 600; }
.breadcrumbs .ico { font-size: 10px; color: var(--c-border-strong); }

/* 10. Rodapé --------------------------------------------------------------- */
.site-footer { background: var(--c-blue); color: var(--c-on-blue); margin-top: auto; }
.site-footer a { color: var(--c-on-blue); }
.site-footer a:hover { color: var(--c-white); text-decoration: underline; text-decoration-color: var(--c-orange); text-underline-offset: 3px; }
.site-footer__inner { padding-block: 56px 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.footer-brand img { width: 170px; height: 44px; margin-bottom: 16px; }
.footer-brand p { color: var(--c-on-blue-muted); font-size: var(--fs-sm); line-height: 1.65; margin-bottom: 20px; }
/* Desktop: mais altura; marca + bio em 40% com respiro, demais colunas em 20% */
@media (min-width: 1024px) {
  .site-footer__inner { padding-block: 88px 28px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
  .footer-brand { max-width: 380px; }
  .site-footer .footer-seals { margin-top: 64px; }
  .site-footer .footer-bottom { margin-top: 40px; }
}
.footer-social { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; }
.footer-social a { width: 40px; height: 40px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .08); color: var(--c-white); display: inline-flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--c-orange-ink); text-decoration: none; }
.footer-social .is-soon { width: 40px; height: 40px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .08); color: var(--c-white); display: inline-flex; align-items: center; justify-content: center; cursor: default; }
.footer-review { margin: 14px 0 0; font-size: 14px; }
.footer-review a { color: var(--c-white); display: inline-flex; align-items: center; gap: 8px; text-underline-offset: 3px; }
.footer-review .ico { color: #FFC24B; }
.footer-col h2 { color: var(--c-white); font-size: 15px; font-weight: 600; margin: 0 0 16px; letter-spacing: .02em; text-transform: uppercase; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: var(--fs-sm); }
.footer-col li a { display: inline-block; padding-block: 2px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ico { color: var(--c-orange); margin-top: 3px; }
.footer-seals { margin-top: 40px; padding: 20px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; list-style: none; }
.footer-seals li { display: flex; align-items: center; gap: 10px; color: var(--c-on-blue); font-size: var(--fs-xs); }
.footer-seals .ico { color: var(--c-orange); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; font-size: var(--fs-xs); color: var(--c-on-blue-faint); }
.footer-bottom a { color: var(--c-on-blue-faint); }
.footer-bottom .credit { color: var(--c-white); font-weight: 600; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }

/* 11. WhatsApp: botão flutuante e conversa --------------------------------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 64px; height: 64px; border-radius: 50%; background: var(--c-wa-brand); color: var(--c-white); border: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 32px; box-shadow: 0 10px 24px rgba(37, 211, 102, .4); transition: opacity .2s, transform .2s; isolation: isolate; }
.wa-float:hover { transform: scale(1.06); color: var(--c-white); }
.wa-float.is-form { font-size: 26px; } /* sem número: mesmo verde do WhatsApp, ícone de conversa (a pedido da RD, 13/11/2026) */
.wa-float::before, .wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; z-index: -1; pointer-events: none; animation: waPulse 2.4s cubic-bezier(.2, .6, .3, 1) infinite; }
.wa-float::after { animation-delay: 1.2s; }
.wa-float .ico-close { display: none; font-size: 26px; }
.wa-float[aria-expanded="true"] .ico-open { display: none; }
.wa-float[aria-expanded="true"] .ico-close { display: inline-block; }
.wa-float[aria-expanded="true"]::before, .wa-float[aria-expanded="true"]::after { animation: none; display: none; }

.wa-chat { position: fixed; right: 20px; bottom: 100px; z-index: 71; width: 360px; max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); background: #EFEAE2; border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 24px 60px -12px rgba(20, 56, 127, .35), 0 4px 14px rgba(25, 25, 25, .12); display: flex; flex-direction: column; animation: waChatIn .28s var(--ease); }
.wa-chat[hidden] { display: none; }
.wa-chat__head { background: var(--c-wa); color: var(--c-white); padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.wa-avatar { position: relative; width: 42px; height: 42px; border-radius: 50%; background: var(--c-white); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.wa-avatar img { width: 26px; height: 26px; }
.wa-avatar__dot { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--c-online); border: 2px solid var(--c-wa); }
.wa-avatar__dot[hidden] { display: none; }
.wa-chat__title { font-weight: 700; font-size: var(--fs-base); }
.wa-chat__status { font-size: var(--fs-xs); opacity: .92; }
.wa-chat__close { margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--c-white); font-size: 18px; display: inline-flex; align-items: center; justify-content: center; }
.wa-chat__close:hover { background: rgba(255, 255, 255, .15); }
.wa-chat__body { padding: 18px 14px 12px; display: flex; flex-direction: column; gap: 8px; min-height: 0; flex: 1 1 auto; overflow-y: auto; }
.wa-bubble { align-self: flex-start; max-width: 85%; background: var(--c-white); color: var(--c-text); border-radius: 10px; padding: 9px 12px 8px; font-size: 14.5px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.wa-bubble:first-child { border-top-left-radius: 0; }
.wa-typing { display: inline-flex; gap: 5px; padding: 12px 14px; }
.wa-typing span { width: 7px; height: 7px; border-radius: 50%; background: #8A8F94; animation: waDot 1.2s infinite; }
.wa-typing span:nth-child(2) { animation-delay: .2s; }
.wa-typing span:nth-child(3) { animation-delay: .4s; }
.wa-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.wa-topic { min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid #CFE3D5; background: var(--c-white); color: var(--c-wa); font-size: 13.5px; font-weight: 600; }
.wa-topic:hover { border-color: var(--c-wa); }
.wa-topic[aria-pressed="true"] { background: #DCF8C6; border-color: var(--c-wa); }
.wa-chat__foot { background: #F0F2F5; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.wa-chat__foot textarea { width: 100%; resize: none; border: 1px solid transparent; border-radius: 10px; background: var(--c-white); padding: 10px 12px; font-size: 14.5px; line-height: 1.45; }
.wa-chat__foot textarea:focus-visible { border-color: var(--c-wa); outline-offset: 0; }
.wa-chat__note { font-size: 12.5px; color: var(--c-text-muted); text-align: center; }

/* 12. Barra fixa mobile ---------------------------------------------------- */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 72; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--c-border); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; box-shadow: 0 -10px 30px -12px rgba(25, 25, 25, .25); transform: translateY(110%); transition: transform .3s var(--ease); }
.mbar.is-visible { transform: translateY(0); }
.mbar .btn { flex: 1; min-height: 50px; font-weight: 700; font-size: var(--fs-base); }
@media (min-width: 960px) { .mbar { display: none; } }
@media (max-width: 959px) {
  body.mbar-on .wa-float { opacity: 0; pointer-events: none; transform: scale(.8); }
  body.mbar-on { padding-bottom: 72px; }
}

/* 13. Páginas -------------------------------------------------------------- */
.page-404 { padding: 80px 0 100px; text-align: center; }
.page-404__code { font-size: clamp(80px, 15vw, 160px); font-weight: 800; color: var(--c-blue); line-height: 1; letter-spacing: -.04em; margin: 0 0 10px; display: flex; align-items: center; justify-content: center; gap: .04em; }
.page-404__code span { color: var(--c-orange); }
.page-404 h1 { font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.page-404__lead { color: var(--c-text-muted); font-size: 16.5px; margin-bottom: 32px; }
.search-field { position: relative; max-width: 460px; margin: 0 auto 20px; display: flex; gap: 8px; }
.search-field .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--c-text-muted); }
.search-field input { flex: 1; min-width: 0; padding: 14px 16px 14px 44px; border: 1px solid #8C8C8C; border-radius: var(--r-card); background: var(--c-white); font-size: 15px; }
.search-field .btn { min-height: 0; }
.btn-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.cat-nav { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--c-border); }
.cat-nav__title { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-muted); margin-bottom: 16px; }
.cat-nav ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.cat-tile { min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px 12px; border: 1px solid var(--c-border); border-radius: 10px; color: var(--c-blue); font-weight: 600; font-size: 14.5px; background: var(--c-white); }
.cat-tile .ico { color: var(--c-orange); font-size: 20px; }
.cat-tile:hover { border-color: var(--c-orange); color: var(--c-blue); }

.page-temp { padding-block: var(--section-y); }
.page-temp h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -.02em; margin: 12px 0 16px; max-width: 18ch; }
.page-temp p { font-size: var(--fs-md); color: var(--c-text-muted); max-width: 60ch; }
.page-temp .btn-row { justify-content: flex-start; margin-top: 28px; }

.sg-section { padding-block: 40px; border-top: 1px solid var(--c-border); }
.sg-section h2 { font-size: var(--fs-lg); margin-bottom: 20px; }
.sg-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.sg-swatch { border: 1px solid var(--c-border); border-radius: var(--r-card); overflow: hidden; font-size: var(--fs-xs); }
.sg-swatch__color { height: 64px; }
.sg-swatch__meta { padding: 8px 10px; display: flex; flex-direction: column; }
.sg-swatch__meta code { font-size: 12px; color: var(--c-text-muted); }
.sg-blue-box { background: var(--c-blue); color: var(--c-white); padding: 28px; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.sg-blue-box h3 { color: var(--c-white); font-size: var(--fs-lg); }
.sg-blue-box p { color: var(--c-on-blue); }
.sw-blue { background: var(--c-blue); } .sw-blue-dark { background: var(--c-blue-dark); }
.sw-orange { background: var(--c-orange); } .sw-orange-ink { background: var(--c-orange-ink); } .sw-orange-hover { background: var(--c-orange-hover); }
.sw-orange-soft { background: var(--c-orange-soft); } .sw-text { background: var(--c-text); } .sw-muted { background: var(--c-text-muted); }
.sw-alt { background: var(--c-surface-alt); } .sw-border { background: var(--c-border); } .sw-wa { background: var(--c-wa); } .sw-wa-brand { background: var(--c-wa-brand); }

/* 14. Movimento e acessibilidade ------------------------------------------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes waChatIn { from { opacity: 0; transform: translateY(12px) scale(.96); transform-origin: bottom right; } to { opacity: 1; transform: none; } }
@keyframes waDot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes waPulse { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.9); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .wa-float::before, .wa-float::after { display: none; }
}
@media (forced-colors: active) {
  .btn, .btn-icon, .wa-float { border: 1px solid ButtonText; }
}
@media print {
  .topbar, .site-header, .drawer, .wa-float, .wa-chat, .mbar, .site-footer { display: none !important; }
}

/* 15. Componentes de página (compartilhados) ------------------------------ */
.br-d { display: none; }
@media (min-width: 900px) { .br-d { display: inline; } }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--c-surface-alt); }
.section--blue { background: var(--c-blue); color: var(--c-white); }

/* Entrada suave: só com JS e sem preferência por movimento reduzido. Nunca usar no LCP. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

.sec-title { margin-bottom: 32px; max-width: 820px; }
.sec-title--center { margin-inline: auto; text-align: center; }
.sec-title__over { letter-spacing: .12em; font-weight: 600; margin-bottom: 12px; }
.sec-title__h { font-size: clamp(1.625rem, 4vw, 2.625rem); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; margin-bottom: 12px; }
.sec-title__kicker { font-size: var(--fs-md); color: var(--c-text-muted); line-height: 1.6; }
.sec-title--light .sec-title__h { color: var(--c-white); }
.sec-title--light .sec-title__kicker { color: var(--c-on-blue); }

.hero-inner { background: linear-gradient(180deg, var(--c-blue) 0%, var(--c-blue-dark) 100%); color: var(--c-white); padding-block: clamp(60px, 8vw, 96px); }
.hero-inner__over { color: var(--c-orange-soft); letter-spacing: .12em; font-weight: 600; margin-bottom: 14px; }
.hero-inner__title { font-size: var(--fs-h1); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 20px; max-width: 980px; color: var(--c-white); }
.hero-inner__lead { font-size: clamp(1rem, 1.5vw, 1.1875rem); color: var(--c-on-blue); max-width: 760px; line-height: 1.6; text-wrap: balance; }
.hero-inner__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.grid-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); list-style: none; margin: 0; padding: 0; }
.grid-cards--articles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.pcard, .acard { background: var(--c-white); border: 1px solid var(--c-border); border-radius: 10px; overflow: hidden; color: var(--c-text); display: flex; flex-direction: column; height: 100%; transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease); }
.pcard:hover, .acard:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -16px rgba(20, 56, 127, .18); border-color: var(--c-orange); color: var(--c-text); }
.pcard__media { position: relative; height: 180px; background: var(--c-white); }
.pcard__img { width: 100%; height: 180px; object-fit: contain; }
.pcard__badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; background: var(--c-orange-ink); color: var(--c-white); font-size: 11px; font-weight: 600; border-radius: 20px; letter-spacing: .04em; text-transform: uppercase; }
.pcard__body, .acard__body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.pcard__cat, .acard__cat { font-size: 11.5px; color: var(--c-orange-ink); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.pcard__name { font-size: var(--fs-base); font-weight: 600; margin: 0 0 6px; line-height: 1.3; }
.pcard__meta { font-size: var(--fs-xs); color: var(--c-text-muted); margin-bottom: 10px; }
.pcard__short { font-size: var(--fs-sm); color: var(--c-text-muted); line-height: 1.55; margin: 0 0 16px; flex: 1; }
.pcard__more { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid #F1F1F1; color: var(--c-orange-ink); font-size: var(--fs-sm); font-weight: 600; }
.pcard__more .ico { font-size: 12px; }
.acard__media { height: 230px; background: var(--c-surface-alt); }
.acard__img { width: 100%; height: 230px; object-fit: cover; }
.acard__title { font-size: 16.5px; font-weight: 600; margin: 0 0 8px; line-height: 1.3; }
.acard__excerpt { color: var(--c-text-muted); font-size: var(--fs-sm); margin: 0 0 12px; line-height: 1.55; flex: 1; }
.acard__meta { font-size: 12.5px; color: var(--c-text-muted); }

/* Estado vazio de imagem (substitui o placeholder listrado do protótipo) */
.ph { width: 100%; height: 100%; min-height: 160px; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; background: linear-gradient(135deg, #F3F6FB 0%, var(--c-orange-tint) 100%); color: var(--c-blue); border-radius: inherit; text-align: center; padding: 20px; }
.ph__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--c-white); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; color: var(--c-orange); box-shadow: 0 8px 20px -10px rgba(20, 56, 127, .3); }
.ph__label { font-size: var(--fs-xs); font-weight: 600; color: var(--c-text-muted); }

/* FAQ com <details> */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__item { border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-white); overflow: hidden; }
.faq__q { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 14px; color: var(--c-blue); font-size: var(--fs-base); font-weight: 600; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { background: #FAFAFA; }
.faq__q .ico { color: var(--c-orange); font-size: 13px; flex: 0 0 auto; }
.faq__minus { display: none !important; }
.faq__item[open] .faq__plus { display: none !important; }
.faq__item[open] .faq__minus { display: inline-block !important; }
.faq__a { padding: 0 20px 20px; color: var(--c-text-muted); font-size: 15px; line-height: 1.65; }

/* Faixa de CTA */
.cta-band { padding-block: 80px; }
.cta-band__wrap { max-width: 73.75rem; }
.cta-band__box { background: var(--c-blue); border-radius: var(--r-lg); padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; color: var(--c-white); }
.cta-band__text { max-width: 560px; }
.cta-band__title { font-size: clamp(1.375rem, 3vw, 1.875rem); font-weight: 700; margin-bottom: 10px; color: var(--c-white); }
.cta-band__text p { color: var(--c-on-blue); font-size: 15.5px; }

/* Conteúdo em Markdown (posts e páginas legais) */
.prose { font-size: 17px; line-height: 1.75; color: var(--c-text); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); font-weight: 700; margin-top: 2em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { font-size: 1.1875rem; font-weight: 700; margin-top: 1.6em; color: var(--c-blue); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--c-orange); }
.prose strong { font-weight: 700; color: var(--c-text); }
.prose a { color: var(--c-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--c-orange-ink); }
.prose a.btn { text-decoration: none; color: var(--c-white); }
.prose .md-cta { margin: 8px 0 28px; }
.md-figure { margin: 8px 0 28px; }
.md-figure__img { width: 100%; height: auto; border-radius: var(--r-card); }
.md-figure figcaption { margin-top: 10px; font-size: var(--fs-sm); color: var(--c-text-muted); line-height: 1.5; }
.md-table { margin: 8px 0 28px; overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--r-card); }
.md-table table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15.5px; line-height: 1.55; }
.md-table th, .md-table td { padding: 12px 14px; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.md-table thead th { background: var(--c-blue); color: var(--c-white); font-weight: 700; border-bottom: 0; }
.md-table tbody tr:nth-child(even) { background: #F8F8F8; }
.md-table tbody td:first-child { font-weight: 600; color: var(--c-blue); }

/* 16. Formulários: honeypot (fora da tela, invisível para pessoas e leitores de tela) */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* 17. Cookies: banner e preferências ------------------------------------- */
.cookie-banner { position: fixed; left: 20px; bottom: 20px; z-index: 80; max-width: 380px; width: calc(100vw - 40px); background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: 0 20px 48px rgba(25, 25, 25, .18); padding: 20px; animation: fadeIn .35s ease; }
.cookie-banner__title { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--c-blue); font-size: 15px; }
.cookie-banner__title .ico { color: var(--c-orange); font-size: 18px; }
.cookie-banner__text { color: var(--c-text-muted); font-size: 13.5px; line-height: 1.55; margin-bottom: 14px; }
.cookie-banner__text a { color: var(--c-blue); font-weight: 600; text-decoration: underline; }
.cookie-banner__actions { display: flex; flex-direction: column; gap: 8px; }
.cookie-banner__row { display: flex; gap: 8px; }
.cookie-banner__row .btn { flex: 1; min-height: 46px; padding-inline: 12px; font-size: 14px; }
.cookie-banner__actions > .btn { min-height: 44px; font-size: 14px; }
@media (max-width: 959px) { body.mbar-on .cookie-banner { bottom: 84px; } }

.cookie-prefs { width: min(520px, calc(100vw - 32px)); max-height: 85vh; padding: 0; border: 0; border-radius: var(--r-lg); color: var(--c-text); box-shadow: var(--shadow-pop); }
.cookie-prefs::backdrop { background: rgba(25, 25, 25, .5); }
.cookie-prefs__form { position: relative; padding: 28px; }
.cookie-prefs__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--c-text-muted); border-radius: var(--r-btn); font-size: 18px; display: inline-flex; align-items: center; justify-content: center; }
.cookie-prefs__close:hover { background: var(--c-surface-alt); }
.cookie-prefs__title { font-size: 22px; font-weight: 700; margin: 0 0 6px; padding-right: 40px; }
.cookie-prefs__lead { color: var(--c-text-muted); font-size: 14px; margin-bottom: 20px; }
.cookie-prefs__lead a { color: var(--c-blue); font-weight: 600; text-decoration: underline; }
.cookie-prefs__list { display: flex; flex-direction: column; gap: 12px; }
.cookie-opt { padding: 14px; border: 1px solid var(--c-border); border-radius: var(--r-card); display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
label.cookie-opt { cursor: pointer; }
.cookie-opt__name { display: block; font-weight: 600; color: var(--c-blue); margin-bottom: 4px; }
.cookie-opt__desc { display: block; font-size: 13px; color: var(--c-text-muted); }
.cookie-opt__always { font-size: 13px; color: var(--c-text-muted); padding: 4px 10px; background: var(--c-surface-alt); border-radius: 20px; white-space: nowrap; }
.cookie-opt input { width: 22px; height: 22px; accent-color: var(--c-orange-ink); flex: 0 0 auto; margin-top: 2px; }
.cookie-prefs__note { margin-top: 14px; font-size: 13px; color: var(--c-text-muted); }
.cookie-prefs__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cookie-prefs__actions .btn { flex: 1 1 160px; min-height: 46px; }
.footer-link-btn { background: transparent; border: 0; padding: 0; color: var(--c-on-blue-faint); font-size: inherit; text-align: left; }
.footer-link-btn:hover { color: var(--c-white); text-decoration: underline; text-decoration-color: var(--c-orange); text-underline-offset: 3px; }

/* Barra de rolagem da página nas cores da Hidrart.
 * Chrome, Edge e Safari: ::-webkit-scrollbar (permite cantos arredondados). Firefox: scrollbar-color. */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #E9EDF4; }
::-webkit-scrollbar-thumb { background: var(--c-blue); border-radius: 999px; border: 3px solid #E9EDF4; }
::-webkit-scrollbar-thumb:hover { background: var(--c-orange-ink); }
::-webkit-scrollbar-corner { background: #E9EDF4; }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: var(--c-blue) #E9EDF4; }
}
