/**
 * Audichya Gohilvadi Brahm Samaj (AGBS) - Porbandar
 * Primary Hindu Vedic Cultural & Responsive Design System
 */

:root {
  /* Auspicious Hinduism & Vedic Palette */
  --saffron-primary: #D9531E;
  --saffron-dark: #B53F12;
  --saffron-light: #FFF0E8;
  --gold-antique: #C89D3C;
  --gold-bright: #F59E0B;
  --gold-gradient: linear-gradient(135deg, #FDE68A 0%, #D97706 100%);
  --maroon-royal: #7A121D;
  --maroon-dark: #50070F;
  --ivory-sanctum: #FAF7F2;
  --ivory-white: #FFFFFF;
  --slate-vedic: #1E1B18;
  --slate-muted: #57534E;
  --border-subtle: #E7DFD5;
  --border-gold: rgba(200, 157, 60, 0.4);
  
  /* Status Colors */
  --status-green: #16A34A;
  --status-green-bg: #DCFCE7;
  --status-red: #DC2626;
  --status-red-bg: #FEE2E2;
  --status-amber: #D97706;
  --status-amber-bg: #FEF3C7;
  --status-blue: #2563EB;
  --status-blue-bg: #DBEAFE;

  /* Fonts */
  --font-gu: 'Noto Sans Gujarati', sans-serif;
  --font-main: 'Noto Sans Gujarati', 'Outfit', sans-serif;
  --font-title: 'Noto Sans Gujarati', 'Outfit', 'Cinzel', serif;

  /* Elevations */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 18px rgba(122, 18, 29, 0.08);
  --shadow-lg: 0 12px 32px rgba(217, 83, 30, 0.12);
  --shadow-gold: 0 4px 20px rgba(200, 157, 60, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-gu), var(--font-main);
  background-color: var(--ivory-sanctum);
  color: var(--slate-vedic);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   TOP AUSPICIOUS BAR & BILINGUAL HEADER
   ========================================================================== */
.top-shloka-bar {
  background: var(--maroon-royal);
  color: #FEF3C7;
  padding: 6px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--gold-antique);
}

.top-shloka-bar .shloka-text {
  letter-spacing: 0.5px;
}

.top-shloka-bar .lang-switch {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gold-antique);
}

.top-shloka-bar .lang-btn {
  color: #FEF3C7;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  transition: var(--transition);
}

.top-shloka-bar .lang-btn.active {
  background: var(--gold-antique);
  color: var(--maroon-dark);
}

/* Main Navbar */
.site-header {
  background: var(--ivory-white);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

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

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(122, 18, 29, 0.2));
}

.brand-info h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--maroon-royal);
  line-height: 1.2;
  white-space: nowrap;
}

.brand-info p {
  font-size: 0.78rem;
  color: var(--saffron-primary);
  font-weight: 700;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--slate-vedic);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--saffron-primary);
  background: var(--saffron-light);
}

.btn-book-cta {
  background: linear-gradient(135deg, var(--saffron-primary) 0%, var(--maroon-royal) 100%);
  color: #FFF !important;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.86rem;
  box-shadow: 0 3px 10px rgba(217, 83, 30, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-book-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(217, 83, 30, 0.4);
}

.btn-login-header {
  background: var(--ivory-sanctum);
  border: 1.5px solid var(--gold-antique);
  color: var(--maroon-royal);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.86rem;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-login-header:hover {
  background: var(--gold-antique);
  color: #FFF;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--maroon-royal);
  cursor: pointer;
}

/* ==========================================================================
   HERO BANNER (VEDIC MAJESTY)
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(rgba(45, 10, 15, 0.75), rgba(122, 18, 29, 0.85)), url('../images/temple_facade.jpg') center/cover no-repeat;
  color: #FFF;
  padding: 85px 24px;
  text-align: center;
  border-bottom: 4px solid var(--gold-antique);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(200, 157, 60, 0.25);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold-antique);
  color: #FEF3C7;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
  text-shadow: 0 3px 12px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 35px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary-hero {
  background: var(--gold-gradient);
  color: #3B1B04;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  transition: var(--transition);
}

.btn-primary-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.6);
}

.btn-outline-hero {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  color: #FFF;
  border: 1.5px solid #FFF;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition);
}

.btn-outline-hero:hover {
  background: #FFF;
  color: var(--maroon-royal);
}

/* ==========================================================================
   FEATURE STRIP (DAILY SHLOKA / QUICK STATS)
   ========================================================================== */
.feature-strip {
  background: var(--ivory-white);
  box-shadow: var(--shadow-md);
  margin-top: -30px;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-gold);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 10;
}

.stat-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--saffron-light);
  color: var(--saffron-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.stat-text h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--maroon-royal);
  margin-bottom: 2px;
}

.stat-text p {
  font-size: 0.85rem;
  color: var(--slate-muted);
  font-weight: 500;
}

/* ==========================================================================
   FACILITIES GRID (CARD SYSTEM)
   ========================================================================== */
.section {
  padding: 70px 24px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 45px;
}

.section-badge {
  display: inline-block;
  background: var(--saffron-light);
  color: var(--saffron-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--maroon-royal);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--slate-muted);
  max-width: 680px;
  margin: 0 auto;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.facility-card {
  background: var(--ivory-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-antique);
}

.facility-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.facility-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.facility-card:hover .facility-img-wrap img {
  transform: scale(1.05);
}

.facility-price-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(122, 18, 29, 0.92);
  backdrop-filter: blur(4px);
  color: #FEF3C7;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--gold-antique);
}

.facility-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.facility-body h3 {
  font-size: 1.3rem;
  color: var(--maroon-royal);
  margin-bottom: 8px;
  font-weight: 700;
}

.facility-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--slate-muted);
}

.facility-body p {
  font-size: 0.92rem;
  color: var(--slate-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.facility-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

/* ==========================================================================
   BOOKING CONFLICT ALERT BOXES
   ========================================================================== */
.alert-conflict {
  background: #FEF2F2;
  border-left: 4px solid var(--status-red);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  color: #991B1B;
}

.alert-advisory {
  background: #FFFBEB;
  border-left: 4px solid var(--gold-bright);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  color: #92400E;
}

.alert-success {
  background: #F0FDF4;
  border-left: 4px solid var(--status-green);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  color: #166534;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--maroon-dark);
  color: #FEF3C7;
  margin-top: auto;
  border-top: 4px solid var(--gold-antique);
}

.footer-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px 30px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-col h4 {
  font-size: 1.15rem;
  color: var(--gold-antique);
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #FEF3C7;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.85;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--gold-bright);
  padding-left: 4px;
}

.footer-bottom {
  background: #2B0408;
  padding: 18px 24px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
  border-top: 1px solid rgba(200, 157, 60, 0.2);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 1180px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ivory-white);
    padding: 20px;
    border-bottom: 3px solid var(--gold-antique);
    box-shadow: var(--shadow-lg);
    gap: 10px;
    align-items: stretch;
  }
  .nav-links.open .nav-link,
  .nav-links.open .btn-book-cta,
  .nav-links.open .btn-login-header {
    width: 100%;
    justify-content: center;
    padding: 10px;
  }
  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  .hero-section {
    padding: 55px 16px;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .header-inner {
    padding: 10px 16px;
  }
  .brand-logo {
    width: 44px;
    height: 44px;
  }
  .brand-info h1 {
    font-size: 1rem;
  }
}
