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

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

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

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 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 24px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

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

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

.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: 1140px;
  margin: 36px auto 60px;
  padding: 0 20px;
}

.devotional-banner-strip {
  text-align: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--primary-maroon);
  letter-spacing: 1px;
  margin-bottom: 24px;
  background: var(--gold-light);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(212, 175, 55, 0.6);
}

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

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

.priest-image-col {
  position: relative;
  background: #f4eae0;
  overflow: hidden;
  border-right: 2px solid var(--gold-light);
}

.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(74, 7, 9, 0.96), rgba(123, 17, 19, 0.8) 75%, transparent);
  color: var(--white);
  padding: 24px 20px 18px;
  text-align: center;
}

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

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

.content-col {
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-maroon);
  background: var(--gold-light);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  margin-bottom: 12px;
}

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

.upgrade-subtext {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Services Highlight Box */
.services-active-card {
  background: linear-gradient(135deg, #fffcf7 0%, #fdf6ea 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-left: 4px solid var(--primary-maroon);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 24px;
}

.services-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-maroon);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.service-icon {
  font-size: 1.15rem;
}

/* Contact Cards Grid */
.contact-box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1.5px solid rgba(123, 17, 19, 0.15);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.25s ease;
  box-shadow: var(--shadow-card);
}

.contact-card:hover {
  border-color: var(--gold-accent);
  background: #fffcf5;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(123, 17, 19, 0.1);
}

.contact-icon {
  width: 40px;
  height: 40px;
  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.1rem;
  flex-shrink: 0;
}

.contact-icon svg {
  display: block;
}

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

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

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

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

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

/* Signature Block */
.signature-block {
  border-top: 1px dashed rgba(123, 17, 19, 0.2);
  padding-top: 18px;
}

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

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

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

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

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

/* --- FLOATING WHATSAPP BUTTON --- */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.floating-whatsapp-btn {
  width: 58px;
  height: 58px;
  background-color: #25D366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.floating-whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

.floating-whatsapp:hover .floating-whatsapp-btn {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp-pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: waPulse 2s infinite;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

.floating-whatsapp-tooltip {
  background: var(--dark-maroon);
  color: var(--gold-accent);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  border: 1px solid var(--gold-accent);
  white-space: nowrap;
  pointer-events: none;
  animation: floatTooltip 3s ease-in-out infinite;
}

@keyframes floatTooltip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* --- 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.15rem;
  margin-bottom: 8px;
}

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

/* --- RESPONSIVE --- */
@media (max-width: 950px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
  
  .priest-image-col {
    height: 380px;
    border-right: none;
    border-bottom: 2px solid var(--gold-light);
  }
  
  .content-col {
    padding: 32px 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.72rem;
  }
  
  .priest-image-col {
    height: 320px;
  }
  
  .upgrade-heading {
    font-size: 1.45rem;
  }
  
  .contact-box-grid {
    grid-template-columns: 1fr;
  }

  .floating-whatsapp-tooltip {
    display: none;
  }
  
  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
  }
  
  .floating-whatsapp-btn {
    width: 50px;
    height: 50px;
  }
  
  .floating-whatsapp-btn svg {
    width: 28px;
    height: 28px;
  }
}
