/* ===== VARIÁVEIS DE CORES - PALETA DE CORES ===== */
:root {
  --primary: #5D4643;
  --primary-dark: #3E2F2D;
  --primary-light: #8B6B67;
  --secondary: #0078D7;
  --secondary-dark: #005A9E;
  --accent: #00B7C3;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --text-dark: #2C2C2C;
  --text-medium: #555555;
  --text-light: #888888;
  --border: #E0E0E0;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
  --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

/* ===== HEADER & NAVEGAÇÃO ===== */
header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background-image: url(../img/logo_p.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent; /* Fundo removido para evitar conflito com a PNG */
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  flex-wrap: wrap;
}

nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.95rem;
}

nav a:hover,
nav a.active {
  background: rgba(255,255,255,0.15);
  color: white;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  background: #009AA6;
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  margin-left: 1rem;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
}

/* ===== CONTEÚDO PRINCIPAL ===== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

section {
  margin-bottom: 4rem;
  scroll-margin-top: 100px;
}

section h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

section h3 {
  color: var(--secondary);
  margin: 1.5rem 0 0.75rem;
  font-size: 1.3rem;
}

/* ===== CARDS & GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid var(--primary);
}

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

.card h4 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.card .date {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: block;
}

.card p {
  color: var(--text-medium);
  font-size: 0.95rem;
}

/* ===== VÍDEOS ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.video-thumbnail {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.video-info {
  padding: 1.25rem;
}

.video-info h4 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.video-info p {
  color: var(--text-medium);
  font-size: 0.95rem;
}

/* ===== PARCEIROS ===== */
/* ===== PARCEIROS ===== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.partner-card {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--secondary);
}

/* Container da logo - círculo com fundo gradiente */
.partner-logo-container {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  overflow: hidden;
  flex-shrink: 0;
}

/* Imagem da logo */
.partner-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}

/* Descrição do parceiro */
.partner-description {
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1; /* Faz a descrição ocupar o espaço disponível */
}

/* Botão "Visitar Site" */
.partner-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  border: 2px solid var(--secondary);
  border-radius: 50px;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
}

.partner-btn:hover {
  background: var(--secondary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 120, 215, 0.3);
}

/* Ícone do botão */
.btn-icon {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.partner-btn:hover .btn-icon {
  transform: translateX(3px) translateY(-2px);
}

/* Responsivo para parceiros */
@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ===== CONTATO ===== */
.contact-form {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: 600px;
  margin-top: 1.5rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  background: white;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-info {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--bg-white), #f0f4f8);
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}

.contact-info p {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.9);
  padding: 3rem 2rem 1.5rem;
  margin-top: 3rem;
}

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

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  display: block;
  margin: 0.4rem 0;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--accent);
  padding-left: 4px;
}

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

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .menu-toggle {
    display: block;
  }

  nav ul {
    width: 100%;
    flex-direction: column;
    gap: 0.25rem;
    display: none;
  }

  nav ul.active {
    display: flex;
  }

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

  .hero p {
    font-size: 1.1rem;
  }

  .btn {
    width: 100%;
    margin: 0.5rem 0 !important;
  }

  .btn-outline {
    margin-left: 0 !important;
  }

  section h2 {
    font-size: 1.75rem;
  }
}

/* ===== UTILITÁRIOS ===== */
.lorem {
  color: var(--text-medium);
  text-align: justify;
}

.tag {
  display: inline-block;
  background: var(--bg-light);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0.25rem 0.25rem 0.25rem 0;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

/* ===== VÍDEOS DO YOUTUBE ===== */
.video-thumbnail {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-thumbnail:hover img {
  transform: scale(1.05);
}

/* Botão de Play centralizado */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  z-index: 2;
}

.video-thumbnail:hover .play-button {
  background: var(--accent);
  color: white;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Modal de Vídeo */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.video-modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--accent);
}

/* Link dos cards de vídeo */
.video-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.video-card-link:hover {
  text-decoration: none;
}

.video-card-link .video-card {
  cursor: pointer;
}