/* ==========================================================================
   JANEIRO ADVOCACIA & CONSULTORIA PREVIDENCIÁRIA
   Design System de Luxo: Solidez Jurídica, Prestígio & Acolhimento Humano
   Paleta: Azul Marinho Noite, Dourado Ocre, Off White, Areia Suave, Grafite
   ========================================================================== */

:root {
  --color-navy: #0D1B2A;
  --color-navy-light: #182A3E;
  --color-navy-deep: #08111B;
  --color-gold: #D4A359;
  --color-gold-hover: #C59346;
  --color-gold-dark: #B8860B;
  --color-gold-light: #FAF3E6;
  --color-gold-border: rgba(212, 163, 89, 0.4);
  --color-offwhite: #FAF9F5;
  --color-sand: #EAE5DE;
  --color-sand-light: #F6F3EE;
  --color-warmgray: #64748B;
  --color-warmgray-light: #94A3B8;
  --color-graphite: #1E293B;
  
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --shadow-subtle: 0 4px 20px -2px rgba(13, 27, 42, 0.05);
  --shadow-card: 0 10px 30px -5px rgba(13, 27, 42, 0.07);
  --shadow-gold: 0 10px 25px -5px rgba(212, 163, 89, 0.35);
  --shadow-elevated: 0 20px 40px -10px rgba(13, 27, 42, 0.12);

  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --border-delicate: 1px solid rgba(234, 229, 222, 0.85);
}

/* Base Reset & Smoothing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  background-color: var(--color-offwhite);
  color: var(--color-graphite);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
}

::selection {
  background-color: var(--color-gold-light);
  color: var(--color-navy);
}

/* Scrollbar Custom */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-offwhite);
}
::-webkit-scrollbar-thumb {
  background: var(--color-sand);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* Typography Utilities */
.font-serif {
  font-family: var(--font-serif);
}
.font-sans {
  font-family: var(--font-sans);
}
.tracking-editorial {
  letter-spacing: 0.1em;
}
.tracking-loose-badge {
  letter-spacing: 0.14em;
}

/* Header Glassmorphism */
.header-glass {
  background-color: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(234, 229, 222, 0.8);
}
.header-scrolled {
  box-shadow: 0 4px 20px -2px rgba(13, 27, 42, 0.08);
}

/* Botões */
.btn-primary-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #D4A359 0%, #C59346 100%);
  color: #0D1B2A;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  box-shadow: var(--shadow-gold);
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  cursor: pointer;
}
.btn-primary-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(212, 163, 89, 0.45);
  background: linear-gradient(135deg, #E2B269 0%, #D4A359 100%);
}

.btn-secondary-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-navy);
  color: #FAF9F5;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  border: 1px solid var(--color-gold-border);
  transition: var(--transition-smooth);
  text-decoration: none;
  cursor: pointer;
}
.btn-secondary-navy:hover {
  background: var(--color-navy-light);
  border-color: var(--color-gold);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-outline-sand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--color-graphite);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  border: 1px solid var(--color-sand);
  transition: var(--transition-smooth);
  text-decoration: none;
  cursor: pointer;
}
.btn-outline-sand:hover {
  background: var(--color-sand-light);
  border-color: var(--color-gold);
  color: var(--color-navy);
}

/* Cards Premium */
.card-premium {
  background-color: #FFFFFF;
  border: var(--border-delicate);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}
.card-premium:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(212, 163, 89, 0.5);
}

/* Molduras Editoriais de Fotos */
.editorial-frame {
  position: relative;
}
.editorial-frame::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid var(--color-gold-border);
  border-radius: 1.5rem;
  z-index: 0;
  pointer-events: none;
}
.editorial-img {
  position: relative;
  z-index: 1;
  border-radius: 1.25rem;
  object-fit: cover;
  width: 100%;
  height: 100%;
  box-shadow: var(--shadow-card);
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--color-sand);
  transition: var(--transition-smooth);
}
.faq-button {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-graphite);
  font-weight: 500;
  transition: var(--transition-smooth);
}
.faq-button:hover {
  color: var(--color-gold-dark);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}
.faq-item.active .faq-answer {
  max-height: 400px;
  opacity: 1;
  padding-bottom: 1.5rem;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--color-gold);
}

/* Modal Interativo */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(13, 27, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  padding: 1rem;
}
.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background-color: #FFFFFF;
  border: 1px solid var(--color-sand);
  border-radius: 1.5rem;
  max-width: 680px;
  width: 100%;
  padding: 2.25rem;
  position: relative;
  box-shadow: var(--shadow-elevated);
  transform: translateY(20px) scale(0.98);
  transition: var(--transition-smooth);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-backdrop.active .modal-content {
  transform: translateY(0) scale(1);
}

/* Botão Flutuante do WhatsApp */
.whatsapp-float-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 40;
}
.whatsapp-float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: var(--transition-smooth);
  text-decoration: none;
}
.whatsapp-float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.5);
}
.whatsapp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.4;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* Reveal on Scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Estilos de Artigos */
.article-body h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.25;
  color: var(--color-navy);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.article-body h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.35;
  color: var(--color-navy);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 500;
}
.article-body p {
  color: #334155;
  font-size: 1.0625rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
  font-weight: 300;
}
.article-body ul, .article-body ol {
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
  color: #334155;
}
.article-body li {
  margin-bottom: 0.625rem;
  line-height: 1.7;
}
.article-body blockquote {
  border-left: 3px solid var(--color-gold);
  padding: 1rem 0 1rem 1.75rem;
  margin: 2.25rem 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--color-navy);
  font-style: italic;
  background: linear-gradient(to right, rgba(212, 163, 89, 0.08), transparent);
  border-radius: 0 12px 12px 0;
}
.article-insight-box {
  background-color: var(--color-gold-light);
  border: 1px solid rgba(212, 163, 89, 0.5);
  border-radius: 1.25rem;
  padding: 1.75rem;
  margin: 2.5rem 0;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
  .whatsapp-float-container {
    bottom: 20px;
    right: 20px;
  }
  .editorial-frame::before {
    inset: -3px;
    border-radius: 1.25rem;
  }
}

/* ==========================================================================
   SMOOTH SCROLLING (LENIS) — LEVEZA & INÉRCIA FLUIDA EDITORIAL
   ========================================================================== */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

