/* ==========================================================================
   Church do Alto - Modern Web Design & Layout System
   Paleta: Slate Dark (#0F172A), Church Blue (#0099FF), Crimson (#E11D48)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Montserrat:wght@500;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary-dark: #0F172A;
  --secondary-dark: #1E293B;
  --brand-blue: #0099FF;
  --brand-blue-hover: #0077E6;
  --accent-pink: #E11D48;
  --text-main: #1F2937;
  --text-muted: #6B7280;
  --bg-light: #F8FAFC;
  --card-bg: #FFFFFF;
  --border-color: #E2E8F0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-heading: 'Plus Jakarta Sans', 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  font-weight: 800;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background-color: #0F172A;
  color: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
}

.brand-logo img {
  height: 48px;
  width: auto;
}

.brand-logo span.highlight {
  color: var(--brand-blue);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: #E2E8F0;
  padding: 8px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--brand-blue);
  transition: width 0.2s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--brand-blue);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--brand-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 153, 255, 0.3);
}

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

.btn-outline:hover {
  background-color: var(--brand-blue);
  color: #FFFFFF;
}

/* Mobile Nav Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
  padding: 120px 0 100px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 153, 255, 0.15);
  border: 1px solid rgba(0, 153, 255, 0.3);
  color: #38BDF8;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 20px;
  font-weight: 900;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #94A3B8;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Event Grid Section (Fidelidade à Imagem 1)
   ========================================================================== */
.section-padding {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.section-title {
  font-size: 2.2rem;
  color: #000000;
  position: relative;
  display: inline-block;
  font-weight: 800;
}

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

/* Card do Evento */
.event-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.event-thumb-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #E2E8F0;
}

.event-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card:hover .event-thumb-wrap img {
  transform: scale(1.05);
}

/* Floating Date Badge (Top-Left) */
.event-date-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #FFFFFF;
  color: #000000;
  border-radius: 8px;
  padding: 6px 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
  min-width: 54px;
}

.event-date-badge .day {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

.event-date-badge .month {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #475569;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.event-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #000000;
  margin-bottom: 16px;
  line-height: 1.3;
}

.event-card-title a:hover {
  color: var(--brand-blue);
}

.event-info-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 10px;
  line-height: 1.4;
}

.event-info-line svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: #64748B;
}

/* ==========================================================================
   Single Event View Layout (Fidelidade à Imagem 2)
   ========================================================================== */
.event-single-header {
  margin-bottom: 30px;
}

.event-single-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #000000;
  line-height: 1.2;
}

.event-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}

.event-main-content {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.event-main-banner {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 24px;
  max-height: 420px;
  background-color: #F1F5F9;
}

.event-main-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-meta-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: #64748B;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F1F5F9;
}

.event-meta-views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.event-description-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #334155;
  white-space: pre-line;
}

/* Sidebar Widgets (Right Column) */
.sidebar-widget {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.search-box {
  display: flex;
  gap: 8px;
}

.search-input {
  flex-grow: 1;
  padding: 10px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
}

.search-btn {
  background: #334155;
  color: #FFFFFF;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}

.btn-cta-blue {
  background-color: #0099FF;
  color: #FFFFFF;
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 6px;
  display: block;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(0, 153, 255, 0.35);
}

.btn-cta-blue:hover {
  background-color: #0084E2;
}

.sidebar-info-block {
  margin-bottom: 20px;
}

.sidebar-info-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #000000;
  margin-bottom: 6px;
}

.sidebar-info-value {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
}

/* Header com Accent Line Rosa */
.accent-widget-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #000000;
  position: relative;
  margin-bottom: 18px;
  display: inline-block;
}

.accent-widget-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--accent-pink);
  border-radius: 2px;
}

.share-buttons-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.share-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 0.9rem;
}

.share-facebook { background: #1877F2; }
.share-x { background: #000000; }
.share-linkedin { background: #0A66C2; }
.share-whatsapp { background: #25D366; }
.share-pinterest { background: #BD081C; }

.gallery-promo-card {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
}

.gallery-promo-card img {
  width: 100%;
  height: auto;
}

.recent-posts-list {
  list-style: none;
}

.recent-post-item {
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748B;
}

.recent-post-item:last-child {
  border-bottom: none;
}

.recent-post-item a:hover {
  color: var(--brand-blue);
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.site-footer {
  background-color: #0F172A;
  color: #94A3B8;
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col-title {
  color: #FFFFFF;
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 800;
}

.footer-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--brand-blue);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

/* ==========================================================================
   Modal Video Player
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: #000000;
  width: 100%;
  max-width: 900px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(255,255,255,0.2);
  color: #FFFFFF;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}

.video-wrapper iframe, .video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .event-detail-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-container {
    height: 70px;
  }
  .nav-menu {
    display: none; /* toggle via JS */
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #0F172A;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  }
  .nav-menu.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .events-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
