/* ==========================================================================
   IGREJA ASSEMBLEIA DE DEUS DE TRÊS MARIAS - MINISTÉRIO DO GUARÁ - DF
   Design System & Main Stylesheet
   ========================================================================== */

:root {
  /* Sober Institutional Palette derived from Church Identity */
  --wine-950: #1a060b;
  --wine-900: #260910;
  --wine-850: #360d16;
  --wine-800: #4a121e; /* Principal Institutional Deep Bordeaux */
  --wine-700: #5c1827;
  --wine-600: #752233;
  --wine-100: #faedf0;
  --wine-50:  #fdf7f8;

  /* Dignified Champagne & Antique Gold Accent */
  --gold-800: #624312;
  --gold-700: #7e5619;
  --gold-600: #9c6e24;
  --gold-500: #b8863b; /* Official Warm Champagne Gold */
  --gold-400: #d4a759;
  --gold-200: #ebd6b0;
  --gold-100: #fbf5eb;
  --gold-50:  #fdfaf5;

  /* Deep Slate & Muted Navy Supporting Tones (No garish cyan) */
  --cyan-700: #1e3a5f; /* Deep Navy */
  --cyan-600: #2b4257; /* Muted Slate Navy */
  --cyan-500: #3b5a75;
  --cyan-400: #64748b;
  --cyan-100: #f1f5f9; /* Soft Slate Fill */
  --cyan-50:  #f8fafc;

  /* Status Colors */
  --emerald-700: #065f46;
  --emerald-600: #0f766e;
  --emerald-100: #ecfdf5;

  /* Neutrals & Backgrounds (Predominantly White & Off-White) */
  --bg-pure: #ffffff;
  --bg-cream: #faf9f6; /* Off-White */
  --bg-canvas: #f8fafc; /* Very light slate */
  --bg-card: #ffffff;

  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  --border-light: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-brand: rgba(74, 18, 30, 0.18);

  /* Shadows & Elevations */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.09);
  --shadow-wine: 0 6px 20px rgba(74, 18, 30, 0.2);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transitions */
  --trans-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --trans-normal: 280ms cubic-bezier(0.16, 1, 0.3, 1);
  --trans-slow: 450ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Container */
  --container-max: 1240px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem; /* 17px - optimal senior & mobile readability */
  line-height: 1.65;
  color: var(--text-body);
  background-color: var(--bg-cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Accessibility Focus States */
:focus-visible {
  outline: 3px solid rgba(74, 18, 30, 0.35);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Typography Hierarchy */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  color: var(--wine-900);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2.5vw + 0.5rem, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 1.5vw + 0.3rem, 1.7rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--wine-800);
  text-decoration: none;
  transition: color var(--trans-fast);
}

a:hover {
  color: var(--wine-600);
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
}

.section-subtle {
  background-color: var(--bg-canvas);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--wine-700);
  background-color: var(--wine-50);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  border: 1px solid rgba(92, 17, 30, 0.15);
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.85rem 1.65rem;
  min-height: 48px; /* Touch target accessibility */
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--trans-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--wine-800);
  color: var(--text-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--wine-700);
  color: var(--text-white);
  box-shadow: var(--shadow-wine);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: #1e293b;
  color: var(--text-white);
}

.btn-secondary:hover {
  background-color: #0f172a;
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background-color: var(--bg-pure);
  color: var(--wine-900);
  border-color: var(--bg-pure);
  transform: translateY(-2px);
}

.btn-outline-wine {
  background-color: transparent;
  color: var(--wine-800);
  border-color: var(--wine-800);
}

.btn-outline-wine:hover {
  background-color: var(--wine-800);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  min-height: 38px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.0625rem;
}

/* ==========================================================================
   HEADER & NAVBAR & TOPBAR
   ========================================================================== */
.site-topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0;
  font-size: 0.8125rem;
  transition: all var(--trans-normal);
  background: rgba(30, 5, 10, 0.25);
}

.site-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #f1f5f9;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--trans-fast);
}

.topbar-link:hover {
  color: #38bdf8;
}

.topbar-whatsapp-link {
  color: #86efac;
}

.topbar-whatsapp-link strong {
  font-weight: 700;
  color: #ffffff;
}

.topbar-whatsapp-link:hover {
  color: #4ade80;
}

.topbar-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
}

.topbar-info-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.topbar-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.2rem;
}

.topbar-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--trans-fast);
}

.topbar-social-pill:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

.topbar-pill-whatsapp {
  background: rgba(37, 211, 102, 0.22);
  border-color: rgba(37, 211, 102, 0.45);
  color: #86efac;
}

.topbar-pill-whatsapp:hover {
  background: #25d366;
  color: #052e16;
  border-color: #25d366;
}

.topbar-pill-instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #ffffff;
  border-color: transparent;
}

.topbar-pill-facebook:hover {
  background: #1877f2;
  color: #ffffff;
  border-color: #1877f2;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color var(--trans-normal), box-shadow var(--trans-normal), backdrop-filter var(--trans-normal);
  padding: 0;
}

/* Transparent on hero initially */
.site-header.transparent {
  background-color: rgba(65, 10, 20, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}


.site-header.transparent .nav-link {
  color: #f8fafc;
}

.site-header.transparent .nav-link:hover {
  color: #38bdf8;
}

.site-header.transparent .logo-text-title {
  color: #ffffff;
}

.site-header.transparent .logo-text-sub {
  color: #bae6fd;
}

/* Solid on scroll */
.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid var(--border-light);
  padding: 0;
}

.site-header.scrolled .site-topbar {
  border-bottom: 1px solid var(--border-light);
  background: rgba(248, 250, 252, 0.95);
}

.site-header.scrolled .topbar-link {
  color: var(--text-main);
}

.site-header.scrolled .topbar-whatsapp-link {
  color: #15803d;
}

.site-header.scrolled .topbar-whatsapp-link strong {
  color: var(--wine-900);
}

.site-header.scrolled .topbar-info-text,
.site-header.scrolled .topbar-label {
  color: var(--text-muted);
}

.site-header.scrolled .topbar-sep {
  color: var(--border-light);
}

.site-header.scrolled .topbar-social-pill {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--border-light);
  box-shadow: var(--shadow-xs);
}

.site-header.scrolled .topbar-pill-whatsapp {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

.site-header.scrolled .topbar-pill-whatsapp:hover {
  background: #16a34a;
  color: #ffffff;
}

.site-header.scrolled .nav-link {
  color: var(--text-main);
}

.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active {
  color: var(--wine-800);
}

.site-header.scrolled .logo-text-title {
  color: var(--wine-900);
}

.site-header.scrolled .logo-text-sub {
  color: var(--gold-600);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  transition: padding var(--trans-normal);
}

.site-header.scrolled .header-container {
  padding: 0.55rem 0;
}

/* Brand / Logo component */
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform var(--trans-fast);
}

.brand:hover .brand-logo-img {
  transform: scale(1.04);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.logo-text-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.logo-text-sub {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Desktop Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: color var(--trans-fast);
}

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hamburger button for mobile */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  padding: 0.5rem;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  z-index: 1001;
}

.nav-toggle-bar {
  width: 24px;
  height: 2.5px;
  background-color: var(--wine-800);
  border-radius: 2px;
  transition: transform var(--trans-fast), opacity var(--trans-fast);
}

.site-header.transparent .nav-toggle-bar {
  background-color: #ffffff;
}

.site-header.scrolled .nav-toggle-bar {
  background-color: var(--wine-900);
}

/* Mobile Nav Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 360px;
  height: 100vh;
  background-color: var(--bg-pure);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  padding: 5.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  transition: right var(--trans-normal);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans-fast);
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.65rem 0;
  display: block;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav-link.active {
  color: var(--wine-800);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: clamp(7.5rem, 13vh, 10.5rem);
  padding-bottom: 4.5rem;
  color: var(--text-white);
  overflow: hidden;
}


.hero-bg-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transform: scale(1.05);
  animation: heroKenBurns 24s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
  0% { transform: scale(1.03) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1%, -1%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.30) 0%,
    rgba(15, 23, 42, 0.08) 35%,
    rgba(15, 23, 42, 0.40) 70%,
    rgba(15, 23, 42, 0.80) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: #e0f2fe;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  color: var(--text-white);
  font-size: clamp(2.3rem, 5vw + 1rem, 4.2rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-title span {
  color: var(--gold-400);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1.8vw + 0.2rem, 1.4rem);
  font-weight: 300;
  line-height: 1.6;
  color: #f1f5f9;
  max-width: 740px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* ==========================================================================
   ROTATIVE BANNER / CAROUSEL SECTION
   ========================================================================== */
.home-carousel-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #0f172a;
  color: var(--text-white);
}

.home-carousel-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.home-carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.home-carousel-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.home-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.05);
  transition: transform 6s ease-out;
}

.home-carousel-slide.active .home-carousel-img {
  transform: scale(1.0);
}

.home-carousel-overlay {
  position: absolute;
  inset: 0;
  /* Overlay translúcido elegante que valoriza a foto e garante contraste total */
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.45) 0%,
    rgba(15, 23, 42, 0.18) 30%,
    rgba(15, 23, 42, 0.40) 65%,
    rgba(15, 23, 42, 0.85) 100%
  );
}

.home-carousel-content-box {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: clamp(7.5rem, 13vh, 10.5rem);
  padding-bottom: 4.5rem;
}


.home-carousel-caption {
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.40);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 2.25rem 2.25rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.home-carousel-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.30);
  padding: 0.35rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fde047;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
  text-transform: uppercase;
}

.home-carousel-title {
  color: var(--text-white);
  font-size: clamp(2.2rem, 5vw + 1rem, 4rem);
  line-height: 1.18;
  margin-bottom: 1.25rem;
  font-family: var(--font-serif);
  font-weight: 700;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.home-carousel-subtitle {
  font-size: clamp(1.05rem, 1.8vw + 0.2rem, 1.35rem);
  font-weight: 300;
  line-height: 1.6;
  color: #f8fafc;
  max-width: 760px;
  margin: 0 auto 2.25rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.home-carousel-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* Controles de Navegação (Setas) */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.carousel-control:hover {
  background: var(--wine-800);
  border-color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
  left: 1.5rem;
}

.carousel-control.next {
  right: 1.5rem;
}

/* Indicadores / Pontos de Paginação */
.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
  align-items: center;
}

.carousel-indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-indicator-dot.active {
  width: 32px;
  border-radius: 6px;
  background: #fde047;
  box-shadow: 0 0 10px rgba(253, 224, 71, 0.5);
}

@media (max-width: 768px) {
  .home-carousel-section {
    min-height: 100vh;
    min-height: 100dvh;
  }
  .home-carousel-content-box {
    padding-top: clamp(6.5rem, 14vh, 9rem);
    padding-bottom: 3.5rem;
  }
  .home-carousel-caption {
    padding: 1.5rem 1rem;
    border-radius: 14px;
    margin: 0 0.5rem;
  }
  .home-carousel-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }
  .home-carousel-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  .carousel-control {
    width: 38px;
    height: 38px;
  }
  .carousel-control.prev {
    left: 0.5rem;
  }
  .carousel-control.next {
    right: 0.5rem;
  }
  .carousel-indicators {
    bottom: 1.25rem;
  }
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

/* Service / Culto Card */
.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans-fast), box-shadow var(--trans-fast);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--wine-800), var(--gold-500));
}

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

.service-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--wine-700);
  background-color: var(--wine-50);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.service-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Ministry Card */
.ministry-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform var(--trans-fast), box-shadow var(--trans-fast);
  display: flex;
  flex-direction: column;
}

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

.ministry-thumb {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.ministry-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans-slow);
}

.ministry-card:hover .ministry-img {
  transform: scale(1.06);
}

.ministry-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(92, 17, 30, 0.88);
  color: var(--text-white);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.ministry-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ministry-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.ministry-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Weekly Schedule Table */
.schedule-table-wrap {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.schedule-row {
  display: grid;
  grid-template-columns: 140px 120px 1fr 180px;
  align-items: center;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--trans-fast);
}

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

.schedule-row:hover {
  background-color: var(--bg-subtle);
}

.schedule-day {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--wine-800);
}

.schedule-time {
  font-weight: 700;
  color: var(--gold-800);
  background-color: var(--gold-100);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  width: fit-content;
  font-size: 0.875rem;
}

.schedule-name {
  font-weight: 600;
  color: var(--text-main);
}

.schedule-local {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: right;
}

/* Gallery Mosaic */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans-normal);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(59, 9, 18, 0.85) 0%, rgba(0, 0, 0, 0.1) 70%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: var(--text-white);
  transition: opacity var(--trans-fast);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.gallery-item-cat {
  font-size: 0.75rem;
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Donation / Pix Section */
.donation-box {
  background: linear-gradient(135deg, var(--wine-900) 0%, var(--wine-800) 100%);
  color: var(--text-white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-wine);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.donation-info h2 {
  color: var(--text-white);
  margin-bottom: 1rem;
}

.donation-info p {
  color: #f1f5f9;
  font-size: 1.0625rem;
  margin-bottom: 1.5rem;
}

.donation-card {
  background-color: var(--bg-pure);
  color: var(--text-main);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.pix-key-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-canvas);
  border: 1px dashed var(--wine-600);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  gap: 0.75rem;
}

.pix-key-val {
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--wine-800);
}

/* Location / Map Section */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
  align-items: stretch;
}

.location-info {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.location-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.location-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--wine-50);
  color: var(--wine-800);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 380px;
  border: 1px solid var(--border-light);
}

.location-map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: none;
}

/* Call to Action Final */
.cta-final {
  background-color: var(--bg-pure);
  text-align: center;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.cta-final h2 {
  font-size: clamp(2rem, 3vw + 0.5rem, 2.8rem);
  margin-bottom: 1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--wine-900);
  color: #f1f5f9;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.footer-brand-sub {
  font-size: 0.8125rem;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-desc {
  font-size: 0.9375rem;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 380px;
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f8fafc;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.9375rem;
  transition: color var(--trans-fast);
}

.footer-links a:hover {
  color: #38bdf8;
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: #94a3b8;
}

/* Footer Social Icons & Badges */
.footer-social-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--trans-fast);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-social-btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-social-btn.footer-btn-instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: transparent;
}

.footer-social-btn.footer-btn-facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.footer-social-btn.footer-btn-youtube:hover {
  background: #ff0000;
  border-color: #ff0000;
}

.footer-wa-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: #052e16 !important;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
  transition: all var(--trans-fast);
}

.footer-wa-badge:hover {
  background: #22c55e;
  transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVENESS (320px up to 1920px)
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .donation-box {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
  .location-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .topbar-info-text,
  .topbar-label,
  .topbar-sep {
    display: none !important;
  }
  .site-topbar {
    padding: 0.25rem 0;
    font-size: 0.75rem;
  }
  .topbar-social-pill span {
    display: none;
  }
  .topbar-social-pill {
    padding: 0.25rem 0.45rem;
  }
  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  .schedule-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
  }
  .schedule-local {
    text-align: left;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: clamp(6.5rem, 14vh, 9rem);
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .brand-logo-img {
    height: 40px;
  }
  .logo-text-title {
    font-size: 0.95rem;
  }
  .logo-text-sub {
    font-size: 0.7rem;
  }
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   PWA INSTALL BANNER (Client-First Experience)
   ========================================================================== */
.pwa-install-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  z-index: 9999;
  background: #ffffff;
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(92, 17, 30, 0.12);
  border-top: 3px solid var(--gold-500, #d97706);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 520px;
  width: calc(100% - 2rem);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  opacity: 0;
  pointer-events: none;
}

.pwa-install-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.pwa-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--wine-900, #420814), var(--wine-700, #731728));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(92, 17, 30, 0.25);
}

.pwa-banner-info {
  flex: 1;
  min-width: 0;
}

.pwa-banner-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--wine-900, #420814);
  margin-bottom: 2px;
}

.pwa-banner-desc {
  font-size: 0.8rem;
  color: var(--text-muted, #64748b);
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

