/* ============================================================
   somado · base.css — reset + tipografia base + utilitários
   ============================================================ */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-primary); }

button { font: inherit; cursor: pointer; border: none; background: none; }

ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 { line-height: var(--lh-tight); font-weight: var(--fw-extrabold); color: var(--navy-900); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); font-weight: var(--fw-bold); }
p { line-height: var(--lh-base); }

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Layout helpers --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--text { max-width: var(--max-w-text); }

.section { padding-block: var(--sp-10); }
.section--tint { background: var(--color-bg-tint); }
.section--alt { background: var(--color-bg-alt); }
.section--navy { background: var(--navy-900); color: var(--color-text-inverse); }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-strong);
  margin-bottom: var(--sp-1);
}
.section--navy .eyebrow { color: var(--orange-400); }

.section-head { max-width: 760px; margin-inline: auto; text-align: center; margin-bottom: var(--sp-6); }
.section-head p { color: var(--color-text-muted); font-size: var(--fs-md); margin-top: var(--sp-2); }
.section--navy .section-head p { color: #C5CEE3; }

.text-grad {
  background: var(--grad-orange);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Image placeholder (espaço reservado pra imagem real) --- */
.imgph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
  background:
    repeating-linear-gradient(45deg, #FFF7EF, #FFF7EF 14px, #FFEFDD 14px, #FFEFDD 28px);
  border: 2px dashed var(--orange-400);
  border-radius: var(--radius-md);
  color: var(--orange-700);
  padding: var(--sp-3);
  width: 100%;
}
.imgph__label { font-weight: var(--fw-bold); font-size: var(--fs-sm); color: var(--navy-800); }
.imgph__spec { font-size: var(--fs-xs); color: var(--orange-700); font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.imgph__icon { width: 30px; height: 30px; opacity: 0.7; }
/* proporções comuns */
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-3  { aspect-ratio: 4 / 3; }
.ratio-1-1  { aspect-ratio: 1 / 1; }
.ratio-3-4  { aspect-ratio: 3 / 4; }
.ratio-9-16 { aspect-ratio: 9 / 16; }
.ratio-21-9 { aspect-ratio: 21 / 9; }

/* --- Animação de entrada (revela ao rolar) --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* --- Acessibilidade: pular pro conteúdo --- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--navy-900); color: #fff; padding: 0.75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

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

@media (max-width: 720px) {
  h2 { font-size: var(--fs-xl); }
  .section { padding-block: var(--sp-8); }
}
