/* ══════════════════════════════════════════════════════════════
   Turim — site.css
   CSS compartilhado entre as 6 páginas (R9 — 03/07/2026).
   Contém: tokens de cor, componentes de navegação (nav-cta,
   hambúrguer, menu mobile), CTA flutuante de WhatsApp, popup de
   lead (canônico — não duplicar por página), breadcrumb e
   acessibilidade (prefers-reduced-motion).
   Sistema de breakpoints unificado: 768px (tablet) / 480px (mobile).
   Estilo específico de cada página (hero, seções, tabelas, cards)
   permanece inline em cada HTML.
   ══════════════════════════════════════════════════════════════ */

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

:root {
  --black: #000000;
  --dark: #0a0a0a;
  --dark2: #111111;
  --gray: #8a8a8a;
  --light: #f5f5f0;
  --white: #ffffff;
  --gold: #c9a96e;
  --gold-light: #e8c98a;
  --muted: rgba(255,255,255,0.45);
}

html { scroll-behavior: smooth; }

/* ── NAV: CTA, links, hambúrguer ── */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--black);
  text-decoration: none;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 10px 22px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 13px; letter-spacing: 0.05em; font-family: 'Josefin Sans', sans-serif; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 199; display: none; }
.mobile-menu-overlay.open { display: block; }
.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 82vw);
  height: 100%;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(12px);
  z-index: 200;
  padding: 100px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: right 0.3s ease;
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 15px;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: 'Josefin Sans', sans-serif;
  letter-spacing: 0.03em;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-menu .nav-cta { margin-top: 24px; justify-content: center; text-align: center; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-right > .nav-cta { display: none; }
}
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-overlay { display: none !important; }
}

/* ── Breadcrumb (subpáginas) ── */
.breadcrumb { font-family: 'Josefin Sans', sans-serif; font-size: 0.78rem; color: rgba(255,255,255,0.5); letter-spacing: 0.03em; margin-bottom: 14px; }
.breadcrumb a { color: rgba(201,169,110,0.8); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; color: rgba(255,255,255,0.3); }

/* ── CTA flutuante de WhatsApp (mobile) ── */
.floating-whatsapp {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.4);
  z-index: 150;
  border: none;
  cursor: pointer;
}
.floating-whatsapp svg { width: 28px; height: 28px; fill: #fff; }
@media (max-width: 768px) { .floating-whatsapp { display: flex; } }
.lead-overlay.open ~ .floating-whatsapp { display: none !important; }

/* ── LEAD POPUP (canônico — R2/R9) ── */
.lead-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 24px 16px;
}
.lead-overlay.open { display: flex; }
.lead-modal {
  background: var(--dark2);
  border: 1px solid rgba(201,169,110,0.25);
  border-radius: 4px;
  padding: 44px 40px;
  width: min(480px, 94vw);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  position: relative;
  margin: auto;
  animation: leadFadeUp 0.35s ease;
}
@media (max-width: 480px) {
  .lead-modal { padding: 32px 24px; }
}
.lead-modal-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.lead-modal h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 400;
  color: var(--white);
  margin: 0 0 10px;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
}
.lead-modal p {
  font-size: 14px;
  color: var(--gray);
  margin: 0 0 32px;
  line-height: 1.6;
}
.lead-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.lead-field label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead-field input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
  font-family: 'Josefin Sans', sans-serif;
  width: 100%;
}
.lead-field input:focus { border-color: var(--gold); }
.lead-field input::placeholder { color: rgba(255,255,255,0.25); }
.lead-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #25D366;
  color: var(--white);
  border: none;
  border-radius: 2px;
  padding: 18px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-top: 8px;
}
.lead-submit:hover { background: #1db954; transform: translateY(-1px); }
.lead-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.lead-submit svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.lead-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 50%;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.lead-close:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.lead-error { font-size: 13px; color: #ff6b6b; margin-top: 12px; display: none; }
.lead-consent { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 14px; text-align: center; line-height: 1.5; }
.lead-consent a { color: var(--gold); text-decoration: underline; }

@keyframes leadFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

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