/* styles.css - Design moderno, responsivo, dark mode e animações */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.2s ease;
  scroll-behavior: smooth;
}

/* Variáveis Claro/Escuro */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --text-primary: #1e293b;
  --text-secondary: #334155;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
}

body.dark {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --card-bg: #1e293b;
  --border: #334155;
  --navbar-bg: rgba(15, 23, 42, 0.95);
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  --primary-light: #1e293b;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--navbar-bg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: all 0.3s;
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.nav-menu {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.dark-mode-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-primary);
  transition: transform 0.2s;
}

.nav-toggle {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0f2b3d, #1e4a76);
  min-height: 90vh;
  display: flex;
  align-items: center;
  margin-top: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  color: white;
  max-width: 700px;
  text-align: center;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.section-title:after {
  content: '';
  width: 70px;
  height: 4px;
  background: var(--primary);
  display: block;
  margin: 0.5rem auto 0;
  border-radius: 4px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.values span {
  background: var(--primary-light);
  padding: 0.4rem 1rem;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 500;
}

.about-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

/* Formulários */
.form-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

input, select, textarea {
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  transition: 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.error-msg {
  color: #ef4444;
  font-size: 0.75rem;
}

.success-msg {
  background: #10b98120;
  color: #10b981;
  padding: 0.8rem;
  border-radius: 20px;
  text-align: center;
  margin-top: 1rem;
}

/* Notícias Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.news-card {
  background: var(--card-bg);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.news-card:hover {
  transform: translateY(-6px);
}

.news-img {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.news-card h3 {
  margin: 1rem 1rem 0.5rem;
  font-size: 1.25rem;
}

.news-card p {
  margin: 0 1rem 1rem;
  color: var(--text-secondary);
}

.news-date {
  font-size: 0.8rem;
  margin: 0 1rem 1rem;
  opacity: 0.7;
}

/* Atividades Tabs */
.tabs-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  border-radius: 40px;
  cursor: pointer;
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--primary);
  color: white;
}

.tab-content {
  display: none;
  animation: fade 0.3s;
}

.tab-content.active {
  display: block;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-item {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 20px;
  display: flex;
  gap: 1rem;
  align-items: center;
  border-left: 5px solid var(--primary);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 24px;
}

.calendar-day {
  text-align: center;
  padding: 12px 6px;
  font-weight: 500;
}

.calendar-day.event {
  background: var(--primary);
  color: white;
  border-radius: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
}

.gallery-img {
  background-size: cover;
  background-position: center;
  height: 180px;
  border-radius: 20px;
  transition: 0.2s;
  cursor: pointer;
}

.gallery-img:hover {
  transform: scale(1.02);
}

/* Contacto */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 24px;
}

.info-item {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.social-links a, .footer-social a {
  background: var(--bg-secondary);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.2s;
  color: var(--text-primary);
  font-size: 1.2rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  text-decoration: none;
  color: var(--text-secondary);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

/* Responsivo */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: var(--navbar-bg);
    backdrop-filter: blur(12px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 2rem;
    gap: 1rem;
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-toggle {
    display: block;
  }
  .about-grid, .contact-wrapper, .form-row {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .section {
    padding: 3rem 0;
  }
}

@keyframes fade {
  from { opacity: 0; transform: translateY(5px);}
  to { opacity: 1; transform: translateY(0);}
}