/*
 * Stylesheet for Casa de Caridade Navegantes de Oxalá
 *
 * This CSS defines the visual appearance of the site.  It uses
 * a simple color palette inspired by the light blues and whites of
 * the Umbanda tradition.  The layout is responsive, adapting to
 * smaller viewports using flexbox and media queries.  Text sizes
 * are scalable and accessible.
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* Root variables for easy color management */
:root {
  --primary-color: #0097a7; /* aqua blue reminiscent of the sea and Oxalá */
  --secondary-color: #f8f9fa; /* very light grey for backgrounds */
  --accent-color: #ffc107; /* warm yellow accent for highlights */
  --text-color: #212529; /* dark grey for body text */
  --heading-color: #004d61; /* deeper blue for headings */
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-color);
  background-color: var(--secondary-color);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Navigation bar */
header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

nav .logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--heading-color);
}

nav .logo img {
  height: 40px;
  width: 40px;
  margin-right: 10px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

nav ul li {
  display: inline-block;
}

nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--primary-color);
}

/* Hero section */
.hero {
  height: 100vh;
  background-image: url('fachada-terreiro.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* dark overlay for readability */
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #fff;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #e0f7fa;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #007b8a;
}

/* Section styling */
section {
  padding: 80px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

section h2 {
  color: var(--heading-color);
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

section .cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

section .card {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 20px;
  flex: 1 1 300px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

section .card h3 {
  margin-top: 0;
  color: var(--heading-color);
  font-size: 1.3rem;
}

section .card p {
  flex: 1;
  font-size: 0.95rem;
}

section .card a {
  align-self: flex-start;
  margin-top: 10px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

footer a {
  color: #ffeb3b;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
  nav ul {
    gap: 10px;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  section {
    padding: 60px 15px;
  }
  section .card {
    flex-basis: 100%;
    max-width: none;
  }
}

/* Ocultar botão de menu no desktop */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: #2939e6;
  cursor: pointer;
  padding: 10px;
}

/* Estilo base do menu */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Responsivo para telas pequenas */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #fff; /* <-- Fundo branco */
    width: 100%;
    padding: 1rem;
  }

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

  nav ul li {
    margin: 0.5rem 0;
  }

  .nav-links a {
    color: #000; /* <-- Texto preto */
  }
}
/* Estilo para o banner de evento */

.evento-destaque {
  background: linear-gradient(135deg, #ffd700, #ff69b4);
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  border-bottom: 4px solid #fff;
}

.evento-banner h2,
.evento-banner h3 {
  margin: 0;
  line-height: 1.2;
}

.evento-banner h3 {
  font-size: 1.4rem;
  color: #fff6f6;
  font-weight: normal;
  margin-bottom: 1rem;
}

.evento-banner h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.evento-banner p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.evento-btn {
  background-color: #fff;
  color: #c2185b;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.evento-btn:hover {
  background-color: #ffe0e0;
}

/* Fim do CSS */