/* ==========================================================================
   TOKENS — variáveis, reset e base tipográfica
   ========================================================================== */

:root {
  /* --- Cor: azuis profundos (nav, hero, footer) --- */
  --deep: #0a1e35;
  --deep-2: #224265;
  --deep-3: #1d4972;

  /* --- Cor: marca --- */
  --teal: #009b8d;
  --teal-light: #00b8a9;
  --teal-glow: rgba(0, 155, 141, 0.15);

  /* --- Cor: ação (uso exclusivo de CTA) --- */
  --coral: #e8523a;
  --coral-dark: #c43f28;
  --coral-light: #f4967f;

  /* --- Cor: superfícies claras --- */
  --sand: #f5edd8;
  --sand-2: #ede3cc;
  --white: #ffffff;

  /* --- Cor: texto --- */
  --ink: #1a2b3c;
  --slate: #5a6a7a;
  --slate-light: #8a9bab;

  /* --- Cor: utilitários --- */
  --border: #dde3ea;
  --gold: #f59e0b; /* estrelas de avaliação */

  /* --- Cor: sobre fundo escuro (antes espalhadas como rgba literais) --- */
  --on-deep-100: rgba(255, 255, 255, 0.85);
  --on-deep-70: rgba(255, 255, 255, 0.58);
  --on-deep-50: rgba(255, 255, 255, 0.45);
  --on-deep-35: rgba(255, 255, 255, 0.35);
  --on-deep-20: rgba(255, 255, 255, 0.2);
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.16);

  /* --- Tipografia --- */
  --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-sans: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  /* eixo de largura da Archivo: 100 = normal, 125 = máx. expandida */
  --wdth-display: 112;

  /* --- Layout --- */
  --wrap: 1160px;
  --gutter: 24px;
  --section-gap: 64px;
  --nav-h: 62px;

  /* --- Raio --- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* --- Sombra --- */
  --shadow-card: 0 8px 24px rgba(26, 56, 86, 0.08);
  --shadow-float: 0 8px 40px rgba(0, 0, 0, 0.5);

  /* --- Movimento --- */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 0.18s;
  --t-base: 0.28s;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  /* compensa a nav fixa quando se navega por âncora */
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  /* Fraunces e Satoshi têm hinting bom; suaviza no macOS */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* --------------------------------------------------------------------------
   Tipografia — Fraunces (display) + Satoshi (texto/UI)
   -------------------------------------------------------------------------- */

/* Archivo é variável no eixo wdth. Expandida (112) dá a leitura de painel de
   embarque de terminal — conversa com a logo oblíqua e com a tabela de
   horários. Letras largas em peso alto pedem tracking negativo. */
.font-display,
.hero-h1,
.sec-h2,
.js-city,
.jl-time,
.bs-price,
.prb-price,
.save-val,
.bf-value,
.score-circle span,
.score-details strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "wdth" var(--wdth-display);
  letter-spacing: -0.025em;
}

/* Nos títulos o <em> é o destaque da marca: itálico verdadeiro da Archivo. */
.hero-h1 em,
.sec-h2 em,
.promo-title em {
  font-style: italic;
  font-synthesis: none;
}

/* Números que precisam alinhar em coluna (horários, preços, tabela).
   Sem isso, 09:30 / 12:30 / 14:00 dançam na vertical. */
.tabular,
.schedule-table,
.time-big,
.bs-price,
.bs-opt-price,
.prb-price,
.save-val,
.bf-value {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* --------------------------------------------------------------------------
   Acessibilidade
   -------------------------------------------------------------------------- */

/* A página não tinha nenhum estado de foco — quem navega por teclado ficava cego. */
:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Fundos escuros precisam de um anel que apareça */
.nav :focus-visible,
.hero :focus-visible,
.booking-sidebar :focus-visible,
footer :focus-visible {
  outline-color: var(--teal-light);
}

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

/* Link de pular para o conteúdo */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--coral);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   Movimento reduzido — respeitado também pelo GSAP via gsap.matchMedia()
   -------------------------------------------------------------------------- */

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