/* ==========================================================================
   THIRUMURUGAN SAMAJAM TRUST - Main Stylesheet
   Temple Website for Lord Murugan Temple, Vasai West, India
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ========================================================================== */

:root {
  /* Saffron / Orange */
  --saffron: #F97316;
  --saffron-light: #FB923C;
  --saffron-dark: #EA580C;
  --saffron-50: #FFF7ED;
  --saffron-100: #FFEDD5;

  /* Gold */
  --gold: #D4A017;
  --gold-light: #E6B422;
  --gold-dark: #B8860B;

  /* Maroon */
  --maroon: #800020;
  --maroon-light: #9A1B3A;
  --maroon-dark: #5C0015;

  /* Accent colors */
  --ivory: #FFFFF0;
  --sandalwood: #C4A35A;
  --bronze: #CD7F32;

  /* Stone scale */
  --stone-100: #F5F5F4;
  --stone-200: #E7E5E4;
  --stone-300: #D6D3D1;
  --stone-400: #A8A29E;
  --stone-500: #78716C;
  --stone-600: #57534E;
  --stone-700: #44403C;
  --stone-800: #292524;
  --stone-900: #1C1917;

  /* Semantic colors */
  --text-primary: #2D2926;
  --text-secondary: #5C524A;
  --text-muted: #857A6F;
  --text-on-dark: #fff;
  --bg-primary: #fff;
  --bg-secondary: #f8f6f3;
  --bg-tertiary: #f0ece6;
  --border: #ddd5c8;
  --border-light: #f0ece6;

  /* State colors */
  --success: #16A34A;
  --error: #DC2626;
  --warning: #F59E0B;
  --info: #2563EB;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;

  --text-xs: clamp(0.7rem, 0.65rem + 0.15vw, 0.75rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.15vw, 0.875rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.05rem, 1rem + 0.25vw, 1.175rem);
  --text-xl: clamp(1.15rem, 1.05rem + 0.35vw, 1.35rem);
  --text-2xl: clamp(1.35rem, 1.15rem + 0.55vw, 1.65rem);
  --text-3xl: clamp(1.65rem, 1.35rem + 0.8vw, 2.15rem);
  --text-4xl: clamp(2rem, 1.6rem + 1.2vw, 2.85rem);
  --text-5xl: clamp(2.5rem, 2rem + 1.5vw, 3.85rem);

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --leading-tight: 1.2;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;

  /* Spacing (8px scale) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --section-py: clamp(2rem, 1.5rem + 3vw, 5rem);

  /* Container widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-2xl: 1400px;
  --container-pad: 1.5rem;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 20px rgba(249, 115, 22, 0.3);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Z-index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-header: 300;
  --z-overlay: 400;
  --z-modal: 500;

  /* WCAG-safe accessible color variants */
  --saffron-accessible: #C65D00;
  --gold-accessible: #8B6914;
  --saffron-hover-accessible: #A04D00;

  /* Enhanced shadows */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 4px 8px rgba(0, 0, 0, 0.06), 0 12px 28px rgba(0, 0, 0, 0.1);
  --shadow-card-glow: 0 0 0 1px rgba(212, 160, 23, 0.15), 0 8px 24px rgba(249, 115, 22, 0.08);

  /* Gradient presets */
  --gradient-hero: linear-gradient(180deg, rgba(92, 0, 21, 0.85) 0%, rgba(128, 0, 32, 0.92) 50%, rgba(60, 0, 15, 0.95) 100%);
  --gradient-hero-interior: linear-gradient(135deg, #6b1127 0%, #8b1a2b 50%, #4a0e1b 100%);
  --gradient-saffron: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
  --gradient-warm: linear-gradient(135deg, #FFF7ED 0%, #FEF3C7 50%, #FFFBEB 100%);

  /* Letter spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;
}


/* ==========================================================================
   2. CSS RESET
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--saffron-accessible);
  text-decoration: none;
  transition: color var(--transition-base);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--maroon);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background-color: var(--saffron);
  color: var(--text-on-dark);
}

::-moz-selection {
  background-color: var(--saffron);
  color: var(--text-on-dark);
}


/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

/* Container */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.container--sm {
  max-width: var(--container-sm);
}

.container--md {
  max-width: var(--container-md);
}

.container--lg {
  max-width: var(--container-lg);
}

.container--wide {
  max-width: var(--container-2xl);
}

/* Sections */
.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

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

.section--dark {
  background-color: var(--maroon-dark);
  color: var(--text-on-dark);
}

.section--saffron {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
  color: var(--text-on-dark);
}

.section--light {
  background-color: var(--bg-secondary);
}

.section--accent {
  background-color: var(--bg-tertiary);
}

.section--compact {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.section--no-padding-top,
.section--no-top {
  padding-top: 0;
}

.section--cta {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
  color: var(--text-on-dark);
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.section--stats {
  background-color: var(--bg-secondary);
}

.section--testimonial {
  background-color: var(--bg-secondary);
}

.section--community {
  background-color: var(--bg-primary);
}

.section--actions {
  background-color: var(--bg-secondary);
}

.section--deities {
  background-color: var(--bg-primary);
}

.section--festivals {
  background-color: var(--bg-secondary);
}

.section--highlights {
  background-color: var(--bg-primary);
}

.section--seva {
  background-color: var(--bg-secondary);
}

.section--timings {
  background-color: var(--bg-primary);
}

.section--location {
  background-color: var(--bg-secondary);
}

.section--welcome {
  background-color: var(--bg-primary);
}

.section--donation-cta {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
  color: var(--text-on-dark);
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

/* Section header */
.section__header {
  text-align: center;
  margin-bottom: var(--space-12);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section__label {
  display: inline-block;
  color: var(--saffron);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
}

.section__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--maroon);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}

.section__title--center {
  text-align: center;
}

.section__title--left {
  text-align: left;
}

.section__title--light {
  color: var(--text-on-dark);
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--leading-relaxed);
}

.section__subtitle--light {
  color: rgba(255, 255, 255, 0.85);
}

.section__text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section__text--light {
  color: rgba(255, 255, 255, 0.85);
}

.section__description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section__intro {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-8);
}

.section__content {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section__cta {
  text-align: center;
  margin-top: var(--space-10);
}

.section__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.section__divider::before,
.section__divider::after {
  content: '';
  height: 1px;
  width: 60px;
  background: var(--gold);
}

.section__divider-icon {
  color: var(--gold);
  font-size: var(--text-xl);
}

.section__divider--left {
  justify-content: flex-start;
}

.section__divider--left::before {
  display: none;
}

.section__note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
  margin-top: var(--space-4);
  text-align: center;
}

/* Grid — Mobile-first: 1 column by default, expand via responsive.css */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid--2,
.grid--3,
.grid--4,
.grid--6 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.grid--align-center {
  align-items: center;
}

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

.grid--3-tablet {
  grid-template-columns: 1fr;
}

/* Flex */
.flex {
  display: flex;
}

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

.flex--between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex--column {
  display: flex;
  flex-direction: column;
}

.flex--wrap {
  display: flex;
  flex-wrap: wrap;
}

.flex--gap-4 {
  gap: var(--space-4);
}

.flex--gap-8 {
  gap: var(--space-8);
}


/* ==========================================================================
   4. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
}

.btn--primary {
  background-color: var(--saffron);
  color: var(--text-on-dark);
  border-color: var(--saffron);
}

.btn--primary:hover {
  background-color: var(--saffron-dark);
  border-color: var(--saffron-dark);
  color: var(--text-on-dark);
}

.btn--secondary {
  background-color: var(--maroon);
  color: var(--text-on-dark);
  border-color: var(--maroon);
}

.btn--secondary:hover {
  background-color: var(--maroon-dark);
  border-color: var(--maroon-dark);
  color: var(--text-on-dark);
}

.btn--gold {
  background-color: var(--gold);
  color: var(--text-on-dark);
  border-color: var(--gold);
}

.btn--gold:hover {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--text-on-dark);
}

.btn--maroon {
  background-color: var(--maroon);
  color: var(--text-on-dark);
  border-color: var(--maroon);
}

.btn--maroon:hover {
  background-color: var(--maroon-dark);
  border-color: var(--maroon-dark);
  color: var(--text-on-dark);
}

.btn--outline {
  background-color: transparent;
  color: var(--saffron);
  border-color: var(--saffron);
}

.btn--outline:hover {
  background-color: var(--saffron);
  color: var(--text-on-dark);
}

.btn--outline-light {
  background-color: transparent;
  color: var(--text-on-dark);
  border-color: var(--text-on-dark);
}

.btn--outline-light:hover {
  background-color: var(--text-on-dark);
  color: var(--saffron);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: var(--text-lg);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--icon {
  padding: 0.625rem;
  border-radius: var(--radius-full);
}

.btn--gradient {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
  color: var(--text-on-dark);
  border: none;
  position: relative;
  z-index: 1;
}

.btn--gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--saffron-dark) 0%, var(--maroon) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
}

.btn--gradient:hover::before {
  opacity: 1;
}

/* Shine sweep on hover */
.btn--primary::after,
.btn--secondary::after,
.btn--gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.btn--primary:hover::after,
.btn--secondary:hover::after,
.btn--gold:hover::after {
  left: 100%;
}


/* ==========================================================================
   5. CARDS
   ========================================================================== */

.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

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

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.card__image--placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--saffron-50) 0%, var(--bg-tertiary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

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

.card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--maroon);
  margin-bottom: var(--space-2);
  line-height: var(--leading-tight);
}

.card__title--gold {
  color: var(--gold-dark);
}

.card__text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-3);
}

.card__subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  font-weight: var(--weight-medium);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--saffron);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  transition: color var(--transition-base);
}

.card__link:hover {
  color: var(--saffron-dark);
  gap: var(--space-2);
}

.card__badge {
  display: inline-block;
  background: var(--saffron-50);
  color: var(--saffron);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}

.card__date-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: var(--saffron);
  color: var(--text-on-dark);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-align: center;
  line-height: 1.3;
  z-index: 2;
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--saffron-50);
  color: var(--saffron);
  border-radius: var(--radius-lg);
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}

.card__icon--gold {
  background: rgba(212, 160, 23, 0.1);
  color: var(--gold);
}

.card__icon--large {
  width: 64px;
  height: 64px;
  font-size: var(--text-2xl);
}

.card__number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--saffron);
  margin-bottom: var(--space-2);
}

.card__theme {
  font-size: var(--text-sm);
  color: var(--saffron);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-2);
}

.card__list {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
}

.card__list li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-light);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.card__list li:last-child {
  border-bottom: none;
}

.card__mantra-text {
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--maroon);
  line-height: var(--leading-relaxed);
  padding: var(--space-4);
  background: var(--saffron-50);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gold);
  margin-top: var(--space-3);
}

.card__activities {
  margin-top: var(--space-4);
}

.card__activities-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--maroon);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card__benefit-list {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
}

.card__benefit-list li {
  position: relative;
  padding-left: var(--space-5);
  padding-top: var(--space-1);
  padding-bottom: var(--space-1);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.card__benefit-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--saffron);
  font-weight: var(--weight-bold);
}

/* Card Variants */
.card--deity {
  border-bottom: 3px solid var(--gold);
}

.card--festival {
  position: relative;
}

.card--feature {
  text-align: center;
}

.card--feature .card__icon {
  margin-left: auto;
  margin-right: auto;
}

.card--simple {
  border: none;
  box-shadow: none;
  background: transparent;
}

.card--simple:hover {
  transform: none;
  box-shadow: none;
}

.card--abode {
  text-align: center;
}

.card--mantra {
  background: var(--saffron-50);
  border-color: var(--gold);
}

.card--myth {
  border-left: 4px solid var(--saffron);
}

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

.card--symbol {
  text-align: center;
}

.card--symbol .card__icon {
  margin-left: auto;
  margin-right: auto;
}

.card--worship {
  border-top: 3px solid var(--saffron);
}

.card--horizontal {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.card--horizontal .card__image {
  height: 100%;
  min-height: 200px;
}

/* Glassmorphism card */
.card--glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Elevated card */
.card--elevated {
  border: none;
  box-shadow: var(--shadow-md);
}

.card--elevated:hover {
  box-shadow: var(--shadow-card-glow);
}


/* ==========================================================================
   6. TOPBAR
   ========================================================================== */

.topbar {
  background-color: var(--saffron);
  color: var(--text-on-dark);
  padding: 0.4rem 0;
  font-size: var(--text-sm);
  position: relative;
  z-index: calc(var(--z-header) + 1);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.topbar__item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--text-on-dark);
  font-size: var(--text-sm);
}

.topbar__link {
  color: var(--text-on-dark);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.topbar__link:hover {
  opacity: 0.85;
  color: var(--text-on-dark);
}

.topbar__divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.4);
}


/* ==========================================================================
   7. HEADER & NAVIGATION
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--saffron);
  color: var(--text-on-dark);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  z-index: var(--z-modal);
  font-weight: var(--weight-semibold);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-2);
  color: var(--text-on-dark);
}

.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-primary);
  border-top: 4px solid var(--saffron);
  height: 76px;
  display: flex;
  align-items: center;
  z-index: var(--z-header);
  transition: box-shadow var(--transition-base);
}

.header.is-scrolled {
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.97);
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
}

.header__logo-om {
  font-family: var(--font-accent);
  font-size: var(--text-2xl);
  color: var(--saffron);
  line-height: 1;
}

.header__logo-name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--maroon);
  line-height: 1.2;
}

/* Desktop default: horizontal nav (static, visible) */
.header__nav {
  display: flex;
  align-items: center;
}

/* Mobile drawer — ONLY below 64em (1024px) */
@media (max-width: 63.999em) {
  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-primary);
    box-shadow: var(--shadow-xl);
    z-index: calc(var(--z-header) + 1);
    overflow-y: auto;
    padding: var(--space-16) var(--space-6) var(--space-8);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0.35s;
  }

  .header__nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    border-bottom: 1px solid var(--border-light);
  }

  .nav-dropdown {
    position: static !important;
    box-shadow: none !important;
    border: none;
    border-radius: 0;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    padding-left: var(--space-4);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    min-width: 0;
  }

  .nav-dropdown.is-open {
    max-height: 500px;
  }

  .nav-dropdown a {
    padding-left: var(--space-6);
  }

  .topbar__right .topbar__link {
    font-size: var(--text-xs);
  }
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header__donate-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--saffron);
  color: var(--text-on-dark);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  transition: all var(--transition-base);
  text-decoration: none;
}

.header__donate-btn:hover {
  background: var(--saffron-dark);
  color: var(--text-on-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Hamburger — visible on mobile, hidden at 64em+ */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: calc(var(--z-header) + 2);
}

.hamburger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--maroon);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.hamburger.is-active .hamburger__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.is-active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active .hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation */
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-item--dropdown {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--saffron);
  background: var(--saffron-50);
}

.nav-link.is-active {
  color: var(--saffron);
  font-weight: var(--weight-semibold);
}

.nav-arrow {
  font-size: 0.6em;
  transition: transform var(--transition-fast);
  margin-left: var(--space-1);
}

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

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-base);
  z-index: var(--z-dropdown);
}

.nav-item--dropdown:hover .nav-dropdown,
.nav-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown .nav-link,
.nav-dropdown a {
  display: block;
  padding: var(--space-2) var(--space-4);
  border-radius: 0;
  font-size: var(--text-sm);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.nav-dropdown .nav-link:hover,
.nav-dropdown a:hover {
  background: var(--saffron-50);
  color: var(--saffron);
}


/* ==========================================================================
   8. HERO
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-on-dark);
  background: var(--maroon-dark);
}

.hero--home {
  min-height: 85vh;
  min-height: 85dvh;
  padding: var(--space-20) var(--container-pad);
  background:
    /* Temple pattern (gopuram-inspired) */
    repeating-linear-gradient(
      60deg,
      transparent,
      transparent 30px,
      rgba(212, 160, 23, 0.03) 30px,
      rgba(212, 160, 23, 0.03) 31px
    ),
    repeating-linear-gradient(
      -60deg,
      transparent,
      transparent 30px,
      rgba(212, 160, 23, 0.03) 30px,
      rgba(212, 160, 23, 0.03) 31px
    ),
    /* Radial gold highlight */
    radial-gradient(ellipse at center 40%, rgba(212, 160, 23, 0.08) 0%, transparent 60%),
    /* Base gradient */
    var(--gradient-hero);
}

.hero--home::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold), var(--gold-light), var(--gold-dark));
  z-index: 3;
}

.hero--inner,
.hero--interior {
  min-height: 340px;
  padding: var(--space-16) var(--container-pad) var(--space-12);
  background: var(--gradient-hero-interior);
}

.hero--inner::before,
.hero--interior::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--gold-light), transparent);
  z-index: 3;
}

.hero--inner::after,
.hero--interior::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--gold-light), transparent);
  z-index: 3;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(92, 0, 21, 0.7) 0%, rgba(128, 0, 32, 0.85) 100%);
  z-index: 1;
}

.hero__decoration {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__vel {
  position: absolute;
  font-size: 8rem;
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero__label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-light);
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
  color: var(--text-on-dark);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-family: var(--font-accent);
  font-size: var(--text-xl);
  font-weight: var(--weight-normal);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.interior-hero {
  position: relative;
  background: var(--gradient-hero-interior);
  color: var(--text-on-dark);
  padding: var(--space-16) var(--container-pad) var(--space-10);
  text-align: center;
  overflow: hidden;
}

.interior-hero::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--gold-light), transparent);
  z-index: 3;
}

.interior-hero::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--gold-light), transparent);
  z-index: 3;
}

.interior-hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--text-on-dark);
}

/* Hero button overrides — outline must be white on dark hero bg */
.hero .btn--outline {
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, 0.6);
  background: transparent;
}

.hero .btn--outline:hover {
  background: var(--text-on-dark);
  color: var(--maroon);
  border-color: var(--text-on-dark);
}

.hero .btn--primary {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--text-on-dark);
}

.hero .btn--primary:hover {
  background: var(--saffron-light);
  border-color: var(--saffron-light);
}

/* Hero entrance animations */
@keyframes heroTitleReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero__title {
  animation: heroTitleReveal 0.8s ease-out 0.2s both;
}

.hero__subtitle {
  animation: heroTitleReveal 0.8s ease-out 0.4s both;
}

.hero__cta-group {
  animation: heroTitleReveal 0.8s ease-out 0.6s both;
}

.hero__label {
  animation: heroTitleReveal 0.8s ease-out 0.1s both;
}

@media (prefers-reduced-motion: reduce) {
  .hero__title,
  .hero__subtitle,
  .hero__cta-group,
  .hero__label {
    animation: none;
  }
}


/* ==========================================================================
   9. BREADCRUMB
   ========================================================================== */

.breadcrumb {
  background: transparent;
  padding: 0 0 var(--space-6) 0;
  border-bottom: none;
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  list-style: none;
  font-size: var(--text-sm);
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb__item + .breadcrumb__item::before {
  content: '\203A';
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.1em;
}

.breadcrumb__item--active {
  color: var(--gold-light);
  font-weight: var(--weight-medium);
}

.breadcrumb__link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb__link:hover {
  color: var(--gold-light);
}


/* ==========================================================================
   10. FOOTER
   ========================================================================== */

.footer {
  background: var(--maroon-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: var(--space-16);
}

.footer__border {
  border-top: 4px solid var(--gold);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-12);
}

.footer__col {
  min-width: 0;
}

.footer__logo-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  text-decoration: none;
  color: var(--text-on-dark);
}

.footer__about {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-6);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark);
  font-size: var(--text-lg);
  transition: all var(--transition-base);
  text-decoration: none;
}

.footer__social a:hover {
  background: var(--saffron);
  transform: translateY(-2px);
  color: var(--text-on-dark);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-on-dark);
  margin-bottom: var(--space-4);
  position: relative;
  padding-bottom: var(--space-3);
}

.footer__heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
}

.footer__links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.footer__links a:hover {
  color: var(--saffron-light);
  padding-left: var(--space-2);
}

.footer__address {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.7);
  font-style: normal;
  margin-bottom: var(--space-4);
}

.footer__contact-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__contact-list a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: color var(--transition-fast);
}

.footer__contact-list a:hover {
  color: var(--saffron-light);
}

.footer__timings {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--leading-relaxed);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-6) 0;
  text-align: center;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}


/* ==========================================================================
   11. STATS
   ========================================================================== */

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

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

.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--saffron);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat__label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section--dark .stat__number {
  color: var(--gold-light);
}

.section--dark .stat__label {
  color: rgba(255, 255, 255, 0.8);
}

.section--saffron .stat__number {
  color: var(--text-on-dark);
}

.section--saffron .stat__label {
  color: rgba(255, 255, 255, 0.85);
}


/* ==========================================================================
   12. GALLERY
   ========================================================================== */

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

.gallery-filter {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
}

.gallery-filter:hover {
  color: var(--saffron);
  border-color: var(--saffron);
}

.gallery-filter.is-active {
  background: var(--saffron);
  color: var(--text-on-dark);
  border-color: var(--saffron);
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

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

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover::after {
  opacity: 1;
}


/* ==========================================================================
   13. LIGHTBOX
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox__image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-on-dark);
  font-size: var(--text-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background var(--transition-fast);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-on-dark);
  border: none;
  border-radius: var(--radius-full);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__nav--prev {
  left: var(--space-4);
}

.lightbox__nav--next {
  right: var(--space-4);
}


/* ==========================================================================
   14. FORMS
   ========================================================================== */

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

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

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

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

.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row--2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.form-checkbox__label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.form-note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
  margin-top: var(--space-2);
}

select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-input--error,
.form-textarea--error {
  border-color: var(--error);
}

.form-input--error:focus,
.form-textarea--error:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.form-input--success,
.form-textarea--success {
  border-color: var(--success);
}

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

.form-feedback {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  animation: feedbackSlideIn 0.3s ease-out;
}

.form-feedback--success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.form-feedback--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

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

/* Table responsive wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive table {
  min-width: 600px;
}

/* Responsive iframe/embed */
.map-embed,
.map-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.map-embed iframe,
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius-lg);
  position: absolute;
  top: 0;
  left: 0;
}


/* ==========================================================================
   15. DONATION
   ========================================================================== */

.donation-trust-info {
  text-align: center;
  margin-bottom: var(--space-8);
  padding: var(--space-6);
  background: var(--saffron-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--saffron-100);
}

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

.donation-form-wrap {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.donation-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.donation-fieldset {
  border: none;
  padding: 0;
}

.donation-fieldset__legend {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--maroon);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-light);
}

.donation-purposes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
  gap: var(--space-3);
}

.donation-purpose {
  position: relative;
}

.donation-purpose input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.donation-purpose__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
}

.donation-purpose input:checked + .donation-purpose__card {
  border-color: var(--saffron);
  background: var(--saffron-50);
  box-shadow: 0 0 0 1px var(--saffron);
}

.donation-purpose__icon {
  font-size: var(--text-2xl);
}

.donation-purpose__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.donation-amounts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.donation-amount {
  position: relative;
}

.donation-amount input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.donation-amount__btn {
  display: block;
  width: 100%;
  padding: var(--space-3);
  text-align: center;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
}

.donation-amount input:checked + .donation-amount__btn {
  border-color: var(--saffron);
  background: var(--saffron);
  color: var(--text-on-dark);
}

.donation-custom-amount {
  margin-top: var(--space-3);
}

.donation-pay {
  text-align: center;
}

.donation-pay__note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-3);
}

.donation-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.donation-summary {
  background: var(--bg-secondary);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.donation-summary__row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.donation-summary__row:last-child {
  border-bottom: none;
}

.donation-summary__total {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--maroon);
  padding-top: var(--space-3);
  border-top: 2px solid var(--maroon);
  margin-top: var(--space-2);
}

.donation-bank-details {
  background: var(--bg-secondary);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  font-size: var(--text-sm);
}

.donation-qr-placeholder {
  text-align: center;
  padding: var(--space-8);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
  color: var(--text-muted);
}

.donation-legal {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

.donation-cta {
  text-align: center;
  padding: var(--space-12) var(--container-pad);
}

.donation-cta__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--text-on-dark);
  margin-bottom: var(--space-4);
}

.donation-cta__text {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-6);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}


/* ==========================================================================
   16. TESTIMONIALS
   ========================================================================== */

.testimonial {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.testimonial:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.testimonial__quote-mark {
  font-size: 3rem;
  color: var(--saffron);
  line-height: 1;
  opacity: 0.3;
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
}

.testimonial__body,
.testimonial__quote {
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.testimonial__rating {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
  color: var(--gold);
  font-size: var(--text-lg);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial__name {
  font-weight: var(--weight-bold);
  color: var(--maroon);
  font-size: var(--text-base);
}

.testimonial__location {
  font-size: var(--text-sm);
  color: var(--text-muted);
}


/* ==========================================================================
   17. CONTACT
   ========================================================================== */

.contact-form-wrap {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-info-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.contact-card__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
}

.contact-card__item + .contact-card__item {
  border-top: 1px solid var(--border-light);
}

.contact-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--saffron-50);
  color: var(--saffron);
  border-radius: var(--radius-md);
  font-size: var(--text-lg);
}

.contact-card__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-card__text {
  font-size: var(--text-base);
  color: var(--text-primary);
  line-height: var(--leading-normal);
}

.contact-card__link {
  color: var(--saffron);
  text-decoration: none;
  font-weight: var(--weight-medium);
}

.contact-card__link:hover {
  color: var(--saffron-dark);
  text-decoration: underline;
}

.contact-card__actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.info-card__timings {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}


/* ==========================================================================
   18. CALENDAR
   ========================================================================== */

.calendar-container {
  max-width: 900px;
  margin: 0 auto;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.calendar-legend__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.calendar-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
}

.calendar-legend__dot--saffron {
  background: var(--saffron);
}

.calendar-legend__dot--gold {
  background: var(--gold);
}

.calendar-legend__dot--maroon {
  background: var(--maroon);
}

.calendar-legend__dot--today {
  background: var(--success);
}

.calendar-legend__label {
  font-size: var(--text-sm);
}

.calendar {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.calendar__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  background: var(--maroon);
  color: var(--text-on-dark);
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border-light);
}

.calendar__day-header {
  padding: var(--space-2);
  text-align: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-secondary);
}

.calendar__day {
  padding: var(--space-2);
  text-align: center;
  font-size: var(--text-sm);
  background: var(--bg-primary);
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: background var(--transition-fast);
}

.calendar__day:hover {
  background: var(--saffron-50);
}

.calendar__day--today {
  font-weight: var(--weight-bold);
  color: var(--text-on-dark);
  background: var(--saffron);
  border-radius: var(--radius-md);
}

.calendar__day--event {
  position: relative;
  font-weight: var(--weight-medium);
  color: var(--maroon);
}

.calendar__day--event::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--saffron);
}


/* ==========================================================================
   19. ACTIVITY CARDS
   ========================================================================== */

.activity-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-6);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.activity-card--reverse {
  direction: ltr;
}

.activity-card__image {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.activity-card__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.activity-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--maroon);
}

.activity-card__text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.activity-card__highlight {
  padding: var(--space-4);
  background: var(--saffron-50);
  border-left: 3px solid var(--saffron);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}


/* ==========================================================================
   20. TIMINGS STRIP
   ========================================================================== */

.timings-strip {
  padding: var(--space-8) 0;
}

.timings-strip__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  text-align: center;
  color: var(--maroon);
  margin-bottom: var(--space-6);
}

.timings-strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  text-align: center;
}

.timings-strip__block {
  padding: var(--space-4);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.timings-strip__icon {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
  color: var(--saffron);
}

.timings-strip__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--maroon);
  margin-bottom: var(--space-1);
}

.timings-strip__time {
  font-size: var(--text-base);
  color: var(--text-secondary);
}

.timings-strip__divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 0 auto;
}

.timings-strip__link {
  text-align: center;
  margin-top: var(--space-4);
}


/* ==========================================================================
   21. ACCORDION
   ========================================================================== */

.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 800px;
  margin: 0 auto;
}

.accordion__item {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}

.accordion__item.is-open {
  box-shadow: var(--shadow-md);
  border-color: var(--saffron);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5) var(--space-6);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-fast);
}

.accordion__trigger:hover {
  background: var(--bg-secondary);
}

.accordion__question {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--maroon);
}

.accordion__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--saffron);
  font-size: var(--text-xl);
  transition: transform var(--transition-base);
}

.accordion__item.is-open .accordion__icon {
  transform: rotate(45deg);
}

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.accordion__answer {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  font-size: var(--text-base);
}


/* ==========================================================================
   22. BACK-TO-TOP
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  background: var(--saffron);
  color: var(--text-on-dark);
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: var(--z-sticky);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--saffron-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}


/* ==========================================================================
   23. SCROLL PROGRESS BAR
   ========================================================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  z-index: calc(var(--z-header) + 10);
  transition: width 50ms linear;
  width: 0;
}


/* ==========================================================================
   24. CONTENT WITH SIDEBAR
   ========================================================================== */

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}


/* ==========================================================================
   25. SCROLL ANIMATIONS
   ========================================================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ==========================================================================
   26. ACTION CARDS (Quick Actions Grid)
   ========================================================================== */

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.action-card:hover {
  color: var(--saffron);
  border-color: var(--saffron);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.action-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--saffron-50);
  color: var(--saffron);
  transition: all var(--transition-base);
}

.action-card:hover .action-card__icon {
  background: var(--saffron);
  color: var(--text-on-dark);
}

.action-card__icon svg {
  width: 32px;
  height: 32px;
}

.action-card__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
}


/* ==========================================================================
   27. INFO BOXES (Sacred Features)
   ========================================================================== */

.info-box {
  text-align: center;
  padding: var(--space-6);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.info-box:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.info-box__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-full);
  background: var(--saffron-50);
  color: var(--saffron);
}

.info-box__icon svg {
  width: 36px;
  height: 36px;
}

.info-box__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--maroon);
  margin-bottom: var(--space-2);
}

.info-box__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}


/* ==========================================================================
   28. SEVA CARDS (Pooja & Services)
   ========================================================================== */

.seva-card {
  text-align: center;
  padding: var(--space-6);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.seva-card:hover {
  border-color: var(--saffron);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.seva-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-3);
  border-radius: var(--radius-full);
  background: var(--saffron-50);
  color: var(--saffron);
}

.seva-card__icon svg {
  width: 32px;
  height: 32px;
}

.seva-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--maroon);
  margin-bottom: var(--space-1);
}

.seva-card__text {
  font-size: var(--text-sm);
  color: var(--text-muted);
}


/* ==========================================================================
   29. COMMUNITY SERVICE
   ========================================================================== */

.community-highlights {
  max-width: 800px;
  margin: 0 auto;
}

.community-list {
  list-style: none;
  padding: 0;
  margin: var(--space-8) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.community-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  transition: all var(--transition-base);
}

.community-list__item:hover {
  border-color: var(--saffron);
  box-shadow: var(--shadow-sm);
}

.community-list__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--saffron-50);
  color: var(--saffron);
  margin-top: 2px;
}

.community-list__icon svg {
  width: 16px;
  height: 16px;
}


/* ==========================================================================
   30. LOCATION SECTION
   ========================================================================== */

.location__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 300px;
}

.location__map iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: none;
}

.location__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}


/* ==========================================================================
   31. PLACEHOLDER IMAGES
   ========================================================================== */

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 200px;
}

.placeholder--deity {
  border-radius: 0;
}

.placeholder--festival {
  border-radius: 0;
}

.placeholder__text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: var(--space-4);
}


/* ==========================================================================
   32. LINK STYLES
   ========================================================================== */

.link {
  color: var(--saffron);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.link:hover {
  color: var(--saffron-dark);
}

.link--arrow::after {
  content: '\2192';
  transition: transform var(--transition-base);
}

.link--arrow:hover::after {
  transform: translateX(4px);
}


/* ==========================================================================
   33. STAT EXTRAS
   ========================================================================== */

.stat__detail {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
  display: block;
}

.stat__star {
  color: var(--gold);
  margin-left: var(--space-1);
}

.section--dark .stat__detail {
  color: rgba(255, 255, 255, 0.6);
}


/* ==========================================================================
   34. FOOTER EXTRAS (Brand, Timing blocks, Legal)
   ========================================================================== */

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer__om {
  font-family: var(--font-accent);
  font-size: var(--text-2xl);
  color: var(--saffron-light);
  line-height: 1;
}

.footer__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-on-dark);
}

.footer__desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.footer__timing-block {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-sm);
}

.footer__timing-block strong {
  color: var(--text-on-dark);
}

.footer__timing-block span {
  color: rgba(255, 255, 255, 0.7);
}

.footer__timing-note {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  margin-top: var(--space-2);
}

.footer__schedule-btn {
  margin-top: var(--space-4);
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-sm);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  list-style: none;
  padding: 0;
  margin-top: var(--space-3);
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-xs);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__legal a:hover {
  color: var(--saffron-light);
}


/* ==========================================================================
   35. ADDITIONAL UTILITIES
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-saffron { color: var(--saffron); }
.text-gold { color: var(--gold); }
.text-maroon { color: var(--maroon); }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-on-dark); }

.bg-saffron { background-color: var(--saffron); }
.bg-gold { background-color: var(--gold); }
.bg-maroon { background-color: var(--maroon); }
.bg-alt { background-color: var(--bg-secondary); }
.bg-light { background-color: var(--bg-secondary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-primary { background-color: var(--bg-primary); }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

.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;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


/* ==========================================================================
   27. FOCUS & ACCESSIBILITY
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

@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;
  }
}


/* ==========================================================================
   28. NAV OVERLAY (Mobile)
   ========================================================================== */

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: calc(var(--z-header) - 1);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

body.nav-open .nav-overlay {
  opacity: 1;
  visibility: visible;
}


/* ==========================================================================
   PLACEHOLDER IMAGES (for pages with missing images)
   ========================================================================== */

.placeholder-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--saffron-50) 0%, var(--bg-tertiary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.visual-placeholder {
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, var(--saffron-50), var(--stone-100));
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.visual-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.3;
  color: var(--gold);
}

.trustee-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--saffron-50), var(--bg-tertiary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  border: 3px solid var(--gold);
}

.trustee-avatar__initials {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--maroon);
}


/* ==========================================================================
   MICRO-INTERACTIONS & ANIMATION VARIANTS
   ========================================================================== */

/* Scroll reveal direction variants */
.animate-on-scroll[data-reveal="left"] {
  transform: translateX(-30px);
}

.animate-on-scroll[data-reveal="right"] {
  transform: translateX(30px);
}

.animate-on-scroll[data-reveal="down"] {
  transform: translateY(-20px);
}

.animate-on-scroll[data-reveal="scale"] {
  transform: scale(0.9);
}

.animate-on-scroll[data-reveal="fade"] {
  transform: none;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger children animation */
.animate-stagger > * {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.animate-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.animate-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.animate-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.animate-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.animate-stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.animate-stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }

.animate-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Card icon hover animation */
.card__icon {
  transition: transform var(--transition-base), background var(--transition-base), color var(--transition-base);
}

.card:hover .card__icon {
  transform: scale(1.08);
}

/* Nav active indicator */
.nav-link.is-active {
  position: relative;
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--saffron);
  border-radius: var(--radius-full);
}


/* ==========================================================================
   COOKIE CONSENT BANNER
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: var(--space-4) var(--container-pad);
  z-index: var(--z-modal);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: var(--container-xl);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.cookie-banner__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  flex: 1;
  min-width: 200px;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}


/* ==========================================================================
   THEME TOGGLE
   ========================================================================== */

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-on-dark);
  cursor: pointer;
  border: none;
  transition: background var(--transition-base);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle__sun,
.theme-toggle__moon {
  display: none;
}

[data-theme="light"] .theme-toggle__moon,
:root:not([data-theme]) .theme-toggle__moon {
  display: block;
}

[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

[data-theme="dark"] .theme-toggle__moon {
  display: none;
}


/* ==========================================================================
   36. DATA TABLES
   ========================================================================== */

.data-table,
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base);
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}

.data-table thead,
.table thead {
  background: var(--maroon);
  color: var(--text-on-dark);
}

.data-table th,
.table th {
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  white-space: nowrap;
}

.data-table td,
.table td {
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.data-table tbody tr:nth-child(even),
.table tbody tr:nth-child(even) {
  background: var(--saffron-50);
}

.data-table tbody tr:hover,
.table tbody tr:hover {
  background: var(--saffron-100);
}

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

.data-table td:first-child,
.table td:first-child {
  font-weight: var(--weight-semibold);
  color: var(--maroon);
  white-space: nowrap;
}


/* ==========================================================================
   37. DEITY CARDS
   ========================================================================== */

.deity-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-bottom: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.deity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--gold);
}

.deity-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--saffron-50) 0%, var(--bg-tertiary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.deity-card__image img,
.deity-card__image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.deity-card:hover .deity-card__image img,
.deity-card:hover .deity-card__image svg {
  transform: scale(1.05);
}

.deity-card__content {
  padding: var(--space-6);
}

.deity-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--maroon);
  margin-bottom: var(--space-2);
  line-height: var(--leading-tight);
}

.deity-card__badge {
  display: inline-block;
  background: var(--saffron-50);
  color: var(--saffron-accessible);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.deity-card__content p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-3);
}

.deity-card__content p:last-child {
  margin-bottom: 0;
}

.deity-card__mantra {
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--maroon);
  line-height: var(--leading-relaxed);
  padding: var(--space-4);
  background: var(--saffron-50);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gold);
  margin-top: var(--space-3);
}


/* ==========================================================================
   38. ICON CARDS
   ========================================================================== */

.icon-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.icon-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--gold);
}

.icon-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-5);
  border-radius: var(--radius-full);
  background: var(--saffron-50);
  color: var(--saffron);
  font-size: var(--text-2xl);
  transition: transform var(--transition-base), background-color var(--transition-base);
}

.icon-card:hover .icon-card__icon {
  transform: scale(1.1);
  background: var(--saffron-100);
}

.icon-card__icon svg {
  width: 36px;
  height: 36px;
}

.icon-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--maroon);
  margin-bottom: var(--space-3);
  line-height: var(--leading-tight);
}

.icon-card__text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}


/* ==========================================================================
   39. TEAM CARDS
   ========================================================================== */

.team-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--gold);
}

.team-card__avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-5);
  border-radius: var(--radius-full);
  border: 3px solid var(--gold);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
}

.team-card__avatar svg {
  width: 100%;
  height: 100%;
}

.team-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--maroon);
  margin-bottom: var(--space-1);
  line-height: var(--leading-tight);
}

.team-card__role {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--saffron-accessible);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.team-card__desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}


/* ==========================================================================
   40. NOTICE BOX
   ========================================================================== */

.notice-box {
  background: var(--saffron-50);
  border: 1px solid var(--saffron-100);
  border-left: 4px solid var(--saffron);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-8);
}

.notice-box__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--maroon);
  margin-bottom: var(--space-4);
}

.notice-box__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notice-box__list li {
  position: relative;
  padding-left: var(--space-6);
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  border-bottom: 1px solid rgba(249, 115, 22, 0.1);
}

.notice-box__list li:last-child {
  border-bottom: none;
}

.notice-box__list li::before {
  content: '\2022';
  position: absolute;
  left: var(--space-2);
  color: var(--saffron);
  font-weight: var(--weight-bold);
  font-size: 1.2em;
}

.notice-box p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.notice-box a {
  color: var(--saffron-accessible);
  font-weight: var(--weight-semibold);
}

.notice-box a:hover {
  color: var(--saffron-hover-accessible);
}


/* ==========================================================================
   41. TRUSTEE CARDS
   ========================================================================== */

.trustee-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.trustee-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--gold);
}

.trustee-card__image {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-5);
  border-radius: var(--radius-full);
  border: 3px solid var(--gold);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
}

.trustee-card__image svg {
  width: 100%;
  height: 100%;
}

.trustee-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--maroon);
  margin-bottom: var(--space-1);
  line-height: var(--leading-tight);
}

.trustee-card__designation {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--saffron-accessible);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.trustee-card__bio {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-3);
}

.trustee-card__contact {
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

.trustee-card__contact a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--saffron-accessible);
  font-weight: var(--weight-semibold);
  transition: color var(--transition-base);
}

.trustee-card__contact a:hover {
  color: var(--saffron-hover-accessible);
}


/* ==========================================================================
   42. INFO BOX VARIANTS
   ========================================================================== */

.info-box--outline {
  background: transparent;
  border: 2px dashed var(--border);
  box-shadow: none;
}

.info-box--outline:hover {
  border-color: var(--gold);
  border-style: solid;
  background: var(--saffron-50);
}

.info-box--featured {
  text-align: left;
  background: var(--saffron-50);
  border: 1px solid var(--saffron-100);
  border-left: 4px solid var(--gold);
}

.info-box--featured:hover {
  border-left-color: var(--saffron);
  background: var(--saffron-100);
}

.info-box--featured .info-box__icon {
  margin: 0 0 var(--space-4) 0;
  background: rgba(212, 160, 23, 0.12);
  color: var(--gold);
}

.info-box--large {
  padding: var(--space-10) var(--space-8);
}

.info-box--large .info-box__icon {
  width: 88px;
  height: 88px;
  margin-bottom: var(--space-5);
}

.info-box--large .info-box__icon svg {
  width: 44px;
  height: 44px;
}

.info-box--large .info-box__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.info-box__time {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--saffron);
  margin-bottom: var(--space-2);
}

.info-box__desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}


/* ==========================================================================
   43. CTA SECTION ELEMENTS
   ========================================================================== */

.cta__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--text-on-dark);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cta__text {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
}

.cta__actions,
.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-6);
}


/* ==========================================================================
   44. CTA STRIP
   ========================================================================== */

.cta-strip {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
  color: var(--text-on-dark);
  text-align: center;
}

.cta-strip__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-on-dark);
  margin-bottom: var(--space-4);
}

.cta-strip__text {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
}


/* ==========================================================================
   45. SPACING & HIERARCHY REFINEMENTS
   ========================================================================== */

.cta-strip.section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.section--bordered-top {
  border-top: 1px solid var(--border-light);
}

/* Text utilities */
.text--center {
  text-align: center;
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

/* ==========================================================================
   DARK MODE
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-primary: #1A1210;
    --bg-secondary: #231C18;
    --bg-tertiary: #2D241E;
    --text-primary: #F0EBE3;
    --text-secondary: #C4B9AB;
    --text-muted: #8A7E72;
    --text-on-dark: #F5F0E8;
    --saffron: #FB923C;
    --saffron-light: #FDBA74;
    --saffron-dark: #F97316;
    --saffron-50: rgba(249, 115, 22, 0.1);
    --saffron-100: rgba(249, 115, 22, 0.15);
    --saffron-accessible: #FB923C;
    --saffron-hover-accessible: #FDBA74;
    --gold: #E6B422;
    --gold-light: #F0C94E;
    --gold-dark: #D4A017;
    --maroon: #C4344C;
    --maroon-light: #D64D63;
    --maroon-dark: #3D1520;
    --border: #3D3228;
    --border-light: #2D241E;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-card-hover: 0 4px 8px rgba(0, 0, 0, 0.25), 0 12px 28px rgba(0, 0, 0, 0.35);
    --ivory: #231C18;
    color-scheme: dark;
  }
}

[data-theme="dark"] {
  --bg-primary: #1A1210;
  --bg-secondary: #231C18;
  --bg-tertiary: #2D241E;
  --text-primary: #F0EBE3;
  --text-secondary: #C4B9AB;
  --text-muted: #8A7E72;
  --text-on-dark: #F5F0E8;
  --saffron: #FB923C;
  --saffron-light: #FDBA74;
  --saffron-dark: #F97316;
  --saffron-50: rgba(249, 115, 22, 0.1);
  --saffron-100: rgba(249, 115, 22, 0.15);
  --saffron-accessible: #FB923C;
  --saffron-hover-accessible: #FDBA74;
  --gold: #E6B422;
  --gold-light: #F0C94E;
  --gold-dark: #D4A017;
  --maroon: #C4344C;
  --maroon-light: #D64D63;
  --maroon-dark: #3D1520;
  --border: #3D3228;
  --border-light: #2D241E;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-card-hover: 0 4px 8px rgba(0, 0, 0, 0.25), 0 12px 28px rgba(0, 0, 0, 0.35);
  --ivory: #231C18;
  color-scheme: dark;
}

[data-theme="dark"] .header.is-scrolled {
  background: rgba(26, 18, 16, 0.97);
}

[data-theme="dark"] .footer {
  background: #0F0B09;
}

[data-theme="dark"] .data-table thead,
[data-theme="dark"] .table thead {
  background: var(--maroon-dark);
}

[data-theme="dark"] .notice-box {
  border-color: rgba(249, 115, 22, 0.2);
}

[data-theme="dark"] img:not([src=""]) {
  filter: brightness(0.92);
}

[data-theme="dark"] ::selection {
  background-color: var(--saffron-dark);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .header.is-scrolled {
    background: rgba(26, 18, 16, 0.97);
  }
  :root:not([data-theme="light"]) .footer {
    background: #0F0B09;
  }
  :root:not([data-theme="light"]) .data-table thead,
  :root:not([data-theme="light"]) .table thead {
    background: var(--maroon-dark);
  }
  :root:not([data-theme="light"]) .notice-box {
    border-color: rgba(249, 115, 22, 0.2);
  }
  :root:not([data-theme="light"]) img:not([src=""]) {
    filter: brightness(0.92);
  }
  :root:not([data-theme="light"]) ::selection {
    background-color: var(--saffron-dark);
  }
}


/* ==========================================================================
   ACCESSIBILITY ENHANCEMENTS
   ========================================================================== */

/* Context-aware focus rings */
.hero :focus-visible,
.section--dark :focus-visible,
.footer :focus-visible,
.topbar :focus-visible {
  outline-color: var(--gold-light);
  outline-offset: 3px;
}

.card:focus-within {
  box-shadow: 0 0 0 2px var(--saffron), var(--shadow-card);
}

/* High contrast mode */
@media (forced-colors: active) {
  .btn {
    border: 2px solid ButtonText;
  }
  .card {
    border: 1px solid CanvasText;
  }
  .form-input,
  .form-textarea {
    border: 1px solid CanvasText;
  }
  .nav-dropdown {
    border: 1px solid CanvasText;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .gallery-item:hover img {
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
  .animate-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ==========================================================================
   PERFORMANCE
   ========================================================================== */

.section {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

.animate-on-scroll {
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  will-change: auto;
}
