@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
  --primary-gold: #c39c63;
  --primary-gold-hover: #a8844f;
  --dark-charcoal: #1c2126;
  --dark-charcoal-light: #252b31;
  --text-main: #666666;
  --text-dark: #1a1a1a;
  --bg-light: #f5f5f5;
  --bg-white: #fafafa;
  --container-width: 1170px;
  --font-heading: 'Lora', serif;
  --font-body: 'Open Sans', sans-serif;
  --transition: all 0.3s ease-in-out;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.2;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* ================= HEADER TOP (LAWYER JUSTICE STYLE) ================= */
.header-top {
  background-color: #ffffff;
  padding: 15px 0;
  border-bottom: 1px solid #eaeaea;
}

.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-info-left {
  text-align: left;
}

.header-info-right {
  text-align: right;
}

.info-label {
  display: block;
  font-family: var(--font-body);
  color: #666666;
  font-size: 12px;
  margin-bottom: 2px;
}

.info-value {
  display: block;
  font-family: var(--font-heading);
  color: var(--primary-gold);
  font-size: 18px; /* Reduzido em aproximadamente 50% */
  font-weight: 700;
  line-height: 1.1;
  transition: var(--transition);
}

.info-value:hover {
  color: var(--dark-charcoal);
}

.header-logo-center {
  text-align: center;
  padding: 0 20px;
}

.header-logo-center img {
  height: 110px; /* Aumentado em cerca de 70% */
  width: auto;
}

/* ================= HEADER BOTTOM / NAVIGATION BAR ================= */
.site-header {
  background-color: var(--dark-charcoal-light);
  transition: var(--transition);
}

.site-header.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  animation: slideDown 0.5s ease-in-out;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--bg-white);
  padding: 22px 20px;
  position: relative;
  transition: var(--transition);
  border-top: 4px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--bg-white);
  border-top-color: var(--primary-gold);
  background: rgba(255,255,255,0.03);
}

.btn-consultation-nav {
  background-color: var(--bg-white);
  color: var(--dark-charcoal) !important;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 25px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 2px;
  transition: var(--transition);
  margin-left: 20px;
}

.btn-consultation-nav:hover {
  background-color: var(--primary-gold);
  color: var(--bg-white) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
  font-size: 20px;
  padding: 5px 10px;
  cursor: pointer;
  margin: 15px 0;
}

/* ================= HERO SECTION (LAWYER JUSTICE STYLE) ================= */
.hero {
  position: relative;
  /* Substitua 'images/fundo-recepcao.jpg' pela imagem da recepção */
  background-image: url('images/fundo-recepcao.jpg');
  background-size: cover;
  background-position: center bottom;
  padding: 0;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 35%, rgba(255,255,255,0.75) 60%, rgba(255,255,255,0.95) 100%);
}

.hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
}

.hero-person {
  flex: 0 0 50%;
  max-width: 50%;
  position: relative;
  text-align: left;
}

@keyframes fadeInDelay {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes floatGently {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.01); }
}

.hero-person img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: -5px; /* Ensures the image sits absolutely flush with the section bottom */
  margin-left: -140px; /* Moves the image significantly farther to the left */
  opacity: 0; /* Starts hidden */
  transform-origin: bottom center;
  /* 1. Fade-in depois de 0.8s */
  /* 2. Flutuação infinita começando depois de 2.8s (quando o fade acaba) */
  animation: 
    fadeInDelay 2s ease-in-out 0.8s forwards,
    floatGently 7s ease-in-out 2.8s infinite;
}

.hero-content {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 120px 0 40px 40px; /* Increased top padding, reduced bottom padding to drop text lower */
  position: relative;
}

.hero-subtitle {
  color: var(--primary-gold);
  font-family: var(--font-heading);
  font-size: 22px;
  font-style: italic;
  margin-bottom: 15px;
  display: block;
  font-weight: 600;
}

.hero h1 {
  color: var(--dark-charcoal);
  font-size: 52px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.hero p {
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 35px;
  max-width: 500px;
}

/* Responsive adjustments for Hero */
@media (max-width: 991px) {
  .hero-container {
    flex-direction: column-reverse;
    align-items: center;
  }
  .hero::before {
    background: rgba(255, 255, 255, 0.85); /* Solid overlay for mobile */
  }
  .hero-person, .hero-content {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .hero-content {
    padding: 60px 15px 40px;
    text-align: center;
  }
  .hero p { margin: 0 auto 35px; }
  .hero-person img {
    margin: 0 auto -5px;
    max-width: 80%;
  }
  .hero h1 { font-size: 42px; }
}

.btn {
  display: inline-block;
  padding: 15px 35px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  border-radius: 2px;
}

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

.btn-primary:hover {
  background-color: var(--dark-charcoal);
  color: var(--bg-white);
}

.btn-dark {
  background-color: var(--dark-charcoal);
  color: var(--bg-white);
}

.btn-dark:hover {
  background-color: var(--primary-gold);
  color: var(--bg-white);
}

/* ================= SECTION COMMON ================= */
.section {
  padding: 90px 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-subtitle {
  color: var(--primary-gold);
  font-style: italic;
  font-family: var(--font-heading);
  font-size: 20px;
  display: block;
  margin-bottom: 5px;
}

.section-title {
  font-size: 36px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background-color: var(--primary-gold);
}

/* ================= ABOUT SECTION ================= */
.about-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.about-content {
  flex: 0 0 50%;
  padding-right: 50px;
}

.about-content .section-title {
  text-transform: none;
  padding-bottom: 15px;
}
.about-content .section-title::after {
  left: 0;
  transform: none;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 15px;
}

.about-features {
  margin-top: 30px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.about-feature-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-light);
  border: 1px solid #eaeaea;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  font-size: 20px;
  border-radius: 50%;
  margin-right: 20px;
  flex-shrink: 0;
}

.about-feature-text h4 {
  font-size: 18px;
  margin-bottom: 5px;
  margin-top: 5px;
}

.about-image {
  flex: 0 0 50%;
  position: relative;
}

.about-image img {
  width: 100%;
  display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-image::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border: 5px solid var(--primary-gold);
  z-index: -1;
}

/* ================= SPECIALTIES ================= */
.specialties-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 -15px;
}

.specialty-item {
  flex: 0 0 33.333333%;
  padding: 0 15px;
  margin-bottom: 30px;
}

.specialty-card {
  background: var(--bg-white);
  padding: 40px 30px;
  text-align: center;
  border: 1px solid #eaeaea;
  transition: var(--transition);
  height: 100%;
  position: relative;
}

.specialty-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-gold);
  transform: scaleX(0);
  transition: var(--transition);
}

.specialty-card:hover {
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  border-color: transparent;
}

.specialty-card:hover::before {
  transform: scaleX(1);
}

.specialty-icon {
  font-size: 45px;
  color: var(--primary-gold);
  margin-bottom: 20px;
  transition: var(--transition);
}

.specialty-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  transition: var(--transition);
}

.specialty-card p {
  font-size: 14px;
}

/* ================= FREE CONSULTATION SECTION ================= */
.consultation-section {
  background-color: var(--dark-charcoal);
  padding: 80px 0;
  position: relative;
}

.consultation-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('images/dummy/slide-2.jpg') center/cover;
  opacity: 0.2;
}

.consultation-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.consultation-content {
  flex: 0 0 50%;
  padding-right: 50px;
  color: #cccccc;
}

.consultation-content .section-title {
  color: var(--bg-white);
  padding-bottom: 15px;
}
.consultation-content .section-title::after {
  left: 0;
  transform: none;
}

.consultation-content p {
  margin-bottom: 25px;
}

.contact-box {
  display: flex;
  align-items: center;
  margin-top: 30px;
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-left: 3px solid var(--primary-gold);
}

.contact-box-icon {
  font-size: 35px;
  color: var(--primary-gold);
  margin-right: 20px;
}

.contact-box-text h4 {
  color: var(--bg-white);
  margin-bottom: 5px;
}

.contact-box-text h2 {
  color: var(--primary-gold);
  margin: 0;
  font-size: 24px;
}

.consultation-form {
  flex: 0 0 50%;
  background: var(--bg-white);
  padding: 40px;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.consultation-form h3 {
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center;
}

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

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d9d9d9;
  font-family: var(--font-body);
  font-size: 14px;
  background: #fdfdfd;
  border-radius: 2px;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-gold);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
}

/* ================= CLIENT LOGOS CAROUSEL ================= */
.clients-section {
  padding: 50px 0;
  border-bottom: 1px solid #eaeaea;
  background-color: var(--bg-white);
  overflow: hidden;
}

.clients-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Cria um efeito de fumaça (fade) nas laterais para as imagens surgirem e sumirem suavemente */
.clients-slider::before,
.clients-slider::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.clients-slider::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-white) 0%, rgba(255,255,255,0) 100%);
}

.clients-slider::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-white) 0%, rgba(255,255,255,0) 100%);
}

.clients-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scrollClients 25s linear infinite;
}

.clients-track:hover {
  animation-play-state: paused; /* Pausa o carrosel caso passem o mouse por cima */
}

@keyframes scrollClients {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Como temos 10 logos (5 originais + 5 cópias), mover 50% dá a volta exata */
}

.client-logo {
  flex: 0 0 200px;
  padding: 0 30px;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  display: block;
}

.client-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ================= FOOTER ================= */
.site-footer {
  background-color: #1a1a1a;
  color: #999999;
  padding: 70px 0 0;
  font-size: 14px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.footer-col {
  flex: 0 0 33.333333%;
  padding: 0 15px;
}

.footer-logo {
  margin-bottom: 20px;
  max-width: 250px;
  /* Foi removido o filtro que invertia as cores, para evitar que o fundo branco da imagem vire um bloco sólido escuro/branco */
}

.footer-col p {
  margin-bottom: 20px;
}

.footer-title {
  color: var(--bg-white);
  font-size: 20px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-gold);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 12px;
}

.footer-links a {
  display: flex;
  align-items: center;
}

.footer-links a::before {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 10px;
  color: var(--primary-gold);
}

.footer-links a:hover {
  color: var(--primary-gold);
  padding-left: 5px;
}

.footer-contact ul {
  list-style: none;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.footer-contact i {
  color: var(--primary-gold);
  font-size: 16px;
  margin-right: 15px;
  margin-top: 5px;
}

.footer-contact strong {
  color: #dddddd;
  display: block;
}

.footer-bottom {
  background-color: #111111;
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid #222222;
}

/* ================= WHATSAPP FLOAT ================= */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.whatsapp-float:hover {
  background-color: #128C7E;
  color: white;
  transform: translateY(-5px);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 991px) {
  .about-content, .about-image, .consultation-content, .consultation-form {
    flex: 0 0 100%;
    padding-right: 0;
  }
  .about-image { margin-top: 50px; }
  .consultation-form { margin-top: 50px; }
  .specialty-item { flex: 0 0 50%; }
  .footer-col { flex: 0 0 50%; margin-bottom: 30px; }
}

@media (max-width: 767px) {
  .header-top { padding: 15px 0; }
  .header-top-inner {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .header-info-left, .header-info-right {
    text-align: center;
  }
  .info-value { font-size: 24px; }
  .header-logo-center img { height: 50px; }
  
  .nav-wrapper {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  
  .btn-consultation-nav {
    display: none; /* Hide on very small screens to save space, or use full width block */
  }

  .hero { padding: 120px 0 80px; }
  .hero h1 { font-size: 36px; }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--dark-charcoal);
    flex-direction: column;
    padding: 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    z-index: 1001;
    align-items: stretch;
  }
  
  .main-nav a {
    text-align: center;
    border-top: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  
  .main-nav.active {
    display: flex;
  }
  
  .menu-toggle { display: block; margin: 10px 0; }
  .specialty-item { flex: 0 0 100%; }
  .footer-col { flex: 0 0 100%; margin-bottom: 30px; }
}