/* ═══════════════════════════════════════════════
   AVENTUREIRO PIPA — variables.css
   Design tokens, reset global, scrollbar, utilitários

   PALETA EXTRAÍDA DA LOGO (img/logo.jpg):
   · azul-marinho/índigo do lettering e da onda
   · vermelho coral do aro do emblema
   · branco da vela
═══════════════════════════════════════════════ */

:root {
  /* ─── Azuis da marca ─── */
  --navy:        #121A3B;   /* fundo escuro principal */
  --navy-mid:    #1A2450;
  --navy-light:  #2A3568;
  --brand-blue:  #2E3568;   /* azul exato do lettering da logo */
  --navy-rgb:    18, 26, 59;

  /* ─── Coral da marca ───
     4 tons pensados para contraste:
     · --accent        → superfícies, ícones grandes, bordas, detalhes
     · --accent-strong → fundo de botão (texto branco por cima = 4.7:1)
     · --accent-ink    → texto pequeno sobre fundo CLARO   (5.7:1)
     · --accent-soft   → texto pequeno sobre fundo ESCURO  (5.9:1)          */
  --accent:        #E04A38;
  --accent-strong: #D0402F;
  --accent-ink:    #B23327;
  --accent-soft:   #F4705C;
  --accent-rgb:    224, 74, 56;

  /* Cor de texto do destaque, trocada por contexto (ver bloco abaixo).
     Padrão = fundo claro. */
  --accent-text: var(--accent-ink);

  /* Aliases legados — código antigo que ainda usa --gold continua válido */
  --gold:        var(--accent);
  --gold-light:  var(--accent-soft);
  --gold-dark:   var(--accent-ink);

  /* Neutros */
  --white:       #FFFFFF;
  --off-white:   #F7F5F1;
  --gray:        #676E82;   /* apoio — 5.1:1 no branco */
  --light-gray:  #E6E8F0;

  /* Texto */
  --text-dark:   #1A2036;
  --text-light:  #61687C;   /* 5.6:1 no branco */

  /* Status */
  --green:   #4ade80;
  --yellow:  #fbbf24;
  --red:     #f87171;
  --wpp:     #25D366;

  /* Espaçamentos */
  --section-pad: 96px 48px;
  --container-max: 1200px;

  /* Transições */
  --trans-fast:   0.2s ease;
  --trans-med:    0.3s ease;
  --trans-slow:   0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── CONTEXTO ESCURO ───
   Nestas áreas o fundo é azul-marinho, então o coral de texto
   passa a ser o tom claro. Herda para todos os filhos. */
nav,
.mobile-menu,
#inicio,
.cta-banner,
#galeria,
.sobre-section,
.info-bar,
footer,
.toast,
.vagas-section,
.reservas-info-header,
.pag-hero,
.pag-steps,
.pag-help,
.pag-bottom-bar,
.voucher-header,
.voucher-code-wrap {
  --accent-text: var(--accent-soft);
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ─── UTILITÁRIOS ─── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-tag {
  font-size: 10px;
  letter-spacing: 5px;
  font-weight: 700;
  color: var(--accent-text);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-dark);
}
.section-title.light { color: var(--white); }

.divider {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 16px 0 48px;
}
.divider.center { margin: 16px auto 48px; }

/* Botões globais */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-strong);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 2px solid var(--accent-strong);
  transition: all var(--trans-med);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent-text);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--white);
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  border: 2px solid rgba(255,255,255,0.35);
  transition: all var(--trans-med);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-text);
  transform: translateY(-2px);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wpp);
  color: var(--navy);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  transition: all var(--trans-med);
}
.whatsapp-btn:hover {
  background: #1DA851;
  color: var(--navy);
  transform: translateY(-1px);
}

/* ─── BOTÃO FLUTUANTE DE WHATSAPP ─── */
.wpp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--wpp);
  color: var(--navy);
  padding: 14px 22px 14px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(37,211,102,0.35), 0 2px 8px rgba(0,0,0,0.2);
  transition: transform var(--trans-med), box-shadow var(--trans-med), background var(--trans-med), opacity var(--trans-med);
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
}
.wpp-float.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.wpp-float:hover {
  background: #1DA851;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.2);
}
.wpp-float-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: block;
  position: relative;
  z-index: 1;
}
.wpp-float-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.wpp-float-text strong {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.wpp-float-text span {
  font-size: 11px;
  opacity: 0.9;
  font-weight: 600;
}
/* halo pulsante atrás do ícone */
.wpp-float::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border-radius: 50%;
  background: var(--wpp);
  opacity: 0.5;
  animation: wppPulse 2.6s ease-out infinite;
}

@keyframes wppPulse {
  0%   { transform: scale(0.7); opacity: 0.5; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ─── ANIMAÇÕES ─── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
@keyframes popIn {
  from { transform: scale(0) rotate(-20deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ringPulse {
  0%   { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes lanchaFloat {
  0%, 100% { transform: translateY(0) rotate(-2.5deg); }
  50%      { transform: translateY(-18px) rotate(-1.5deg); }
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 100px;   /* acima do botão flutuante do WhatsApp */
  right: 32px;
  z-index: 9999;
  background: var(--navy);
  color: var(--white);
  padding: 16px 24px;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.3s ease, visibility 0.3s;
  max-width: 320px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.toast.show { transform: translateX(0); opacity: 1; visibility: visible; pointer-events: auto; }

/* ─── RESPONSIVO BASE ─── */
@media (max-width: 1024px) {
  :root { --section-pad: 72px 24px; }
}
@media (max-width: 640px) {
  :root { --section-pad: 56px 16px; }
  .toast { bottom: 88px; right: 16px; left: 16px; max-width: none; }
  .wpp-float {
    right: 16px;
    bottom: 16px;
    padding: 13px;
    gap: 0;
  }
  .wpp-float-text { display: none; }
  .wpp-float::before { left: 50%; margin-left: -23px; }
}

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