
:root {
  --bg-color: #ECECEC;
  --bg-white: #FFFFFF;
  --primary: #B7B7B7;
  --primary-dark: #9e9e9e;
  --text-main: #2b2b2b;
  --text-muted: #5e5e5e;
  
  --accent-brown: #a68b75; /* Optional soft brown accent for "detalhes pontuais em marrom" */

  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Poppins', sans-serif;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);

  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Tipografia base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 400; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 400; }
p { font-weight: 300; margin-bottom: 1rem; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(236, 236, 236, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav-link:hover {
  color: var(--accent-brown);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--text-main);
  color: var(--bg-white);
}

.btn-primary:hover {
  background: var(--accent-brown);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-black {
  background: #111;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-black:hover {
  background: #000;
  transform: translateY(-2px);
}

.btn-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--text-main);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--bg-white);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 40px;
}

.btn-gradient {
  background: linear-gradient(135deg, #2b2b2b 0%, #7a7a7a 100%);
  color: #fff;
  border-radius: 8px;
  padding: 16px 32px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  font-family: var(--font-body); /* For better legibility in buttons */
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-gradient::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  color: #fff;
}

.btn-gradient:hover::after {
  animation: shine 1.5s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 200%; }
}

.btn-icon {
  background: transparent;
  border: 1px solid #7a7a7a;
  color: #2b2b2b;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-icon:hover {
  background: #2b2b2b;
  color: #fff;
  border-color: #2b2b2b;
}

.btn svg, .btn-icon svg {
  transition: transform 0.3s;
}

.btn:hover svg, .btn-icon:hover svg {
  transform: translateX(2px);
}
.btn-icon:hover svg {
  transform: translateY(2px); /* Since it's a down arrow usually */
}

/* Sections & Decorators */
.section {
  padding: 120px 0;
  position: relative;
}

.section-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--accent-brown), transparent);
  margin: 0 auto 20px auto;
}

.divider-light {
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.4), transparent);
}

.dark-section {
  background-color: #1a1a1a;
  color: #fff;
}

.dark-section h2, .dark-section h3 {
  color: #fff;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
}
.glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 70%);
  top: 10%;
  left: -200px;
}
.glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(166,139,117,0.15) 0%, rgba(166,139,117,0) 70%);
  bottom: 20%;
  right: -100px;
}
.glow-3 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(183,183,183,0.3) 0%, rgba(183,183,183,0) 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
}

.section-bg-white {
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: 16px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 100px 0;
  z-index: 1;
}

.trust-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  background: rgba(255,255,255,0.6);
  padding: 12px 24px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.4);
  display: inline-flex;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-dot {
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 45%);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-text-inner {
  max-width: 650px;
  color: var(--text-main);
}

.hero-text-inner h1 {
  color: var(--text-main);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* Grid layout */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Custom Overlapping Cards */
.methodology-grid {
  align-items: flex-start;
  padding-top: 40px;
  padding-bottom: 40px;
}

.card-offset-down {
  transform: translateY(40px);
}
.card-offset-down:hover {
  transform: translateY(35px);
}

/* Split Section */
.split-section {
  display: flex;
  align-items: stretch;
  min-height: 80vh;
  background: var(--bg-white);
}
.split-content {
  flex: 1;
  padding: 120px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-image {
  flex: 1;
  position: relative;
}
.split-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cards (Atuação/Info) */
.info-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.dark-card {
  background: rgba(30, 30, 30, 0.6);
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
}
.dark-card:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.3), inset 0 0 20px rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.3);
}

.bg-number {
  position: absolute;
  top: -20px;
  right: -10px;
  font-size: 140px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: rgba(255,255,255,0.03);
  z-index: -1;
  line-height: 1;
}

.info-card:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.08), inset 0 0 20px rgba(255,255,255,0.6);
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.9);
}

.info-card h3 {
  margin-bottom: 16px;
}

/* Timeline Processo */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-step {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  position: relative;
}

.timeline-step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 60px;
  bottom: -40px;
  left: 24px;
  width: 2px;
  background: var(--primary);
  opacity: 0.3;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 2;
}

/* Lawyer Spotlight */
.lawyer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.lawyer-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--primary);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--primary);
  margin-bottom: 16px;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer p {
  padding-bottom: 20px;
  color: var(--text-muted);
}

/* Footer Premium */
.footer {
  background: #111;
  color: var(--bg-white);
  padding: 100px 0 30px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer h4 {
  color: var(--bg-white);
  margin-bottom: 24px;
  font-weight: 500;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  transition: var(--transition);
}
.social-icon:hover {
  background: #fff;
  color: #111;
  transform: translateY(-3px);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-link {
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: inline-block;
}
.footer-link:hover {
  color: #fff;
  transform: translateX(5px);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-white);
  width: 90%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
}

.glass-modal {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  font-family: inherit;
  background: var(--bg-color);
}

.form-textarea {
  resize: vertical;
}

/* Responsividade */
@media (max-width: 992px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .split-section { flex-direction: column; }
  .split-image { min-height: 400px; }
  .card-offset-down { transform: none; }
  .card-offset-down:hover { transform: translateY(-5px); }
  .hero { min-height: 80vh; padding: 140px 0 60px 0; }
  .hero-overlay { background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 50%); }
  .hero-text-inner { text-align: center; margin: 0 auto; max-width: 100%; }
  .lawyer-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; } /* Simplificado para mobile, ideal ter menu hamburger */
  .footer-content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .footer-social { justify-content: center; }
  .footer-bottom-inner { flex-direction: column; gap: 10px; text-align: center; }
  .trust-bar { flex-direction: column; align-items: flex-start; gap: 8px; border-radius: 12px; margin: 30px auto 0 auto; }
  .trust-dot { display: none; }
  .hero { 
    background-attachment: scroll; 
    background-image: url('../hero-mobile.webp') !important;
  }
}

/* Scroll Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}
.fade-in {
  opacity: 0;
  transition: opacity 1s ease-out;
}
.fade-in.in-view {
  opacity: 1;
}
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.whatsapp-float {
  display: flex;
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  align-items: center;
  justify-content: center;
  animation: pulse-wpp 2s infinite;
  transition: background-color 0.3s;
}
.whatsapp-float:hover {
  background-color: #128C7E;
}
@keyframes pulse-wpp {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
