@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Sahitya:wght@400;700&family=Mukta:wght@300;400;600&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* MANTRA MUGADH PALETTE (Dark Spiritual Mode) */
  --bg-maroon: #6B0F1A;
  /* Primary Base: Deep Wine Red */
  --bg-dark: #5A0C14;
  /* Darker Tone for Footer/Sections */
  --bg-gradient-start: #6B0F1A;
  --bg-gradient-end: #7A1418;

  --gold-main: #D4AF6A;
  /* Soft Spiritual Gold (Non-Yellow) */
  --gold-highlight: #F4D27A;
  /* Metallic Gold for Text */
  --gold-muted: #E2B857;
  /* Muted Gold for Borders */

  --ivory: #F8EFD8;
  /* Primary Text Color (Warm White) */
  --ivory-muted: #E6DCC3;
  /* Secondary Text */

  /* Semantic Mappings for Backward Compatibility */
  --maroon: var(--bg-maroon);
  --gold: var(--gold-main);
  --cream: var(--bg-dark);
  /* Re-mapped to Dark for Dark Mode consistency */
  --text-dark: #1C1B17;
  /* For text on light cards */

  /* Typography */
  --font-heading: "Sahitya", "Playfair Display", serif;
  --font-body: "Mukta", "Inter", sans-serif;

  /* Effects */
  --glow-gold: 0 0 20px rgba(212, 175, 106, 0.3);
  --glass-bg: rgba(90, 12, 20, 0.7);
  --border-radius: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  margin: 0;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

/* GLOBAL OVERFLOW FIX */
section,
header,
footer,
.container-fluid {
  max-width: 100vw;
  overflow-x: clip;
  /* Modern CSS to stop spillover */
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-maroon);
  color: var(--ivory);
  line-height: 1.8;
  /* Calm reading pace */
}

/* MANDALA BACKGROUND SYSTEM */
.mandala-bg {
  background-color: var(--bg-maroon);
  background-image:
    radial-gradient(circle at 100% 0%, rgba(212, 175, 106, 0.08) 0%, transparent 25%),
    radial-gradient(circle at 0% 0%, rgba(212, 175, 106, 0.08) 0%, transparent 25%),
    radial-gradient(circle at 50% 50%, rgba(212, 175, 106, 0.03) 0%, transparent 40%);
  background-attachment: fixed;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
.brand-text {
  font-family: var(--font-heading);
  color: var(--gold-highlight);
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.02em;
}

p {
  color: var(--ivory-muted);
  margin-bottom: 1.5rem;
}

/* UTILITIES */
.text-gold {
  color: var(--gold-main) !important;
}

.text-ivory {
  color: var(--ivory) !important;
}

.text-maroon {
  color: var(--bg-maroon) !important;
}

/* Only for light cards */

.bg-maroon {
  background-color: var(--bg-maroon) !important;
}

.bg-dark-maroon {
  background-color: var(--bg-dark) !important;
}

.bg-gold {
  background-color: var(--gold-main) !important;
  color: var(--bg-maroon) !important;
}

/* BUTTONS (Soft Gold Gradient) */
.btn-gold {
  background: linear-gradient(135deg, var(--gold-main) 0%, var(--gold-muted) 100%);
  color: #3A1A0A !important;
  font-weight: 700;
  border: 1px solid var(--gold-highlight);
  border-radius: 50px;
  /* Rounded pill */
  padding: 12px 32px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 106, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-highlight) 0%, var(--gold-main) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 106, 0.5);
}

.btn-outline-light {
  border: 1px solid var(--gold-main);
  color: var(--gold-main);
  border-radius: 50px;
  padding: 10px 28px;
}

.btn-outline-light:hover {
  background: rgba(212, 175, 106, 0.1);
  color: var(--gold-highlight);
}

/* CARDS (Dark Spiritual Theme) */
.card,
.stat-box,
.service-card,
.blog-card,
.testimonial-card {
  background: var(--bg-dark);
  border: 1px solid rgba(212, 175, 106, 0.2);
  border-radius: var(--border-radius);
  color: var(--ivory);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Card overrides removed to restore standard visibility */
/* .bg-white and .text-dark should behave as expected */

/* HEADER & NAV (Dark Mode) */
.top-bar {
  background-color: #3A1A0A;
  /* Very dark brown */
  border-bottom: 1px solid rgba(212, 175, 106, 0.1);
}

.navbar {
  background-color: var(--bg-maroon) !important;
  border-bottom: 1px solid rgba(212, 175, 106, 0.3);
}

.navbar .nav-link {
  color: var(--ivory) !important;
  font-family: var(--font-body);
  font-weight: 500;
}

.navbar .nav-link:hover {
  color: var(--gold-highlight) !important;
  text-shadow: 0 0 10px rgba(212, 175, 106, 0.5);
}

.navbar-toggler {
  border-color: var(--gold-main) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(212, 175, 106, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* DROPDOWNS */
.dropdown-menu {
  background-color: var(--bg-dark);
  border: 1px solid var(--gold-main);
}

.dropdown-item {
  color: var(--ivory);
}

.dropdown-item:hover {
  background-color: rgba(212, 175, 106, 0.1);
  color: var(--gold-highlight);
}

/* SECTIONS */
section {
  position: relative;
  z-index: 1;
}

.section-title::after {
  background: linear-gradient(90deg, transparent, var(--gold-main), transparent);
  height: 2px;
  width: 150px;
}

/* IMAGES & IDOLS (Glow System) */
.idol-img,
.feature-icon img {
  filter: drop-shadow(0 0 15px rgba(212, 175, 106, 0.4));
  transition: transform 0.5s ease;
}

.idol-img:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 0 25px rgba(212, 175, 106, 0.6));
}

/* FORMS (Dark Inputs) */
input,
select,
textarea {
  background-color: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(212, 175, 106, 0.3) !important;
  color: var(--ivory) !important;
  border-radius: 8px !important;
}

input::placeholder,
textarea::placeholder {
  color: rgba(248, 239, 216, 0.5) !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold-highlight) !important;
  box-shadow: 0 0 10px rgba(212, 175, 106, 0.2) !important;
}

/* FORM OVERRIDES (Bootstrap Fix) */
.form-control,
.form-select {
  background-color: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(212, 175, 106, 0.3) !important;
  color: var(--ivory) !important;
}

.form-control:focus,
.form-select:focus {
  background-color: rgba(0, 0, 0, 0.3) !important;
  box-shadow: 0 0 10px rgba(212, 175, 106, 0.2) !important;
  color: var(--gold-highlight) !important;
}

/* FOOTER */
footer {
  background-color: #3A1A0A;
  /* Deepest brown */
  border-top: 3px solid var(--gold-main);
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .container {
    padding: 0 20px;
  }

  .navbar-collapse {
    background-color: var(--bg-dark);
  }
}