/* ==========================================================================
   JURISPRIME - PREMIIUM LAW FIRM TEMPLATE
   ========================================================================== */

/* 1. VARIÁVEIS GLOBAIS (FÁCIL CUSTOMIZAÇÃO) */
:root {
  /* Cores da Marca */
  --primary-color: #0F172A; /* Azul Marinho Profundo */
  --secondary-color: #C9A050; /* Dourado Champagne */
  --secondary-hover: #B08B42;
  
  /* Cores de Texto e Fundo */
  --text-dark: #1E293B;
  --text-light: #64748B;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  
  /* Tipografia */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  /* Espaçamentos e Estrutura */
  --container-width: 1200px;
  --section-padding: 5rem 1.5rem;
  --border-radius: 4px;
  --transition: all 0.3s ease;
}

/* 2. RESET E TIPOGRAFIA BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-light);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 3. BOTÕES (CTA) */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: #fff;
  border: 1px solid var(--secondary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  border-color: var(--secondary-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* 4. HEADER E NAVEGAÇÃO */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  padding: 0.5rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo span {
  color: var(--secondary-color);
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link:hover {
  color: var(--secondary-color);
}

/* Menu Mobile */
.hamburger {
  display: none;
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* 5. HERO SECTION */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-color: var(--primary-color);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url('https://images.unsplash.com/photo-1589829085413-56de8ae18c73?auto=format&fit=crop&q=80') center/cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-subtitle {
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: block;
}

.hero-title {
  color: #fff;
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.hero-text {
  font-size: 1.2rem;
  color: #E2E8F0;
  margin-bottom: 2rem;
  max-width: 600px;
}

/* 6. UTILITIES E ANIMAÇÕES */
.section {
  padding: var(--section-padding);
}

.bg-light {
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.gsap-reveal {
  opacity: 0;
  visibility: hidden;
}

/* RESPONSIVO */
@media (max-width: 992px) {
  .hero-title { font-size: 3rem; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 80px;
    left: -100%;
    width: 100%;
    background: var(--bg-white);
    flex-direction: column;
    text-align: center;
    padding: 2rem 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
  }
  .nav-menu.active { left: 0; }
  .hamburger { display: block; }
  .hero-title { font-size: 2.5rem; }
}

/* ==========================================================================
   7. CARDS DE ÁREAS DE ATUAÇÃO (PREMIUM SERVICES GRID)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background-color: var(--bg-white);
  padding: 3rem 2rem;
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
  border-color: rgba(201, 160, 80, 0.3);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--secondary-color);
  transition: width 0.4s ease;
}

.service-card:hover::before {
  width: 100%;
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.service-link::after {
  content: '→';
  transition: transform 0.3s ease;
}

.service-card:hover .service-link {
  color: var(--secondary-color);
}

.service-card:hover .service-link::after {
  transform: translateX(5px);
}

/* ==========================================================================
   8. LAYOUT DE PÁGINA INTERNA E FORMULÁRIOS
   ========================================================================== */
.internal-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

.rich-text h2 {
  font-size: 2rem;
  margin: 2.5rem 0 1.2rem;
  color: var(--primary-color);
}

.rich-text h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 1rem;
}

.rich-text p {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  font-size: 1.05rem;
}

.rich-text ul {
  margin-bottom: 2rem;
  padding-left: 1rem;
}

.rich-text ul li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-dark);
}

.rich-text ul li::before {
  content: '✓';
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-widget {
  background-color: var(--bg-light);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(15, 23, 42, 0.05);
  margin-bottom: 2rem;
}

.sidebar-title {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  border-bottom: 2px solid var(--secondary-color);
  display: inline-block;
  padding-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #CBD5E1;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  background-color: #fff;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(201, 160, 80, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.lgpd-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.lgpd-consent input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--secondary-color);
}

@media (max-width: 992px) {
  .internal-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .sidebar {
    position: static;
  }
}

/* ==========================================================================
   9. PÁGINA SOBRE, VALORES E ESTATÍSTICAS (STATS)
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.about-images {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.about-img-main {
  width: 80%;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1;
}

.about-img-accent {
  position: absolute;
  bottom: -30px;
  left: 0;
  width: 50%;
  border: 10px solid var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  z-index: 2;
}

.stats-section {
  background-color: var(--primary-color);
  color: #fff;
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stat-number span {
  font-size: 2.5rem;
  margin-left: 0.2rem;
}

.stat-label {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #E2E8F0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background: var(--bg-light);
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
}

.value-card:hover {
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  transform: translateY(-5px);
}

.value-icon {
  width: 40px;
  height: 40px;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.value-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-images {
    justify-content: center;
    margin-top: 2rem;
  }
}

/* ==========================================================================
   10. UTILITÁRIOS DE LAYOUT (CORREÇÃO HEADER FIXO)
   ========================================================================== */
.section-offset {
  padding-top: 120px !important; 
}

/* ==========================================================================
   11. PÁGINA DE EQUIPE (TEAM GRID)
   ========================================================================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.team-card {
  text-align: center;
}

.team-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.team-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.team-card:hover .team-img {
  transform: scale(1.05);
}

.team-name {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 0.3rem;
}

.team-role {
  font-size: 0.85rem;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.team-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--bg-light);
  color: var(--primary-color);
  border-radius: 50%;
  transition: var(--transition);
}

.team-social a:hover {
  background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-3px);
}

/* ==========================================================================
   12. PÁGINA DE BLOG (ARTIGOS E NOTÍCIAS)
   ========================================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.blog-card {
  background: var(--bg-white);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
}

.blog-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10; /* Proporção elegante para imagens de artigos */
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-img {
  transform: scale(1.05);
}

.blog-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.blog-meta span {
  color: var(--text-light);
  font-weight: 400;
}

.blog-title {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.blog-title a:hover {
  color: var(--secondary-color);
}

.blog-excerpt {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  flex-grow: 1; /* Empurra o botão 'Ler mais' para a base do card */
}

.read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
}

.read-more::after {
  content: '→';
  transition: transform 0.3s ease;
}

.read-more:hover {
  color: var(--secondary-color);
}

.read-more:hover::after {
  transform: translateX(5px);
}

/* ==========================================================================
   13. PÁGINA DE CONTATO (CONTACT LAYOUT & MAP)
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info-card {
  background-color: var(--bg-light);
  padding: 3rem 2.5rem;
  border-radius: var(--border-radius);
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(201, 160, 80, 0.15);
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-title {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.contact-text {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-form-wrapper {
  background-color: var(--bg-white);
  padding: 3rem 2.5rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

.map-container {
  width: 100%;
  height: 420px;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-top: 4rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}