/* ==========================================================================
   DESIGN SYSTEM - ESCRITÓRIO DE ADVOCACIA PREMIUM
   ========================================================================== */

:root {
  /* Cores Principais - Azul Marinho Nobre & Dourado Metálico */
  --primary-dark: #07111E;
  --primary-navy: #0F2B4B;
  --primary-blue: #1A3F66;
  --primary-light: #245285;
  
  --gold-primary: #C9A84C;
  --gold-dark: #A8882E;
  --gold-light: #DFC56A;
  --gold-glow: rgba(201, 168, 76, 0.35);
  
  --bg-slate: #F8FAFC;
  --bg-warm: #FAF9F6;
  
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;

  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-light: rgba(15, 43, 75, 0.08);

  --font-serif: 'Playfair Display', 'Cinzel', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  --shadow-sm: 0 2px 8px rgba(15, 43, 75, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 43, 75, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 43, 75, 0.12);
  --shadow-gold: 0 10px 30px rgba(201, 168, 76, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-sans);
  background-color: #FFFFFF;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: var(--font-serif);
}

/* Selection */
::selection {
  background: var(--gold-primary);
  color: #FFFFFF;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--primary-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 5px;
  border: 2px solid var(--primary-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* ==========================================================================
   COMPONENTES & UTILITÁRIOS LUXO
   ========================================================================== */

/* Top bar decorativa */
.top-bar {
  background-color: var(--primary-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Typography Gradient */
.text-gold-gradient {
  background: linear-gradient(135deg, #F3E5AB 0%, #C9A84C 50%, #A8882E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-accent {
  color: var(--gold-primary);
}

/* Section Title Stylings */
.section-subtitle {
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-dark));
  border-radius: 2px;
  margin: 1rem auto 0 auto;
}

.section-divider-left {
  margin-left: 0;
}

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  color: #FFFFFF !important;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.2);
  cursor: pointer;
  text-decoration: none;
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-primary) !important;
  border: 1.5px solid var(--gold-primary);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.btn-outline-gold:hover {
  background: var(--gold-primary);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF !important;
  font-weight: 500;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--gold-primary);
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

/* Cards */
.card-lux {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card-lux::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-primary), transparent);
  opacity: 0;
  transition: var(--transition);
}

.card-lux:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 168, 76, 0.25);
}

.card-lux:hover::before {
  opacity: 1;
}

.card-lux-dark {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.card-lux-dark:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 76, 0.35);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* Lawyer Card */
.lawyer-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.lawyer-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.lawyer-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 280px;
  background-color: var(--primary-navy);
}

.lawyer-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}

.lawyer-card:hover .lawyer-img-wrapper img {
  transform: scale(1.05);
}

.lawyer-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(7, 17, 30, 0.8) 100%);
}

.oab-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 10;
  background: rgba(7, 17, 30, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--gold-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

/* Metric / Stat Badge */
.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.stat-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
  background: rgba(255, 255, 255, 0.07);
}

/* FAQ Accordion */
.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: rgba(201, 168, 76, 0.4);
  box-shadow: var(--shadow-md);
}

.faq-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: var(--primary-navy);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.faq-btn:hover {
  color: var(--gold-dark);
}

.faq-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
  flex-shrink: 0;
}

.faq-btn.active .faq-icon-box {
  transform: rotate(180deg);
  background: var(--gold-primary);
  color: #FFFFFF;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.faq-answer.open {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.5);
  color: #FFFFFF;
}

.whatsapp-float i {
  font-size: 32px;
}

.whatsapp-badge-ping {
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background-color: #FF3B30;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  animation: pulsePing 2s infinite;
}

@keyframes pulsePing {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 59, 48, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 100px;
  z-index: 9998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-navy);
  color: var(--gold-primary);
  border: 1px solid rgba(201, 168, 76, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--gold-primary);
  color: #FFFFFF;
  transform: translateY(-3px);
}

/* Nav Link Animation & High Contrast */
.nav-link-custom {
  position: relative;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 0.9375rem;
  transition: all 0.25s ease;
  padding: 8px 14px;
  border-radius: 6px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
}

.nav-link-custom:hover {
  color: #FFFFFF !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
}

.nav-link-custom.active {
  color: #FFFFFF !important;
  background-color: rgba(201, 168, 76, 0.3) !important;
  border: 1px solid rgba(201, 168, 76, 0.6);
  font-weight: 700 !important;
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2.5px;
  background: var(--gold-primary);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  border-radius: 2px;
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
  transform: scaleX(1);
}

.navbar-scrolled {
  background-color: #07111E !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(201, 168, 76, 0.35) !important;
}

/* Quick Consultation Select Card */
.consult-select-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(15, 43, 75, 0.1);
  border: 1px solid var(--border-light);
  padding: 2.5rem;
}

.form-control-custom {
  width: 100%;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-main);
  font-size: 0.9375rem;
  transition: var(--transition);
  outline: none;
}

.form-control-custom:focus {
  border-color: var(--gold-primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.15);
}

/* Testimonial Quote */
.quote-icon {
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: rgba(201, 168, 76, 0.15);
  position: absolute;
  top: 10px;
  right: 20px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }
  .back-to-top {
    bottom: 20px;
    right: 84px;
    width: 40px;
    height: 40px;
  }
  .consult-select-card {
    padding: 1.5rem;
  }
}