/* EIZ Participações: folha única do site. */

:root {
  color-scheme: light;

  --color-bg: #f6f1e7;
  --color-bg-alt: #ede5d5;
  --color-surface: #fffcf6;
  --color-text: #24292d;
  --color-text-muted: #545a5f;
  --color-heading: #0a3642;
  --color-brand: #0f4c5c;
  --color-brand-strong: #0a3642;
  --color-brand-soft: #dce8e7;
  --color-accent: #8a4b22;
  --color-accent-line: #b97b4b;
  --color-border: #ddd2bf;
  --color-on-dark: #eaf1f0;
  --color-on-dark-muted: #c9d6d6;
  --color-on-dark-link: #f2c894;
  --color-focus: #0f4c5c;

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;

  --radius-sm: 0.5rem;
  --radius: 0.75rem;
  --radius-lg: 1.25rem;
  --shadow-soft: 0 1px 2px rgba(10, 54, 66, 0.06), 0 8px 24px rgba(10, 54, 66, 0.06);
  --tap: 44px;
  --gutter: 1rem;
  --max: 72rem;
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* O Safari 26 pinta a barra com o fundo do body, não com a theme-color. */
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

[hidden] {
  display: none !important;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-heading);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.125rem, 1.55rem + 2.6vw, 3.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  font-weight: 500;
}

h3 {
  font-size: 1.25rem;
}

p,
ul,
ol,
dl,
address,
figure,
table {
  margin: 0 0 1rem;
}

address {
  font-style: normal;
}

a {
  color: var(--color-brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-brand-strong);
  text-decoration-thickness: 2px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
  background: var(--color-bg-alt);
}

strong {
  font-weight: 650;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

::selection {
  background: var(--color-brand-soft);
  color: var(--color-heading);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- layout ---------- */

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.section {
  padding-block: 3.5rem;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.section-header > :last-child {
  margin-bottom: 0;
}

.section-header p {
  color: var(--color-text-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 0.875rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-accent);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent-line);
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-text);
}

.split {
  display: grid;
  gap: 2rem;
}

/* ---------- pular para o conteúdo ---------- */

.skip-link {
  position: absolute;
  top: 0;
  left: var(--gutter);
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--color-brand-strong);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: none;
  color: #fff;
  outline: 3px solid var(--color-on-dark-link);
  outline-offset: 0;
}

/* ---------- cabeçalho ---------- */

.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 0.625rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: var(--tap);
  color: var(--color-heading);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
}

.brand:hover {
  color: var(--color-brand);
}

.brand-mark {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
}

.site-nav {
  flex: 1 1 100%;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0 -0.625rem;
  padding: 0;
  list-style: none;
}

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 0.625rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
}

.nav-list a:hover {
  background: var(--color-bg-alt);
  color: var(--color-brand-strong);
}

.nav-list a[aria-current="page"] {
  color: var(--color-brand);
  font-weight: 650;
}

.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.625rem;
  right: 0.625rem;
  bottom: 0.375rem;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent-line);
}

/* ---------- botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.375rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-brand-strong);
  border-color: var(--color-brand-strong);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-brand);
  color: var(--color-brand-strong);
}

.btn-secondary:hover {
  background: var(--color-brand-soft);
  color: var(--color-brand-strong);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-row .btn {
  flex: 1 1 auto;
}

.link-button {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-brand);
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.link-button:hover {
  text-decoration-thickness: 2px;
}

/* ---------- hero da home ---------- */

.hero {
  padding-block: 2.5rem 3.5rem;
  overflow: clip;
}

.hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.hero h1 {
  max-width: 15em;
  margin-bottom: 1.25rem;
}

.hero .lede {
  max-width: 34rem;
}

.hero-actions {
  margin-top: 1.75rem;
}

.hero-note {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.hero-art {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #145c6e 0%, var(--color-brand) 45%, var(--color-brand-strong) 100%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-art svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
}

/* ---------- topo das páginas internas ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 2.75rem 2.25rem;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: min(75%, 38rem);
  background: url("contours.svg") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to left, #000 35%, transparent);
  mask-image: linear-gradient(to left, #000 35%, transparent);
  pointer-events: none;
}

.page-hero h1 {
  max-width: 20em;
  margin-bottom: 0.75rem;
}

.page-hero .lede {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.page-hero-error {
  display: grid;
  align-content: center;
  min-height: min(60vh, 36rem);
}

.error-code {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 2.4rem + 3vw, 4.5rem);
  line-height: 1;
  color: var(--color-accent);
}

/* ---------- cards de serviço ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.service-card h3 {
  margin: 1rem 0 0.5rem;
}

.service-card > h3:first-child {
  margin-top: 0;
}

.service-card p {
  color: var(--color-text-muted);
}

.service-card > :last-child {
  margin-bottom: 0;
}

.service-card-note {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
}

.service-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

.service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  align-self: flex-start;
  min-height: var(--tap);
  margin-top: auto;
  font-weight: 600;
  text-decoration: none;
}

.card-link::after {
  content: "→";
  content: "→" / "";
  transition: transform 0.15s ease;
}

.card-link:hover {
  text-decoration: underline;
}

.card-link:hover::after {
  transform: translateX(3px);
}

/* ---------- etapas numeradas ---------- */

.steps {
  display: grid;
  gap: 1.75rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  position: relative;
  min-height: 2.75rem;
  padding-left: 4rem;
  counter-increment: step;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1;
}

.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 3.25rem;
  bottom: -1.25rem;
  left: calc(1.375rem - 1px);
  width: 2px;
  border-radius: 2px;
  background: var(--color-accent-line);
  opacity: 0.55;
}

.steps h3 {
  margin: 0.4rem 0 0.375rem;
}

.steps p {
  margin: 0;
  color: var(--color-text-muted);
}

/* ---------- para quem é ---------- */

.audience-grid,
.grid-2 {
  display: grid;
  gap: 1rem;
}

.audience-card {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.audience-card h3 {
  margin-bottom: 1rem;
}

.audience-card > :last-child {
  margin-bottom: 0;
}

.audience-no {
  background: transparent;
  border-style: dashed;
}

.check-list {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.check-list > li {
  position: relative;
  padding-left: 1.75rem;
}

.check-list > li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0.125rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--color-brand);
}

.check-list-no > li::before {
  background: transparent;
  border: 2px solid var(--color-accent-line);
}

/* ---------- perguntas frequentes ---------- */

.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
}

.faq details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.faq details[open] {
  box-shadow: var(--shadow-soft);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--tap);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  color: var(--color-heading);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  margin-top: -0.3rem;
  border-right: 2px solid var(--color-brand);
  border-bottom: 2px solid var(--color-brand);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  margin-top: 0.3rem;
  transform: rotate(-135deg);
}

.faq summary:hover {
  color: var(--color-brand);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
}

.faq-answer > :last-child {
  margin-bottom: 0;
}

/* ---------- aviso discreto ---------- */

.callout {
  max-width: 48rem;
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--color-accent-line);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--color-surface);
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout-title {
  margin-bottom: 0.25rem;
  font-weight: 650;
  color: var(--color-heading);
}

/* ---------- chamada final ---------- */

.cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--color-brand) 0%, var(--color-brand-strong) 100%);
  color: var(--color-on-dark);
  --color-focus: var(--color-on-dark-link);
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("contours-light.svg") center / cover no-repeat;
  pointer-events: none;
}

.cta-panel h2 {
  max-width: 22em;
  color: #fff;
}

.cta-panel p {
  max-width: 40rem;
}

.cta-panel a:not(.btn) {
  color: var(--color-on-dark-link);
}

.cta-panel .btn-row {
  margin-top: 1.5rem;
}

.cta-panel .btn-primary {
  background: var(--color-bg);
  border-color: var(--color-bg);
  color: var(--color-brand-strong);
}

.cta-panel .btn-primary:hover {
  background: #fff;
  border-color: #fff;
}

.cta-panel .btn-secondary {
  border-color: rgba(246, 241, 231, 0.75);
  color: #fff;
}

.cta-panel .btn-secondary:hover {
  background: rgba(246, 241, 231, 0.12);
  color: #fff;
}

/* ---------- texto longo (políticas e termos) ---------- */

/* As tabelas de dados e de cookies têm 5 colunas: na largura do texto as células passavam de
   10 linhas, então só elas usam a largura toda do contêiner. */
.prose > :not(.table-wrap) {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2.75rem;
  font-size: clamp(1.5rem, 1.3rem + 1vw, 1.875rem);
  scroll-margin-top: 1rem;
}

.prose h3 {
  margin-top: 1.75rem;
  font-size: 1.1875rem;
}

.prose > :first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.375rem;
}

.prose li + li {
  margin-top: 0.375rem;
}

.prose li::marker {
  color: var(--color-accent);
}

.prose dt {
  font-weight: 650;
  color: var(--color-heading);
}

.prose dd {
  margin: 0 0 0.875rem;
}

.table-wrap {
  max-width: 100%;
  margin: 1.5rem 0;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  width: 100%;
  min-width: 34rem;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.table-wrap caption {
  padding: 0.875rem 1rem 0.5rem;
  caption-side: top;
  text-align: left;
  font-weight: 650;
  color: var(--color-heading);
}

.table-wrap th,
.table-wrap td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.table-wrap thead th {
  background: var(--color-bg-alt);
  color: var(--color-heading);
  font-weight: 650;
  white-space: nowrap;
}

.table-wrap tbody th {
  font-weight: 650;
  color: var(--color-heading);
}

.table-wrap tbody tr:last-child > * {
  border-bottom: 0;
}

.toc {
  max-width: 46rem;
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.toc-title {
  margin: 0 0 0.5rem;
  font-weight: 650;
  color: var(--color-heading);
}

.toc ol {
  margin: 0;
  padding-left: 1.375rem;
}

.toc li::marker {
  color: var(--color-accent);
}

.prose .toc li + li {
  margin-top: 0;
}

.prose .toc + h2 {
  margin-top: 2rem;
}

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding-block: 0.25rem;
}

.updated-note {
  max-width: 46rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* ---------- contato ---------- */

.contact-list {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.contact-list > li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.contact-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

.contact-icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.contact-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.contact-value {
  display: block;
  overflow-wrap: anywhere;
}

.contact-list address {
  margin: 0;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---------- detalhe de serviço (servicos.html) ---------- */

.service-detail {
  display: grid;
  gap: 1rem 3rem;
  padding-block: 2.5rem;
  border-top: 1px solid var(--color-border);
  scroll-margin-top: 1rem;
}

.service-detail:first-child {
  border-top: 0;
}

.service-detail h2 {
  margin-top: 1rem;
}

.service-detail h3:not(:first-child) {
  margin-top: 1.5rem;
}

.facts {
  display: grid;
  gap: 0.25rem;
  margin: 0 0 1rem;
}

.facts dt {
  font-weight: 650;
  color: var(--color-heading);
}

.facts dd {
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

.facts > dd:last-child {
  margin-bottom: 0;
}

/* ---------- rodapé ---------- */

.site-footer {
  padding-block: 3rem 1.25rem;
  background: var(--color-brand-strong);
  color: var(--color-on-dark);
  font-size: 0.9375rem;
  line-height: 1.6;
  --color-focus: var(--color-on-dark-link);
}

.site-footer a,
.site-footer .link-button {
  color: #fff;
}

.site-footer a:hover,
.site-footer .link-button:hover {
  color: var(--color-on-dark-link);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1;
}

.footer-about p:not(.footer-brand) {
  max-width: 22rem;
  color: var(--color-on-dark-muted);
}

.footer-heading {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #fff;
}

.footer-identification p,
.footer-identification address {
  margin: 0 0 0.25rem;
}

.footer-identification a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  overflow-wrap: anywhere;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--tap);
}

.a11y-icon {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
}

.a11y-icon .a11y-figure {
  stroke: var(--color-brand-strong);
}

.a11y-icon .a11y-head {
  fill: var(--color-brand-strong);
}

/* Marcador visível de propósito: o modelo é fictício e não pode passar por dado real. */
[data-placeholder] {
  padding: 0 0.2em;
  border-radius: 0.25rem;
  background: rgba(185, 123, 75, 0.16);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.site-footer [data-placeholder] {
  background: rgba(242, 200, 148, 0.16);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(246, 241, 231, 0.18);
  color: var(--color-on-dark-muted);
}

.footer-bottom p {
  margin: 0;
}

.footer-pixel {
  flex: 1 1 100%;
}

/* ---------- banner de cookies ---------- */

/* Com o banner aberto, a rolagem do foco para antes dele; sem isso o item focado fica atrás do banner. */
html:has(#cookie-banner:not([hidden])) {
  scroll-padding-bottom: calc(35vh + 1rem);
  scroll-padding-bottom: calc(35dvh + 1rem);
}

.cookie-banner {
  /* Sticky no fim do body: fica preso embaixo sem cobrir o rodapé quando a página termina. */
  position: sticky;
  bottom: 0;
  z-index: 50;
  max-height: 35vh;
  max-height: 35dvh;
  overflow-y: auto;
  border-top: 3px solid var(--color-accent-line);
  background: var(--color-brand-strong);
  color: var(--color-on-dark);
  box-shadow: 0 -8px 24px rgba(10, 54, 66, 0.2);
  --color-focus: var(--color-on-dark-link);
}

.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  padding-block: 0.875rem;
}

.cookie-banner-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.cookie-banner a {
  color: var(--color-on-dark-link);
}

.cookie-banner a:hover {
  color: #fff;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.625rem;
}

.consent-btn {
  flex: 1 1 0;
  min-height: var(--tap);
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--color-bg);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-brand-strong);
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
}

.consent-btn:hover {
  background: #fff;
  border-color: #fff;
}

/* ---------- telas maiores ---------- */

@media (min-width: 40rem) {
  .btn-row .btn {
    flex: 0 1 auto;
  }
}

@media (min-width: 48rem) {
  :root {
    --gutter: 1.5rem;
  }

  .section {
    padding-block: 5rem;
  }

  .site-nav {
    flex: 0 1 auto;
  }

  .nav-list {
    margin: 0 -0.625rem 0 0;
  }

  .page-hero {
    padding-block: 4rem 3.25rem;
  }

  .audience-grid,
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .toc ol:has(> li:nth-child(8)) {
    columns: 2;
    column-gap: 2.5rem;
  }

  .toc li {
    break-inside: avoid;
  }

  .cta-panel {
    padding: 3.5rem 3rem;
  }

  .footer-grid {
    grid-template-columns: 1.1fr 1fr 0.9fr;
    gap: 2.5rem;
  }

  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .cookie-banner-actions {
    flex: none;
  }

  .consent-btn {
    flex: none;
    min-width: 8.5rem;
  }
}

@media (min-width: 56rem) {
  .hero {
    padding-block: 4.5rem 5rem;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
  }

  .hero-art svg {
    aspect-ratio: 1 / 1;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
  }

  .service-detail {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  }
}

@media (min-width: 64rem) {
  .steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .steps > li {
    padding: 4rem 0 0;
  }

  .steps > li:not(:last-child)::after {
    top: calc(1.375rem - 1px);
    right: -1.5rem;
    bottom: auto;
    left: 3.5rem;
    width: auto;
    height: 2px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .skip-link,
  .cookie-banner,
  .hero-art {
    display: none !important;
  }

  body {
    background: #fff;
  }
}
