/* ==========================================================================
   SARVAHIT SEVA TRUST - MAIN DESIGN TOKENS & BASE UTILITIES
   Registration No.: UP/2026/1144009
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. COLOR PALETTE & VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Brand Primary & Secondary Colors */
  --bs-primary: #004429;
  --bs-primary-rgb: 0, 68, 41;
  --color-primary-container: #0b5d3b;

  --bs-secondary: #964900;
  --bs-secondary-rgb: 150, 73, 0;

  --bs-info: #163484;
  --bs-info-rgb: 22, 52, 132;

  --color-maroon: #800000;
  --color-yellow-accent: #ffc107;

  --bs-success: #0b5d3b;
  --bs-warning: #fc820c;
  --bs-danger: #ba1a1a;
  --bs-light: #f8f9fa;
  --bs-dark: #191c1d;

  /* Typography Fonts */
  --font-hindi: 'Noto Sans Devanagari', sans-serif;
  --font-english: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;

  --bs-body-font-family: var(--font-hindi);
  --bs-body-bg: #f8f9fa;
  --bs-body-color: #191c1d;
}

/* Dark Mode Variable Overrides */
[data-bs-theme="dark"] {
  --bs-body-bg: #121415;
  --bs-body-color: #e1e3e4;
  --bs-card-bg: #1a1d1e;
  --bs-border-color: #2c3031;
}

/* --------------------------------------------------------------------------
   2. BASE TYPOGRAPHY & BODY DEFAULTS
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-hindi);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.lang-en {
  font-family: var(--font-english);
}

.font-motto {
  font-family: var(--font-hindi);
}

body.lang-en .font-motto {
  font-family: var(--font-english);
}

/* --------------------------------------------------------------------------
   3. HEADER & NAVIGATION STYLES
   -------------------------------------------------------------------------- */
.top-info-bar {
  background-color: #002e1c;
  color: #a8f3c6;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.sticky-navbar {
  top: 36px;
  transition: all 0.3s ease;
}

body.scrolled-nav .sticky-navbar {
  top: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.navbar-brand {
  white-space: nowrap;
}

/* Navbar Links Single Line & Crisp Padding */
.navbar-nav .nav-link {
  white-space: nowrap !important;
  font-size: 0.95rem;
  font-weight: 600;
  padding-left: 0.65rem !important;
  padding-right: 0.65rem !important;
  transition: color 0.2s ease, transform 0.2s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--bs-primary) !important;
}

body.lang-en .navbar-nav .nav-link {
  font-size: 0.9rem;
  letter-spacing: 0.2px;
}

/* Language Toggle Switch Button */
.lang-toggle-btn {
  background: rgba(11, 93, 59, 0.12);
  border: 1px solid rgba(11, 93, 59, 0.3);
  color: var(--bs-primary);
  border-radius: 50px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.lang-toggle-btn:hover {
  background: var(--bs-primary);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   4. UTILITY ACCENT CLASSES
   -------------------------------------------------------------------------- */
.bg-maroon {
  background-color: var(--color-maroon) !important;
}

.text-maroon {
  color: var(--color-maroon) !important;
}

.max-w-xl { max-width: 576px; }
.max-w-2xl { max-width: 672px; }
.max-w-3xl { max-width: 768px; }

/* --------------------------------------------------------------------------
   5. FLOATING ACTION BUTTONS (WHATSAPP & BACK TO TOP)
   -------------------------------------------------------------------------- */
.btn-whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 58px;
  height: 58px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-whatsapp-float:hover {
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.btn-back-to-top {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 48px;
  height: 48px;
  background-color: var(--bs-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 6px 20px rgba(0, 68, 41, 0.3);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.btn-back-to-top:hover {
  background-color: var(--color-primary-container);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   6. GLASSMORPHISM PANELS & CUSTOM SCROLLBAR
   -------------------------------------------------------------------------- */
.glass-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

[data-bs-theme="dark"] .glass-panel {
  background: rgba(26, 29, 30, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f3f5;
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary-container);
  border-radius: 50px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--bs-primary);
}
