/*
 * RS24HS — Design System público (Fase 4)
 * Camadas: 1. tokens · 2. base · 3. layout · 4. header/nav · 5. footer · 6. componentes · 7. blocos CMS · 8. templates · 9. utilitários · 10. Home · 11. páginas internas
 * Prefixos: l- layout, c- componente, t- tipografia, u- utilitário. Documentação: docs/design-system.md
 */

/* 0. Fontes -------------------------------------------------------------- */
/* Poppins (SIL OFL 1.1) servida localmente; Montserrat carregada do Google Fonts no layout (700/800). */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins/Poppins-Regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins/Poppins-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins/Poppins-Bold.woff2") format("woff2"); }

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    /* Marca (confirmadas) */
    --color-petrol: #004e61;
    --color-green: #33cc99;
    --color-cyan: #00ccff;
    --color-yellow: #ffcc00;
    /* Apoio (materiais de referência) */
    --color-petrol-900: #0b2a34;
    --color-petrol-800: #123b49;
    --color-green-soft: #3dce9a;
    --color-green-strong: #16a97a;
    --color-mist: #f3f8f7;
    --color-line: #e2ebe9;
    --color-danger: #c0392b;
    /* Tons derivados para texto acessível (contraste AA sobre branco e mist) */
    --color-green-700: #0b7a57;
    --color-petrol-600: #1f6474;
    --color-danger-700: #a3311f;
    --color-warning-700: #7a5200;

    /* Superfícies e texto (tema claro) */
    --surface: #ffffff;
    --surface-alt: var(--color-mist);
    --surface-raised: #ffffff;
    --text: var(--color-petrol-900);
    --text-muted: #4a6570;
    --text-heading: var(--color-petrol-900);
    --text-link: var(--color-petrol);
    --text-accent: var(--color-green-700);
    --border: var(--color-line);
    --border-strong: #c7d8d4;
    --focus-ring: var(--color-petrol);

    /* Tipografia — Montserrat (títulos, Google Fonts) e Poppins (corpo, local), com fallback de sistema */
    --font-heading: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-body: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --text-xs: 0.8125rem;
    --text-sm: 0.9375rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.35rem + 2vw, 2.75rem);
    --text-4xl: clamp(2.125rem, 1.4rem + 3vw, 3.5rem);
    --leading-tight: 1.12;
    --leading-snug: 1.3;
    --leading-normal: 1.65;
    --tracking-eyebrow: 0.02em;
    --weight-regular: 400;
    --weight-medium: 600;
    --weight-bold: 700;
    --weight-heavy: 800;

    /* Espaçamento (escala de 4px) */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --space-9: 6rem;
    --section-y: clamp(3rem, 2rem + 4vw, 6rem);

    /* Containers */
    --container: 1240px;
    --container-narrow: 760px;
    --container-wide: 1400px;
    --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);

    /* Forma */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(11, 42, 52, 0.06);
    --shadow-md: 0 10px 30px -18px rgba(11, 42, 52, 0.35);
    --shadow-lg: 0 24px 60px -30px rgba(11, 42, 52, 0.45);

    /* Camadas e movimento */
    --z-header: 100;
    --z-overlay: 200;
    --z-skip: 300;
    --duration: 180ms;
    --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
    --header-h: 76px;
}

/* Tema escuro local (seções escuras); troca apenas tokens. */
.theme-dark {
    --surface: var(--color-petrol-900);
    --surface-alt: var(--color-petrol-800);
    --surface-raised: var(--color-petrol-800);
    --text: #e6f2f0;
    --text-muted: #bfd6d4;
    --text-heading: #ffffff;
    --text-link: #7fe0c1;
    --text-accent: var(--color-green);
    --border: rgba(255, 255, 255, 0.14);
    --border-strong: rgba(255, 255, 255, 0.3);
    --focus-ring: var(--color-yellow);
    color: var(--text);
    background: var(--surface);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--space-4)); }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text);
    background: var(--surface);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text-heading); line-height: var(--leading-tight); font-weight: var(--weight-heavy); letter-spacing: -0.02em; margin: 0 0 var(--space-4); text-wrap: balance; }
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); letter-spacing: -0.01em; }
h4 { font-size: var(--text-lg); letter-spacing: 0; }
p { margin: 0 0 var(--space-4); }
a { color: var(--text-link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(51, 204, 153, 0.35); }
code, kbd { font-family: var(--font-mono); font-size: 0.9em; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-7) 0; }

/* 3. Layout ---------------------------------------------------------------- */
.l-container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.l-container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }
.l-container--wide { max-width: calc(var(--container-wide) + 2 * var(--gutter)); }
.l-section { padding-block: var(--section-y); }
.l-section--tight { padding-block: calc(var(--section-y) * 0.6); }
.l-section--mist { background: var(--color-mist); }
.l-section--dark { background: linear-gradient(135deg, var(--color-petrol-900) 0%, var(--color-petrol-800) 55%, #0e4c5c 100%); }
.l-grid { display: grid; gap: var(--space-5); }
/* Máximo de N colunas, mínimo por coluna, sem esticar item único: auto-fill + largura mínima de 1/N. */
.l-grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, max(320px, calc((100% - var(--space-5)) / 2))), 1fr)); }
.l-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, max(260px, calc((100% - 2 * var(--space-5)) / 3))), 1fr)); }
.l-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, max(210px, calc((100% - 3 * var(--space-5)) / 4))), 1fr)); }
.l-content { display: grid; gap: var(--space-7); grid-template-columns: minmax(0, 1fr); }
.l-content > * { min-width: 0; }
@media (min-width: 1024px) {
    .l-content--aside { grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: var(--space-8); }
}
.l-stack > * + * { margin-top: var(--space-4); }

/* 4. Header e navegação ---------------------------------------------------- */
.c-skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: var(--z-skip); background: #fff; color: var(--color-petrol-900); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); font-weight: var(--weight-bold); }
.c-skip-link:focus { top: var(--space-3); }
.c-preview-banner { margin: 0; padding: var(--space-3) var(--gutter); background: #fff4cc; color: #4a3600; border-bottom: 2px solid var(--color-yellow); font-weight: var(--weight-bold); font-size: var(--text-sm); text-align: center; }

.c-header { position: sticky; top: 0; z-index: var(--z-header); background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--color-line); }
@supports (backdrop-filter: blur(8px)) { .c-header { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px); } }
.c-header__inner { display: flex; align-items: center; gap: var(--space-5); min-height: var(--header-h); }
.c-brand { display: inline-flex; flex: 0 0 auto; border-radius: var(--radius-sm); }
.c-brand img { width: auto; height: 44px; }
.c-header__actions { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; }
.c-nav ~ .c-header__actions { margin-left: 0; }

.c-nav { margin-left: auto; }
.c-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--space-1); }
.c-nav__item { position: relative; }
.c-nav__link { font-family: var(--font-heading); display: inline-flex; align-items: center; gap: var(--space-1); padding: var(--space-3) var(--space-3); color: var(--color-petrol); font-size: var(--text-xs); font-weight: var(--weight-heavy); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; border-radius: var(--radius-sm); }
.c-nav__link:hover { color: var(--color-petrol-900); background: var(--color-mist); }
.c-nav__link[aria-current="page"], .c-nav__item.is-active > .c-nav__link { color: var(--color-petrol-900); box-shadow: inset 3px 0 0 var(--color-green); }
/* Indicador inferior do menu (desktop), adaptado do padrão do projeto mbescritorios: ::after que cresce da
   esquerda no hover/foco e fica fixo no item ativo. Aqui: 2px, verde da marca, cantos
   arredondados e largura máxima de 28px para manter a barra discreta. */
@media (min-width: 1024px) {
    .c-nav__list > .c-nav__item > .c-nav__link { position: relative; }
    .c-nav__list > .c-nav__item > .c-nav__link:hover { background: transparent; }
    .c-nav__list > .c-nav__item > .c-nav__link::after { content: ""; position: absolute; left: var(--space-3); bottom: 6px; width: 0; height: 2px; border-radius: 2px; background: var(--color-green); transition: width 320ms cubic-bezier(0.22, 0.61, 0.36, 1); }
    .c-nav__list > .c-nav__item > .c-nav__link:hover::after,
    .c-nav__list > .c-nav__item > .c-nav__link:focus-visible::after,
    .c-nav__list > .c-nav__item:focus-within > .c-nav__link::after,
    .c-nav__list > .c-nav__item > .c-nav__link[aria-current="page"]::after,
    .c-nav__list > .c-nav__item.is-active > .c-nav__link::after { width: min(28px, calc(100% - 2 * var(--space-3))); }
    .c-nav__list > .c-nav__item > .c-nav__link[aria-current="page"],
    .c-nav__list > .c-nav__item.is-active > .c-nav__link { box-shadow: none; }
}
.c-nav__caret { width: 10px; height: 10px; flex: 0 0 auto; }
.c-nav__sub { list-style: none; margin: 0; padding: var(--space-2); position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease), visibility var(--duration); }
.c-nav__item:hover > .c-nav__sub, .c-nav__item:focus-within > .c-nav__sub { opacity: 1; visibility: visible; transform: none; }
.c-nav__item.is-dismissed > .c-nav__sub { opacity: 0; visibility: hidden; }
.c-nav__sub .c-nav__link { display: flex; text-transform: none; letter-spacing: 0; font-size: var(--text-sm); font-weight: var(--weight-medium); padding: var(--space-2) var(--space-3); }
.c-nav-toggle { display: none; margin-left: auto; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff; color: var(--color-petrol-900); font: inherit; font-weight: var(--weight-bold); font-size: var(--text-sm); cursor: pointer; min-height: 44px; }
.c-nav-toggle__bars { position: relative; width: 18px; height: 2px; background: currentColor; }
.c-nav-toggle__bars::before, .c-nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; transition: transform var(--duration) var(--ease); }
.c-nav-toggle__bars::before { top: -6px; }
.c-nav-toggle__bars::after { top: 6px; }
.c-nav-toggle[aria-expanded="true"] .c-nav-toggle__bars { background: transparent; }
.c-nav-toggle[aria-expanded="true"] .c-nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.c-nav-toggle[aria-expanded="true"] .c-nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023.98px) {
    .c-header__inner { flex-wrap: wrap; row-gap: 0; }
    .c-brand img { height: 38px; }
    .c-nav { order: 3; flex: 1 0 100%; margin: 0; padding-bottom: var(--space-3); }
    .c-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .c-nav__link { display: flex; padding: var(--space-3) var(--space-2); font-size: var(--text-sm); min-height: 44px; }
    .c-nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--color-line); border-radius: 0; margin-left: var(--space-3); padding: 0 0 0 var(--space-2); min-width: 0; }
    .c-nav__caret { display: none; }
    /* Com JS: menu recolhido em painel acessível; sem JS: lista empilhada sempre visível. */
    .js .c-nav-toggle { display: inline-flex; }
    .js .c-nav { display: none; }
    .js .c-header.is-open .c-nav { display: block; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
    .c-header__cta { display: none; }
    .c-nav .c-nav__cta-mobile { display: block; padding: var(--space-3) var(--space-2) 0; }
}
@media (min-width: 1024px) { .c-nav__cta-mobile { display: none; } }
html.is-menu-open { overflow: hidden; }

/* Home: header transparente integrado ao topo escuro, sólido ao rolar ou com o menu aberto.
   Só com JS (site.js controla .is-solid); sem JS a Home usa o header branco padrão. Fixo (e não sticky)
   para não reservar uma faixa branca acima do topo. */
.c-brand__img--light { display: none; }
.js .is-home .c-header { position: fixed; inset: 0 0 auto; background: transparent; border-bottom-color: transparent; backdrop-filter: none; transition: background-color var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease); }
.js .is-home .c-header.is-solid, .js .is-home .c-header.is-open { background: rgba(255, 255, 255, 0.97); border-bottom-color: var(--color-line); box-shadow: 0 10px 30px -22px rgba(11, 42, 52, 0.55); }
.js .is-home .c-header:not(.is-solid):not(.is-open) .c-brand__img { display: none; }
.js .is-home .c-header:not(.is-solid):not(.is-open) .c-brand__img--light { display: block; }
.js .is-home .c-header:not(.is-solid):not(.is-open) .c-nav-toggle { background: rgba(7, 32, 42, 0.35); color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.js .is-home .c-header:not(.is-solid):not(.is-open) :focus-visible { outline-color: var(--color-yellow); }
@media (min-width: 1024px) {
    .js .is-home .c-header:not(.is-solid) .c-nav__list > .c-nav__item > .c-nav__link { color: #fff; }
    .js .is-home .c-header:not(.is-solid) .c-header__cta .c-button--secondary { --btn-bg: var(--color-green); --btn-fg: var(--color-petrol-900); }
}

/* 5. Footer ---------------------------------------------------------------- */
.c-footer { background: var(--color-petrol-900); color: var(--text); padding-top: var(--space-6); font-size: 0.9rem; }
.c-footer__grid { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .c-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .c-footer__grid { grid-template-columns: minmax(220px, 1.3fr) repeat(auto-fit, minmax(160px, 1fr)); } }
.c-footer__brand a { display: inline-flex; padding: var(--space-2); margin: calc(var(--space-2) * -1); border-radius: var(--radius-sm); }
.c-footer__brand img { height: 40px; width: auto; }
.c-footer__brand p { margin: var(--space-3) 0 0; color: var(--color-green-soft); font-size: var(--text-sm); font-weight: var(--weight-heavy); line-height: 1.45; letter-spacing: 0.04em; text-transform: uppercase; }
.c-footer__title { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin: 0 0 var(--space-2); }
.c-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.c-footer__list a { display: inline-flex; align-items: center; gap: var(--space-2); }
.c-footer__list a::before { content: ""; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: var(--color-green); }
/* Listas longas em duas colunas: rodapé mais baixo e limpo. */
@media (min-width: 480px) { .c-footer__list:has(> li:nth-child(6)) { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: var(--space-7); } }
.c-footer a { color: var(--text-muted); text-decoration: none; }
.c-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.2em; }
.c-footer__contact { display: grid; gap: var(--space-2); margin: 0; }
.c-footer__contact > div { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 0 var(--space-2); align-items: start; }
.c-footer__contact dt { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.c-footer__contact dd { grid-column: 2; margin: 0; color: #fff; line-height: 1.45; overflow-wrap: anywhere; }
.c-footer__contact-icon { grid-column: 1; width: 17px; height: 17px; margin-top: 2px; color: var(--color-green); }
.c-footer__social { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.c-footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; min-height: 38px; border-radius: var(--radius-sm); color: #fff; transition: color var(--duration) var(--ease), background-color var(--duration) var(--ease); }
.c-footer__social a:hover { color: var(--color-green-soft); background: rgba(255,255,255,.08); text-decoration: none; }
.c-footer__social-icon { width: 22px; height: 22px; }
.c-footer__bottom { margin-top: var(--space-5); border-top: 1px solid var(--border); padding-block: var(--space-3); display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--space-3) var(--space-6); font-size: var(--text-xs); color: var(--text-muted); }
.c-footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); list-style: none; margin: 0; padding: 0; }
.c-footer__agency { display: inline-flex; align-items: center; justify-self: end; padding: 4px; margin: -4px; border-radius: var(--radius-sm); }
.c-footer__agency:hover { text-decoration: none; }
.c-footer__agency img { display: block; width: 82px; height: auto; filter: brightness(0) invert(1); opacity: 0.82; transition: opacity var(--duration) var(--ease); }
.c-footer__agency:hover img { opacity: 1; }
@media (max-width: 860px) {
    .c-footer__bottom { grid-template-columns: minmax(0, 1fr) auto; }
    .c-footer__agency { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 620px) {
    .c-footer__bottom { grid-template-columns: 1fr; align-items: start; }
    .c-footer__agency { grid-column: 1; grid-row: auto; justify-self: start; margin-top: var(--space-2); }
}

/* Aviso lateral de privacidade: compacto, sem bloquear a navegação. */
.c-privacy-notice { position: fixed; z-index: 90; left: clamp(14px, 2.5vw, 28px); bottom: clamp(14px, 2.5vw, 28px); width: min(370px, calc(100vw - 28px)); padding: 18px; border: 1px solid #ffffff26; border-radius: var(--radius-md); background: var(--color-petrol-900); color: #d8e7e4; box-shadow: 0 18px 48px #062b3266; font-size: var(--text-sm); opacity: 0; transform: translateY(18px); transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease); }
.c-privacy-notice[data-visible="true"] { opacity: 1; transform: translateY(0); }
.c-privacy-notice__heading { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.c-privacy-notice__heading svg { width: 20px; height: 20px; fill: none; stroke: var(--color-green-soft); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c-privacy-notice__heading h2 { margin: 0; color: #fff; font-size: var(--text-base); }
.c-privacy-notice p { margin: 0; line-height: 1.55; }
.c-privacy-notice a { color: #fff; font-weight: var(--weight-medium); text-underline-offset: .18em; }
.c-privacy-notice__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.c-privacy-notice button { min-height: 38px; padding: 8px 12px; border: 1px solid var(--color-green); border-radius: var(--radius-sm); background: var(--color-green); color: var(--color-petrol-900); font: inherit; font-size: var(--text-xs); font-weight: var(--weight-heavy); cursor: pointer; }
.c-privacy-notice .c-privacy-notice__secondary { border-color: #ffffff59; background: transparent; color: #fff; }
.c-privacy-notice button:hover { filter: brightness(1.08); }
@media (max-width: 480px) { .c-privacy-notice { padding: 15px; } .c-privacy-notice__actions button { flex: 1 1 auto; } }
@media (prefers-reduced-motion: reduce) { .c-privacy-notice { transition: none; } }

/* 6. Componentes ----------------------------------------------------------- */
/* Rótulo acima de títulos (Fase 8.2): Poppins semibold, caixa alta com espaçamento mínimo — mais leve que o
   Montserrat 800 espaçado anterior, sem virar texto miúdo. */
.c-eyebrow { font-family: var(--font-body); display: block; margin: 0 0 var(--space-3); font-size: 0.875rem; font-weight: var(--weight-medium); line-height: 1.4; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--text-accent); }
.c-lead { font-size: var(--text-lg); color: var(--text-muted); max-width: 62ch; }

.c-button { --btn-bg: var(--color-green); --btn-fg: var(--color-petrol-900); --btn-border: transparent; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: var(--space-3) var(--space-5); border: 2px solid var(--btn-border); border-radius: var(--radius-sm); background: var(--btn-bg); color: var(--btn-fg); font: inherit; font-family: var(--font-heading); font-size: var(--text-sm); font-weight: var(--weight-heavy); letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease), transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease); }
.c-button:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }
.c-button--primary:hover { --btn-bg: var(--color-green-soft); }
.c-button--secondary { --btn-bg: var(--color-petrol); --btn-fg: #fff; }
.c-button--secondary:hover { --btn-bg: var(--color-petrol-800); }
.c-button--ghost { --btn-bg: transparent; --btn-fg: var(--color-petrol); --btn-border: currentColor; }
.theme-dark .c-button--ghost { --btn-fg: #fff; }
.theme-dark .c-button--secondary { --btn-bg: #fff; --btn-fg: var(--color-petrol-900); }
.c-button--sm { min-height: 40px; padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.c-button--lg { min-height: 56px; padding: var(--space-4) var(--space-6); }
.c-button[disabled], .c-button[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.c-button__icon { width: 16px; height: 16px; flex: 0 0 auto; }
.c-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

.c-link-arrow { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: var(--weight-bold); font-size: var(--text-sm); color: var(--text-link); text-decoration: none; }
.c-link-arrow:hover { text-decoration: underline; }
.c-link-arrow svg { width: 14px; height: 14px; transition: transform var(--duration) var(--ease); }
.c-link-arrow:hover svg { transform: translateX(3px); }

.c-section-header { max-width: 760px; margin-bottom: var(--space-7); }
.c-section-header--center { margin-inline: auto; text-align: center; }
.c-section-header--split { max-width: none; display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: flex-end; justify-content: space-between; }
.c-section-header__title { margin-bottom: var(--space-3); }
.c-section-header__lead { color: var(--text-muted); margin: 0; font-size: var(--text-lg); }

.c-breadcrumbs ol { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); font-size: var(--text-sm); color: var(--text-muted); }
.c-breadcrumbs li { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; }
.c-breadcrumbs li + li::before { content: "/"; color: var(--border-strong); }
.c-breadcrumbs a { color: var(--text-muted); }
.c-breadcrumbs [aria-current="page"] { color: var(--text); font-weight: var(--weight-medium); overflow-wrap: anywhere; }

.c-badge { display: inline-flex; align-items: center; gap: var(--space-1); padding: 2px var(--space-3); border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: var(--weight-bold); line-height: 1.6; background: var(--color-mist); color: var(--color-petrol-900); border: 1px solid var(--color-line); }
.c-badge--success { background: #e1f5ea; color: #0a5a3c; border-color: #bfe8d3; }
.c-badge--warning { background: #fff4cc; color: #5c4200; border-color: #f2dc8c; }
.c-badge--danger { background: #fbe7e4; color: var(--color-danger-700); border-color: #f1c4bd; }
.c-badge--info { background: #e0f7fd; color: #004a5c; border-color: #b3ecfa; }

.c-card { position: relative; display: flex; flex-direction: column; gap: var(--space-3); height: 100%; padding: var(--space-5); background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease); }
.c-card:has(.c-card__link:hover), .c-card:focus-within { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.c-card__eyebrow { margin: 0; font-size: var(--text-xs); font-weight: var(--weight-heavy); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-accent); }
.c-card__title { margin: 0; font-size: var(--text-lg); line-height: var(--leading-snug); }
.c-card__title a { color: inherit; text-decoration: none; }
.c-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.c-card__title a:focus-visible { outline: none; }
.c-card__title a:focus-visible::after { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.c-card__text { margin: 0; color: var(--text-muted); font-size: var(--text-sm); }
.c-card__link { margin-top: auto; padding-top: var(--space-2); }
.c-card--service { border-top: 4px solid var(--color-green); }
.c-card--segment { gap: var(--space-4); padding: clamp(1.35rem, 1rem + 1vw, 1.85rem); border-top: 3px solid var(--color-green); }
.c-card--segment .c-card__segment-icon { display: grid; place-items: center; width: 64px; height: 64px; padding: 10px; border: 1px solid #cfe7dc; border-radius: 18px; background: linear-gradient(145deg, #f3faf6, #e4f4eb); }
.c-card--segment .c-card__segment-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.c-card--segment .c-card__title { font-size: var(--text-xl); }
.c-card--segment:hover, .c-card--segment:focus-within { border-color: var(--color-green); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.c-card--editorial { padding: 0; overflow: hidden; }
.c-card--editorial .c-card__media { aspect-ratio: 16 / 10; background: var(--color-mist); }
.c-card--editorial .c-card__media img { width: 100%; height: 100%; object-fit: cover; }
.c-card--editorial .c-card__body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); flex: 1; }
.c-card__meta { font-size: var(--text-xs); color: var(--text-muted); }

.c-cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(var(--space-6), 4vw, var(--space-8)); display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 900px) { .c-cta-band { grid-template-columns: minmax(0, 1.4fr) auto; } }
.c-cta-band--dark { background: linear-gradient(118deg, var(--color-petrol-900) 0%, #0e4c5c 100%); }
.c-cta-band--light { background: var(--color-mist); border: 1px solid var(--color-line); }
.c-cta-band__title { margin-bottom: var(--space-2); font-size: var(--text-2xl); }
.c-cta-band__text { margin: 0; color: var(--text-muted); }

.c-empty-state { text-align: center; padding: var(--space-7) var(--space-5); border: 1px dashed var(--border-strong); border-radius: var(--radius-md); color: var(--text-muted); background: var(--surface-alt); }
.c-empty-state__title { font-size: var(--text-lg); color: var(--text-heading); margin-bottom: var(--space-2); }
.c-empty-state p:last-child { margin-bottom: 0; }

.c-pagination { margin-top: var(--space-7); }
.c-pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.c-pagination a, .c-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; font-weight: var(--weight-bold); font-size: var(--text-sm); }
.c-pagination [aria-current="page"] { background: var(--color-petrol); color: #fff; border-color: var(--color-petrol); }

.c-form { display: grid; gap: var(--space-5); }
.c-form__row { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.c-field { display: grid; gap: var(--space-2); align-content: start; min-width: 0; }
.c-field__label { font-weight: var(--weight-bold); font-size: var(--text-sm); color: var(--text-heading); }
.c-field__required { color: var(--color-danger-700); }
.c-field__input { width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff; color: var(--color-petrol-900); font: inherit; }
textarea.c-field__input { min-height: 140px; resize: vertical; }
.c-field__input:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 1px; border-color: var(--color-petrol); }
.c-field__help { margin: 0; font-size: var(--text-xs); color: var(--text-muted); }
.c-field__error { margin: 0; font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--color-danger-700); }
.c-field__error::before { content: "⚠ "; }
.c-field--invalid .c-field__input { border-color: var(--color-danger); border-width: 2px; }
.c-check { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); }
.c-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--color-petrol); }

.c-alert { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); border: 1px solid; border-left-width: 5px; font-size: var(--text-sm); }
.c-alert__title { font-weight: var(--weight-heavy); margin: 0 0 var(--space-1); }
.c-alert p:last-child { margin-bottom: 0; }
.c-alert--success { background: #eefaf4; border-color: #bfe8d3; border-left-color: var(--color-green-strong); color: #0a4d34; }
.c-alert--error { background: #fdf0ee; border-color: #f1c4bd; border-left-color: var(--color-danger); color: #6e2016; }
.c-alert--info { background: #eefafd; border-color: #b3ecfa; border-left-color: var(--color-petrol); color: var(--color-petrol-900); }

/* 7. Blocos editoriais do CMS --------------------------------------------- */
/* Leitura confortável em 760px; blocos .is-wide (etapas, destaques, galeria) usam a largura da coluna. */
.c-prose { font-size: var(--text-base); }
.c-prose > :not(.is-wide) { max-width: var(--container-narrow); }
.c-prose > * { margin-top: 0; margin-bottom: 0; }
.c-prose > * + * { margin-top: var(--space-5); }
.c-prose .c-heading { margin-top: var(--space-7); margin-bottom: 0; }
.c-prose h2.c-heading { font-size: var(--text-2xl); }
.c-prose h3.c-heading { font-size: var(--text-xl); }
.c-prose h4.c-heading { font-size: var(--text-lg); }
.c-rich-text { overflow-wrap: break-word; }
.c-rich-text p, .c-rich-text ul, .c-rich-text ol { margin: 0 0 var(--space-4); }
.c-rich-text > :last-child { margin-bottom: 0; }
.c-rich-text ul, .c-rich-text ol, .c-list { padding-left: 1.4em; }
.c-rich-text li + li, .c-list li + li { margin-top: var(--space-2); }
.c-list li::marker { color: var(--color-green-700); font-weight: var(--weight-bold); }
.c-rich-text code { background: var(--color-mist); padding: 1px 6px; border-radius: 4px; }
.c-rich-text { overflow-x: auto; }
.c-rich-text table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); background: #fff; }
.c-rich-text caption { padding: var(--space-3) var(--space-4); text-align: left; font-weight: var(--weight-bold); color: var(--text-heading); }
.c-rich-text th, .c-rich-text td { padding: var(--space-3) var(--space-4); border: 1px solid var(--border); text-align: left; vertical-align: top; }
.c-rich-text thead th { background: var(--color-mist); color: var(--color-petrol-900); }
.c-rich-text tbody tr:nth-child(even) { background: #fafcfc; }

.c-figure { margin-inline: 0; }
.c-figure img { width: 100%; height: auto; border-radius: var(--radius-md); background: var(--color-mist); object-fit: cover; }
.c-figure figcaption { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--text-muted); }

.c-callout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3); padding: var(--space-5); border-radius: var(--radius-md); background: #eefafd; border: 1px solid #b3ecfa; border-left: 5px solid var(--color-petrol); }
.c-callout__icon { font-size: 1.25rem; line-height: 1.3; }
.c-callout__title { font-weight: var(--weight-heavy); margin: 0 0 var(--space-2); color: var(--color-petrol-900); }
.c-callout .c-rich-text { color: var(--color-petrol-900); }
.c-callout--warning { background: #fff8e0; border-color: #f2dc8c; border-left-color: var(--color-yellow); }
.c-callout--success { background: #eefaf4; border-color: #bfe8d3; border-left-color: var(--color-green-strong); }

.c-faq__title { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.c-faq__item { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-raised); }
.c-faq__item + .c-faq__item { margin-top: var(--space-3); }
.c-faq__question { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-5); font-weight: var(--weight-bold); color: var(--text-heading); }
.c-faq__question::-webkit-details-marker { display: none; }
.c-faq__question::after { content: "+"; flex: 0 0 auto; font-size: 1.4rem; line-height: 1; color: var(--color-green-700); }
.c-faq__item[open] .c-faq__question::after { content: "−"; }
.c-faq__answer { padding: 0 var(--space-5) var(--space-5); color: var(--text); }

.c-quote { margin-inline: 0; padding: var(--space-5) var(--space-6); border-left: 4px solid var(--color-green); background: var(--color-mist); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.c-quote p { font-size: var(--text-lg); font-weight: var(--weight-medium); color: var(--color-petrol-900); margin: 0; }
.c-quote footer { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--text-muted); }

.c-table { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; }
.c-table table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.c-table caption { text-align: left; padding: var(--space-3) var(--space-4); font-weight: var(--weight-bold); color: var(--text-heading); }
.c-table th, .c-table td { text-align: left; vertical-align: top; padding: var(--space-3) var(--space-4); border-top: 1px solid var(--border); }
.c-table thead th { background: var(--color-mist); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-petrol-900); white-space: nowrap; }
.c-table tbody tr:nth-child(even) { background: #fafcfc; }

.c-cta-inline { margin-inline: 0; }

/* 8. Templates ------------------------------------------------------------- */
.c-page-hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); background: var(--color-mist); border-bottom: 1px solid var(--color-line); }
.c-page-hero.theme-dark { background: linear-gradient(118deg, var(--color-petrol-900) 0%, #0e4c5c 60%, #0e5a57 100%); border-bottom: 0; }
.c-page-hero__title { max-width: 22ch; margin-bottom: var(--space-4); }
.c-page-hero .c-lead { margin-bottom: 0; }
.c-page-meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: var(--space-5) 0 0; font-size: var(--text-sm); color: var(--text-muted); }
.c-page-meta div { display: flex; gap: var(--space-2); }
.c-page-meta dt { font-weight: var(--weight-bold); }
.c-page-meta dd { margin: 0; }
.c-aside { display: grid; gap: var(--space-5); align-content: start; }
.c-aside__panel { padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-alt); }
.c-aside__title { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-3); }
.c-aside__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); font-size: var(--text-sm); }
@media (min-width: 1024px) { .c-aside--sticky { position: sticky; top: calc(var(--header-h) + var(--space-5)); } }
.c-sources { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); font-size: var(--text-sm); }
.c-sources li { padding-left: var(--space-4); border-left: 3px solid var(--color-green); }
.c-sources__meta { display: block; color: var(--text-muted); }
.c-provisional { border: 2px dashed var(--border-strong); border-radius: var(--radius-lg); padding: var(--space-6); }

/* Página de erro */
.c-error-page { min-height: 100vh; display: grid; place-items: center; padding: var(--gutter); background: var(--color-mist); }
.c-error-page__card { width: min(560px, 100%); background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: clamp(var(--space-6), 5vw, var(--space-8)); box-shadow: var(--shadow-md); }
.c-error-page__card img { height: 40px; width: auto; margin-bottom: var(--space-6); }

/* 9. Utilitários ----------------------------------------------------------- */
.u-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; }
.u-muted { color: var(--text-muted); }
.u-mt-0 { margin-top: 0; }
.u-mb-0 { margin-bottom: 0; }

/* Entrada progressiva: aplicada pelo JS somente a blocos relevantes, sem afetar a página sem JavaScript. */
.js .is-reveal-ready {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 560ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 560ms cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
.js .is-reveal-ready.is-revealed { opacity: 1; transform: none; will-change: auto; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .c-button:hover, .h-tile:hover, .h-services .c-card:hover, .h-services .c-card:focus-within, .c-card--segment:hover, .c-card--segment:focus-within { transform: none; }
    .js .is-reveal-ready { opacity: 1; transform: none; }
}

@media print {
    .c-header, .c-footer, .c-skip-link, .c-nav-toggle, .c-preview-banner { display: none !important; }
    body { font-size: 11pt; color: #000; }
    a { color: #000; }
}

/* Grupos de relacionados */
.c-related-group + .c-related-group { margin-top: var(--space-7); }
.c-related-group__title { font-size: var(--text-lg); margin-bottom: var(--space-4); }

/* Catálogo de componentes (somente /dev/design-system) */
.ds-swatches { list-style: none; margin: 0; padding: 0; }
.ds-swatches .c-card { gap: var(--space-2); }
.ds-swatch { display: block; height: 56px; border-radius: var(--radius-sm); border: 1px solid var(--color-line); }
.ds-type { font-family: var(--font-heading); font-weight: var(--weight-heavy); color: var(--text-heading); line-height: var(--leading-tight); letter-spacing: -0.02em; }
.ds-type--4xl { font-size: var(--text-4xl); }
.ds-type--3xl { font-size: var(--text-3xl); }
.ds-type--xl { font-size: var(--text-xl); }
.ds-row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin-block: var(--space-5); }
.c-sources-section { border-top: 1px solid var(--color-line); }

/* 10. Home ----------------------------------------------------------------- */
/* Composição derivada de HOME.png: hero escuro com foto e profissional, faixa de destaques em gradiente,
   seções claras alternando branco/névoa e faixas escuras com imagem. */
.h-section { padding-block: var(--section-y); }
.h-section--white { background: #fff; }
.h-section--mist { background: var(--color-mist); }
.h-heading { max-width: 720px; margin-bottom: var(--space-7); }
.h-heading--split { max-width: none; display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-7); align-items: flex-end; justify-content: space-between; }
.h-heading--split .h-heading__main { max-width: 720px; }
.h-heading__title { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.125rem); line-height: 1.08; margin-bottom: var(--space-5); max-width: 22ch; }
.h-heading__lead { color: var(--text-muted); font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; margin-bottom: var(--space-3); }
.h-heading p:last-child { margin-bottom: 0; }

/* Hero */
.h-hero { position: relative; background: var(--color-petrol-900); color: #fff; overflow: hidden; isolation: isolate; }
.h-hero__slide { position: relative; min-height: clamp(560px, 86vh, 800px); display: flex; align-items: stretch; }
.h-hero__slide[hidden] { display: none; }
.h-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; z-index: -2; }
.h-hero__slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 32, 42, 0.94) 0%, rgba(7, 32, 42, 0.82) 38%, rgba(7, 32, 42, 0.35) 70%, rgba(7, 32, 42, 0.15) 100%); }
.h-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; width: 100%; }
.h-hero__content { align-self: center; max-width: 680px; padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem) clamp(5.5rem, 3rem + 5vw, 7.5rem); }
/* Com o header transparente sobre o topo, o conteúdo desce a altura do header. */
.js .is-home .h-hero__content { padding-top: calc(var(--header-h) + clamp(2.5rem, 1rem + 5vw, 5rem)); }
.h-hero__eyebrow { color: var(--color-green); }
.h-hero__title { font-family: var(--font-heading); font-weight: var(--weight-heavy); font-size: clamp(2.25rem, 1.3rem + 3vw, 3.5rem); line-height: 1.06; letter-spacing: -0.025em; color: #fff; margin: 0 0 var(--space-5); max-width: 20ch; text-wrap: balance; }
.h-hero__text { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); line-height: 1.6; color: #d8ebe8; max-width: 50ch; margin-bottom: var(--space-6); }
.h-hero__figure { display: none; }
.h-hero__figure img { width: auto; max-width: 100%; height: 100%; max-height: 760px; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.35)); }
@media (min-width: 768px) {
    .h-hero__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
    .h-hero__figure { display: flex; align-self: end; justify-content: center; height: clamp(440px, 74vh, 740px); margin-right: calc(-1 * min(var(--space-6), var(--gutter))); }
}
/* Com JS, os destaques ocupam a mesma célula: a altura é a do maior e a troca não desloca a página.
   Os ocultos saem da árvore de acessibilidade (visibility). Sem JS, só o 1º é exibido. */
.h-hero.is-enhanced .h-hero__track { display: grid; }
.h-hero.is-enhanced .h-hero__slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 650ms var(--ease), visibility 0s linear 650ms; }
.h-hero.is-enhanced .h-hero__slide[hidden] { display: flex; visibility: hidden; }
.h-hero.is-enhanced .h-hero__slide.is-active { z-index: 1; opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.h-hero.is-enhanced .h-hero__slide.is-entering, .h-hero.is-enhanced .h-hero__slide.is-leaving { visibility: visible; transition-delay: 0s; }
.h-hero.is-enhanced .h-hero__slide .h-hero__content, .h-hero.is-enhanced .h-hero__slide .h-hero__figure { transform: translateY(14px); opacity: 0; transition: transform 620ms var(--ease), opacity 520ms var(--ease); }
.h-hero.is-enhanced .h-hero__slide.is-active .h-hero__content, .h-hero.is-enhanced .h-hero__slide.is-active .h-hero__figure { transform: none; opacity: 1; transition-delay: 90ms; }
.h-hero.is-enhanced .h-hero__slide.is-leaving .h-hero__content, .h-hero.is-enhanced .h-hero__slide.is-leaving .h-hero__figure { transform: translateY(-8px); opacity: 0; transition-delay: 0s; }
/* Destaque sem imagem lateral: o texto aproveita mais a largura, sem placeholder. */
.h-hero__slide:not(:has(.h-hero__figure)) .h-hero__inner { grid-template-columns: minmax(0, 1fr); }
.h-hero__slide:not(:has(.h-hero__figure)) .h-hero__content { max-width: 820px; }

/* Indicadores: barras centralizadas, pequenas no visual e com área de clique de 44 px. */
.h-hero__controls { position: absolute; left: 0; right: 0; bottom: var(--space-4); margin-inline: auto; display: flex; align-items: center; justify-content: center; z-index: 2; }
.h-hero__controls[hidden], .h-hero__pause[hidden] { display: none; }
.h-hero__dots { display: flex; gap: var(--space-1); }
.h-hero__dot { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; border-radius: var(--radius-sm); }
.h-hero__dot::before { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 4px; margin-top: -2px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.5); transition: background-color var(--duration) var(--ease), left var(--duration) var(--ease), right var(--duration) var(--ease); }
.h-hero__dot:hover::before { background: rgba(255, 255, 255, 0.85); }
.h-hero__dot[aria-current="true"]::before { left: 4px; right: 4px; background: var(--color-green); }
/* Pausa: fora da tela até receber foco do teclado (mesma técnica do link "Ir para o conteúdo"). */
.h-hero__pause { position: absolute; left: var(--gutter); top: 50%; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; color: #fff; font: inherit; font-size: var(--text-sm); cursor: pointer; }
.h-hero__pause:focus, .h-hero__pause:focus-visible { width: auto; height: auto; min-height: 44px; padding: 0 var(--space-4); transform: translateY(-50%); overflow: visible; clip-path: none; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: var(--radius-pill); background: rgba(7, 32, 42, 0.9); }
.h-hero :focus-visible { outline-color: var(--color-yellow); }

/* Faixa de destaques */
.h-strip { background: linear-gradient(90deg, #0b3f52 0%, #0c5f63 55%, #0c7a67 100%); color: #fff; }
.h-strip__list { list-style: none; margin: 0; padding: var(--space-5) 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.h-strip__item { min-width: 0; display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: var(--space-3); padding-block: var(--space-4); }
.h-strip__item:not(:has(.h-strip__icon)) { grid-template-columns: minmax(0, 1fr); }
.h-strip__item + .h-strip__item { border-top: 1px solid rgba(255, 255, 255, 0.18); }
.h-strip__icon { width: 46px; height: 46px; padding: 10px; flex: 0 0 auto; color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.08); }
.h-strip__content { min-width: 0; margin: 0; line-height: 1.38; font-size: 0.875rem; color: #d8ebe8; }
.h-strip__content strong { display: block; margin-bottom: 2px; font-family: var(--font-heading); font-size: 1rem; font-weight: var(--weight-heavy); line-height: 1.22; color: #fff; }
.h-strip__content span { display: block; }
@media (min-width: 640px) {
    .h-strip__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0; }
    .h-strip__item { padding: var(--space-5); }
    .h-strip__item:nth-child(odd) { padding-left: 0; padding-right: var(--space-6); }
    .h-strip__item:nth-child(even) { padding-right: 0; padding-left: var(--space-6); border-left: 1px solid rgba(255, 255, 255, 0.18); }
    .h-strip__item:nth-child(2) { border-top: 0; }
}
@media (min-width: 1100px) {
    .h-strip__list { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: var(--space-5); }
    .h-strip__item:nth-child(n) { min-height: 78px; padding: var(--space-3) clamp(1.25rem, 2.25vw, 2rem); border-top: 0; }
    .h-strip__item:first-child { padding-left: 0; }
    .h-strip__item:last-child { padding-right: 0; }
    .h-strip__item + .h-strip__item { border-left: 1px solid rgba(255, 255, 255, 0.18); }
}

/* Divisões texto + complemento */
.h-split { display: grid; gap: var(--space-7); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1024px) {
    .h-split--aside { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
    .h-split--media { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.h-split .h-heading { margin-bottom: var(--space-5); }

/* Conformidade: lista + citação */
.h-compliance { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .h-compliance--quote { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: stretch; } }
/* Pontos em cartões 2×2 com ícone em círculo, alinhados à altura da coluna editorial. */
.h-compliance__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.h-compliance__list li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; gap: var(--space-4); padding: var(--space-5); background: var(--color-mist); border: 1px solid var(--color-line); border-left: 4px solid var(--color-green); border-radius: var(--radius-md); }
.h-section--mist .h-compliance__list li { background: #fff; }
.h-compliance__icon { width: 48px; height: 48px; padding: 11px; border-radius: 50%; background: #fff; color: var(--color-petrol); box-shadow: var(--shadow-sm); }
.h-section--mist .h-compliance__icon { background: var(--color-mist); }
.h-compliance__title { font-size: var(--text-lg); margin: var(--space-1) 0 var(--space-1); letter-spacing: -0.01em; }
.h-compliance__list p { margin: 0; font-size: var(--text-base); line-height: 1.55; color: var(--text-muted); }
@media (min-width: 1024px) { .h-split--aside { gap: var(--space-8); } }
.h-quote { margin: 0; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--color-petrol-900); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; justify-content: center; gap: var(--space-4); }
.h-quote__icon { width: 44px; height: 44px; color: #fff; }
.h-quote blockquote { margin: 0; }
.h-quote blockquote p { margin: 0; font-size: var(--text-lg); line-height: 1.5; color: #fff; }
.h-quote figcaption { font-size: var(--text-sm); color: var(--color-green); font-weight: var(--weight-medium); }

/* Localidades */
.h-pins { list-style: none; margin: 0 0 var(--space-6); padding: 0; display: grid; gap: var(--space-3) var(--space-6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.h-pins a { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--text); font-weight: var(--weight-medium); text-decoration: none; min-height: 44px; }
.h-pins a:hover { color: var(--color-petrol); text-decoration: underline; }
.h-pins__icon { width: 24px; height: 24px; color: var(--color-petrol); flex: 0 0 auto; }
/* Sede sem mapa: texto à esquerda e cartão escuro de endereço à direita (dados das Configurações).
   Padrão de pontos e marcador são decorativos; não representam área de atendimento. */
.h-base { align-items: center; }
@media (min-width: 1024px) { .h-base { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: var(--space-8); } }
.h-base__card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-6); min-height: clamp(320px, 240px + 12vw, 420px); padding: clamp(1.75rem, 1rem + 3vw, 3.25rem); border-radius: var(--radius-lg); background: linear-gradient(135deg, #0b3f52 0%, #0c5f63 58%, #0c7a67 100%); box-shadow: var(--shadow-lg); color: #fff; }
.h-base__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.4px, transparent 1.6px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 65%); mask-image: linear-gradient(200deg, #000 0%, transparent 65%); }
.h-base__mark { position: absolute; top: clamp(1.25rem, 0.5rem + 2.5vw, 2.5rem); right: clamp(1.25rem, 0.5rem + 2.5vw, 2.5rem); width: clamp(72px, 40px + 7vw, 132px); height: auto; aspect-ratio: 1; color: var(--color-green); opacity: 0.9; }
.h-base__place { margin: 0; max-width: 12ch; font-family: var(--font-heading); font-weight: var(--weight-heavy); font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); line-height: 1.04; letter-spacing: -0.025em; }
.h-base__place a { color: #fff; text-decoration: none; background-image: linear-gradient(var(--color-green), var(--color-green)); background-size: 0 3px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size var(--duration) var(--ease); }
.h-base__place a:hover, .h-base__place a:focus-visible { background-size: 100% 3px; }
.h-base__channels { margin: 0; display: grid; gap: var(--space-4); }
/* Telefone vem antes do endereço (ordem das Configurações): coluna do telefone no tamanho do conteúdo. */
@media (min-width: 640px) { .h-base__channels:has(> :nth-child(2)) { grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-5) var(--space-7); } }
.h-base__card .h-base__channel { padding-top: var(--space-4); border-top: 1px solid rgba(255, 255, 255, 0.22); }
.h-base__card .h-base__channel dt { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); font-family: var(--font-heading); font-size: var(--text-xs); font-weight: var(--weight-heavy); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-green); }
.h-base__icon { width: 18px; height: 18px; flex: 0 0 auto; }
.h-base__card .h-base__channel dd { margin: 0; font-size: var(--text-base); line-height: 1.55; color: #fff; overflow-wrap: anywhere; }
.h-base__card .h-base__channel dd a { color: #fff; font-size: var(--text-lg); font-weight: var(--weight-bold); text-underline-offset: 4px; }

/* Serviços da Home: cartões numerados, mais altos e com hover/foco evidentes. */
.h-services { counter-reset: service; gap: var(--space-5); }
.h-services .c-card--service { counter-increment: service; gap: var(--space-4); padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.h-services .c-card--service::before { content: counter(service, decimal-leading-zero) / ""; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #e1f5ea; color: var(--color-green-700); font-family: var(--font-heading); font-weight: var(--weight-heavy); font-size: var(--text-sm); letter-spacing: 0.04em; }
.h-services .c-card__title { font-size: var(--text-xl); letter-spacing: -0.01em; }
.h-services .c-card__text { font-size: var(--text-base); line-height: 1.6; }
.h-services .c-card:hover, .h-services .c-card:focus-within { border-color: var(--color-green); box-shadow: var(--shadow-lg); transform: translateY(-4px); }

/* Galeria operacional: trilho duplicado para movimento contínuo da esquerda para a direita. */
.h-gallery { overflow: hidden; }
.h-gallery .h-heading { margin-inline: auto; text-align: center; }
.h-gallery .h-heading__title { margin-inline: auto; }
.h-gallery__viewport { position: relative; width: 100%; overflow: hidden; padding-block: var(--space-2) var(--space-7); }
.h-gallery__track { display: flex; width: max-content; gap: var(--space-4); transform: translateX(calc(-50% - var(--space-2))); animation: gallery-marquee var(--gallery-duration, 35s) linear infinite; }
.h-gallery__group { display: flex; gap: var(--space-4); flex: 0 0 auto; }
.h-gallery__item { position: relative; flex: 0 0 clamp(260px, 28vw, 380px); width: clamp(260px, 28vw, 380px); margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-petrol-900); box-shadow: var(--shadow-md); }
.h-gallery__zoom { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; cursor: zoom-in; }
.h-gallery__item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 500ms var(--ease); }
.h-gallery__item figcaption { position: absolute; inset: auto 0 0; padding: var(--space-6) var(--space-4) var(--space-4); background: linear-gradient(transparent, rgba(7, 32, 42, 0.88)); color: #fff; font-size: var(--text-sm); line-height: 1.4; }
.h-gallery__viewport:hover .h-gallery__track, .h-gallery__viewport:focus-within .h-gallery__track { animation-play-state: paused; }
.h-gallery__zoom:hover img, .h-gallery__zoom:focus-visible img { transform: scale(1.035); }
.h-gallery-modal { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: clamp(1rem, 4vw, 3rem); border: 0; background: transparent; overflow: hidden; }
.h-gallery-modal[open] { display: grid; place-items: center; }
.h-gallery-modal::backdrop { background: rgba(3, 19, 25, 0.94); backdrop-filter: blur(5px); }
.h-gallery-modal img { display: block; max-width: 100%; max-height: calc(100vh - clamp(2rem, 8vw, 6rem)); width: auto; height: auto; object-fit: contain; border-radius: var(--radius-sm); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42); }
.h-gallery-modal__close { position: fixed; z-index: 1; top: clamp(0.75rem, 2vw, 1.5rem); right: clamp(0.75rem, 2vw, 1.5rem); width: 46px; height: 46px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.42); border-radius: 50%; background: rgba(7, 32, 42, 0.82); color: #fff; font: 300 2rem/1 Arial, sans-serif; cursor: pointer; }
.h-gallery-modal__close:hover { background: #fff; color: var(--color-petrol-900); }
.has-gallery-modal { overflow: hidden; }
@keyframes gallery-marquee {
    from { transform: translateX(calc(-50% - var(--space-2))); }
    to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
    .h-gallery__viewport { overflow-x: auto; }
    .h-gallery__track { animation: none; transform: none; }
    .h-gallery__group[aria-hidden="true"] { display: none; }
}

.h-media { margin: 0; }
.h-media img { width: 100%; height: auto; border-radius: var(--radius-lg); }
.h-media--cutout img { border-radius: 0; filter: drop-shadow(0 24px 30px rgba(11, 42, 52, 0.18)); }

/* Faixa escura com imagem */
.h-band { position: relative; isolation: isolate; overflow: hidden; background: var(--color-petrol-900); padding-block: clamp(4rem, 2.5rem + 6vw, 7.5rem); }
.h-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: -2; }
.h-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 32, 42, 0.95) 0%, rgba(7, 32, 42, 0.8) 42%, rgba(7, 32, 42, 0.18) 100%); }
.h-band__inner { display: grid; gap: var(--space-7); grid-template-columns: minmax(0, 1fr); }
.h-band__content { max-width: 600px; }
.h-band .h-heading { margin-bottom: var(--space-6); }
.h-band .h-heading__lead { color: #d8ebe8; }
/* Aplicativo: texto e benefícios em duas colunas, foto visível entre os cartões. */
.h-band__items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); align-content: center; }
.h-band__items li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--space-4); align-items: center; padding: var(--space-4); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--radius-md); background: rgba(7, 32, 42, 0.82); }
.h-band__items h3 { grid-column: 2; font-size: var(--text-base); margin: 0 0 var(--space-1); }
.h-band__items p { grid-column: 2; margin: 0; font-size: var(--text-sm); line-height: 1.5; color: #d8ebe8; }
.h-band__icon { grid-column: 1; grid-row: 1 / span 2; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: rgba(51, 204, 153, 0.16); color: var(--color-green); }
.h-band__items li:not(:has(.h-band__icon)) { grid-template-columns: minmax(0, 1fr); }
.h-band__items li:not(:has(.h-band__icon)) > * { grid-column: 1; }
@media (min-width: 1024px) {
    .h-band__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: clamp(3rem, 8vw, 8rem); }
}

/* Segmentos: mídia decorativa do CMS; sem mídia o cartão permanece textual. */
.h-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.h-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); height: 100%; min-height: 132px; padding: var(--space-5) var(--space-3); border: 1px solid var(--color-line); border-radius: var(--radius-md); background: #fff; color: var(--color-petrol-900); text-align: center; text-decoration: none; font-family: var(--font-heading); font-size: var(--text-sm); font-weight: var(--weight-bold); line-height: 1.4; box-shadow: var(--shadow-sm); transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease); }
.h-tile:hover { border-color: var(--color-green); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.h-tile__image { width: 56px; height: 56px; object-fit: contain; }
.h-tile__title { min-width: 0; overflow-wrap: anywhere; }

/* Mapa local: as UFs sem localidades permanecem discretas. */
.h-where { display: grid; gap: var(--space-7); align-items: center; }
.h-where__intro .h-heading { margin-bottom: var(--space-5); }
.h-where__cities { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.h-where__cities a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; color: var(--color-petrol-900); font-weight: var(--weight-medium); }
.h-where__pin { width: 20px; color: var(--color-green-700); }
.h-where__visual { min-width: 0; }
.h-where__map { margin: 0 auto; max-width: 480px; }
.h-where__map svg { display: block; width: 100%; height: auto; }
.h-where__uf { fill: #dbe7e4; stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.h-where__uf.is-active { fill: url(#home-map-active); stroke: #075848; }
.h-where__legend { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--color-petrol-900); }
.h-where__swatch { display: inline-block; width: 12px; height: 12px; margin-right: 6px; background: #0c7a67; border-radius: 2px; }
.h-where__card { margin-top: var(--space-5); padding: var(--space-5); border: 1px solid var(--color-line); border-radius: var(--radius-md); background: #fff; }
.h-where__channels { margin: 0; display: grid; gap: var(--space-4); }
.h-where__channels dt { color: var(--color-petrol-900); font-size: var(--text-sm); font-weight: var(--weight-medium); margin-bottom: var(--space-1); }
.h-where__channels dd { margin: 0; overflow-wrap: anywhere; }
.h-where__channels dd, .h-where__channels a { color: var(--color-petrol); }
.h-where__card .c-actions { margin-top: var(--space-5); }
@media (min-width: 1024px) {
    .h-where { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 7rem); }
}

/* Etapas */
.h-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.h-step { position: relative; min-width: 0; padding-top: var(--space-2); }
@media (max-width: 1023.98px) {
    /* Mobile/tablet: número ao lado do texto, lista compacta com linha de conexão vertical. */
    .h-steps { gap: var(--space-6); grid-template-columns: minmax(0, 1fr); max-width: 680px; }
    .h-step { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: var(--space-4); align-content: start; }
    .h-step > :not(.h-step__number) { grid-column: 2; }
    .h-step__number { grid-row: 1 / span 3; margin-bottom: 0; }
    .h-step__icon { display: none; }
    /* Linha vertical ligando os números: sequência visível no celular. */
    .h-step:not(:last-child)::after { content: ""; position: absolute; left: 25px; top: calc(var(--space-2) + 60px); bottom: calc(-1 * var(--space-6) + 4px); border-left: 2px solid #bfe8d3; }
}
.h-step__number { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--color-petrol) 0%, var(--color-green-strong) 100%); color: #fff; font-family: var(--font-heading); font-size: var(--text-lg); font-weight: var(--weight-heavy); box-shadow: 0 0 0 6px var(--surface-alt), 0 10px 22px -12px rgba(0, 78, 97, 0.7); margin-bottom: var(--space-4); }
.h-section--white .h-step__number { box-shadow: 0 0 0 6px #fff, 0 10px 22px -12px rgba(0, 78, 97, 0.7); }
@media (min-width: 1024px) {
    .h-steps { grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr)); gap: clamp(1.25rem, 2vw, 2rem); }
    /* Conector contínuo entre os números, atrás dos círculos. */
    .h-step:not(:last-child)::after { content: ""; position: absolute; top: calc(var(--space-2) + 25px); left: 52px; right: calc(-1 * clamp(1.25rem, 2vw, 2rem)); border-top: 2px solid #bfe8d3; }
    /* No desktop o número ocupa uma linha própria; título e texto recebem toda a largura da etapa. */
    .h-step { display: block; padding-right: clamp(0.5rem, 1vw, 1rem); border: 0; background: transparent; }
    .h-step > :not(.h-step__number) { grid-column: auto; }
    .h-step__number { grid-row: auto; margin-bottom: var(--space-5); }
}
.h-step__icon { display: block; width: 30px; height: 30px; color: var(--color-petrol); margin-bottom: var(--space-2); }
.h-step__title { min-width: 0; overflow-wrap: normal; hyphens: none; font-size: 1rem; line-height: 1.35; margin: 0 0 var(--space-2); letter-spacing: -0.01em; }
.h-step p { margin: 0; font-size: var(--text-sm); line-height: 1.55; color: var(--text-muted); }

/* Estrutura */
.h-checks { list-style: none; margin: 0 0 var(--space-6); padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.h-checks li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--color-mist); border-radius: var(--radius-md); }
.h-section--mist .h-checks li { background: #fff; }
.h-checks__icon { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: #fff; color: var(--color-green-700); }
.h-section--mist .h-checks__icon { background: var(--color-mist); }
.h-checks strong { display: block; color: var(--text-heading); font-family: var(--font-heading); font-weight: var(--weight-bold); line-height: 1.3; }
.h-checks span { display: block; font-size: var(--text-sm); color: var(--text-muted); }
/* Estrutura: caminhão oficial maior, ocupando a coluna direita até a borda do container. */
@media (min-width: 1024px) {
    .h-structure { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-7); }
}

/* Chamada final */
/* Mais clara e esverdeada que o rodapé (petróleo profundo): a transição fica nítida, sem duas faixas iguais. */
.h-final { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(118deg, #0b3f52 0%, #0c5f63 55%, #0d7766 100%); padding-block: clamp(4rem, 2.5rem + 5vw, 6.5rem); }
.h-final::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.4px, transparent 1.6px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(270deg, #000 0%, transparent 55%); mask-image: linear-gradient(270deg, #000 0%, transparent 55%); }
.h-final .h-heading__title { max-width: 18ch; }
.h-final__inner { display: grid; gap: var(--space-6); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .h-final__inner { grid-template-columns: minmax(0, 1fr) auto; } }
.h-final .h-heading { margin-bottom: 0; }
.h-final .h-heading__lead { color: #d8ebe8; }

/* 11. Páginas internas (Fase 6) --------------------------------------------- */
/* Mesma linguagem da Home: faixa escura com gradiente petróleo, destaques em cards claros,
   etapas numeradas em verde e chamada final escura. Nada aqui depende de conteúdo fixo. */
.c-page-hero__inner { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); align-items: center; }
.c-page-hero + .c-page-body { padding-top: var(--section-y); }
.c-page-hero__content { min-width: 0; }
.c-page-hero__media { margin: 0; }
.c-page-hero__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--color-mist); }
@media (min-width: 1024px) {
    .c-page-hero--media .c-page-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-8); }
}
.c-page-hero.theme-dark .c-eyebrow { color: var(--color-green); }
.c-page-hero.theme-dark .c-breadcrumbs li + li::before { color: rgba(255, 255, 255, 0.4); }
.c-page-hero__count { margin: 0; color: var(--text-muted); font-size: var(--text-sm); }
.c-listing { list-style: none; margin: 0; padding: 0; }

/* Etapas numeradas (bloco steps) */
.c-steps { list-style: none; margin-inline: 0; padding: 0; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.c-steps__item { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); min-width: 0; padding: var(--space-5); background: var(--surface-raised); border: 1px solid var(--border); border-top: 3px solid var(--color-green); border-radius: var(--radius-md); }
.c-steps__item > div { width: 100%; min-width: 0; }
.c-steps__number { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #e1f5ea; color: var(--color-green-700); font-family: var(--font-heading); font-weight: var(--weight-heavy); }
.c-steps__title { overflow-wrap: normal; hyphens: none; font-family: var(--font-heading); font-size: 1rem; font-weight: var(--weight-heavy); color: var(--text-heading); line-height: 1.35; margin: 0 0 var(--space-2); }
.c-steps__text { margin: 0; font-size: var(--text-sm); line-height: 1.55; color: var(--text-muted); }

/* Destaques (bloco features): ícone ou imagem derivada */
.c-features { list-style: none; margin-inline: 0; padding: 0; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.c-features__item { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); background: var(--surface-raised); border: 1px solid var(--border); border-top: 4px solid var(--color-green); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); min-width: 0; }
.c-features__icon { width: 32px; height: 32px; color: var(--color-petrol); margin-bottom: var(--space-2); }
.c-features__image { width: calc(100% + 2 * var(--space-5)); max-width: none; margin: calc(-1 * var(--space-5)) calc(-1 * var(--space-5)) var(--space-3); aspect-ratio: 16 / 10; object-fit: cover; background: var(--color-mist); }
.c-features__item:has(.c-features__image) { border-top-width: 1px; overflow: hidden; }
.c-features__title { font-family: var(--font-heading); font-weight: var(--weight-heavy); color: var(--text-heading); line-height: var(--leading-snug); margin: 0; }
.c-features__text { margin: 0; font-size: var(--text-sm); color: var(--text-muted); }

/* Galeria (bloco gallery) */
.c-gallery { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.c-gallery__item { margin: 0; min-width: 0; }
.c-gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); background: var(--color-mist); }
.c-gallery__item figcaption { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--text-muted); }

/* Contato: somente canais configurados */
.c-contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) { .c-contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .c-contact-list { grid-template-columns: minmax(0, 1fr); } }
.c-contact-card { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-5); background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); min-width: 0; }
.c-contact-card__icon { width: 30px; height: 30px; color: var(--color-petrol); }
.c-contact-card__label { margin: 0; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-accent); }
.c-contact-card__value { margin: 0; font-weight: var(--weight-medium); font-size: var(--text-lg); color: var(--text-heading); overflow-wrap: anywhere; }
a.c-contact-card__value { color: var(--color-petrol); display: inline-flex; align-items: center; min-height: 44px; }
.c-contact-extra { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-7); align-items: center; }
.c-contact-extra p { margin: 0; }
.c-contact-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.c-contact-social a { display: inline-flex; align-items: center; min-height: 44px; padding: var(--space-2) var(--space-4); border: 1px solid var(--border-strong); border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: var(--weight-medium); text-decoration: none; background: #fff; }

/* Documentos públicos */
.c-documents { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.c-document { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3) var(--space-4); align-items: start; padding: var(--space-5); background: #fff; border: 1px solid var(--color-line); border-left: 4px solid var(--color-green); border-radius: var(--radius-md); }
.c-document--expired { border-left-color: var(--color-danger); background: #fffafa; }
.c-document__icon { width: 32px; height: 32px; color: var(--color-petrol); }
.c-document__badges { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-2); }
.c-document__title { font-size: var(--text-lg); margin: 0 0 var(--space-2); letter-spacing: 0; }
.c-document__facts { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); margin: 0; font-size: var(--text-sm); color: var(--text-muted); }
.c-document__facts div { display: flex; gap: var(--space-2); }
.c-document__facts dt { font-weight: var(--weight-bold); }
.c-document__facts dd { margin: 0; overflow-wrap: anywhere; }
.c-document__notes { margin: var(--space-2) 0 0; font-size: var(--text-sm); }
.c-document__download { grid-column: 1 / -1; justify-self: start; }
.c-document__size { font-weight: var(--weight-regular); text-transform: none; letter-spacing: 0; }
@media (min-width: 768px) {
    .c-document { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
    .c-document__download { grid-column: auto; justify-self: end; }
}

/* Chamada final das páginas internas */
.c-page-cta { padding-top: 0; }
.l-section--mist + .c-page-cta, .c-sources-section + .c-page-cta { padding-top: var(--section-y); }

/* 12. Formulário de contato (Fase 7) ------------------------------------------ */
.c-contact-layout { display: grid; gap: var(--space-7); grid-template-columns: minmax(0, 1fr); align-items: start; }
.c-contact-layout .c-section-header { margin-bottom: var(--space-5); }
.c-contact-layout .c-section-header__title { font-size: var(--text-2xl); }
.c-lead-form { position: relative; padding: clamp(var(--space-5), 3vw, var(--space-7)); background: #fff; border: 1px solid var(--color-line); border-top: 4px solid var(--color-green); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); min-width: 0; }
.c-lead-form__title { font-size: var(--text-2xl); margin-bottom: var(--space-5); }
.c-lead-form .c-alert { margin-bottom: var(--space-5); }
.c-lead-form .c-alert:focus { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.c-lead-form__errors { margin: var(--space-2) 0 0; padding-left: 1.2em; }
.c-lead-form__errors a { color: inherit; font-weight: var(--weight-medium); }
.c-lead-form .c-check label { cursor: pointer; }
.c-lead-form .c-check a { font-weight: var(--weight-medium); }
/* Honeypot: fora da tela e fora da ordem de tabulação; leitores de tela o ignoram (aria-hidden). */
.c-lead-form__hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Ações flutuantes: contato imediato e retorno ao topo sem competir com o conteúdo. */
.c-floating-actions { position: fixed; z-index: 30; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.c-floating-action { position: relative; display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50%; box-shadow: 0 9px 28px rgba(4, 34, 39, .25); cursor: pointer; pointer-events: auto; transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), opacity 180ms var(--ease); }
.c-floating-action:hover, .c-floating-action:focus-visible { transform: translateY(-3px); box-shadow: 0 13px 32px rgba(4, 34, 39, .32); }
.c-floating-action svg { width: 28px; height: 28px; }
.c-floating-action--whatsapp { order: 2; width: 60px; height: 60px; background: #25d366; color: #fff; }
.c-floating-action--whatsapp::before { content: ""; position: absolute; inset: -1px; border: 2px solid rgba(37, 211, 102, .65); border-radius: inherit; animation: whatsapp-pulse 2.4s ease-out infinite; }
.c-floating-action--whatsapp svg { width: 34px; height: 34px; }
.c-floating-action--top { position: fixed; left: 50%; right: auto; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--color-petrol-900); color: #fff; opacity: .92; }
.c-floating-action--top:hover, .c-floating-action--top:focus-visible { transform: translateX(-50%) translateY(-3px); }
.c-floating-action--top[hidden] { display: none; }
.c-whatsapp-help { position: absolute; right: 0; bottom: 72px; width: min(250px, calc(100vw - 36px)); padding: 14px 38px 14px 16px; border: 1px solid #d5e5df; border-radius: 13px 13px 3px 13px; background: #fff; color: var(--color-petrol-900); box-shadow: 0 14px 38px rgba(4, 34, 39, .2); opacity: 0; transform: translateY(8px) scale(.98); transform-origin: bottom right; pointer-events: auto; transition: opacity 220ms var(--ease), transform 220ms var(--ease); }
.c-whatsapp-help.is-visible { opacity: 1; transform: none; }
.c-whatsapp-help p { margin: 0 0 2px; font-family: var(--font-heading); font-size: .95rem; font-weight: var(--weight-heavy); }
.c-whatsapp-help span { display: block; color: var(--text-muted); font-size: var(--text-xs); }
.c-whatsapp-help__close { position: absolute; top: 5px; right: 6px; display: grid; place-items: center; width: 32px; height: 32px; min-height: 0; padding: 0; border: 0; background: transparent; color: var(--text-muted); font: 400 1.35rem/1 Arial, sans-serif; cursor: pointer; }
@keyframes whatsapp-pulse { 0% { transform: scale(1); opacity: .75; } 70%, 100% { transform: scale(1.34); opacity: 0; } }
@media (max-width: 639px) { .c-floating-actions { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }.c-floating-action--whatsapp { width: 56px; height: 56px; }.c-floating-action--top { width: 48px; height: 48px; bottom: max(12px, env(safe-area-inset-bottom)); }.c-whatsapp-help { bottom: 68px; } }
@media (prefers-reduced-motion: reduce) { .c-floating-action--whatsapp::before { animation: none; }.c-floating-action:hover, .c-floating-action:focus-visible { transform: none; }.c-floating-action--top, .c-floating-action--top:hover, .c-floating-action--top:focus-visible { transform: translateX(-50%); }.c-whatsapp-help { transition: none; } }
