/* Ganagapura Landing Page Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-maroon: #7b1113;
  --dark-maroon: #580a0c;
  --gold-accent: #d4af37;
  --gold-hover: #b89528;
  --saffron-light: #f6e2c5;
  --bg-cream: #fff9f0;
  --text-dark: #2b1810;
  --text-muted: #5c4c44;
  --white: #ffffff;
  --shadow-subtle: 0 12px 40px rgba(123, 17, 19, 0.08);
  --radius-lg: 16px;
  --radius-md: 10px;
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- PRELOADER --- */
#flat-preloader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--saffron-light);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
  opacity: 1;
  visibility: visible;
}

#flat-preloader-overlay.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.loader-gif {
  width: 130px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}

.loader-progress-bar {
  width: 180px;
  height: 4px;
  background: rgba(123, 17, 19, 0.15);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 15px;
  position: relative;
}

.loader-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-maroon), var(--gold-accent));
  border-radius: 4px;
  animation: loadProgress 10s linear forwards;
}

@keyframes loadProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

.loader-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary-maroon);
  letter-spacing: 0.5px;
  margin-top: 12px;
}

/* --- HEADER --- */
.site-header {
  background: linear-gradient(135deg, var(--dark-maroon) 0%, var(--primary-maroon) 100%);
  padding: 16px 24px;
  border-bottom: 3px solid var(--gold-accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-wrapper img {
  height: 52px;
  width: auto;
  display: block;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-accent);
  color: var(--gold-accent);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #4CAF50;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(76, 175, 80, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(76, 175, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* --- MAIN CONTAINER --- */
.main-wrapper {
  max-width: 1100px;
  margin: 40px auto 60px;
  padding: 0 20px;
}

.devotional-mantra {
  text-align: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--primary-maroon);
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.landing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(212, 175, 55, 0.3);
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: 520px;
}

.priest-image-col {
  position: relative;
  background: #f4eae0;
  overflow: hidden;
}

.priest-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.priest-overlay-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(88, 10, 12, 0.95), rgba(123, 17, 19, 0.75) 70%, transparent);
  color: var(--white);
  padding: 24px 20px 16px;
  text-align: center;
}

.priest-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--gold-accent);
  margin-bottom: 2px;
}

.priest-title {
  font-size: 0.85rem;
  opacity: 0.9;
  letter-spacing: 0.3px;
}

.content-col {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.upgrade-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--primary-maroon);
  line-height: 1.25;
  margin-bottom: 16px;
}

.upgrade-notice {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 28px;
  line-height: 1.7;
}

.contact-box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-cream);
  border: 1px solid rgba(123, 17, 19, 0.12);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.25s ease;
}

.contact-card:hover {
  border-color: var(--gold-accent);
  background: #fdf5e8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(123, 17, 19, 0.08);
}

.contact-icon {
  width: 42px;
  height: 42px;
  background: var(--primary-maroon);
  color: #ffffff;
  border: 1.5px solid var(--gold-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-icon svg {
  display: block;
}

.whatsapp-icon {
  background: #25D366;
  color: #fff;
  border: none;
}

.email-icon {
  background: var(--gold-accent);
  color: var(--dark-maroon);
  border: none;
}

.contact-info-text {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.contact-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-maroon);
  word-break: break-all;
}

.signature-block {
  border-top: 1px solid rgba(123, 17, 19, 0.12);
  padding-top: 24px;
}

.signature-regards {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.signature-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--primary-maroon);
  margin-top: 2px;
}

.signature-role {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-hover);
}

.signature-temple {
  font-size: 0.9rem;
  color: var(--text-dark);
}

.signature-phone {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-maroon);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- FOOTER --- */
.site-footer {
  background: var(--dark-maroon);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 30px 20px;
  border-top: 3px solid var(--gold-accent);
}

.footer-blessing {
  font-family: 'DM Serif Display', serif;
  color: var(--gold-accent);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
  
  .priest-image-col {
    height: 380px;
  }
  
  .content-col {
    padding: 30px 24px;
  }

  .upgrade-heading {
    font-size: 1.65rem;
  }
}

@media (max-width: 540px) {
  .site-header {
    padding: 12px 16px;
  }
  
  .logo-wrapper img {
    height: 42px;
  }
  
  .status-badge {
    padding: 4px 10px;
    font-size: 0.75rem;
  }
  
  .priest-image-col {
    height: 320px;
  }
  
  .upgrade-heading {
    font-size: 1.45rem;
  }
  
  .contact-box-grid {
    grid-template-columns: 1fr;
  }
}
