/*
   MAABAGLAMUKHI.GURU - Global Styling System
   Author: Senior Frontend Developer
   Description: Unified design system with CSS variables, resets, utilities, and components.
*/

/* ============================================
   START: CSS Variables / Custom Properties
   ============================================ */
:root {
  /* Brand Colors - Maroon/Gold Theme */
  --maroon: #7B1E1E;
  --maroon-dark: #5B1D1D;
  --maroon-deep: #420D09;
  --maroon-rich: #2c1810;
  --maroon-glass: rgba(123, 30, 30, 0.95);

  /* Gold Palette */
  --gold: #FFD700;
  --gold-bright: #ffcc33;
  --gold-deep: #f5c400;
  --gold-glow: rgba(255, 215, 0, 0.4);
  --gold-soft: rgba(255, 215, 0, 0.1);
  --gold-subtle: rgba(255, 204, 51, 0.3);

  /* Background Colors */
  --bg-light: #f8f9fa;
  --bg-cream: #fffdf0;
  --bg-haldi: #FFF7DC;

  /* Text Colors */
  --text-main: #333333;
  --text-muted: #666666;
  --text-dark: #2A1A1A;

  /* UI Colors */
  --white: #ffffff;
  --purple-announcement: #3d004d;

  /* Typography */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Playfair Display', serif;

  /* Shadows & Effects */
  --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.05);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   START: CSS Reset & Base Styles
   ============================================ */
*, *::after, *::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--maroon-rich);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--gold-deep);
}

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

ul {
  list-style: none;
}

/* ============================================
   START: Typography Classes
   ============================================ */
.text-maroon { color: var(--maroon-deep); }
.text-gold { color: var(--gold-deep); }
.text-muted { color: var(--text-muted); }
.bg-cream { background-color: var(--bg-cream); }
.bg-maroon { background-color: var(--maroon-deep); }
.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--white); }
.bg-gold-subtle { background-color: var(--gold-subtle); }
.italic { font-style: italic; }
.fw-bold { font-weight: 700; }
.fw-normal { font-weight: 400; }
.small { font-size: 0.875rem; }
.h6 { font-size: 1rem; }
.h5 { font-size: 1.25rem; }
.h4 { font-size: 1.5rem; }
.h3 { font-size: 1.75rem; }
.display-2 { font-size: 2.5rem; }
.display-3 { font-size: 2rem; }
.display-4 { font-size: 1.5rem; }
.border-top { border-top: 1px solid #dee2e6 !important; }
.border-bottom { border-bottom: 1px solid #dee2e6 !important; }

/* ============================================
   START: Layout Components
   ============================================ */
.section {
  padding: 80px 0;
  position: relative;
}

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

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
}

.row > * {
  padding-left: 12px;
  padding-right: 12px;
}

.g-3 { gap: 1rem; }
.g-4 { gap: 1.5rem; }
.g-5 { gap: 3rem; }

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-lg-6 { flex: 0 0 50%; max-width: 50%; }
.col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-lg-3 { flex: 0 0 25%; max-width: 25%; }
.col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-sm-6 { flex: 0 0 50%; max-width: 50%; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.flex-column { flex-direction: column; }
.flex-grow-1 { flex-grow: 1; }
.flex-wrap { flex-wrap: wrap; }
.overflow-hidden { overflow: hidden; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.border { border: 1px solid #dee2e6; }
.border-2 { border-width: 2px; }
.border-gold { border-color: var(--gold-deep) !important; }
.border-start { border-left: 1px solid #dee2e6 !important; }
.border-end { border-right: 1px solid #dee2e6 !important; }
.shadow-lg { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); }
.shadow-sm { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }
.rounded-circle { border-radius: 50% !important; }
.rounded-3 { border-radius: 0.375rem; }
.rounded-4 { border-radius: 1rem; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* ============================================
   START: Buttons
   ============================================ */
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-maroon {
  background-color: var(--maroon-deep);
  color: var(--white);
}

.btn-maroon:hover {
  background-color: var(--maroon-rich);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: var(--maroon-rich);
}

.btn-gold:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-outline-gold {
  border: 2px solid var(--gold-deep);
  color: var(--maroon-deep);
  background: transparent;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-outline-gold:hover {
  background-color: var(--gold-deep);
  color: var(--white);
}

.btn-outline-gold.w-100 { width: 100%; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-5 { padding-left: 3rem; padding-right: 3rem; }
.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }
.pt-0 { padding-top: 0; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.ps-lg-5 { padding-left: 3rem; }
.pt-4 { padding-top: 1.5rem; }

/* ============================================
   START: Component Styles - Header
   ============================================ */

/* Announcement Bar */
.announcement-bar {
  background-color: var(--purple-announcement);
  color: var(--white);
  text-align: center;
  padding: 10px 0;
  font-size: 0.9rem;
}

/* Top Info Bar */
.top-bar {
  background-color: var(--maroon-rich);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.85rem;
}

.top-bar-link {
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.top-bar-link:hover {
  color: var(--gold-bright);
}

.social-links {
  display: flex;
  gap: 8px;
}

/* Main Navigation */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--maroon-deep);
}

.header-container {
  position: relative;
  z-index: 1020;
}

/* ============================================
   START: Component Styles - Hero Section
   ============================================ */
.hero {
  background: url('photos/sacred-om-pattern.png') repeat;
  background-size: 200px;
  position: relative;
}

.hero-wrapper {
  background: var(--white);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.card-premium {
  background: var(--white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-premium.p-4 {
  padding: 1.5rem;
}

/* Form Styles */
.hero-form .input-group {
  margin-bottom: 1rem;
}

.input-group-text {
  background: transparent;
  border: 1px solid #eee;
  border-right: none;
  border-radius: 10px 0 0 10px;
  color: var(--gold-deep);
  padding: 12px 15px;
}

.form-control,
.form-select {
  border: 1px solid #eee;
  border-left: none;
  border-radius: 0 10px 10px 0;
  padding: 12px;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--gold-bright);
  box-shadow: none;
  outline: none;
}

.form-control::placeholder {
  color: #aaa;
}

textarea.form-control {
  border-radius: 10px;
  border-left: 1px solid #eee;
}

label.small {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 5px;
  display: block;
}

/* ============================================
   START: Component Styles - Stats
   ============================================ */
.hero-stats {
  padding: 20px 0;
  background: var(--white);
  border-top: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
}

/* ============================================
   START: Component Styles - Puja Categories
   ============================================ */
.puja-card {
  background: var(--maroon-rich);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .puja-card {
    flex-direction: row;
  }
}

.puja-img-wrapper {
  flex: 0 0 40%;
  height: 350px;
  overflow: hidden;
}

.puja-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.puja-card:hover .puja-img-wrapper img {
  transform: scale(1.05);
}

.puja-content {
  padding: 30px;
  flex-grow: 1;
}

.puja-content h3 {
  color: var(--gold-deep);
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars {
  display: flex;
  gap: 2px;
}

.badge.bg-white {
  background: var(--white) !important;
  color: var(--maroon-deep);
}

.rounded-pill {
  border-radius: 50px !important;
}

.px-3 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.text-white.opacity-75 {
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================
   START: Component Styles - Features / Benefits
   ============================================ */
.how-we-help {
  background: var(--bg-cream);
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   START: Component Styles - Services Grid
   ============================================ */
.our-services {
  background-color: var(--maroon-rich);
}

.service-icon-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 204, 51, 0.2);
  border-radius: 15px;
  padding: 20px;
  transition: var(--transition-smooth);
  text-align: center;
}

.service-icon-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: var(--gold-bright);
}

.icon-box {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* ============================================
   START: Component Styles - About Guru
   ============================================ */
.about-guru {
  background: var(--white);
}

.guru-image-wrapper {
  padding: 10px;
  border: 2px solid var(--gold-deep);
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  position: relative;
}

.guru-image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

.experience-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--gold-deep);
  color: var(--maroon-rich);
  padding: 12px 20px;
  border-radius: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* ============================================
   START: Component Styles - Testimonials
   ============================================ */
.testimonials {
  background: var(--bg-light);
}

.avatar {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--maroon-deep);
}

/* ============================================
   START: Component Styles - Blog
   ============================================ */
.blog-section {
  background: var(--bg-cream);
}

/* ============================================
   START: Component Styles - Gallery
   ============================================ */
.gallery-section {
  background: var(--white);
}

.gallery-item {
  height: 250px;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* ============================================
   START: Component Styles - FAQ
   ============================================ */
.faq-section {
  background-color: var(--maroon-rich);
  position: relative;
}

.accordion-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 204, 51, 0.2) !important;
  border-radius: 10px !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-button {
  background: transparent !important;
  color: var(--white) !important;
  font-weight: 600;
  padding: 18px 20px;
  box-shadow: none !important;
}

.accordion-button::after {
  filter: invert(1);
}

.accordion-button:not(.collapsed) {
  color: var(--gold-bright) !important;
}

.accordion-body {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  padding: 0 20px 20px 20px;
}

.accordion-body.pt-0 {
  padding-top: 0;
}

/* ============================================
   START: Component Styles - Footer
   ============================================ */
.footer {
  background-color: var(--maroon-rich);
  color: var(--white);
  padding: 60px 0 30px;
  border-top: 3px solid var(--gold);
}

.footer h4 {
  color: var(--gold-deep);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--gold-bright);
  padding-left: 5px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background: var(--gold-deep);
  color: var(--maroon-rich);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* ============================================
   START: Responsive Grid System
   ============================================ */
@media (min-width: 992px) {
  .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .border-md-none { border: none !important; }
  .text-lg-start { text-align: left; }
}

@media (max-width: 991.98px) {
  .container { padding: 0 15px; }
  .section { padding: 60px 0; }
  .nav-links { display: none; }
  .col-md-6 { flex: 0 0 100%; max-width: 100%; }
  .col-md-4 { flex: 0 0 100%; max-width: 100%; }
  .offset-lg-1 { margin-left: 8.333333%; }
  .ps-lg-5 { padding-left: 0; }
  .mt-lg-0 { margin-top: 0; }
}

@media (max-width: 767.98px) {
  .container { padding: 0 12px; }
  .section { padding: 50px 0; }
  h2, .display-4 { font-size: 1.5rem; }
  h1, .display-2 { font-size: 2rem; }
  .btn-premium { width: 100%; }
  .hero-form .btn-premium { width: 100%; }
  .col-sm-6 { flex: 0 0 100%; max-width: 100%; }
  .d-flex.gap-3 { flex-direction: column; gap: 10px; }
  .puja-card { flex-direction: column; }
  .puja-img-wrapper { flex: none; height: 200px; }
  .text-center { text-align: center; }
  .text-start { text-align: left; }
}

/* ============================================
   START: Bootstrap Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-start { text-align: left; }
.text-end { text-align: right; }
.text-uppercase { text-transform: uppercase; }
.opacity-75 { opacity: 0.75; }
.opacity-50 { opacity: 0.5; }

/* Visibility */
.d-none { display: none; }
.d-block { display: block; }
.d-inline-flex { display: inline-flex; }
.d-grid { display: grid; }
.visible { visibility: visible; }

/* Spacing Utilities */
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: 0.25rem; }

/* Z-index layers */
.z-index-1 { z-index: 1; }
.z-index-10 { z-index: 10; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

/* Border Utilities */
.border-start { border-left: 1px solid #dee2e6; }
.border-end { border-right: 1px solid #dee2e6; }
.border-md-none { border: none; }

@media (min-width: 768px) {
  .border-md-none { border: none !important; }
  .border-start-md { border-left: 1px solid #dee2e6; }
  .border-end-md { border-right: 1px solid #dee2e6; }
}