:root {
  --areia: #f5ebd7;
  --papel: #fbf6ea;
  --petroleo: #0b3c49;
  --petroleo-2: #14525f;
  --coral: #b5412a;
  --coral-esc: #9a3420;
  --tinta: #12303a;
  --suave: #44575c;
  --linha: #d9c9a8;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --topo-h: 156px; /* aviso (até 2 linhas) + header */
}

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

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topo-h) + 8px);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--areia);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, p, figure { margin: 0; }

a, button { touch-action: manipulation; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}
.topo :focus-visible,
.secao--petroleo :focus-visible,
.rodape :focus-visible { outline-color: #ffd9b8; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* Aviso discreto */
.topo-grupo {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--petroleo);
}
.aviso {
  position: sticky;
  top: 0;
  margin: 0;
  padding: 4px 12px;
  background: var(--papel);
  color: var(--suave);
  border-bottom: 1px solid var(--linha);
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: center;
}

/* Azulejo em CSS */
.topo__faixa {
  height: 10px;
  background:
    conic-gradient(from 45deg at 50% 50%, var(--coral) 0 25%, var(--petroleo) 0 50%, var(--coral) 0 75%, var(--petroleo) 0) 0 0 / 20px 20px;
}

/* Header */
.topo {
  background: var(--petroleo);
  color: var(--areia);
}
.topo__linha {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 12px;
  padding-block: 6px 4px;
}
.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--areia);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.1;
}
.marca__onda {
  flex-shrink: 0;
  width: 28px;
  height: 14px;
  background:
    radial-gradient(circle at 50% 100%, transparent 5px, var(--areia) 5.5px 8px, transparent 8.5px) 0 0 / 14px 14px repeat-x;
}
.nav {
  grid-column: 1 / -1;
  display: flex;
  gap: 4px;
  margin-inline: -10px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 10px;
  color: var(--areia);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 8px;
}
.nav a:active { background: var(--petroleo-2); }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.btn--coral { background: var(--coral); color: #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
.btn--grande { min-height: 56px; padding: 14px 30px; font-size: 1.125rem; }
.btn:active { transform: scale(0.97); }
.topo__cta { padding-inline: 16px; font-size: 0.9375rem; }

.link-sec {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  color: var(--petroleo);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* Tipografia */
h1, h2 { font-family: var(--serif); color: var(--petroleo); line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.5rem + 5.6vw, 5rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 2.125rem; font-weight: 700; letter-spacing: -0.01em; }
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--coral-esc);
  margin-bottom: 12px;
}
.apoio { font-size: 1.1875rem; margin-top: 16px; max-width: 34ch; }
.acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 28px; }

/* Grid 12 colunas */
.grade { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; row-gap: 28px; }
.grade > * { grid-column: 1 / -1; min-width: 0; }

.hero { padding-block: 32px 56px; background: var(--areia); }
.foto img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--papel);
  border: 6px solid var(--papel);
  border-radius: 14px;
  box-shadow: 0 0 0 2px var(--petroleo), 8px 8px 0 var(--coral);
}
.foto figcaption { margin-top: 18px; font-size: 0.875rem; color: var(--suave); }

.secao { padding-block: 64px; position: relative; }
.secao--papel { background: var(--papel); border-top: 1px solid var(--linha); }
.secao--petroleo { background: var(--petroleo); color: var(--areia); }
.secao--petroleo h2 { color: var(--areia); }
.secao--areia { background: var(--areia); border-top: 1px solid var(--linha); }
.onda-topo {
  position: absolute;
  inset: -1px 0 auto 0;
  height: 10px;
  background: radial-gradient(circle at 50% 0, var(--areia) 7px, transparent 7.5px) 0 0 / 20px 10px repeat-x;
}
.secao--papel { padding-top: 76px; }

.endereco { font-family: var(--serif); font-size: 1.75rem; font-weight: 700; line-height: 1.25; }
.qualif { margin-top: 14px; color: #e6d9bd; max-width: 44ch; }
.nota { margin-top: 20px; color: var(--suave); max-width: 46ch; font-size: 0.9375rem; }

/* Rodapé */
.rodape { background: var(--petroleo); color: var(--areia); padding-bottom: env(safe-area-inset-bottom, 0px); }
.rodape__linha { padding-block: 28px; display: grid; gap: 6px; justify-items: start; }
.rodape__aviso { font-size: 0.875rem; }
.rodape__nome { font-family: var(--serif); font-weight: 700; font-size: 1.125rem; }
.rodape__topo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--areia);
  font-weight: 700;
  text-underline-offset: 5px;
}

@media (hover: hover) and (pointer: fine) {
  .btn--coral:hover { background: var(--coral-esc); }
  .nav a:hover { background: var(--petroleo-2); }
  .link-sec:hover { color: var(--coral-esc); }
  .rodape__topo:hover { color: #fff; }
}

@media (min-width: 600px) {
  h2 { font-size: 2.75rem; }
  .container { width: min(1200px, 100% - 48px); }
}

@media (min-width: 1024px) {
  :root { --topo-h: 112px; }
  .container { width: min(1200px, 100% - 64px); }
  h2 { font-size: 3.5rem; }
  .topo__linha { grid-template-columns: auto 1fr auto; padding-block: 8px; column-gap: 32px; }
  .nav { grid-column: 2; grid-row: 1; justify-content: center; margin-inline: 0; }
  .topo__cta { grid-column: 3; grid-row: 1; font-size: 1.0625rem; padding-inline: 26px; min-height: 48px; }
  .hero { padding-block: 64px 96px; }
  .hero .grade { align-items: center; }
  .hero__texto { grid-column: 1 / 7; grid-row: 1; }
  .hero__foto { grid-column: 7 / 13; grid-row: 1; }
  .secao { padding-block: 96px; }
  .secao--papel { padding-top: 108px; }
  .secao__titulo { grid-column: 1 / 7; grid-row: 1; }
  .secao__corpo { grid-column: 7 / 13; grid-row: 1; }
  .secao--papel .secao__titulo { align-self: center; }
  .endereco { font-size: 2.125rem; }
}

/* Movimento: só transform e opacity */
@keyframes entra {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes entra-foto {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-in { animation: entra 700ms var(--ease-out) backwards; }
  .hero-in:nth-child(2) { animation-delay: 60ms; }
  .hero-in:nth-child(3) { animation-delay: 120ms; }
  .hero-in:nth-child(4) { animation-delay: 180ms; }
  .hero-img { animation: entra-foto 900ms var(--ease-out) 120ms backwards; }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  }
  .js [data-reveal="1"] { transition-delay: 70ms; }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-in, .hero-img { animation: fade 400ms ease backwards; }
  html { scroll-behavior: auto; }
  .btn { transition: background-color 160ms ease; }
  .btn:active { transform: none; }
  .js [data-reveal] { opacity: 0; transition: opacity 400ms ease; }
  .js [data-reveal].is-visible { opacity: 1; }
}
