/*
  ================================================================
  style.css — Landing Page Advocacia Dr. Heráclito Guerra
  ================================================================
  ABORDAGEM: Mobile First — base 320px
  BREAKPOINTS:
    @media (min-width: 768px)  → tablet
    @media (min-width: 1024px) → desktop

  PALETA:
    --bg       : #1a1a1a  (fundo principal)
    --gold     : #c9a96e  (dourado / destaque)
    --text     : #f0f0f0  (texto claro)
    --card     : #2a2a2a  (cards e superfícies secundárias)
    --wpp      : #25D366  (verde WhatsApp)

  FONTES (Google Fonts):
    Playfair Display → títulos e logo
    Inter            → corpo e UI

  COMO CUSTOMIZAR:
    - Altere as variáveis em :root para mudar a paleta inteira
    - Ajuste --header-height se o header crescer
    - Breakpoints em variáveis case você queira mudar os pontos de quebra
  ================================================================
*/

/* ── RESET & BOX-MODEL ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── VARIÁVEIS DE DESIGN ──────────────────────────────────────── */
:root {
  --bg: #1a1a1a;
  --bg-secondary: #141414;
  --card: #2a2a2a;
  --card-hover: #333333;
  --gold: #c9a96e;
  --gold-light: #dfc08a;
  --gold-dim: rgba(201, 169, 110, 0.15);
  --text: #f0f0f0;
  --text-muted: #aaaaaa;
  --wpp: #25D366;
  --wpp-dark: #1ebe5e;
  --header-height: 70px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 4px 20px rgba(201, 169, 110, 0.2);
  --transition: 0.3s ease;
}

/* ── BASE ─────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  /* Compensa o header fixo ao usar âncoras */
  scroll-padding-top: var(--header-height);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Tipografia base */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

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

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Foco visível para acessibilidade */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── CONTAINER ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

.container-narrow {
  max-width: 780px;
}

/* ── UTILITÁRIOS GERAIS ───────────────────────────────────────── */
.hidden {
  display: none !important;
}

/* Tag de seção (texto acima do título) */
.section-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-tag.centered,
.section-title.centered {
  text-align: center;
}

/* Título de seção padrão */
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--text);
  margin-bottom: 14px;
}

/* Linha dourada decorativa abaixo dos títulos */
.gold-line {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 36px;
}

.gold-line.centered {
  margin-inline: auto;
}

/* ── ANIMAÇÃO SCROLL REVEAL ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====================================================================
   HEADER
   ==================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  /* Glassmorphism sutil */
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.12);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.logo-subtitle {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Menu desktop ── */
.nav-desktop {
  display: none; /* oculto no mobile */
}

.nav-desktop ul {
  display: flex;
  gap: 22px;
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color var(--transition);
  position: relative;
}

/* Underline animado no hover */
.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-desktop a:hover {
  color: var(--gold);
}

.nav-desktop a:hover::after {
  width: 100%;
}

/* ── Hamburguer ── */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.hamburger:hover {
  background: var(--gold-dim);
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Animação X quando menu está aberto */
.hamburger.open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.hamburger.open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Menu mobile dropdown ── */
.nav-mobile {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
  background: rgba(20, 20, 20, 0.97);
  border-top: 1px solid rgba(201, 169, 110, 0.08);
}

.nav-mobile.open {
  max-height: 420px;
}

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  padding: 8px 0 16px;
}

.nav-mobile a {
  display: block;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}

.nav-mobile a:hover {
  color: var(--gold);
  background: var(--gold-dim);
}

/* ── Breakpoint tablet: exibe menu desktop ── */
@media (min-width: 768px) {
  .nav-desktop {
    display: block;
  }
  .hamburger {
    display: none;
  }
  .nav-mobile {
    display: none !important;
  }
}

/* ====================================================================
   HERO — CHAT INTERATIVO
   ==================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 24px) 20px 60px;
}

/* Overlay de fundo com gradiente suave */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 169, 110, 0.06) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg) 100%);
  pointer-events: none;
}

/* ── Container do chat ── */
.chat-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(201, 169, 110, 0.12);
  overflow: hidden;
}

/* ── Cabeçalho do chat ── */
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #222;
  border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

.chat-avatar {
  flex-shrink: 0;
  border-radius: 50%;
}

.chat-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--wpp);
  font-weight: 400;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wpp);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Área de mensagens ── */
.chat-messages {
  padding: 20px 16px 24px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Balões de mensagem */
.message {
  max-width: 85%;
  align-self: flex-start;
}

.message-received {
  background: #333;
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.04);
}

.message-received p {
  font-size: 0.95rem;
  color: var(--text);
}

/* Balão enviado (resposta do usuário — mostrado após seleção) */
.message-sent {
  align-self: flex-end;
  background: var(--gold-dim);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: var(--radius) 0 var(--radius) var(--radius);
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--gold-light);
  font-weight: 500;
}

/* ── Três pontinhos (typing indicator) ── */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  background: #333;
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  width: fit-content;
  /* Oculto por padrão; JS adiciona .active */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.typing-indicator.active {
  opacity: 1;
}

.typing-indicator span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: typing-bounce 1.2s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.6; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* ── Botões de opção do chat ── */
.chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: flex-end;
  justify-content: flex-end;
}

.chat-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: background var(--transition), color var(--transition), transform 0.15s;
}

.chat-btn:hover {
  background: var(--gold);
  color: var(--bg);
  transform: scale(1.03);
}

.chat-btn:active {
  transform: scale(0.97);
}

/* ── Chat step (cada etapa do fluxo) ── */
.chat-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeInUp 0.4s ease forwards;
}

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

/* ── Barra de progresso de redirecionamento ── */
.redirect-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}

.redirect-progress {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  width: 0%;
  transition: width 2s ease;
}

.redirect-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Scroll hint ── */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce-down 2s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ====================================================================
   SOBRE O ADVOGADO
   ==================================================================== */
.sobre-section {
  padding: 80px 20px;
}

.sobre-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* ── Frame da imagem ── */
.sobre-image-wrap {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.sobre-image-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: visible;
}

.sobre-image {
  display: block;
  width: 200px;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 169, 110, 0.4);
}

/* Badge OAB sobre a imagem */
.oab-badge {
  position: absolute;
  bottom: -14px;
  right: -14px;
  background: var(--gold);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: var(--shadow-gold);
}

/* ── Conteúdo de texto ── */
.sobre-content {
  max-width: 560px;
}

.sobre-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 18px;
}

/* Estatísticas numéricas */
.sobre-stats {
  display: flex;
  gap: 28px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(201, 169, 110, 0.15);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .sobre-section {
    padding: 100px 20px;
  }
  .sobre-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 60px;
  }
}

/* ====================================================================
   ÁREAS DE ATUAÇÃO
   ==================================================================== */
.areas-section {
  padding: 80px 20px;
  background: var(--bg-secondary);
}

.areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* ── Card de área ── */
.area-card {
  background: var(--card);
  border: 1px solid rgba(201, 169, 110, 0.1);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.area-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.area-icon {
  width: 64px;
  height: 64px;
  background: var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.area-title {
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 700;
}

.area-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.area-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-top: 4px;
  transition: gap var(--transition);
}

.area-cta:hover {
  gap: 10px;
}

@media (min-width: 768px) {
  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .areas-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .areas-section {
    padding: 100px 20px;
  }
}

/* ====================================================================
   DEPOIMENTOS
   ==================================================================== */
.testimonials-section {
  padding: 80px 20px;
}

/* Wrapper externo: apenas recorta a "janela" visível do carrossel no mobile.
   O translateX fica na track interna — nunca no mesmo elemento que tem
   overflow:hidden, senão a janela de recorte se move junto com o conteúdo. */
.testimonials-wrapper {
  overflow: hidden; /* clips para o carrossel no mobile */
  margin-bottom: 28px;
  /* Swipe suave no mobile */
  -webkit-overflow-scrolling: touch;
}

/* Track: contém os cards e é deslocada via translateX no mobile */
.testimonials-track {
  display: flex;
  gap: 20px;
}

/* ── Card de depoimento ── */
.testimonial-card {
  background: var(--card);
  border: 1px solid rgba(201, 169, 110, 0.1);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* Mobile: cada card ocupa 100% e não encolhe */
  flex: 0 0 100%;
  transition: border-color var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(201, 169, 110, 0.3);
}

.stars {
  display: flex;
  gap: 3px;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-style: normal;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid rgba(201, 169, 110, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.author-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.author-location {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Controles do carrossel (dots e setas) ── */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid rgba(201, 169, 110, 0.2);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}

.carousel-btn:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.25);
  transition: background var(--transition), width var(--transition);
}

.dot.active {
  background: var(--gold);
  width: 20px;
  border-radius: 4px;
}

/* No desktop: grid 3 colunas, sem carrossel */
@media (min-width: 768px) {
  .testimonials-wrapper {
    overflow: visible;
  }
  .testimonials-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .testimonial-card {
    flex: unset;
  }
  .carousel-controls {
    display: none; /* controles apenas no mobile */
  }
  .testimonials-section {
    padding: 100px 20px;
  }
}

/* ====================================================================
   FAQ — ACCORDION
   ==================================================================== */
.faq-section {
  padding: 80px 20px;
  background: var(--bg-secondary);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Item do FAQ ── */
.faq-item {
  background: var(--card);
  border: 1px solid rgba(201, 169, 110, 0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open {
  border-color: rgba(201, 169, 110, 0.35);
}

/* Botão da pergunta */
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  transition: color var(--transition), background var(--transition);
}

.faq-question:hover {
  color: var(--gold);
  background: rgba(201, 169, 110, 0.04);
}

.faq-question[aria-expanded="true"] {
  color: var(--gold);
}

/* Ícone de seta (rotaciona quando aberto) */
.faq-icon {
  flex-shrink: 0;
  color: var(--gold);
  transition: transform var(--transition);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

/* Conteúdo da resposta — animado com max-height */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding var(--transition);
}

.faq-answer.open {
  max-height: 400px;
}

.faq-answer p {
  padding: 0 20px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

@media (min-width: 768px) {
  .faq-section {
    padding: 100px 20px;
  }
}

/* ====================================================================
   FOOTER
   ==================================================================== */
.site-footer {
  padding: 60px 20px 0;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(201, 169, 110, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

/* ── Brand / logo no footer ── */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  align-self: flex-start;
}

.footer-address {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-oab {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ── Nav do footer ── */
.footer-nav-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--gold);
}

/* ── Redes sociais ── */
.social-disclaimer {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 14px;
  opacity: 0.7;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.social-link:hover {
  color: var(--gold);
}

/* ── Linha inferior do footer ── */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

.copyright {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.privacy-link {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-link:hover {
  opacity: 0.7;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ====================================================================
   MODAL — POLÍTICA DE PRIVACIDADE
   ==================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  /* Animação */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--card);
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: var(--radius);
  padding: 36px 28px;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  /* Animação de entrada */
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
  /* Scrollbar estilizado */
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--bg);
}

.modal-overlay.open .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}

.modal-close:hover {
  color: var(--text);
  background: rgba(255,255,255,0.08);
}

.modal-title {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 8px;
  padding-right: 32px;
}

.modal-body {
  margin-top: 16px;
}

.modal-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.modal-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 6px;
  margin-top: 20px;
}

.privacy-disclaimer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.78rem !important;
  opacity: 0.6;
}

/* ====================================================================
   BOTÃO WHATSAPP FLUTUANTE
   ==================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 56px;
  height: 56px;
  background: var(--wpp);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  /* Oculto por padrão (JS controla visibilidade) */
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8) translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.2s, box-shadow 0.2s;
}

.whatsapp-float.visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

.whatsapp-float:hover {
  background: var(--wpp-dark);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
  transform: scale(1.08) translateY(0);
}

/* Tooltip "Fale conosco" */
.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--card);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

/* Pulso periódico de atenção */
@keyframes wpp-pulse {
  0%   { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35); }
  50%  { box-shadow: 0 4px 32px rgba(37, 211, 102, 0.65), 0 0 0 8px rgba(37, 211, 102, 0.12); }
  100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35); }
}

.whatsapp-float.visible {
  animation: wpp-pulse 3s ease-in-out infinite;
}

.whatsapp-float.visible:hover {
  animation: none;
}

/* ====================================================================
   ACESSIBILIDADE — SKIP LINK (oculto visualmente, visível no foco)
   ==================================================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--gold);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: top 0.2s;
  z-index: 9999;
}

.skip-link:focus {
  top: 0;
}
