/* 
  Paróquia Senhor Bom Jesus - Design System
*/

:root {
  /* Colors - Liturgical Theme */
  --primary: #7B0D1E; /* Burgundy/Red - Espírito Santo, Mártires */
  --primary-hover: #5A0915;
  --secondary: #C9A84C; /* Gold - Festas, Páscoa, Natal */
  --secondary-hover: #b39139;
  --tertiary: #1E3A5F; /* Navy Blue - Tema geral institucional */
  --light: #F9F4E8; /* Cream/Off-white */
  --dark: #2A2A2A;
  --gray: #6C757D;
  --gray-light: #F3F4F6;
  --white: #FFFFFF;

  /* Typography */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  
  /* Utils */
  --radius: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--white);
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.bg-light { background-color: var(--gray-light); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

/* Navigation */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 1rem 0;
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 2rem;
  color: var(--secondary);
}

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

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 0.8rem;
  color: var(--gray);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--dark);
  font-weight: 500;
  position: relative;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

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

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

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--tertiary);
  /* Placeholder background image pattern for church */
  background-image: linear-gradient(rgba(30, 58, 95, 0.8), rgba(30, 58, 95, 0.9)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%231E3A5F" width="100" height="100"/><path fill="%23264673" d="M0 0h50v50H0zM50 50h50v50H50z"/></svg>');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-top: 80px; /* Offset nav */
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 800px;
}

.hero-title {
  color: var(--secondary);
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  line-height: 1.2;
}

.hero-text {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero-buttons .btn-outline {
  border-color: var(--secondary);
  color: var(--secondary);
}

.hero-buttons .btn-outline:hover {
  background-color: var(--secondary);
  color: var(--tertiary);
}

/* Section specific styling */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.section-subtitle {
  color: var(--gray);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Cards */
.card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border-bottom: 4px solid transparent;
}

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

.card-icon {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 1rem;
}

.link-arrow i {
  transition: transform 0.3s ease;
}

.link-arrow:hover i {
  transform: translateX(4px);
}

/* Schedules */
.schedule-box {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.schedule-header {
  background-color: var(--primary);
  color: var(--white);
  padding: 1.5rem;
  text-align: center;
}

.schedule-header h3 {
  color: var(--white);
  margin: 0;
}

.schedule-list {
  padding: 1.5rem;
}

.schedule-list li {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-light);
  font-weight: 500;
}

.schedule-list li:last-child {
  border-bottom: none;
}

.schedule-list li span i {
  color: var(--secondary);
  margin-right: 8px;
}

.schedule-box.alt-theme .schedule-header {
  background-color: var(--tertiary);
}

/* Sacramentos Cards */
.sacrament-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  padding-bottom: 1.5rem;
  transition: var(--transition);
}

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

.sacrament-img {
  height: 200px;
  background-color: var(--gray-light);
  margin-bottom: 1.5rem;
  background-size: cover;
  background-position: center;
}

/* Use gentle gradients as placeholders for images */
.sacrament-img.batismo { background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); }
.sacrament-img.eucaristia { background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%); }
.sacrament-img.crisma { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.sacrament-img.matrimonio { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }

.sacrament-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.sacrament-card p {
  color: var(--gray);
  padding: 0 1rem;
  margin: 0;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background-color: var(--tertiary);
  color: var(--white);
  padding-top: 4rem;
}

.footer-logo {
  color: var(--white);
}

.footer-logo .logo-title {
  color: var(--secondary);
}

.footer-logo .logo-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
}

.social-links a:hover {
  background-color: var(--secondary);
  color: var(--tertiary);
}

.widget-title {
  color: var(--secondary);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.contact-info li i {
  color: var(--secondary);
  margin-right: 12px;
  margin-top: 4px;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-title { font-size: 3rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.5rem; }
  .hero-text { font-size: 1.1rem; }
  
  .mobile-menu-btn { display: block; }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.3s ease-in-out;
  }
  
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

/* ============================
   Fade-in Animation (IntersectionObserver)
   ============================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   News Cards (Notícias)
   ============================ */
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.news-card-img {
  height: 180px;
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 1rem;
}

.news-badge {
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.news-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 0.75rem;
  font-style: normal;
}

.news-date i {
  color: var(--secondary);
}

.news-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.news-card-body p {
  color: var(--gray);
  font-size: 0.9rem;
  flex: 1;
}

.news-card-body .link-arrow {
  margin-top: auto;
  padding-top: 1rem;
}

/* ============================
   Eventos Litúrgicos
   ============================ */
.eventos-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.evento-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid var(--secondary);
}

.evento-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.evento-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 0.5rem;
  text-align: center;
}

.evento-day {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.evento-month {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--secondary);
}

.evento-info {
  flex: 1;
}

.evento-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--dark);
}

.evento-info p {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.evento-info p i {
  color: var(--secondary);
}

.evento-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  white-space: nowrap;
}

.evento-tag.liturgia  { background-color: #EBF4FF; color: var(--tertiary); }
.evento-tag.catequese { background-color: #FFF4E5; color: #7B4F00; }
.evento-tag.destaque  { background-color: #FDE8EC; color: var(--primary); }
.evento-tag.comunidade{ background-color: #E8F5E9; color: #2E7D32; }

/* ============================
   Map Container
   ============================ */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 768px) {
  .evento-item { flex-wrap: wrap; }
  .evento-tag { order: -1; }
}
