/* ============================================================
   RATNA SUNDER MAHARAJ — DESIGN SYSTEM
   Premium spiritual aesthetic: Saffron · Gold · Maroon · Ivory
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=Noto+Sans+Gujarati:wght@300;400;500;600;700&display=swap');

:root {
  --saffron: #E8891D;
  --saffron-light: #F5A623;
  --saffron-glow: rgba(232, 137, 29, 0.25);
  --gold: #C9A84C;
  --gold-light: #E2C97E;
  --gold-shimmer: rgba(201, 168, 76, 0.15);
  --maroon: #6B1D2A;
  --maroon-deep: #4A0E1A;
  --maroon-light: #8B2F40;
  --ivory: #FDF8F0;
  --ivory-warm: #F9F0E3;
  --cream: #F5EDDF;
  --white: #FFFFFF;
  --dark: #1A0A0F;
  --dark-soft: #2C1620;
  --text-primary: #2C1620;
  --text-secondary: #5A3D46;
  --text-light: #8A6B74;
  --text-on-dark: #F5EDDF;
  --border-light: rgba(107, 29, 42, 0.1);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-gujarati: 'Noto Sans Gujarati', sans-serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --max-width: 1200px;
  --nav-height: 72px;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(26, 10, 15, 0.06);
  --shadow-md: 0 4px 20px rgba(26, 10, 15, 0.1);
  --shadow-lg: 0 8px 40px rgba(26, 10, 15, 0.15);
  --shadow-gold: 0 4px 30px rgba(201, 168, 76, 0.2);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gujarati font overrides */
[lang="gu"] body,
[lang="gu"] .nav-links a,
[lang="gu"] .btn,
[lang="gu"] p,
[lang="gu"] li,
[lang="gu"] td,
[lang="gu"] th,
[lang="gu"] label,
[lang="gu"] input,
[lang="gu"] textarea,
[lang="gu"] select {
  font-family: var(--font-gujarati), var(--font-body);
}

[lang="gu"] h1,
[lang="gu"] h2,
[lang="gu"] h3,
[lang="gu"] h4,
[lang="gu"] h5,
[lang="gu"] h6 {
  font-family: var(--font-gujarati), var(--font-heading);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--ivory);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--maroon);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}

h4 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

p {
  margin-bottom: var(--space-md);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold), var(--saffron));
  z-index: 10000;
  transition: width 0.1s linear;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(253, 248, 240, 0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
  background: rgba(253, 248, 240, 0.97);
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--maroon);
  white-space: nowrap;
}

.nav-brand .brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  border-radius: 2px;
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--maroon);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ===== FLOATING LANGUAGE SWITCHER ===== */
.lang-switcher {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 0;
}

.lang-switcher-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px var(--saffron-glow), 0 0 0 0 rgba(232, 137, 29, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--white);
  transition: all var(--transition-base);
  flex-shrink: 0;
  animation: langPulse 3s ease-in-out infinite;
}

.lang-switcher-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(232, 137, 29, 0.45);
  animation: none;
}

@keyframes langPulse {

  0%,
  100% {
    box-shadow: 0 4px 20px var(--saffron-glow), 0 0 0 0 rgba(232, 137, 29, 0.3)
  }

  50% {
    box-shadow: 0 4px 20px var(--saffron-glow), 0 0 0 8px rgba(232, 137, 29, 0)
  }
}

.lang-switcher-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-base);
}

.lang-switcher.open .lang-switcher-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switcher-dropdown a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  border-bottom: 1px solid var(--border-light);
}

.lang-switcher-dropdown a:last-child {
  border-bottom: none;
}

.lang-switcher-dropdown a:hover {
  background: var(--cream);
  color: var(--maroon);
}

.lang-switcher-dropdown a.active-lang {
  background: linear-gradient(135deg, rgba(232, 137, 29, 0.08), rgba(201, 168, 76, 0.08));
  color: var(--saffron);
  font-weight: 700;
  pointer-events: none;
}

.lang-switcher-dropdown a.active-lang::after {
  content: '✓';
  margin-left: auto;
  font-size: 0.75rem;
}

/* Hide old nav-inline lang-toggle (keep for backwards compat) */
.lang-toggle {
  display: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--maroon);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
  background: linear-gradient(135deg, var(--maroon-deep) 0%, var(--maroon) 40%, var(--dark-soft) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, var(--saffron-glow) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, var(--gold-shimmer) 0%, transparent 50%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% {
    opacity: 0.6
  }

  100% {
    opacity: 1
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
}

.hero-text {
  color: var(--text-on-dark);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-md);
}

.hero-title {
  color: var(--ivory);
  margin-bottom: var(--space-lg);
  font-weight: 800;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--saffron), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(245, 237, 223, 0.85);
  margin-bottom: var(--space-2xl);
  max-width: 520px;
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--saffron), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.1;
}

.hero-stat .stat-label {
  font-size: 0.8rem;
  color: rgba(245, 237, 223, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 3/4;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px var(--saffron-glow);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-wrapper .img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--maroon-light), var(--maroon-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 0.85rem;
  text-align: center;
  padding: var(--space-lg);
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--border-radius-lg);
  pointer-events: none;
}

.hero-image::before {
  content: '';
  position: absolute;
  width: 110%;
  height: 110%;
  border: 2px solid var(--gold-shimmer);
  border-radius: 50%;
  animation: heroRing 12s linear infinite;
}

@keyframes heroRing {
  0% {
    transform: rotate(0deg)
  }

  100% {
    transform: rotate(360deg)
  }
}

/* ===== PAGE HERO (sub-pages) ===== */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + var(--space-4xl)) 0 var(--space-4xl);
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon));
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, var(--saffron-glow), transparent 70%);
  pointer-events: none;
}

.page-hero-image {
  width: 100%;
  max-width: 900px;
  height: 300px;
  margin: 0 auto var(--space-2xl);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-image .img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--maroon-light), var(--maroon-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 0.85rem;
}

.page-hero h1 {
  color: var(--ivory);
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-md);
}

.page-hero .page-hero-desc {
  color: rgba(245, 237, 223, 0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.page-hero .breadcrumb a {
  color: var(--gold-light);
  font-size: 0.85rem;
}

.page-hero .breadcrumb span {
  color: rgba(245, 237, 223, 0.5);
  font-size: 0.85rem;
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--space-4xl) 0;
}

.section-alt {
  background: var(--cream);
}

.section-dark {
  background: linear-gradient(135deg, var(--maroon-deep), var(--dark));
  color: var(--text-on-dark);
}

.section-dark h2,
.section-dark h3 {
  color: var(--ivory);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header .section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: var(--space-sm);
  display: block;
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header .section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-header .section-desc {
  color: rgba(245, 237, 223, 0.75);
}

.divider-gold {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  border-radius: 3px;
  margin: var(--space-md) auto;
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-glass {
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.card-glass:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
  border-color: var(--gold-shimmer);
}

.card-dark {
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
}

.card-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-shimmer);
  transform: translateY(-4px);
}

.card-image {
  width: 100%;
  height: 220px;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  overflow: hidden;
  margin: calc(-1 * var(--space-2xl)) calc(-1 * var(--space-2xl)) var(--space-lg);
  width: calc(100% + var(--space-2xl)*2);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-image .img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--cream), var(--ivory-warm));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.8rem;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: var(--space-lg);
}

.card h3 {
  margin-bottom: var(--space-sm);
}

.card p,
.card-glass p,
.card-dark p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.card-dark p {
  color: rgba(245, 237, 223, 0.7);
}

/* ===== GRIDS ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.content-split.reverse {
  direction: rtl;
}

.content-split.reverse>* {
  direction: ltr;
}

.content-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}

.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-image .img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: linear-gradient(135deg, var(--cream), var(--ivory-warm));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.85rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.8rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: var(--white);
  box-shadow: 0 4px 20px var(--saffron-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(232, 137, 29, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--ivory);
  border: 2px solid var(--gold-light);
}

.btn-outline:hover {
  background: var(--gold-light);
  color: var(--maroon-deep);
}

.btn-dark {
  background: var(--maroon);
  color: var(--ivory);
}

.btn-dark:hover {
  background: var(--maroon-deep);
  transform: translateY(-2px);
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding: var(--space-2xl) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--saffron), var(--gold), var(--saffron));
  border-radius: 3px;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 30px);
  padding-bottom: var(--space-3xl);
  position: relative;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 30px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  border: 3px solid var(--ivory);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.timeline-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  max-width: 450px;
  transition: all var(--transition-base);
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-xs);
}

.timeline-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.timeline-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.timeline-card-image {
  width: 100%;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  margin-top: var(--space-md);
}

.timeline-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-card-image .img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--cream), var(--ivory-warm));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.8rem;
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.gallery-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 1;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(6) {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, var(--cream), var(--ivory-warm));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.8rem;
}

.gallery-item::after {
  content: '🔍';
  position: absolute;
  inset: 0;
  background: rgba(26, 10, 15, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--border-radius);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  z-index: 10000;
  background: none;
  border: none;
}

/* ===== BOOK CARDS ===== */
.book-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

.book-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: var(--shadow-lg);
}

.book-cover {
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-cover .img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 0.85rem;
  text-align: center;
  padding: var(--space-md);
}

.book-info {
  padding: var(--space-lg);
}

.book-info h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.book-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ===== STATS ROW ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
  padding: var(--space-3xl) 0;
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.1;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

.section-dark .stat-item .stat-label {
  color: rgba(245, 237, 223, 0.7);
}

/* ===== AWARDS ===== */
.award-card {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
  margin-bottom: var(--space-xl);
}

.award-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
  border-color: var(--gold-light);
}

.award-image {
  width: 180px;
  height: 180px;
  border-radius: var(--border-radius);
  overflow: hidden;
  flex-shrink: 0;
}

.award-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.award-image .img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--cream), var(--ivory-warm));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.8rem;
  text-align: center;
}

.award-year {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--saffron);
  margin-bottom: var(--space-xs);
}

/* ===== QUOTE ===== */
.quote-block {
  position: relative;
  text-align: center;
  padding: var(--space-3xl) var(--space-2xl);
  max-width: 800px;
  margin: 0 auto;
}

.quote-block::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 6rem;
  color: var(--gold-light);
  opacity: 0.4;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}

.quote-block blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-style: italic;
  color: var(--maroon);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.section-dark .quote-block blockquote {
  color: var(--ivory);
}

.quote-block cite {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-style: normal;
  color: var(--saffron);
  font-weight: 600;
}

/* ===== CONTACT FORM ===== */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  background: var(--white);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px var(--saffron-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(245, 237, 223, 0.7);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand h3 {
  color: var(--ivory);
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(245, 237, 223, 0.6);
}

.footer h4 {
  color: var(--gold-light);
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-links a {
  display: block;
  font-size: 0.88rem;
  padding: var(--space-xs) 0;
  color: rgba(245, 237, 223, 0.6);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  font-size: 0.82rem;
  margin: 0;
}

.footer-credits {
  font-size: 0.82rem;
  text-align: right;
}

.footer-credits a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-credits a:hover {
  color: var(--saffron-light);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

.stagger-children>* {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stagger-children.visible>*:nth-child(1) {
  transition-delay: 0.1s;
}

.stagger-children.visible>*:nth-child(2) {
  transition-delay: 0.2s;
}

.stagger-children.visible>*:nth-child(3) {
  transition-delay: 0.3s;
}

.stagger-children.visible>*:nth-child(4) {
  transition-delay: 0.4s;
}

.stagger-children.visible>*:nth-child(5) {
  transition-delay: 0.5s;
}

.stagger-children.visible>*:nth-child(6) {
  transition-delay: 0.6s;
}

.stagger-children.visible>* {
  opacity: 1;
  transform: translateY(0);
}

/* ===== PAGE NAVIGATION ===== */
.page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border-light);
  margin-top: var(--space-2xl);
}

.page-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--maroon);
  transition: color var(--transition-fast);
}

.page-nav a:hover {
  color: var(--saffron);
}

.page-nav .nav-direction {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  display: block;
}

/* ===== RESPONSIVE — TABLET ===== */
@media (max-width:1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .content-split {
    gap: var(--space-2xl);
  }

  .hero-content {
    gap: var(--space-2xl);
  }
}

/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width:768px) {
  :root {
    --nav-height: 60px;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: var(--ivory);
    flex-direction: column;
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
    transition: right var(--transition-base);
    overflow-y: auto;
    z-index: 999;
    display: flex;
    gap: 0;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-links a {
    font-size: 1rem;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
    display: block;
  }

  .nav-links a::after {
    display: none;
  }

  .lang-switcher {
    top: 14px;
    right: 70px;
  }

  .lang-switcher-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .lang-toggle {
    margin: var(--space-lg) 0 0;
    align-self: flex-start;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
  }

  .nav-overlay.active {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
  }

  .hero-text {
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .hero-image-wrapper {
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image::before {
    display: none;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .content-split {
    grid-template-columns: 1fr;
  }

  .content-split.reverse {
    direction: ltr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .stat-item .stat-number {
    font-size: 2rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-right: 0;
    padding-left: 55px;
    justify-content: flex-start;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-card {
    max-width: 100%;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(6) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .award-card {
    flex-direction: column;
    text-align: center;
  }

  .award-image {
    width: 140px;
    height: 140px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-credits {
    text-align: center;
  }

  .page-hero {
    padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-md) var(--space-2xl);
  }

  .page-hero-image {
    height: 200px;
  }

  .page-nav {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .book-cover {
    height: 250px;
  }
}

@media (max-width:480px) {
  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .quote-block {
    padding: var(--space-2xl) var(--space-md);
  }

  .quote-block::before {
    font-size: 4rem;
  }
}

/* Safari iOS fixes */
@supports (-webkit-touch-callout: none) {
  .hero {
    min-height: -webkit-fill-available;
  }
}

@media screen and (max-width:768px) {

  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* ===== UTILITIES ===== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: var(--space-md);
}

.mt-2 {
  margin-top: var(--space-xl);
}

.mt-3 {
  margin-top: var(--space-2xl);
}

.mb-1 {
  margin-bottom: var(--space-md);
}

.mb-2 {
  margin-bottom: var(--space-xl);
}

.mb-3 {
  margin-bottom: var(--space-2xl);
}