/* ==========================================================================
   VARIÁVEIS E CORES DO PROJETO DR. TÉRCIO CÂMARA
   ========================================================================== */
:root {
  --bg-main: #f5f3ef;
  --bg-secondary: #eaeaeb;
  --text-main: #171614;
  --text-muted: #5e5c58;
  --accent-color: #ff6201; /* Cor dos botões de ação do site (#ff6201) */
  --urgency-color: #d9381e;
  --whatsapp-color: #25D366; /* Verde Oficial do WhatsApp */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   CABEÇALHO E NAVEGAÇÃO FIXA (MAIS TRANSPARENTE & SUBLINHADO AO PASSAR O MOUSE)
   ========================================================================== */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(245, 243, 239, 0.65); /* Aumentada a transparência (65%) */
  backdrop-filter: blur(20px); /* Desfoque ampliado para efeito translúcido premium */
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(23, 22, 20, 0.06);
  transition: background 0.3s ease;
}

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

.brand-logo {
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

/* Estilo individual dos links do menu e efeito de sublinhado animado */
.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0;
  position: relative;
  display: inline-block;
  transition: color 0.25s ease;
}

/* Linha de sublinhado oculta por padrão */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #ff6201; /* Linha de destaque em tom #ff6201 */
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Exibe e expande a linha ao passar o mouse ou quando a página estiver ativa */
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.btn-nav-urgency {
  color: var(--urgency-color) !important;
  font-weight: 600 !important;
}

.btn-nav-urgency::after {
  background-color: var(--urgency-color) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
}

/* ==========================================================================
   CONTEÚDO PRINCIPAL E HERO SECTION
   ========================================================================== */
main {
  padding-top: 80px;
}

.hero {
  padding: 4rem 1.5rem;
  text-align: center;
}

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

.hero-badge {
  display: inline-block;
  background-color: rgba(23, 22, 20, 0.05);
  padding: 0.4rem 1rem;
  border-radius: 980px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   BOTÕES DE AÇÃO DO SITE (#ff6201)
   ========================================================================== */
.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
  padding: 0.8rem 1.6rem;
  border-radius: 980px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-block;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary:hover {
  background-color: #e05600;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(23, 22, 20, 0.06);
  color: var(--text-main);
  padding: 0.8rem 1.6rem;
  border-radius: 980px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.btn-secondary:hover {
  background-color: rgba(23, 22, 20, 0.12);
}

/* ==========================================================================
   SEÇÕES E CARDS
   ========================================================================== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2.5rem;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #ffffff;
  padding: 1.8rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(23, 22, 20, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   BOTÃO FLUTUANTE DO WHATSAPP (COR ORIGINAL #25D366 E ÍCONE PADRÃO)
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25D366; /* Verde Oficial do WhatsApp */
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.2s ease, background-color 0.2s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  background-color: #20ba5a;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(23, 22, 20, 0.08);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}

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

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

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

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

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--text-main);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(23, 22, 20, 0.08);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsividade Mobile */
@media (max-width: 768px) {
  .nav-container {
    position: relative;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem 1.5rem 1.25rem;
    background: rgba(245, 243, 239, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(23, 22, 20, 0.08);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 0.65rem 0;
  }

  .menu-toggle {
    display: block;
  }

  .hero-container.hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .hero {
    padding: 3rem 1rem;
  }

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

  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    width: 56px;
    height: 56px;
  }
}
