/* ==========================================================================
   SmartPesca · LP Patrocínio do Podcast
   style.css — fundação global: fontes, tokens, reset, tipografia e utilitários.
   Componentes e seções ficam em /css (um arquivo por responsabilidade).

   Linha visual: fundos lisos, uma única cor de destaque (azul da marca),
   bordas finas e sombras neutras. Sem gradientes, brilhos ou texturas.
   Única exceção, de propósito: o efeito de hover dos cartões dos pesqueiros
   (css/partners.css), que tem borda em degradê e brilho azul.
   ========================================================================== */

/* ---------- Fontes (locais, sem requisições externas) ---------- */
@font-face {
  font-family: "Anton";
  src: url("./assets/fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("./assets/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Marca */
  --c-primary: #0284c7; /* azul SmartPesca: destaques em títulos e ícones */
  --c-primary-ink: #0369a1; /* azul mais escuro: botões e textos pequenos (contraste AA) */
  --c-primary-dark: #075985; /* hover dos botões */
  --c-logo: #3c80ac;

  /* Estados do mapa de reservas (mesmas cores do sistema real) */
  --c-free: #10b981;
  --c-taken: #ef4444;

  /* Neutros */
  --c-ink: #0f172a;
  --c-ink-soft: #1e293b;
  --c-muted: #475569;
  --c-subtle: #64748b;
  --c-line: #e2e8f0;
  --c-surface: #f8fafc;
  --c-surface-2: #f1f5f9;
  --c-white: #ffffff;
  --c-night: #0b111c; /* fundo da seção de anunciantes */

  /* Tipografia */
  --font-body: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Reservas condensadas do sistema: se a Anton demorar, o título quase não muda de tamanho ao trocar */
  --font-display: "Anton", "Impact", "Haettenschweiler", "DIN Condensed", "Avenir Next Condensed", "Arial Narrow",
    "sans-serif-condensed", sans-serif;
  --fs-hero: clamp(2.9rem, 1.2rem + 7.4vw, 5.9rem);
  --fs-h2: clamp(2.3rem, 1.3rem + 4.4vw, 4.5rem);
  --fs-h3: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  --fs-lead: clamp(1.03rem, 0.97rem + 0.4vw, 1.22rem);

  /* Espaço */
  --container: 1200px;
  --gutter: clamp(1.15rem, 5vw, 2.5rem);
  --section-y: clamp(4.5rem, 3rem + 7vw, 7.5rem);

  /* Forma */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* Sombra (sempre neutra) */
  --shadow-md: 0 10px 28px -14px rgb(15 23 42 / 0.22);
  --shadow-lg: 0 22px 44px -22px rgb(15 23 42 / 0.32);

  /* Movimento */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Camadas e medidas fixas */
  --header-h: 62px;
  --dock-h: 58px;
  --z-dock: 90;
  --z-header: 100;
}

@media (min-width: 900px) {
  :root {
    --header-h: 76px;
  }
}

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

* {
  margin: 0;
}

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

body {
  min-height: 100svh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
}

::selection {
  background: rgb(2 132 199 / 0.22);
}

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

.section {
  position: relative;
  padding-block: var(--section-y);
}

/* ---------- Tipografia ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.05; /* folga para acentos (Ó, Ã) não encostarem na linha de cima */
  letter-spacing: 0.012em;
}

.h2 {
  font-size: var(--fs-h2);
}

.h3 {
  font-size: var(--fs-h3);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--c-muted);
}

/* Palavra em destaque dentro de um título */
.accent {
  color: var(--c-primary);
}

/* ---------- Utilitários ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--c-ink);
  color: var(--c-white);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.25s var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Revelação ao rolar (só com JS ativo; sem JS tudo fica visível) ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}

html.js [data-reveal="fade"] {
  transform: none;
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Animações compartilhadas ---------- */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  80%,
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Acessibilidade: menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
