/* =============================================================================
   TOCA DO JACARÉ — base.css
   Tokens da marca, reset, tipografia e utilitários.
   Paleta oficial: Laranja Pôr do Sol, Amarelo Dourado, Verde Jacaré,
   Marrom Rústico, Azul Rio e Preto.
   ========================================================================== */

:root {
  /* ---- paleta oficial (exata) ---- */
  --laranja: #FF8C00;
  --dourado: #FFD700;
  --verde:   #4CAF50;
  --marrom:  #8B4513;
  --azul:    #4682B4;
  --preto:   #000000;

  /* ---- derivadas (para superfícies, sombras e contraste) ---- */
  --carvao:    #140D08;   /* fundo principal (noite quente) */
  --carvao-2:  #1C1209;   /* superfície elevada */
  --carvao-3:  #26170D;   /* superfície 2 */
  --noite:     #0A0810;   /* fundo da seção galeria */
  --areia:     #F7EBD6;   /* seção clara */
  --areia-2:   #EEDCBC;
  --marrom-escuro: #4A2409;
  --laranja-escuro: #C25E00;

  /* ---- texto ---- */
  --texto:        #F7EDDD;
  --texto-suave:  #D2BC9E;
  --texto-escuro: #2C1808;
  --texto-escuro-suave: #6A4522;

  /* ---- tipografia ---- */
  --fonte-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --fonte-corpo: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* ---- métricas ---- */
  --raio: 14px;
  --raio-g: 24px;
  --largura-max: 1200px;
  --sombra: 0 18px 40px -18px rgba(0, 0, 0, .75);
  --sombra-suave: 0 10px 24px -14px rgba(0, 0, 0, .6);
  --transicao: 260ms cubic-bezier(.22, .61, .36, 1);
  --altura-cabecalho: 72px;

  /* corda: gradiente reutilizável do motivo da logo */
  --corda-fio: repeating-linear-gradient(115deg,
      #4a2208 0 3px, #8B4513 3px 9px, #cf9350 9px 14px, #8B4513 14px 20px);
}

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

html {
  scroll-behavior: smooth;
  /* compensa o cabeçalho fixo ao pular para as âncoras */
  scroll-padding-top: calc(var(--altura-cabecalho) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--carvao);
  color: var(--texto);
  font-family: var(--fonte-corpo);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.sem-rolagem { overflow: hidden; }

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

/* [hidden] tem de vencer os display: grid/flex dos componentes */
[hidden] { display: none !important; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--fonte-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 30, "WONK" 1;
  letter-spacing: -.01em;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--dourado); text-decoration: none; transition: color var(--transicao); }
a:hover { color: var(--laranja); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: .88em;
  background: rgba(255, 140, 0, .14);
  color: var(--dourado);
  padding: .1em .4em;
  border-radius: 6px;
}

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

::selection { background: var(--laranja); color: #1a0d04; }

/* --------------------------------------------------------- utilitários -- */
.container {
  width: min(100% - 2.5rem, var(--largura-max));
  margin-inline: auto;
}

.visualmente-oculto {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.pular-para-conteudo {
  position: absolute;
  left: 50%; top: -100px;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--dourado);
  color: #1a0d04;
  font-weight: 700;
  padding: .7rem 1.2rem;
  border-radius: 0 0 12px 12px;
  transition: top var(--transicao);
}
.pular-para-conteudo:focus { top: 0; color: #1a0d04; }

/* Marcador honesto de conteúdo/foto de exemplo */
.chip-ph {
  display: inline-block;
  font-family: var(--fonte-corpo);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .15em .55em;
  border-radius: 999px;
  border: 1px dashed currentColor;
  opacity: .72;
  vertical-align: middle;
  white-space: nowrap;
  cursor: help;
}

/* Animação de entrada (respeita quem prefere menos movimento) */
.reveal-el {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
}
.reveal-el.visivel { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal-el { opacity: 1; transform: none; }
}
