/* Guapimirim · base de tokens (tema claro) */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("assets/fonts/fraunces.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/caveat-700.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/outfit-400.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/outfit-700.woff2") format("woff2");
}

:root {
  --nevoa: #F1F6EE;
  --papel: #FFFFFF;
  --floresta: #0C2E1F;
  --folha: #0E7A46;
  --agua: #14A38B;
  --sol: #FFC93C;
  --mudo: #4F6A5C;

  --fd: "Fraunces", Georgia, serif;
  --fs: "Caveat", cursive;
  --fb: "Outfit", system-ui, sans-serif;

  --motion: cubic-bezier(.16, 1, .3, 1);
  --rapido: 180ms;
  --revelacao: 600ms;
  --raio: 20px;
  --raio-p: 999px;
  --sombra: 0 18px 40px rgba(12, 46, 31, .14);
}

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

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

body {
  margin: 0;
  background: var(--nevoa);
  color: var(--floresta);
  font-family: var(--fb);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--folha); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--floresta); }

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

::selection { background: var(--sol); color: var(--floresta); }

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

h1, h2, h3 {
  font-family: var(--fd);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.01em;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.5rem, 8vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 3.2vw, 1.35rem); font-weight: 700; }
h1 em, h2 em { font-style: normal; color: var(--folha); }

p { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }

.eyebrow { display: none; }  /* substituido por h2 falando por si (craft floor) */

.script { font-family: var(--fs); font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--agua); margin: 0; line-height: 1; }

.seal {
  display: inline-block;
  background: var(--floresta);
  color: var(--nevoa);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .72rem;
  padding: 8px 16px;
  border-radius: var(--raio-p);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 14px;
  border: 0;
  font-family: var(--fb);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--rapido) var(--motion), box-shadow var(--rapido), background-color var(--rapido);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-sol { background: linear-gradient(180deg, #FFD45F, var(--sol)); color: var(--floresta); box-shadow: 0 10px 26px rgba(255, 201, 60, .35); }
.btn-sol:hover { color: var(--floresta); box-shadow: 0 14px 30px rgba(255, 201, 60, .45); }
.btn-linha { border: 2px solid var(--folha); color: var(--folha); background: transparent; }
.btn-linha:hover { background: var(--folha); color: var(--nevoa); }

.polaroid {
  background: #fff;
  padding: 10px 10px 34px;
  border-radius: 6px;
  box-shadow: 0 16px 34px rgba(12, 46, 31, .18);
  transform: rotate(1.6deg);
  margin: 0;
  transition: transform 300ms var(--motion);
}
.polaroid:nth-child(2) { transform: rotate(-1.8deg); }
.polaroid:nth-child(3) { transform: rotate(1.2deg); }
.polaroid:hover { transform: rotate(0) translateY(-4px); }
.polaroid img { width: 100%; border-radius: 4px; }
.polaroid figcaption { font-family: var(--fs); font-size: 1.2rem; color: #333; text-align: center; margin-top: 6px; line-height: 1.1; }

.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;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--revelacao) var(--motion), transform var(--revelacao) var(--motion);
}
[data-reveal].visivel { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 70ms; }
[data-reveal][data-delay="2"] { transition-delay: 140ms; }
[data-reveal][data-delay="3"] { transition-delay: 210ms; }

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