/* Código criado por Otoniel S. Marques */
/*
  Estilos globais do site Lopes e Lacerda.
  Defini cores, tipografia e componentes reutilizados em todas as páginas.
*/

/* Variáveis de cores e transições – padronizo aqui para manter a identidade visual */
:root {
  --primary-color: #700f0f;
  --primary-dark: #851616;
  --primary-light: #831919;
  --text-light: #ffffff;
  --text-dark: #1a1a1a;
  --bg-dark: #5c0707;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--text-light);
  background-color: var(--bg-dark);
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Títulos e parágrafos – uso Montserrat nos títulos para dar destaque */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* Cabeçalho fixo no topo; fundo escuro e sombra para destacar do conteúdo */
header {
  background-color: var(--primary-dark);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

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

.logo a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

/* Logo do escritório exibido via pseudo-elemento; tamanho ajustado ao layout do header */
.logo a::before {
  content: "";
  display: block;
  width: 150px;
  height: 100px;
  background-image: url('../images/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Oculto o texto do link (nome + "Advocacia") para não duplicar – a marca fica só na imagem */
.logo h1,
.logo p {
  display: none;
}


.desktop-nav ul {
  display: flex;
}

.desktop-nav ul li {
  margin-left: 1.5rem;
}

.desktop-nav ul li a {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.desktop-nav ul li a:hover {
  color: var(--text-light);
  opacity: 0.8;
}

.desktop-nav ul li a.active {
  color: var(--text-light);
}

.desktop-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--text-light);
  transition: var(--transition);
}

.desktop-nav ul li a:hover::after,
.desktop-nav ul li a.active::after {
  width: 100%;
}

/* Menu mobile – botão hamburger e navegação que aparece em telas pequenas */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-light);
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  background-color: var(--primary-color);
  padding: 1rem 0;
  transition: var(--transition);
  position: absolute;
  width: 100%;
  top: 100%;
  left: 0;
  z-index: 99;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.mobile-nav ul li {
  text-align: center;
  padding: 0.8rem 0;
}

.mobile-nav ul li a {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
  color: var(--text-light);
  opacity: 0.8;
}

/* Botões primário e secundário – uso nos CTAs e links de destaque */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
}

.primary-btn {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.primary-btn:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.secondary-btn {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.secondary-btn:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Espaçamento padrão das seções e estilo do sublinhado dos títulos de bloco */
section {
  padding: 4rem 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.heading-underline {
  width: 80px;
  height: 3px;
  background-color: var(--text-light);
  margin: 0 auto;
}

/* Faixa de título de página (ex.: Sobre Nós, Contato) */
.page-banner {
  background-color: var(--primary-color);
  padding: 3rem 0;
  text-align: center;
  position: relative;
}

.page-banner h1 {
  font-size: 3rem;
  position: relative;
  z-index: 1;
}

/* Bloco de chamada para ação – agendar consulta, entrar em contato */
.cta {
  background-color: var(--primary-color);
  text-align: center;
  padding: 5rem 0;
  position: relative;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta p {
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
}

/* Rodapé com logo, contato e links rápidos */
footer {
  background-color: var(--primary-dark);
  padding: 4rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo h2 {
  font-size: 1.8rem;
  margin-bottom: 0;
}

.footer-logo p {
  font-size: 0.9rem;
  color: var(--text-light);
  opacity: 0.9;
}

.footer-contact h3, 
.footer-links h3 {
  color: var(--text-light);
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.footer-contact h3::after, 
.footer-links h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--text-light);
}

.footer-contact p {
  margin-bottom: 0.5rem;
}

.footer-contact i {
  margin-right: 0.5rem;
  color: var(--text-light);
  opacity: 0.9;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a:hover {
  color: var(--text-light);
  opacity: 0.8;
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Botão flutuante do WhatsApp – fixo no canto para contato rápido */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Ajustes para tablet e mobile – reduzo tamanhos e mostro menu hamburger em telas menores */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .page-banner h1 {
    font-size: 2.5rem;
  }
  
  .cta h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .mobile-nav.active {
    display: block;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
  
  .page-banner h1 {
    font-size: 2rem;
  }
  
  .cta h2 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 3rem 0;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }
  
  .logo h1 {
    font-size: 1.5rem;
  }
  
  .logo p {
    font-size: 0.8rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  .page-banner h1 {
    font-size: 1.8rem;
  }
  
  .cta h2 {
    font-size: 1.6rem;
  }
  
  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
  
  section {
    padding: 2.5rem 0;
  }
}