/* 
  Theme Variables - "PREMIUM LEGAL GRADIENT"
  Palette:
  - Blue Gradient Start (Lighter/Vivid): #343952
  - Blue Gradient Mid (Base): #2B2F44
  - Blue Gradient End (Deep): #1A1C29
  
  - Gold Accent: #C39A4B (Mustard Gold)
  - Gold Hover: #D4AF60
  
  - Text Main (White): #FFFFFF
  - Text Secondary (Light Gray): #E0E2E9
  - Text Muted: #A0A4B8
  
  - WhatsApp: #25D366
*/
:root {
  --bg-main: #2B2F44;
  --bg-darker: #1F2232;
  --bg-card: rgba(255, 255, 255, 0.03);
  /* Glassy feel */

  --color-gold: #C39A4B;
  --color-gold-glow: rgba(195, 154, 75, 0.4);

  --text-main: #FFFFFF;
  --text-secondary: #E0E2E9;
  --text-muted: #9DA1B5;

  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1EBE57;
  --color-whatsapp-glow: rgba(37, 211, 102, 0.5);

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-gold: var(--color-gold);

  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.4);
  --radius-sharp: 0px;
  --font-main: 'Outfit', sans-serif;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  /* Global Gradient Background - Deep and Alive */
  background: radial-gradient(circle at 50% 0%, #353A52 0%, #2B2F44 40%, #1A1C29 100%);
  background-attachment: fixed;
  /* Parallax-like feel */
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-x: hidden !important;
  width: 100% !important;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

html {
  overflow-x: hidden !important;
  width: 100% !important;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  /* Strict White for Headings */
  letter-spacing: -0.01em;
}

.text-gold {
  color: var(--color-gold) !important;
}

.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-padding {
  padding: 120px 0;
}

/* Sections Backgrounds */
/* To create subtle fades, we use localized gradients on sections */
.bg-contrast {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.05) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.center-text {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: var(--radius-sharp);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Glowing WhatsApp Button */
.btn-primary-green {
  background-color: var(--color-whatsapp);
  color: white;
  border: 1px solid var(--color-whatsapp);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.2);
}

.btn-primary-green::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-primary-green:hover::before {
  left: 100%;
}

.btn-primary-green:hover {
  background-color: var(--color-whatsapp-hover);
  box-shadow: 0 0 30px var(--color-whatsapp-glow), 0 0 10px var(--color-whatsapp-glow) inset;
  transform: translateY(-2px);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Pulse Animation for CTA */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.btn-primary-green.pulse {
  animation: pulse-glow 2s infinite;
}


.btn-outline-gold {
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  background: transparent;
}

.btn-outline-gold:hover {
  background: var(--color-gold);
  color: #1A1C29;
  box-shadow: 0 0 20px var(--color-gold-glow);
}

.btn-large {
  padding: 20px 48px;
  font-size: 1.1rem;
}

/* Header */
.header {
  height: 100px;
  background: rgba(29, 33, 48, 0.9);
  /* Transparent dark */
  backdrop-filter: blur(15px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  transition: height 0.3s;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo-icon {
  font-size: 2.2rem;
  color: var(--color-gold);
}

.logo-text h1 {
  font-size: 1.35rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.oab-text {
  font-size: 0.7rem;
  color: var(--color-gold);
  /* Accent color for small details */
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-top: 4px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  /* Top-down fade */
  background: linear-gradient(180deg, rgba(53, 58, 82, 0.4) 0%, rgba(27, 30, 44, 0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  display: flex;
  align-items: center;
  gap: 60px;
  margin: 0 auto;
}

.hero-text {
  flex: 1;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3), 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(-5px);
  /* Enhances floating feel */
  object-fit: cover;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 30px;
  color: white;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  border-left: 3px solid var(--color-gold);
  padding-left: 25px;
  margin-bottom: 50px;
  font-weight: 300;
  max-width: 700px;
}

.hero-cta {
  padding-left: 25px;
  /* Align with border-left line */
}

.ethical-note {
  margin-top: 25px;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ethical-note i {
  color: var(--color-gold);
}

/* Services / Atuação */
.section-header {
  margin-bottom: 90px;
  position: relative;
}

.section-header h3 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  display: inline-block;
  position: relative;
}

/* Elegant underline syntax */
.section-header h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 80px;
  height: 2px;
  background: var(--color-gold);
}

.section-header p {
  color: var(--color-gold);
  /* Highlight Subtitles */
  font-size: 1.25rem;
  margin-top: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  font-weight: 600;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 50px;
}

.service-column {
  background: transparent;
}

.column-header {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent);
  padding: 25px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--color-gold);
  margin-bottom: 30px;
}

.column-header i {
  font-size: 2.2rem;
  color: white;
  /* Monochromatic White as requested for some elements, or gold */
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.column-header h4 {
  font-size: 1.6rem;
  margin: 0;
  color: white;
}

/* Updated List Item Styles for better alignment */
.service-list li {
  display: flex;
  align-items: flex-start;
  /* Changed from center to flex-start for vertical alignment with Title */
  gap: 18px;
  margin-bottom: 24px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: transform 0.3s;
}

.service-list li:hover {
  transform: translateX(10px);
  color: white;
  /* Subtle interaction */
}

/* Icon specific adjustment */
.service-list li i {
  color: var(--color-gold);
  font-size: 1.1rem;
  /* Slightly larger used for visibility */
  margin-top: 5px;
  /* Visual alignment with the first line of text */
  flex-shrink: 0;
  /* Prevent icon from shrinking */
}

/* Process - Modern Steps */
.process-steps {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.step-card {
  flex: 1;
  min-width: 280px;
  /* Glassmorphism dark */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border-subtle);
  padding: 50px 35px;
  transition: var(--transition-smooth);
  position: relative;
}

.step-card:hover {
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.step-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-gold);
  transition: 0.4s;
}

.step-card:hover::after {
  width: 100%;
}

.step-icon {
  margin-bottom: 30px;
  font-size: 3rem;
  color: var(--text-main);
  /* White icon */
  opacity: 0.9;
}

.step-card h4 {
  margin-bottom: 15px;
  font-size: 1.4rem;
  color: var(--color-gold);
  /* Gold title for process steps */
}

.step-card p {
  color: var(--text-muted);
}

.process-note {
  display: inline-flex;
  align-items: center;
  padding: 15px 30px;
  border: 1px solid var(--border-subtle);
  color: white;
  font-size: 1rem;
  margin-top: 30px;
  background: rgba(0, 0, 0, 0.2);
}

.process-note i {
  color: var(--color-whatsapp);
  /* Keep whatsapp green here or gold? Req says ONLY accent. Using Gold for neutral icons. */
  color: var(--color-gold);
  margin-right: 12px;
}

/* Differentials */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  align-items: stretch;
  /* Ensure all grid items stretch to the same height */
  grid-auto-rows: 1fr;
}

@media (min-width: 1024px) {
  .diff-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


.diff-card {
  height: 100%;
  /* Take full height of the grid cell */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* Align content to top */
  padding: 40px 30px;
  background: transparent;
  border-left: 1px solid var(--border-subtle);
  transition: all 0.4s ease;
}

.diff-card:hover {
  border-left: 4px solid var(--color-gold);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent);
}

.diff-card i {
  font-size: 2.8rem;
  color: white;
  margin-bottom: 25px;
  display: block;
}

.diff-card h4 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--color-gold);
}

.diff-card p {
  color: var(--text-muted);
  flex-grow: 1;
  /* Ensure text pushes nicely if we wanted bottom alignment, but visually standardizes space */
}

/* FAQ - Minimal Elegant */
.accordion-item {
  background: transparent;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0;
}

.accordion-header {
  width: 100%;
  padding: 30px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1.25rem;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  transition: all 0.3s;
}

.accordion-header:hover {
  color: var(--color-gold);
  padding-left: 20px;
  /* Subtle movement */
}

.accordion-header i {
  color: var(--color-gold);
  font-size: 1.2rem;
}

.accordion-header.active {
  color: var(--color-gold);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.accordion-body p {
  padding: 0 10px 30px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* CTA Section */
.cta-section {
  position: relative;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(0deg, #11131C 0%, #1F2232 100%);
}

.cta-bg-overlay {
  display: none;
  /* Removed image overlay for cleaner gradient look */
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 3.5rem;
  margin-bottom: 25px;
}

.cta-content p {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 50px;
}

/* Footer */
.footer {
  background: #0F1118;
  padding: 100px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-info h4 {
  color: white;
  font-size: 1.6rem;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-contact a,
.footer-contact .footer-link-static {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  margin-top: 18px;
  transition: color 0.3s;
  font-size: 1rem;
}

.footer-contact a:hover,
.footer-contact .footer-link-static:hover {
  color: white;
}

.footer-contact .footer-link-static {
  cursor: default;
}

.footer-contact a i,
.footer-contact .footer-link-static i {
  color: var(--color-gold);
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 60px;
  padding-top: 30px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.2);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-text {
  opacity: 0;
  animation: slideInLeft 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
  transition-delay: 0.15s;
  animation-delay: 0.15s;
}

.delay-2 {
  transition-delay: 0.3s;
  animation-delay: 0.3s;
}

.delay-3 {
  transition-delay: 0.45s;
  animation-delay: 0.45s;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mobile - Final Optimization: No Gaps, Tight, Vertical */
@media (max-width: 768px) {

  /* FORCE NO OVERFLOW */
  body,
  html {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* --- HEADER --- */
  .header {
    height: auto;
    padding: 10px 0;
    position: relative;
  }

  .header-container {
    display: flex;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    /* CENTER not space-between */
    gap: 15px;
    width: 100%;
  }

  .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 5px;
    text-align: center;
  }

  .logo-text {
    text-align: center;
    width: 100%;
  }

  /* Button: 100% Width */
  .header-container .btn {
    display: flex !important;
    width: 100% !important;
    margin: 5px 0 0 0 !important;
    justify-content: center;
    font-size: 0.9rem;
  }

  /* --- HERO SECTION --- */
  .hero {
    padding-top: 140px;
    height: auto !important;
    /* RESET HEIGHT */
    min-height: auto !important;
    padding-bottom: 40px;
  }

  .hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100%;
  }

  /* Container interno do texto - Reset total para evitar conflitos */
  .hero-text {
    width: 100% !important;
    margin: 0 auto !important;
    /* Centralização do container */
    padding: 0 !important;
    text-align: center !important;
    display: block !important;
  }

  /* Título - Centralização Forçada e Tamanho Imponente */
  .hero-title {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    /* Ajuste para 100% evitando overflow horizontal */
    margin-left: 0 !important;
    margin-right: 0 !important;
    /* Garantindo margin 0 auto implícito ou explícito no container */
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-size: 34px !important;
    line-height: 1.2 !important;
    margin-top: -110px !important;
    /* Subida significativa conforme solicitado */
    margin-bottom: 10px !important;
    /* Reduzido para 10px para proximidade com subtítulo */
  }

  .hero-title span {
    display: inline-block !important;
    /* Inline-block respects text-align center of parent better than block if width is not full */
    text-align: center !important;
  }

  .hero-subtitle {
    padding: 0 !important;
    border: none !important;
    text-align: center !important;
    font-size: 1.1rem !important;
    width: 100% !important;
    margin-bottom: 10px;
    /* Reduzido para proximidade com botão WhatsApp */
  }

  .hero-cta {
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .btn-primary-green {
    width: 100% !important;
    padding: 18px;
    font-size: 1rem;
    white-space: normal;
    text-align: center;
  }

  .ethical-note {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    margin-top: 15px;
  }

  .ethical-note i {
    display: inline-block !important;
    /* Ou inline, mas inline-block ajuda com transform */
    position: static !important;
    margin: 0 5px 0 0 !important;
    /* Pequena margem direita para separar do texto */
    transform: none !important;
    float: none !important;
  }

  /* Hero Image Last */
  .hero-image {
    order: 2 !important;
    width: 100%;
    margin-top: -50px !important;
    /* Aproximando do botão conforme solicitado */
    display: flex;
    justify-content: center;
  }

  .hero-image img {
    max-width: 100%;
    width: 300px;
    height: auto;
  }

  /* --- SERVICES --- */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
  }

  .service-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .column-header {
    width: 100%;
    justify-content: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 20px;
  }

  .service-list {
    padding: 0 15px !important;
    width: 100%;
  }

  /* REDUCED GAP TO 10px */
  .service-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
    gap: 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .service-list li:last-child {
    border-bottom: none;
  }

  .service-list li i {
    margin-bottom: 5px;
    margin-top: 0;
    font-size: 1.6rem;
  }

  /* --- OTHER SECTIONS --- */

  /* RESET HEIGHTS */
  section {
    height: auto !important;
    min-height: 0 !important;
  }

  .section-padding {
    padding: 40px 0;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .section-header h3 {
    font-size: 2.2rem;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .section-header h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .section-header p {
    text-align: center;
    padding: 0 10px;
    margin-top: 10px;
  }

  .process-steps {
    flex-direction: column;
    gap: 30px;
  }

  .process-note {
    margin-top: -40px !important;
    margin-bottom: 20px !important;
    /* Aproximando a próxima seção */
    width: 100% !important;
    text-align: center !important;
    display: block !important;
  }

  .step-card {
    text-align: center;
    padding: 30px 20px;
  }

  .step-icon {
    justify-content: center;
    display: flex;
    margin-bottom: 15px;
  }

  .footer {
    padding: 60px 0 30px;
  }

  .footer-info,
  .footer-contact,
  .footer-legal {
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center !important;
    /* Force center */
  }

  .cta-content h2 {
    font-size: 2.2rem;
    line-height: 1.2;
  }
}
