:root {
  --primary-color: #710f13;
  --primary-hover: #7e292c;
  --secondary-color: #eab308;
  --secondary-hover: #ca8a04;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --background: #ffffff;
  --background-gray: #f9fafb;
  --border-color: #e5e7eb;
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600 !important;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--primary-color) !important;
  border: 1px solid var(--primary-color) !important;
  color: white;
}

#criar-evento{
  height: 45px;
}

.btn-primary:hover {
  background-color: var(--primary-hover) !important;
}

.btn-yellow {
  background-color: var(--secondary-color);
  color: black;
  font-size: 1rem;
  padding: 1rem 2rem;
}

.btn-yellow:hover {
  background-color: var(--secondary-hover);
}

.btn-outline {
  background-color: transparent !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
}

.btn-outline:hover {
  background-color: var(--background-gray) !important;
}

.btn-outline-white {
  background-color: transparent;
  color: white;
  border: 1px solid white;
  font-size: 1rem;
  padding: 1rem 2rem;
}

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

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background-color: var(--primary-color);
  border-radius: 0.5rem;
  color: white;
}

.logo-text {
  font-weight: bold;
  font-size: 1.25rem;
}

.nav-desktop {
  display: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-cta {
  display: none;
  gap: 1rem;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.125rem;
  padding: 0.5rem 0;
}

.mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, #a2191e 0%, #8f1418 50%, #710f13 100%);
  color: white;
  padding: 6rem 0 8rem;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
}

.hero-content {
  position: relative;
  max-width: 4xl;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.highlight {
  color: var(--secondary-color);
}

.hero-description {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 48rem;
  margin: 0 auto;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background-color: var(--background-gray);
}

.services-grid {
  display: grid;
  gap: 2rem;
}

.service-card {
  background-color: white;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: #710f1228;
  border-radius: 0.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.service-features {
  list-style: none;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.service-features li svg{
  color: #10b981 !important;
  width: 1rem;
  height: 1rem;
}

/* Purpose Section */
.purpose {
  padding: 5rem 0;
  background-color: white;
}

.purpose-content {
  max-width: 4xl;
  margin: 0 auto;
  text-align: center;
}

.purpose-box {
  background: #710f1228;
  border-radius: 1rem;
  padding: 3rem 2rem;
  margin-top: 2rem;
}

.purpose-quote {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.purpose-values {
  display: grid;
  gap: 2rem;
}

.value-item {
  text-align: center;
}

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background-color: var(--primary-color);
  border-radius: 50%;
  color: white;
  margin: 0 auto 1rem;
}

.value-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.value-item p {
  color: var(--text-secondary);
}

/* Events Section */
.events {
  padding: 5rem 0;
  background-color: var(--background-gray);
}

.tabs {
  max-width: 6xl;
  margin: 0 auto;
}

.tab-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 2rem;
  background-color: white;
  border-radius: 0.5rem;
  padding: 0.25rem;
}

.tab-button {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 0.375rem;
  transition: all 0.2s;
  color: var(--text-secondary);
}

.tab-button.active {
  background-color: var(--primary-color);
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.events-grid {
  display: grid;
  gap: 1.5rem;
}

.event-card {
  background-color: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}

.event-card:hover {
  box-shadow: var(--shadow-lg);
}

.event-image {
  position: relative;
  height: 12rem;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.green-gradient {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.blue-gradient {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.purple-gradient {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.orange-gradient {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.red-gradient {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.teal-gradient {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.event-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
}

.event-date {
  position: relative;
  background-color: rgba(255, 255, 255, 0.5);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.event-content {
  padding: 1.5rem;
}

.event-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.event-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.event-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.event-location,
.event-participants {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.event-status {
  display: inline-block;
  background-color: var(--background-gray);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
}

/* CTA Section */
.cta {
  padding: 5rem 0;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.cta-title {
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.cta-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  background-color: #111827;
  color: white;
  padding: 3rem 0;
}

.footer-content {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-subtitle {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-description {
  color: #9ca3af;
}

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

.footer-list li {
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  color: #9ca3af;
}

/* Responsive Design */
@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .purpose-values {
    grid-template-columns: repeat(3, 1fr);
  }

  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-info {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }

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

  .nav-desktop {
    display: flex;
  }

  .nav-cta {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .events-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

  .hero {
    padding: 8rem 0 10rem;
  }

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

/* Loading, Error and Empty States */
.loading-message,
.error-message,
.no-events {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
  grid-column: 1 / -1;
  width: 100%;
}

.loading-message p,
.error-message p,
.no-events p {
  font-size: 1.1rem;
}

.error-message p {
  color: var(--primary-color);
}

.event-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Overlay para imagens de eventos com background-image */
.event-image[style*="background-image"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.event-image[style*="background-image"] .event-date {
  position: relative;
  z-index: 2;
}
