/* ============================================================
   YAAZH THEATRE & RESEARCH FOUNDATION — Main Stylesheet
   Design: Cinematic Theatre Aesthetic
   Colors: Deep Red, Royal Blue, Gold, Silver
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&display=swap');

/* ── CSS Custom Properties (Design Tokens) ── */
:root {
  /* Core Palette */
  --red-deep:       #8B1A1A;
  --red-mid:        #A52020;
  --red-bright:     #C0392B;
  --blue-royal:     #0D2B6B;
  --blue-mid:       #1A3D8F;
  --blue-light:     #2255B8;

  /* Accent Metals */
  --gold:           #C9A84C;
  --gold-light:     #E2C27D;
  --gold-glow:      rgba(201,168,76,0.25);
  --silver:         #A8B2BE;
  --silver-light:   #D4DCE6;

  /* Neutrals */
  --black-stage:    #0A0A0B;
  --black-soft:     #111115;
  --dark-surface:   #161620;
  --card-bg:        #1C1C2A;
  --border-subtle:  rgba(255,255,255,0.08);
  --border-gold:    rgba(201,168,76,0.35);
  --text-primary:   #F2EDE4;
  --text-secondary: #B8B0A4;
  --text-muted:     #6E6860;

  /* Gradients */
  --grad-hero:      linear-gradient(135deg, rgba(10,10,11,0.92) 0%, rgba(13,43,107,0.55) 50%, rgba(139,26,26,0.70) 100%);
  --grad-red:       linear-gradient(135deg, #8B1A1A 0%, #C0392B 100%);
  --grad-blue:      linear-gradient(135deg, #0D2B6B 0%, #2255B8 100%);
  --grad-gold:      linear-gradient(135deg, #C9A84C 0%, #E2C27D 50%, #C9A84C 100%);
  --grad-card:      linear-gradient(160deg, #1C1C2A 0%, #161620 100%);
  --grad-section:   linear-gradient(180deg, #0A0A0B 0%, #111115 100%);

  /* Spacing & Sizing */
  --header-h:       72px;
  --section-pad:    6rem;
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;

  /* Transitions */
  --ease-smooth:    cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:       200ms;
  --dur-normal:     350ms;
  --dur-slow:       600ms;

  /* Shadows */
  --shadow-card:    0 8px 32px rgba(0,0,0,0.45);
  --shadow-gold:    0 0 24px rgba(201,168,76,0.3);
  --shadow-red:     0 0 24px rgba(192,57,43,0.4);
  --shadow-hover:   0 20px 60px rgba(0,0,0,0.6);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--black-stage);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ── */
.font-display  { font-family: 'Playfair Display', serif; }
.font-literary { font-family: 'Cormorant Garamond', serif; }

h1, h2, h3, .heading { font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1.15; }

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before, .section-label::after {
  content: '';
  display: block;
  height: 1px;
  width: 32px;
  background: var(--grad-gold);
  opacity: 0.7;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.75rem;
}

.section-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-top: 0.9rem;
  line-height: 1.75;
}

.section-header { margin-bottom: 3.5rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-label { justify-content: center; }
.section-header.centered .section-subtitle { margin-left: auto; margin-right: auto; }

/* ── Layout Helpers ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) { .container { padding: 0 2.5rem; } }
@media (min-width: 1280px) { .container { padding: 0 3rem; } }

section.py-section { padding: var(--section-pad) 0; }

/* ── Gold Divider ── */
.gold-divider {
  width: 60px; height: 3px;
  background: var(--grad-gold);
  border-radius: 2px;
  margin: 1.25rem 0;
}
.gold-divider.centered { margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--dur-normal) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-smooth);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--grad-red);
  color: #fff;
  box-shadow: 0 4px 20px rgba(139,26,26,0.5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-red), 0 8px 30px rgba(139,26,26,0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-gold);
  box-shadow: inset 0 0 0 0 var(--gold);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-blue {
  background: var(--grad-blue);
  color: #fff;
  box-shadow: 0 4px 20px rgba(13,43,107,0.5);
}
.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(34,85,184,0.5), 0 8px 30px rgba(13,43,107,0.5);
}

.btn-gold {
  background: var(--grad-gold);
  color: var(--black-stage);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
}

/* ── Cards — Base ── */
.card {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--dur-normal) var(--ease-smooth),
              box-shadow var(--dur-normal) var(--ease-smooth),
              border-color var(--dur-normal) var(--ease-smooth);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-gold);
}

/* ── Image Overlay Wrapper ── */
.img-overlay-wrap {
  position: relative;
  overflow: hidden;
}
.img-overlay-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-smooth);
}
.card:hover .img-overlay-wrap img { transform: scale(1.06); }

.img-overlay-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,11,0.85) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Scroll Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-slow) var(--ease-smooth),
              transform var(--dur-slow) var(--ease-smooth);
}
.reveal.reveal-left  { transform: translateX(-30px); }
.reveal.reveal-right { transform: translateX(30px); }
.reveal.visible {
  opacity: 1;
  transform: translate(0);
}

/* stagger delay helpers */
.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }
.delay-4 { transition-delay: 400ms; }
.delay-5 { transition-delay: 500ms; }
.delay-6 { transition-delay: 600ms; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black-soft); }
::-webkit-scrollbar-thumb { background: var(--red-deep); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red-mid); }

/* ── Selection ── */
::selection { background: rgba(139,26,26,0.5); color: var(--text-primary); }

/* ── Tag / Badge ── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-red   { background: rgba(139,26,26,0.25); color: #E88; border: 1px solid rgba(139,26,26,0.4); }
.badge-blue  { background: rgba(13,43,107,0.3);  color: #7AB; border: 1px solid rgba(34,85,184,0.4); }
.badge-gold  { background: rgba(201,168,76,0.15); color: var(--gold-light); border: 1px solid var(--border-gold); }

/* ── Noise / Grain Overlay ── */
.noise-overlay::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

/* ── Spotlight Decorative ── */
.spotlight {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Grid Layouts ── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.75rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 2rem; }

@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

/* ── Gold Accent Line ── */
.gold-rule {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.4;
  margin: 0;
}

/* ── Page Transition ── */
.page-fade { animation: pageFade 0.4s var(--ease-smooth) forwards; }
@keyframes pageFade { from { opacity: 0; } to { opacity: 1; } }

/* ── Testimonial Quote ── */
.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.3;
  display: block;
  margin-bottom: -1.5rem;
}

/* ── Star Rating ── */
.stars { color: var(--gold); letter-spacing: 0.1em; font-size: 0.9rem; }

/* ── Number Stat ── */
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.4rem; letter-spacing: 0.05em; }
