/* ============================================================
   SRI VENKATRAMANA SWAMI TEMPLE - DESIGN SYSTEM
   A sacred, culturally authentic stylesheet
   ============================================================ */

/* 1. DESIGN TOKENS / CUSTOM PROPERTIES
   ------------------------------------------------------------ */
:root {
  /* Temple Red (Kumkum) */
  --red-50: #FDF2F0;
  --red-100: #FADBD6;
  --red-200: #F0AFA5;
  --red-300: #E28B7D;
  --red-400: #C94D3C;
  --red-500: #9B2C1C;
  --red-600: #7E2316;
  --red-700: #5E1A11;
  --red-800: #3F120C;
  --red-900: #200A06;

  /* Sacred Gold (Brass) */
  --gold-50: #FFF9E6;
  --gold-100: #FFF0BF;
  --gold-200: #FFDE6B;
  --gold-300: #F5CC3A;
  --gold-400: #D4A017;
  --gold-500: #B8860B;
  --gold-600: #96690A;
  --gold-700: #6E4D08;
  --gold-800: #463205;
  --gold-900: #1F1603;

  /* Stone (Laterite) */
  --stone-50: #FAF6F1;
  --stone-100: #F0EBE0;
  --stone-200: #E8DDCE;
  --stone-300: #D4C4AC;
  --stone-400: #B5A088;
  --stone-500: #8B7355;
  --stone-600: #6B5540;
  --stone-700: #50402F;
  --stone-800: #342D24;
  --stone-900: #1A1610;

  /* Saffron */
  --saffron-400: #F08C28;
  --saffron-500: #D47118;
  --saffron-600: #B05A10;

  /* Copper */
  --copper-400: #B87333;
  --copper-500: #9A5F28;

  /* Semantic colors */
  --primary: var(--red-500);
  --primary-dark: var(--red-700);
  --primary-light: var(--red-300);
  --accent: var(--gold-400);
  --accent-dark: var(--gold-500);
  --accent-light: var(--gold-200);
  --bg-warm: var(--stone-50);
  --bg-alt: #FFFFFF;
  --bg-dark: var(--red-700);
  --text-dark: var(--stone-800);
  --text-medium: var(--stone-600);
  --text-light: var(--stone-500);
  --border-light: var(--stone-200);

  /* Typography */
  --font-heading: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Lato', 'Segoe UI', sans-serif;
  --font-accent: 'Noto Serif Devanagari', serif;

  /* Fluid type scale (perfect fourth 1.333) */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  --text-xl: clamp(1.3rem, 1.1rem + 1vw, 1.8rem);
  --text-2xl: clamp(1.6rem, 1.3rem + 1.5vw, 2.4rem);
  --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 3.2rem);
  --text-4xl: clamp(2.4rem, 1.8rem + 3vw, 4rem);

  /* Spacing (4px grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(52, 45, 36, 0.08), 0 1px 2px rgba(52, 45, 36, 0.06);
  --shadow-md: 0 4px 12px rgba(52, 45, 36, 0.1), 0 2px 4px rgba(52, 45, 36, 0.06);
  --shadow-lg: 0 10px 30px rgba(52, 45, 36, 0.12), 0 4px 8px rgba(52, 45, 36, 0.06);
  --shadow-xl: 0 20px 50px rgba(52, 45, 36, 0.15), 0 8px 16px rgba(52, 45, 36, 0.08);
  --shadow-inset: inset 0 2px 4px rgba(52, 45, 36, 0.1);
  --shadow-gold: 0 4px 20px rgba(212, 160, 23, 0.25);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 600ms;

  /* Border radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-full: 50%;

  /* Z-index */
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-header: 1000;
  --z-overlay: 1500;
  --z-modal: 2000;

  /* Status colors */
  --color-success: #155724;
  --color-success-bg: #d4edda;
  --color-warning: #856404;
  --color-warning-bg: #fff3cd;
  --color-error: var(--red-500);
  --color-error-bg: var(--red-50);
  --color-info: #0c5460;
  --color-info-bg: #d1ecf1;

  /* Layout */
  --max-width: 1200px;
  --header-height: 70px;
}

/* 2. CSS RESET & BASE TYPOGRAPHY
   ------------------------------------------------------------ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-warm);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration-fast) var(--ease-out);
}

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

ul { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
}

/* 3. LAYOUT UTILITIES
   ------------------------------------------------------------ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section {
  padding: var(--space-20) 0;
  position: relative;
}

.section-alt {
  background: var(--bg-alt);
}

.section-dark {
  background: linear-gradient(160deg, var(--red-800) 0%, var(--red-700) 40%, var(--red-600) 100%);
  color: #FFFFFF;
}

.section-dark .section-header h2 {
  color: var(--gold-200);
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

/* Ornamental noise texture for dark sections */
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Sacred geometry subtle background */
.section-pattern::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Ccircle cx='40' cy='40' r='30' fill='none' stroke='%23D4A017' stroke-width='0.5'/%3E%3Ccircle cx='40' cy='40' r='20' fill='none' stroke='%23D4A017' stroke-width='0.5'/%3E%3Ccircle cx='40' cy='40' r='10' fill='none' stroke='%23D4A017' stroke-width='0.5'/%3E%3Cline x1='40' y1='5' x2='40' y2='75' stroke='%23D4A017' stroke-width='0.3'/%3E%3Cline x1='5' y1='40' x2='75' y2='40' stroke='%23D4A017' stroke-width='0.3'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Grid layouts */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

/* Text utilities */
.text-center { text-align: center; }
.text-gold { color: var(--accent); }
.text-primary { color: var(--primary); }

/* 4. TOP BAR
   ------------------------------------------------------------ */
.top-bar {
  background: var(--red-800);
  color: var(--gold-200);
  font-size: var(--text-xs);
  padding: var(--space-2) 0;
  letter-spacing: 0.3px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.top-bar a {
  color: var(--gold-200);
}

.top-bar a:hover {
  color: #FFFFFF;
}

.top-bar-links {
  display: flex;
  gap: var(--space-5);
  align-items: center;
}

.top-bar-links span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* 5. HEADER & NAVIGATION
   ------------------------------------------------------------ */
header {
  background: linear-gradient(160deg, var(--red-500) 0%, var(--red-700) 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: padding var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

/* Ornamental bottom border */
header::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold-400) 0px,
    var(--gold-400) 8px,
    transparent 8px,
    transparent 12px,
    var(--red-500) 12px,
    var(--red-500) 20px,
    transparent 20px,
    transparent 24px
  );
  opacity: 0.6;
}

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

/* Scrolled state */
.header--scrolled {
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}

.header--scrolled .logo {
  padding: var(--space-2) 0;
}

.header--scrolled .logo-icon {
  width: 42px;
  height: 42px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  transition: padding var(--duration-normal) var(--ease-out);
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: var(--accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--gold-200);
  transition: width var(--duration-normal) var(--ease-out),
              height var(--duration-normal) var(--ease-out);
  overflow: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
}

.logo-text h1,
.logo-text .logo-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--gold-200);
  line-height: 1.2;
  font-weight: 700;
}

.logo-text p {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Navigation */
nav ul {
  display: flex;
  gap: 0;
}

nav ul li a {
  display: block;
  padding: var(--space-5) var(--space-4);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: relative;
  transition: color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 3px;
  background: var(--accent);
  transition: transform var(--duration-normal) var(--ease-out);
  transform-origin: center;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--gold-200);
  background: rgba(255, 255, 255, 0.06);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-3);
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold-200);
  margin: 6px 0;
  transition: transform var(--duration-normal) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out);
  border-radius: 1px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* 6. PAGE BANNER
   ------------------------------------------------------------ */
.page-banner {
  background: linear-gradient(160deg, var(--red-800) 0%, var(--red-600) 50%, var(--red-700) 100%);
  padding: var(--space-20) 0 var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='%23D4A017'/%3E%3C/svg%3E");
  pointer-events: none;
}

.page-banner h1,
.page-banner h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--gold-200);
  position: relative;
  z-index: 1;
  font-weight: 600;
}

.page-banner .breadcrumb {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  margin-top: var(--space-3);
  position: relative;
  z-index: 1;
}

.page-banner .breadcrumb a {
  color: var(--gold-400);
}

.page-banner .breadcrumb a:hover {
  color: var(--gold-200);
}

/* 7. SECTION HEADERS & ORNAMENTAL DIVIDERS
   ------------------------------------------------------------ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--primary);
  margin-bottom: var(--space-3);
  font-weight: 600;
  line-height: 1.2;
}

.section-header p {
  font-size: var(--text-base);
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Ornament divider (CSS diamond motif replacing emoji) */
.section-header .ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.section-header .ornament span {
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}

.section-header .ornament .ornament-icon {
  width: auto;
  height: auto;
  background: none;
  color: var(--gold-400);
  font-size: 0;
  position: relative;
}

/* CSS diamond replacing emoji ornament icons */
.section-header .ornament .ornament-icon::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  background: var(--gold-400);
  transform: rotate(45deg);
}

.section-dark .section-header .ornament span {
  background: linear-gradient(90deg, transparent, var(--gold-300), transparent);
}

.section-dark .section-header .ornament .ornament-icon::before {
  background: var(--gold-300);
}

/* Gold gradient separator line */
.ornament-line {
  width: 100%;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
  margin: var(--space-8) auto;
}

/* 8. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  border: 2px solid transparent;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-300) 0%, var(--gold-400) 50%, var(--gold-500) 100%);
  color: var(--red-800);
  border-color: var(--gold-400);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 4px rgba(184, 134, 11, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--gold-200) 0%, var(--gold-300) 50%, var(--gold-400) 100%);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--gold-200);
  border-color: var(--gold-400);
  position: relative;
}

.btn-outline::before,
.btn-outline::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--gold-400);
  transition: all var(--duration-normal) var(--ease-out);
}

.btn-outline::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.btn-outline::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

.btn-outline:hover {
  background: var(--gold-400);
  color: var(--red-800);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--primary);
  color: var(--gold-200);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(155, 44, 28, 0.3);
}

/* 9. CARD VARIANTS
   ------------------------------------------------------------ */

/* Base card */
.card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
  border: 1px solid var(--border-light);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Icon frame (octagonal) */
.card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-6) auto var(--space-4);
  color: var(--gold-200);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-body {
  padding: var(--space-4) var(--space-6) var(--space-8);
  text-align: center;
}

.card-body h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--primary);
  margin-bottom: var(--space-3);
  font-weight: 600;
}

.card-body p {
  font-size: var(--text-sm);
  color: var(--text-medium);
  line-height: 1.7;
}

/* Seva Card ("offering plate") */
.seva-card {
  background: linear-gradient(180deg, #FFFDF5 0%, var(--stone-50) 100%);
  border: 1px solid var(--gold-300);
  border-radius: var(--radius-md);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

/* Arch top accent */
.seva-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-300), var(--gold-400));
}

.seva-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(212, 160, 23, 0.15);
}

.seva-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--primary);
  margin-bottom: var(--space-4);
  font-weight: 600;
}

.seva-card p {
  color: var(--text-medium);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* Festival Card ("festive banner") */
.festival-card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
  position: relative;
  border: 1px solid var(--border-light);
}

/* Repeating stripe top border */
.festival-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold-400) 0px,
    var(--gold-400) 10px,
    var(--red-500) 10px,
    var(--red-500) 20px
  );
}

.festival-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, #FFFDF8 0%, var(--bg-alt) 30%);
}

.festival-card-body {
  padding: var(--space-8) var(--space-6);
}

.festival-card-body .festival-month {
  display: inline-block;
  background: var(--red-500);
  color: var(--gold-200);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  margin-bottom: var(--space-3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.festival-card-body h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--primary);
  margin-bottom: var(--space-2);
  font-weight: 600;
}

.festival-card-body h4 {
  font-size: var(--text-sm);
  color: var(--text-light);
  font-family: var(--font-body);
  margin-bottom: var(--space-3);
  font-weight: 400;
  font-style: italic;
}

.festival-card-body p {
  font-size: var(--text-sm);
  color: var(--text-medium);
  line-height: 1.7;
}

/* Info Card ("stone tablet") */
.info-card {
  background: linear-gradient(180deg, #F0EBE0 0%, #E8E0D0 100%);
  border: 2px solid var(--stone-300);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), var(--shadow-sm);
}

.info-card h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: var(--text-lg);
  color: var(--primary);
  margin-bottom: var(--space-4);
}

/* Progress Card ("pillar gauge") */
.progress-card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-6);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

/* Decorative top strip */
.progress-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--red-500), var(--gold-400));
}

.progress-card h3 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  font-weight: 600;
}

.progress-card p {
  color: var(--text-medium);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.progress-bar-container {
  background: var(--stone-100);
  border-radius: var(--radius-sm);
  height: 10px;
  overflow: hidden;
  border: 1px solid var(--stone-200);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--red-500), var(--gold-400));
  border-radius: var(--radius-sm);
  transition: width 1.5s var(--ease-out);
  position: relative;
}

/* Gold shimmer animation on progress bar */
.progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-light);
}

/* 10. FOOTER
   ------------------------------------------------------------ */
footer {
  background: linear-gradient(160deg, #120807 0%, var(--red-800) 50%, #1A0D08 100%);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-16) 0 0;
  position: relative;
  overflow: hidden;
}

/* Stepped temple-base top edge */
footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg,
    var(--gold-400) 0%,
    var(--gold-500) 25%,
    var(--gold-400) 50%,
    var(--gold-500) 75%,
    var(--gold-400) 100%
  );
}

/* Subtle Om watermark */
footer::after {
  content: '';
  position: absolute;
  bottom: 60px;
  right: 40px;
  width: 200px;
  height: 200px;
  background-image: url('images/om-symbol.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.03;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

.footer-col h3 {
  font-family: var(--font-heading);
  color: var(--gold-200);
  font-size: var(--text-lg);
  margin-bottom: var(--space-5);
  position: relative;
  padding-bottom: var(--space-3);
  font-weight: 600;
}

/* Diya-flame triangle replacing flat underline */
.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold-400);
}

.footer-col h3::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 12px;
  width: 6px;
  height: 6px;
  background: var(--gold-400);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.footer-col p {
  font-size: var(--text-sm);
  line-height: 1.8;
  margin-bottom: var(--space-3);
}

.footer-col ul li {
  margin-bottom: var(--space-3);
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  transition: color var(--duration-fast) var(--ease-out),
              padding-left var(--duration-fast) var(--ease-out);
}

.footer-col ul li a:hover {
  color: var(--gold-200);
  padding-left: var(--space-2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-5) 0;
  text-align: center;
  font-size: var(--text-xs);
}

.footer-bottom a {
  color: var(--gold-400);
}

.footer-bottom a:hover {
  color: var(--gold-200);
}

/* 11. SCROLL-TO-TOP
   ------------------------------------------------------------ */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--red-500);
  color: var(--gold-200);
  border: 2px solid var(--gold-400);
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-normal) var(--ease-out);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-top:hover {
  background: var(--gold-400);
  color: var(--red-800);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

/* 12. HERO (index-specific)
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(
    160deg,
    var(--red-800) 0%,
    var(--red-700) 30%,
    var(--red-600) 60%,
    var(--red-800) 100%
  );
}

/* Subtle temple-hero.svg background */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/temple-hero.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

/* Deepam radial glow */
.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Noise grain overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-10) var(--space-5);
  max-width: 800px;
}

.hero-om {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-5);
  animation: om-pulse 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(212, 160, 23, 0.4));
}

.hero-om img {
  width: 100%;
  height: 100%;
}

@keyframes om-pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(212, 160, 23, 0.4));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 35px rgba(212, 160, 23, 0.6));
  }
}

.hero h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--gold-200);
  margin-bottom: var(--space-3);
  line-height: 1.15;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  margin-bottom: var(--space-5);
}

.hero p {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.72);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: 1.8;
}

.hero-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
  margin: 0 auto var(--space-6);
}

.hero-btns {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Temple arch exit divider at hero bottom */
.hero-arch {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--bg-warm);
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* 13. QUICK INFO BAR
   ------------------------------------------------------------ */
.quick-info {
  background: var(--bg-alt);
  padding: var(--space-8) 0;
  border-bottom: 2px solid var(--gold-400);
  position: relative;
  z-index: 3;
}

.quick-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  text-align: center;
}

.quick-info-item {
  padding: var(--space-4);
}

.quick-info-item .qi-icon {
  color: var(--primary);
  margin-bottom: var(--space-2);
  display: flex;
  justify-content: center;
}

.quick-info-item .qi-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.quick-info-item h4 {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  color: var(--primary);
  margin-bottom: var(--space-1);
  font-weight: 600;
}

.quick-info-item p {
  font-size: var(--text-xs);
  color: var(--text-light);
}

/* 14. STATS SECTION (inscription tablets)
   ------------------------------------------------------------ */
.stats-bar {
  background: linear-gradient(160deg, var(--red-700), var(--red-800));
  padding: var(--space-12) 0;
  position: relative;
}

/* Gold gradient lines top/bottom */
.stats-bar::before,
.stats-bar::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}

.stats-bar::before { top: 0; }
.stats-bar::after { bottom: 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.stat-item {
  position: relative;
}

/* Vertical gold divider between stats */
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-4));
  top: 10%;
  height: 80%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-400), transparent);
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--gold-200);
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-item .stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-2);
}

/* 15. TIMELINE (temple pillar chronicle)
   ------------------------------------------------------------ */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-6) 0;
}

/* Wide gold pillar replacing thin line */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
  border-radius: 4px;
}

/* Kalasha finial at top */
.timeline::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--gold-400);
  clip-path: polygon(50% 0%, 15% 50%, 0% 100%, 100% 100%, 85% 50%);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-10);
  display: flex;
  align-items: flex-start;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-item .timeline-content {
  width: 45%;
  background: linear-gradient(180deg, #F0EBE0 0%, #E8E0D0 100%);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--stone-300);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
  margin-left: 5%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
  margin-right: 5%;
}

/* Carved medallion node */
.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--gold-400);
  border: 3px solid var(--red-700);
  border-radius: var(--radius-full);
  z-index: 1;
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.3);
}

.timeline-content h4 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  font-weight: 600;
}

.timeline-content .year {
  display: inline-block;
  background: var(--gold-400);
  color: var(--red-800);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  margin-bottom: var(--space-3);
  letter-spacing: 0.5px;
}

.timeline-content p {
  font-size: var(--text-sm);
  color: var(--text-medium);
  line-height: 1.7;
}

/* 16. SEVA TABLE
   ------------------------------------------------------------ */
.seva-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.seva-table thead {
  background: linear-gradient(160deg, var(--red-500), var(--red-700));
  color: var(--gold-200);
}

.seva-table th {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.seva-table td {
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--stone-100);
  font-size: var(--text-sm);
  color: var(--text-medium);
}

.seva-table tbody tr:hover {
  background: var(--stone-50);
}

.seva-table tbody tr:last-child td {
  border-bottom: none;
}

/* 17. GALLERY + LIGHTBOX
   ------------------------------------------------------------ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
  cursor: pointer;
  position: relative;
  height: 280px;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

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

.gallery-placeholder img.gallery-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.gallery-placeholder .gallery-placeholder-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 15px 15px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gallery-placeholder-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: white;
}

/* Gallery Item Color Gradients */
.gallery-item.temple {
  background: #1a1a1a;
}

.gallery-item.deities {
  background: #1a1a1a;
}

.gallery-item.festivals {
  background: #1a1a1a;
}

.gallery-item.events {
  background: #1a1a1a;
}

.gallery-item.jeernodhara {
  background: #1a1a1a;
}

/* Gallery filter tabs */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.filter-btn {
  padding: var(--space-2) var(--space-5);
  border: 2px solid var(--red-500);
  background: transparent;
  color: var(--red-500);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--duration-fast) var(--ease-out);
  font-family: var(--font-body);
  position: relative;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--red-500);
  color: var(--gold-200);
}

/* Active tab underline glow */
.filter-btn.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--gold-400);
  box-shadow: 0 0 8px rgba(212, 160, 23, 0.5);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(18, 8, 7, 0.92);
  z-index: 2000;
  animation: lightbox-fade 0.3s var(--ease-out);
}

.lightbox-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes lightbox-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-content {
  position: relative;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: var(--space-10);
  max-width: 600px;
  width: 90%;
  text-align: center;
  animation: lightbox-slide 0.3s var(--ease-out);
  border: 2px solid var(--gold-400);
  box-shadow: 0 0 60px rgba(212, 160, 23, 0.15);
}

/* Corner ornaments on lightbox */
.lightbox-content::before,
.lightbox-content::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--gold-400);
}

.lightbox-content::before {
  top: 8px;
  left: 8px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.lightbox-content::after {
  bottom: 8px;
  right: 8px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

@keyframes lightbox-slide {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-4);
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-light);
  background: none;
  border: none;
  transition: color var(--duration-fast) var(--ease-out);
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--primary);
}

.lightbox-image {
  margin: var(--space-5) 0;
}

.lightbox-image svg,
.lightbox-image img {
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.lightbox-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--primary);
  margin-bottom: var(--space-3);
  font-weight: 600;
}

.lightbox-category {
  display: inline-block;
  padding: var(--space-1) var(--space-4);
  background: var(--red-500);
  color: var(--gold-200);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lightbox-description {
  color: var(--text-medium);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* Gallery note */
.gallery-note {
  background: var(--stone-50);
  border-left: 3px solid var(--gold-400);
  padding: var(--space-5);
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--text-medium);
  font-size: var(--text-sm);
  margin-top: var(--space-10);
}

.gallery-note a {
  color: var(--primary);
  font-weight: 700;
}

.gallery-note a:hover {
  color: var(--gold-500);
}

/* Hidden utility for gallery filtering */
.hidden {
  display: none !important;
}

/* 18. CONTACT FORM
   ------------------------------------------------------------ */
.donation-form {
  background: var(--bg-alt);
  padding: var(--space-10);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.donation-form h3 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
  font-weight: 600;
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--stone-200);
  border-bottom: 2px solid var(--stone-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-dark);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  background: var(--stone-50);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-400);
  border-bottom-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
  background: var(--bg-alt);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-error {
  display: block;
  color: var(--red-500);
  font-size: var(--text-xs);
  margin-top: var(--space-1);
}

.form-success {
  margin-top: var(--space-4);
  padding: var(--space-3);
  background: #d4edda;
  color: #155724;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: var(--text-sm);
}

/* Aria-invalid styling */
.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: var(--red-400);
  border-bottom-color: var(--red-500);
}

/* 19. ICON SYSTEM
   ------------------------------------------------------------ */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-lg {
  width: 32px;
  height: 32px;
}

.icon-xl {
  width: 48px;
  height: 48px;
}

/* 20. DECORATIVE PATTERNS
   ------------------------------------------------------------ */

/* Info image placeholder */
.info-text h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--primary);
  margin-bottom: var(--space-4);
  font-weight: 600;
}

.info-text p {
  color: var(--text-medium);
  margin-bottom: var(--space-4);
  font-size: var(--text-base);
  line-height: 1.7;
}

.info-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.info-image-placeholder {
  width: 100%;
  height: 350px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.info-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.info-image-placeholder span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--gold-200);
  font-size: var(--text-sm);
  text-align: center;
}

/* Map container */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--stone-100);
  border: 2px solid var(--border-light);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Contact info card */
.contact-info-card {
  background: var(--bg-alt);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
  border: 1px solid var(--border-light);
}

.contact-info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-info-card .ci-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-200);
  flex-shrink: 0;
}

.contact-info-card .ci-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.contact-info-card h4 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin-bottom: var(--space-1);
  font-weight: 600;
  font-size: var(--text-base);
}

.contact-info-card p {
  color: var(--text-medium);
  font-size: var(--text-sm);
}

.contact-info-card a {
  color: var(--primary);
}

.contact-info-card a:hover {
  color: var(--gold-500);
}

/* Visiting hours */
.visiting-hours {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.visiting-hours-item {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.visiting-hours-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* 21. ANIMATIONS & KEYFRAMES
   ------------------------------------------------------------ */

/* Staggered reveal system */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 80ms);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Directional variants */
.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Fade animation for gallery items */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 22. RESPONSIVE: 992px
   ------------------------------------------------------------ */
@media (max-width: 992px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quick-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }

  .stat-item + .stat-item::before {
    display: none;
  }

  .hero h2 {
    font-size: var(--text-2xl);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline::after {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: row;
  }

  .timeline-item .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    width: calc(100% - 55px);
    margin-left: 55px;
    margin-right: 0;
  }

  .timeline-dot {
    left: 20px;
  }
}

/* 23. RESPONSIVE: 768px
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--red-800), var(--red-700));
    transition: right var(--duration-normal) var(--ease-out);
    z-index: 1000;
    padding-top: 70px;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
  }

  nav.open {
    right: 0;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li a {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  nav ul li a::after {
    display: none;
  }

  .hero {
    min-height: 70vh;
  }

  .section {
    padding: var(--space-12) 0;
  }

  .section-header h2 {
    font-size: var(--text-xl);
  }

  .page-banner h1,
  .page-banner h2 {
    font-size: var(--text-xl);
  }

  .page-banner {
    padding: var(--space-16) 0 var(--space-10);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .quick-info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .top-bar .container {
    flex-direction: column;
    gap: var(--space-1);
  }

  .top-bar-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
  }

  .donation-form {
    padding: var(--space-6);
  }

  .seva-table {
    display: block;
    overflow-x: auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
  }

  .gallery-item {
    height: 240px;
  }

  .lightbox-content {
    padding: var(--space-8) var(--space-5);
    width: 95%;
  }

  .hero-arch {
    height: 30px;
  }
}

/* 24. RESPONSIVE: 480px
   ------------------------------------------------------------ */
@media (max-width: 480px) {
  .hero-om {
    width: 60px;
    height: 60px;
  }

  .btn {
    padding: 11px 22px;
    font-size: var(--text-xs);
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .quick-info-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .logo-text h1 {
    font-size: var(--text-base);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 200px;
  }

  .filter-btn {
    padding: var(--space-2) var(--space-3);
    font-size: 0.7rem;
  }
}

/* 25. ACCESSIBILITY
   ------------------------------------------------------------ */

/* Skip to content link */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-400);
  color: var(--red-800);
  padding: var(--space-3) var(--space-6);
  font-weight: 700;
  font-size: var(--text-sm);
  z-index: 9999;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-to-content:focus {
  top: 0;
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible ring */
:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-in {
    opacity: 1;
    transform: none;
  }

  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }

  .hero-om {
    animation: none;
  }

  .progress-bar::after {
    animation: none;
  }
}
