:root {
  --bg:         #f8f6f2;
  --bg-soft:    #f1ede6;
  --primary:    #1a1a1a;
  --gold:       #c9a45f;
  --gold-dark:  #a8833e;
  --text:       #2d2d2d;
  --muted:      #6b6b6b;
  --light:      #ffffff;
  --border:     #e4ded3;
  --shadow:     0 10px 30px rgba(0,0,0,0.04);
  --shadow-hover: 0 20px 40px rgba(201, 164, 95, 0.12);
}

* {
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html { 
  scroll-behavior:smooth;
}

body {
  background:var(--bg);
  color:var(--text);
  font-family:'Inter', sans-serif;
  line-height:1.6;
}

h1,h2,h3 {
  font-family:'Playfair Display', serif;
  font-weight:600;
}

.container {
  width:90%;
  max-width:1180px;
  margin:0 auto;
}

/* ─── Header ─── */
.header {
  position:fixed;
  width:100%;
  top:0;
  z-index:1000;
  padding:22px 0;
  transition:all 0.35s ease;
}

.header.scrolled {
  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(12px);
  box-shadow:0 6px 30px rgba(0,0,0,0.06);
  padding:16px 0;
}

.nav-container {
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.logo {
  font-size:1.55rem;
  font-weight:700;
  color:var(--primary);
  letter-spacing:0.5px;
}

.logo-bold {
  color:var(--gold);
}

.nav a {
  margin-left:2.2rem;
  color:var(--muted);
  text-decoration:none;
  font-weight:500;
  position:relative;
  transition: color 0.2s ease;
}

.nav a::after {
  content:"";
  position:absolute;
  width:0;
  height:2px;
  bottom:-6px;
  left:0;
  background:var(--gold);
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav a:hover,
.nav a.active {
  color:var(--primary);
}

.nav a:hover::after,
.nav a.active::after {
  width:100%;
}

.cta-nav {
  color:var(--gold) !important;
  font-weight:600 !important;
}

.menu-toggle {
  display:none;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
}

.menu-toggle span {
  width:26px;
  height:3px;
  background:var(--primary);
  border-radius:2px;
  transition:all 0.4s;
}

/* ─── Hero ─── */
.hero {
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  position:relative;
  padding:0 20px;
  background:linear-gradient(135deg, #fbfaf7 0%, #f3efe7 100%);
  margin-bottom: 0;
  padding-bottom: 0;
}

.hero-overlay {
  position:absolute;
  inset:0;
  background:linear-gradient(to bottom, rgba(255,255,255,0.4), rgba(241,237,230,0.7));
  z-index:1;
}

.hero-content {
  position:relative;
  z-index:2;
  max-width:820px;
}

.hero h1 {
  font-size:clamp(2.8rem, 6.5vw, 4.8rem);
  line-height:1.15;
  margin-bottom:1.4rem;
  color:var(--primary);
}

.lead {
  font-size:1.28rem;
  color:var(--muted);
  margin:0 auto 2.2rem;
  max-width:560px;
}

.hero-buttons {
  display:flex;
  gap:1.2rem;
  justify-content:center;
  flex-wrap:wrap;
}

.btn {
  padding:0.92rem 1.9rem;
  border-radius:10px;
  font-weight:500;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:0.6rem;
  transition: all 0.2s ease-out;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle; /* Remove o alinhamento pela baseline do texto */
  
  /* Garante que a sombra não seja cortada ao subir */
  backface-visibility: hidden; 
  transform: translateY(0);
  will-change: transform;
}

.btn:hover {
  transform: translateY(-5px) scale(1.02);
  filter: brightness(1.1);
  box-shadow: 0 15px 30px rgba(201, 164, 95, 0.3);
}

.btn:active {
    transform: translateY(-1px) scale(1);
}

.btn.primary {
  background:var(--gold);
  color:white;
  border: none;
}

.btn.primary:hover {
  background:var(--gold-dark);
  transform:translateY(-3px);
}

.btn.outline {
  border:1.5px solid var(--gold);
  color:var(--gold);
  background:transparent;
}

.btn.outline:hover {
  background:var(--gold);
  color:white;
}

.whatsapp-big i {
  font-size:1.4rem;
}

.reveal-text {
  overflow: hidden;
  vertical-align: bottom;
}

.reveal-text h1, 
.reveal-text .lead, 
.reveal-text.hero-buttons {
  animation: reveal-slide 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
  transform: translateY(100%);
  opacity: 0;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

@keyframes reveal-slide {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-buttons.reveal-text {
  display: flex; /* Mantém o layout original */
  justify-content: center;
}

/* ─── Stats ─── */
.stats {
  border-radius: 0 0 40px 40px;
  text-align:center;
  background: var(--bg);
  padding: 60px 0;
  margin-top: -50px; /* Efeito de sobreposição no hero */
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stat-card {
  background: var(--light);
  padding: 40px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
}

.stat-card h3 {
  color: var(--gold);
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: -1px;
}

.stat-card p {
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ─── Section Title ─── */
section {
  scroll-margin-top: 100px;
}

.section-title {
  text-align:center;
  margin-top:4rem;
}

.section-title h2 {
  font-size:clamp(2.1rem, 4.5vw, 3.2rem);
  margin-bottom:0.8rem;
}

.section-subtitle {
  color:var(--muted);
  font-size:1.15rem;
  max-width:620px;
  margin:0 auto;
  margin-top: 1.2rem;        
  margin-bottom: 3rem;
}

/* ─── Cards ─── */
.grid {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:2rem;
}

.card, .service-card, .team-card, .stat-card, .social-box, .testimonial {
  background: var(--light);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 2.2rem 1.8rem;

  transition: 
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;

  will-change: transform, box-shadow, border-color;
  position: relative;
  z-index: 1;
}

/* --- Hover refinado (sem social-box) --- */
.card:not(.social-box):hover,
.service-card:hover, 
.team-card:hover, 
.stat-card:hover {
  z-index: 10;
  transform: translateY(-6px) scale(1.1);
  border-color: var(--gold);
  box-shadow: 
    0 12px 25px rgba(0, 0, 0, 0.08),
    0 25px 50px rgba(201, 164, 95, 0.08);
}

/* Services */
.services-grid {
  gap:2.2rem;
}

.service-icon {
  font-size:2.8rem;
  color:var(--gold);
  margin-bottom:1.4rem;
}

.service-card:hover {
  background: #fff;
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* Team */
.team-grid {
  gap:2.4rem;
}

.team-card {
  text-align:center;
  padding:2.4rem 1.6rem;
}

.team-card img {
  width:140px;
  height:140px;
  border-radius:50%;
  object-fit:cover;
  border:4px solid #fff;
  box-shadow:0 8px 24px rgba(0,0,0,0.12);
  margin-bottom:1.4rem;
}

.team-card h3 {
  margin-bottom:0.4rem;
}

.role {
  color:var(--muted);
  font-size:0.98rem;
  margin-bottom:1.4rem;
}

.team-contact {
  display:flex;
  flex-direction:column;
  gap:0.7rem;
  font-size:0.96rem;
  color:var(--muted);
}

.team-contact div i {
  color:var(--gold);
  margin-right:0.6rem;
  width:20px;
  text-align:center;
}

/* Location wrapper - mapa ao lado da info */
.location-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.map-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.location-info {
  background: var(--light);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.location-info h3 {
  margin-bottom: 1.2rem;
  color: var(--primary);
}

.location-info p {
  margin-bottom: 1rem;
  color: var(--muted);
}

.location-info i {
  color: var(--gold);
  margin-right: 0.8rem;
}

.horario {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.horario h4 {
  margin-bottom: 1rem;
  font-size: 1.15rem;
  color: var(--primary);
}

.horario p {
  margin-bottom: 0.6rem;
  font-size: 0.98rem;
}

/* Contato */
#contato {
  scroll-margin-top: -25px; 
}

.contact-section {
  padding:100px 0;
}

.contact-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4rem;
  align-items:center;
}

.form {
  display:flex;
  flex-direction:column;
  gap:1.2rem;
}

.form input,
.form textarea {
  padding:1rem 1.3rem;
  border:1px solid #ddd;
  border-radius:10px;
  font-family:inherit;
  transition:border-color 0.25s;
}

textarea {
  resize: vertical;
  min-height: 100px;
  max-height: 400px;
  width: 100%;
}

.form input:focus,
.form textarea:focus {
  outline:none;
  border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(201,164,95,0.12);
}

.social-box {
  background:var(--light);
  border-radius:16px;
  padding:2.5rem;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  text-align:center;
  transition: border-color 0.3s ease;
}

.social-box:hover {
  transform: none !important;
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.social-icons {
  display:flex;
  justify-content:center;
  gap:1.4rem;
  margin:2rem 0;
}

.social-link {
  width:56px;
  height:56px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.5rem;
  color:white;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration:none;
}

.social-link.whatsapp    { background:#25D366; }
.social-link.instagram   { background:#E1306C; }
.social-link.facebook    { background:#1877F2; }
.social-link.email       { background:#4285F4; }

.social-link:hover {
  transform: scale(1.18) rotate(8deg);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.contact-info {
  margin-top:2rem;
  display:flex;
  flex-direction:column;
  gap:1rem;
  color:var(--muted);
}

.contact-info i {
  color:var(--gold);
  margin-right:0.8rem;
  width:22px;
}

.fa-phone-alt {
    transform: scaleX(-1); /* Inverte horizontalmente para o lado correto */
    display: inline-block;
}

/* Whatsapp float */
.whatsapp-float {
  position:fixed;
  bottom:28px;
  right:28px;
  width:68px;
  height:68px;
  background:#25D366;
  color:white;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:2.2rem;
  box-shadow:0 12px 36px rgba(0,0,0,0.22);
  z-index:999;
  transition:all 0.3s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform:scale(1.15);
  background:#20b358;
}

/* Footer */
.footer {
  background:var(--primary);
  color:#ddd;
  text-align:center;
  padding:3rem 0 2rem;
  font-size:0.96rem;
}

.footer a {
  color:var(--gold);
  text-decoration:none;
}

.developed {
  margin-top:1.2rem;
  font-size:0.9rem;
  opacity:0.8;
}

/* Animações */
.fade-up {
  opacity:0;
  transform:translateY(30px);
  transition:all 0.8s ease;
}

.fade-up.show {
  opacity:1;
  transform:translateY(0);
}

.hero-buttons, .cta-actions {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px 0; /* Dá um respiro para o botão subir sem sair da área visível */
  overflow: visible !important; /* CRITICAL: Permite que o botão "saia" para cima */
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* ─── CTA Template (Advocacia) ─── */
.cta-template {
  padding: 100px 20px;
  text-align: center;
  background: linear-gradient(135deg, #f8f6f2 0%, #f1ede6 100%);
  position: relative;
  overflow: hidden;
}

/* detalhe sutil decorativo */
.cta-template::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(201,164,95,0.08), transparent 60%);
  pointer-events: none;
}

.cta-template h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--primary);
  margin-bottom: 1rem;
}

.cta-template p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 2.2rem;
}

/* botão adaptado ao padrão do site */
.cta-template .btn-site {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.95rem 2rem;
  border-radius: 10px;

  background: var(--gold);
  color: #fff;
  text-decoration: none;
  font-weight: 500;

  transition: all 0.25s ease;
  box-shadow: 0 10px 25px rgba(201, 164, 95, 0.2);
}

.cta-template .btn-site:hover {
  background: var(--gold-dark);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 35px rgba(201, 164, 95, 0.25);
}

.cta-template .btn-site:active {
  transform: translateY(-1px);
}

/* Responsividade */
@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns:1fr;
    gap:3.5rem;
  }
}

@media (max-width: 900px) {
  .location-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats {
    margin-top: -40px;
    padding-top: 80px;
  }
}

@media (max-width: 768px) {
  .nav {
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:var(--light);
    flex-direction:column;
    padding:1.8rem;
    box-shadow:0 10px 30px rgba(0,0,0,0.1);
    border-radius:0 0 12px 12px;
  }

  .nav.active {
    display:flex;
  }

  .nav a {
    margin:1rem 0;
    font-size:1.15rem;
    text-align:center;
  }

  .menu-toggle {
    display:flex;
  }

  .hero {
    min-height:80vh;
    padding:140px 20px 80px;
  }

  .hero-buttons {
    flex-direction:column;
    gap:1rem;
  }

  .cta-template {
      padding: 80px 20px;
  }
    
  .cta-template .btn.primary {
      width: 100%; /* Botão ocupa largura total no mobile */
      justify-content: center;
  }
}
