/* ============================================
   ADVOCACIA TRIBUTÁRIA - RIBEIRÃO PRETO
   Tema: Azul Escuro + Dourado
   ============================================ */

:root {
  --primary-dark: #1a2e4a;
  --primary-light: #2d4a6f;
  --accent-gold: #d4af37;
  --text-dark: #1a1a1a;
  --text-light: #f5f5f5;
  --bg-light: #f9f9f9;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

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

/* ============================================
   HEADER E NAVEGAÇÃO
   ============================================ */

header {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo:hover {
  color: var(--text-light);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

nav a:hover {
  color: var(--accent-gold);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary-light);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border-radius: 4px;
  margin-top: 0.5rem;
  z-index: 200;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-light);
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
  background-color: var(--primary-dark);
  color: var(--accent-gold);
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.cta-button {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #e8c547;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   BOTÃO WHATSAPP FLUTUANTE
   ============================================ */

.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  z-index: 99;
}

.whatsapp-btn:hover {
  background-color: #1fa855;
  transform: scale(1.1);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  color: var(--text-light);
  padding: 6rem 2rem;
  text-align: center;
}

.hero-container {
  max-width: 1000px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero h1 .gold {
  color: var(--accent-gold);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero .cta-button {
  display: inline-block;
  margin: 0.5rem;
}

/* ============================================
   SEÇÕES PRINCIPAIS
   ============================================ */

section {
  padding: 4rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
  border-bottom: 3px solid var(--accent-gold);
  padding-bottom: 0.5rem;
  display: inline-block;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary-light);
}

p {
  margin-bottom: 1rem;
  text-align: justify;
}

/* ============================================
   CARDS E GRID
   ============================================ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-left: 4px solid var(--accent-gold);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.card p {
  color: #666;
  text-align: left;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-item {
  background-color: white;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  background-color: var(--primary-light);
  color: var(--text-light);
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: var(--primary-dark);
}

.faq-answer {
  padding: 1.5rem;
  display: none;
  color: #666;
  line-height: 1.8;
}

.faq-answer.active {
  display: block;
}

.faq-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-icon.active {
  transform: rotate(180deg);
}

/* ============================================
   RESUMO TÉCNICO
   ============================================ */

.technical-summary {
  background-color: #f0f4f8;
  border-left: 4px solid var(--accent-gold);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.technical-summary h4 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.technical-summary ul {
  list-style-position: inside;
  color: #555;
}

.technical-summary li {
  margin-bottom: 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 3rem 2rem 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

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

.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: var(--accent-gold);
}

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

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
  background-color: #f5f5f5;
  padding: 1rem 2rem;
  margin-bottom: 2rem;
  border-radius: 4px;
}

.breadcrumb a {
  color: var(--primary-light);
  text-decoration: none;
  margin: 0 0.5rem;
}

.breadcrumb a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

.breadcrumb span {
  color: #999;
  margin: 0 0.25rem;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-form {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
  font-weight: bold;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

button {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 768px) {
  nav ul {
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .whatsapp-btn {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  section {
    padding: 2rem 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}
