/* ==========================================================================
   SHRINATHDWARA.IN - MODERN DEVOTIONAL PLATFORM DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Noto+Sans+Devanagari:wght@400;500;600;700&family=Noto+Sans+Gujarati:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700&family=Rozha+One&display=swap');

:root {
  /* Sacred Temple Palette */
  --gold-primary: #C59B27;
  --gold-light: #F7E7A6;
  --gold-dark: #8F6D13;
  --kesari: #E06010;
  --saffron-deep: #BF4904;
  --maroon-royal: #54141E;
  --maroon-deep: #2A090E;
  --chandan-bg: #FDFBF7;
  --card-bg: #FFFFFF;
  --surface-alt: #F7F3EB;
  
  /* Text & Border */
  --text-main: #1F1B18;
  --text-muted: #665F58;
  --text-light: #948A80;
  --border-light: #EBE3D7;
  --border-gold: rgba(197, 155, 39, 0.35);
  
  /* Status Colors */
  --status-open: #15803D;
  --status-open-bg: #DCFCE7;
  --status-closed: #B91C1C;
  --status-closed-bg: #FEE2E2;
  --status-upcoming: #B45309;
  --status-upcoming-bg: #FEF3C7;

  /* Elevation Shadows */
  --shadow-sm: 0 2px 8px rgba(30, 20, 10, 0.05);
  --shadow-md: 0 6px 20px rgba(84, 20, 30, 0.08);
  --shadow-lg: 0 14px 36px rgba(84, 20, 30, 0.14);
  --shadow-gold: 0 6px 24px rgba(197, 155, 39, 0.25);

  /* Gradients */
  --grad-hero: linear-gradient(135deg, #420F17 0%, #20060A 100%);
  --grad-gold: linear-gradient(135deg, #E6C25E 0%, #C59B27 100%);
  --grad-card-header: linear-gradient(180deg, #FBF8F2 0%, #FFFFFF 100%);
  --grad-kesari: linear-gradient(135deg, #F2782A 0%, #C94C05 100%);

  /* Base Typography */
  --font-heading: 'Cinzel', 'Rozha One', serif;
  --font-devanagari: 'Noto Sans Devanagari', 'Outfit', sans-serif;
  --font-gujarati: 'Noto Sans Gujarati', 'Outfit', sans-serif;
  --font-body: 'Outfit', 'Noto Sans Devanagari', sans-serif;
  
  --base-size: 16px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Elderly-friendly font scale states */
html.font-scale-lg { --base-size: 18px; }
html.font-scale-xl { --base-size: 20px; }

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

html {
  font-size: var(--base-size);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--chandan-bg);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--maroon-royal);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-main);
}

p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
}

a {
  color: var(--kesari);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

/* Container */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow {
  max-width: 860px;
}

/* Top Notification / Tithi Bar */
.top-tithi-bar {
  background: var(--maroon-deep);
  color: var(--gold-light);
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(197, 155, 39, 0.2);
}

.tithi-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tithi-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.tithi-pill .icon {
  color: var(--gold-primary);
}

.utility-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.font-scaler {
  display: none !important;
}

/* Custom Language Dropdown Widget */
.custom-lang-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.lang-dropdown-btn:hover,
.lang-dropdown-btn:focus {
  background: rgba(255, 255, 255, 0.28);
  border-color: var(--gold-light);
  box-shadow: 0 0 10px rgba(253, 230, 138, 0.3);
}

.lang-dropdown-btn .globe-icon {
  font-size: 0.95rem;
}

.lang-dropdown-btn .arrow-icon {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
  margin-left: 2px;
}

.custom-lang-picker.open .lang-dropdown-btn .arrow-icon {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #2A090E;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  padding: 0.4rem 0;
  min-width: 175px;
  z-index: 2100;
  display: none;
}

.custom-lang-picker.open .lang-dropdown-menu {
  display: block;
  animation: langFadeIn 0.15s ease-out;
}

.lang-opt {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0.6rem 1.1rem;
  color: #F7F3EB;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-opt:hover,
.lang-opt.active {
  background: rgba(197, 155, 39, 0.25);
  color: var(--gold-light);
  font-weight: 700;
  padding-left: 1.25rem;
}

@keyframes langFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Navigation Dropdown Menu */
.nav-item.dropdown {
  position: relative;
  list-style: none;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-arrow {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
  display: inline-block;
  opacity: 0.85;
}

.nav-item.dropdown:hover .nav-arrow,
.nav-item.dropdown.open .nav-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 0.5rem 0;
  list-style: none;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown:focus-within .dropdown-menu,
.nav-item.dropdown.open .dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  display: block !important;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.65rem 1.15rem;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}

.dropdown-item:hover {
  background: #FFF8EE;
  color: var(--saffron-deep);
  padding-left: 1.35rem;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 0.4rem 0;
  list-style: none;
}

.goog-te-banner-frame.skiptranslate {
  display: none !important;
}
body {
  top: 0px !important;
}

/* Header & Navbar */
.site-header {
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 2px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.25rem;
}

.nav-link {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover, .nav-link.active {
  color: var(--kesari);
  background: rgba(224, 96, 16, 0.06);
}

.nav-link.darshan-pulse {
  color: var(--maroon-royal);
  font-weight: 600;
  background: rgba(197, 155, 39, 0.15);
  border: 1px solid rgba(197, 155, 39, 0.35);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
}

.darshan-pulse .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16A34A;
  display: inline-block;
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--grad-kesari);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(224, 96, 16, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(224, 96, 16, 0.4);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--maroon-royal);
  cursor: pointer;
  padding: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--grad-kesari);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(224, 96, 16, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 96, 16, 0.4);
}

.btn-gold {
  background: var(--grad-gold);
  color: var(--maroon-deep) !important;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

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

.btn-outline {
  background: transparent;
  color: var(--maroon-royal);
  border: 1.5px solid var(--maroon-royal);
}

.btn-outline:hover {
  background: var(--maroon-royal);
  color: #fff !important;
}

.btn-outline-white {
  background: transparent;
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background: #fff;
  color: var(--maroon-royal) !important;
}

/* Hero Section */
.hero-banner {
  background: var(--grad-hero);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--gold-primary);
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(197, 155, 39, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.4;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  color: #FFFFFF;
  font-size: 2.85rem;
  line-height: 1.18;
  margin-bottom: 1.25rem;
}

.hero-content h1 span.gold-highlight {
  background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #E2D9D2;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Section titles */
.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  color: var(--kesari);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.section-title {
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  background: var(--maroon-deep);
  color: #D6CEC7;
  padding: 4rem 0 2rem;
  margin-top: auto;
  border-top: 4px solid var(--gold-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--gold-light);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gold-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #C0B5AC;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #9E938A;
}

.temple-attribution {
  font-size: 0.85rem;
  color: #A3968C;
  line-height: 1.5;
  margin-top: 0.75rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }
  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.5rem 2rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right var(--transition-normal);
    z-index: 999;
  }
  .site-nav.open {
    right: 0;
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.75rem;
  }
  .nav-link {
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
  }
  .header-cta {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .tithi-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .nav-item.dropdown {
    width: 100%;
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: 1px solid var(--border-light);
    background: #FFFDF9;
    margin-top: 0.25rem;
    margin-left: 0.5rem;
    width: calc(100% - 1rem);
    display: none;
  }
  .nav-item.dropdown.open .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}
