/* components.css - Estilos para componentes reutilizáveis */

/* Header Component */
header {
  background: #f1e3ca;
  padding: 10px 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

header h1 {
  color: #333;
  margin: 0;
  font-size: 1.8rem;
}

header nav {
  display: flex;
  gap: 25px;
}

header nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

header nav a:hover {
  color: #0c444e;
}

header nav a.active {
  color: #0c444e;
  border-bottom: 2px solid #0c444e;
}

header .logo {
  height: 100px;
  display: block;
}

.header-container {
  display: flex;
  justify-content: space-around;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

header .logo img {
  height: 100px;
  width: auto;
  display: block;
}

header .whatsapp-button {
  height: 40px;
  width: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  border: 1px solid black;
  border-radius: 1000px;
  padding: 5px 10px;
}

header .whatsapp-button img {
  height: 20px;
  width: auto;
  display: block;
}

/* Footer Component */
footer {
  background: #333;
  color: #f1e3ca;
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 4rem;
}

footer p {
  margin: 0;
  opacity: 0.8;
}

/* ============================================
   SISTEMA PADRONIZADO DE BOTÕES
   ============================================ */

/* Classe base para todos os botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: 'Outfit', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-align: center;
  line-height: 1.5;
}

/* Botão Primário - Cor principal do site */
.btn-primary,
.btn {
  background: linear-gradient(135deg, #58371b 0%, #8b5a3c 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(88, 55, 27, 0.3);
}

.btn-primary:hover,
.btn:hover {
  background: linear-gradient(135deg, #6b4528 0%, #a06a4a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(88, 55, 27, 0.4);
}

.btn-primary:active,
.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(88, 55, 27, 0.3);
}

/* Botão Secundário - Estilo alternativo */
.btn-secondary {
  background: transparent;
  color: #58371b;
  border: 2px solid #58371b;
  box-shadow: none;
}

.btn-secondary:hover {
  background: #58371b;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(88, 55, 27, 0.3);
}

/* Botão WhatsApp - Cor verde característica */
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #20BA5A 0%, #0F7A6F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Botão Outline - Apenas borda */
.btn-outline {
  background: transparent;
  color: #58371b;
  border: 2px solid #58371b;
  box-shadow: none;
}

.btn-outline:hover {
  background: #58371b;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(88, 55, 27, 0.3);
}

/* Botão Ghost - Sem fundo, apenas texto */
.btn-ghost {
  background: transparent;
  color: #58371b;
  border: none;
  box-shadow: none;
  padding: 8px 16px;
}

.btn-ghost:hover {
  background: rgba(88, 55, 27, 0.1);
  color: #58371b;
  transform: translateY(-2px);
}

/* Tamanhos de botões */
.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.btn-xl {
  padding: 20px 40px;
  font-size: 1.25rem;
}

/* Botão com largura total */
.btn-block {
  width: 100%;
  display: flex;
}

/* Botão desabilitado */
.btn:disabled,
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn:disabled:hover,
.btn[disabled]:hover {
  transform: none;
  box-shadow: none;
}

/* Card Component */
.card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.card h3 {
  color: #333;
  margin-bottom: 1rem;
}

.card p {
  color: #58371b;
  line-height: 1.6;
}

#botao-sidebar {
  display: none;
}

.sidebar {
  display: none;
}

/* Footer styles */
.footer {
  background: #58371b;
  color: #f1e3ca;
  padding: 40px 20px 20px;
  font-size: 1rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 32px;
  text-align: left;
  max-width: 900px;
}

.footer-col {
  flex: 1 1 220px;
  min-width: 200px;
  margin-bottom: 24px;
}

.footer-col h3 {
  margin-bottom: 16px;
  font-size: 1.2rem;
  color: #f1e3ca;
}

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

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #ffd700;
}

.footer-social {
  margin-top: 12px;
}

.footer-btn {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 8px;
  padding: 8px 18px;
  background: #e9ab3b;
  color: #222;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.footer-btn:hover {
  background: #f1e3ca;
  color: #222;
}

@media (max-width: 800px) {
  .footer-container {
    flex-direction: column;
    gap: 0;
    display: flex;
    align-items: flex-start;
  }

  .footer-col {
    margin-bottom: 32px;
  }
}

@media (max-width: 810px) {
  .divider {
    display: flex;
    width: 100%;
    border-top: 1px solid #0c444e;
  }

  .header-container {
    justify-content: space-between;
    padding: 0 20px;
    width: 100%;
  }

  .header-container .logo {
    order: 2;
    width: auto;
  }

  .header-container .main-nav {
    display: none;
  }

  .header-container .whatsapp-button {
    order: 3;
    width: auto;
  }

  .sidebar {
    width: 250px;
    height: 100vh;
    background-color: #f0f0f0;
    position: fixed;
    top: 0;
    left: -250px;
    /* Começa escondida */
    transition: left 0.3s ease;
    /* Transição suave */
    padding: 20px;
    display: block;
    z-index: 1001;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .sidebar.aberta {
    left: 0;
    /* Move para a esquerda para exibir */
  }

  /* Overlay escuro quando sidebar está aberta */
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  body.sidebar-aberta .sidebar-overlay {
    display: block;
    opacity: 1;
  }

  /* Garantir que header fique acima do overlay mas abaixo da sidebar */
  header {
    position: relative;
    z-index: 1002;
  }

  .sidebar ul li {
    list-style: none;
    margin-bottom: 10px
  }

  .sidebar ul li a {
    text-decoration: none;
    color: black;
    font-weight: 500;
  }

  .sidebar ul li a:hover {
    color: #ffd700;
    font-weight: 700;
  }

  #botao-sidebar {
    /* Estilos do botão aqui */
    background-color: transparent;
    color: white;
    border: none;
    cursor: pointer;
    display: block;
  }

  #botao-sidebar img {
    height: 30px;
    width: auto;
    display: block;
  }

  .txt-whatsapp {
    display: none;
  }

  /* Quando sidebar está aberta, apenas bloqueia scroll do body */
  body.sidebar-aberta {
    overflow: hidden;
  }
}