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

:root {
  --primary-color: #0b1f3a; /* Dark Blue from logo */
  --secondary-color: #c9a75d; /* Gold from logo */
  --accent-color: #a31c23; /* Red from logo */
  --text-main: #333333;
  --text-light: #666666;
  --bg-color: #f8f9fa;
  --white: #ffffff;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 15px 30px rgba(0,0,0,0.12);
}

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

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 60px;
  margin-right: 15px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

.logo-text .subtitle {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-light);
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-color);
  position: relative;
  padding: 5px 0;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

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

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--secondary-color);
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
  border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  background-image: url('../images/bg-hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 90px; /* Offset for header */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(11, 31, 58, 0.7), rgba(11, 31, 58, 0.5));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 800px;
  padding: 0 20px;
  margin-top: -100px; /* Adjust to move content slightly up due to bottom cards */
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.hero p {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 40px;
  text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.3);
}

/* Quick Cards */
.quick-cards {
  position: absolute;
  bottom: -60px;
  left: 0;
  width: 100%;
  z-index: 10;
}

.cards-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.card {
  background-color: var(--white);
  border-radius: 16px;
  padding: 30px 20px;
  width: calc(33.333% - 20px);
  max-width: 350px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(201, 167, 93, 0.1);
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.card:hover .card-icon {
  background-color: var(--secondary-color);
  color: var(--white);
}

.card h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

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

/* Spacer for content after hero */
.spacer {
  height: 120px;
  background-color: var(--bg-color);
}

/* Footer */
footer {
  background-color: #061121;
  color: var(--white);
  padding: 40px 0 20px;
  border-top: 5px solid var(--secondary-color);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-credits {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.credit-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.credit-item span {
  font-size: 0.9rem;
  color: #a0a0a0;
}

.credit-item img {
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.1));
  transition: var(--transition);
}

.credit-item img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.3));
}

.copyright {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  width: 100%;
  font-size: 0.85rem;
  color: #888;
}

/* Responsive */
/* Internal Pages Hero */
.hero-small {
  position: relative;
  height: 40vh;
  min-height: 300px;
  background-image: url('../images/bg-hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 90px;
}

.hero-small h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background-color: var(--bg-color);
}

.contact-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* Article and About Section */
.about-section {
  padding: 80px 0;
  background-color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 50px;
  align-items: start;
}

.article-content {
  color: var(--text-main);
}

.article-content h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-color);
}

.article-content h3 {
  color: var(--secondary-color);
  font-size: 1.4rem;
  margin-top: 30px;
  margin-bottom: 15px;
}

.article-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.footnotes {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
  color: var(--text-light);
}

.footnotes p {
  margin-bottom: 8px;
  font-size: 0.9rem;
  text-align: left;
}

/* Sidebar Info */
.info-sidebar {
  background-color: var(--bg-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 120px;
}

.info-sidebar h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.3rem;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 10px;
  display: inline-block;
}

.staff-item {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.staff-item i {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-top: 3px;
}

.staff-item div strong {
  display: block;
  color: var(--primary-color);
}

.staff-item div span {
  color: var(--text-light);
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: var(--white);
  color: var(--primary-color);
  border-radius: 50%;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-3px);
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .info-sidebar {
    position: static;
    margin-top: 40px;
  }
}

/* Pastorais Section */
.pastorais-section {
  padding: 80px 0;
  background-color: var(--bg-color);
}

.pastoral-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.pastoral-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 25px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-left: 4px solid var(--secondary-color);
  display: flex;
  flex-direction: column;
}

.pastoral-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--accent-color);
}

.pastoral-card h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.pastoral-card .coordenators {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: auto; /* Pushes to bottom if card grows */
}

.pastoral-card .coordenators strong {
  color: var(--text-main);
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

/* Mobile Menu Toggle & Button */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: var(--primary-color);
  cursor: pointer;
  transition: var(--transition);
}

.menu-toggle:hover {
  color: var(--secondary-color);
}

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

@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    gap: 25px;
    transition: var(--transition);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    overflow-y: auto;
  }
  
  .nav-menu.show {
    left: 0;
  }

  .nav-link {
    font-size: 1.2rem;
  }
  
  .mobile-only-btn {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 20px;
  }
  
  .desktop-only-btn {
    display: none !important;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .card {
    width: calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  .card {
    width: 100%;
    max-width: 400px;
  }
  
  .quick-cards {
    position: relative;
    bottom: 0;
    margin-top: 50px;
    padding: 0 20px;
  }
  
  .spacer {
    display: none;
  }
  
  .footer-credits {
    flex-direction: column;
    gap: 20px;
  }
}

/* Agenda Section */
.agenda-section {
  padding: 80px 0;
  background-color: var(--bg-color);
}

.agenda-container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 40px;
}

.agenda-month {
  color: var(--primary-color);
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

.table-responsive {
  overflow-x: auto;
}

.agenda-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.agenda-table th {
  background-color: rgba(11, 31, 58, 0.05);
  color: var(--primary-color);
  font-weight: 600;
  text-align: left;
  padding: 15px;
  border-bottom: 2px solid var(--secondary-color);
}

.agenda-table td {
  padding: 15px;
  border-bottom: 1px solid #eee;
  color: var(--text-main);
  font-size: 0.95rem;
}

.agenda-table tr:nth-child(even) {
  background-color: rgba(0,0,0,0.02);
}

.agenda-table tr:hover {
  background-color: rgba(201, 167, 93, 0.08);
}

@media (max-width: 768px) {
  .agenda-container {
    padding: 20px 15px;
  }
  .agenda-month {
    font-size: 1.8rem;
  }
}

/* Horarios Section */
.horarios-section {
  padding: 80px 0;
  background-color: var(--bg-color);
}

.horarios-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.horario-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 40px 30px;
  width: 100%;
  max-width: 350px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 4px solid var(--secondary-color);
  display: flex;
  flex-direction: column;
}

.horario-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--primary-color);
}

.horario-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.horario-card h3 {
  color: var(--primary-color);
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.horario-card p {
  color: var(--text-main);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.horario-card .note {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: 15px;
  font-style: italic;
}

/* Galeria Section */
.galeria-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.galeria-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 25px 20px;
  width: 100%;
  max-width: 250px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.galeria-card:hover, .galeria-card.active {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--secondary-color);
}

.galeria-card .icon {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  transition: var(--transition);
}

.galeria-card:hover .icon, .galeria-card.active .icon {
  color: var(--secondary-color);
  transform: scale(1.1);
}

.galeria-card h3 {
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 600;
}

.iframe-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}
