/* ===========================
   STOKA KRISHNA SWAMI
   Structured Wisdom & Disciplined Clarity
   =========================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* ISKCON-Based Structured Palette */
  --cream:           #FAF5EC;
  --cream-light:     #FEFCF8;
  --cream-dark:      #F0E8D8;
  --saffron:         #D4832F;
  --saffron-light:   #E89F50;
  --saffron-muted:   #F2D5B0;
  --saffron-bg:      #FBF0E2;
  --deep-blue:       #1A2E4A;
  --deep-blue-light: #2B4570;
  --deep-blue-dark:  #0F1E33;
  --gold:            #B8962E;
  --gold-light:      #D4B44A;
  --gold-muted:      #E8D89C;
  --text-primary:    #1C1C1C;
  --text-secondary:  #4A4A4A;
  --text-muted:      #7A7A7A;
  --text-light:      #FFFFFFEE;
  --white:           #FFFFFF;
  --border:          #E0D8CC;
  --border-light:    #EDE8E0;
  --shadow-sm:       0 1px 3px rgba(26,46,74,0.06);
  --shadow-md:       0 4px 12px rgba(26,46,74,0.08);
  --shadow-lg:       0 8px 30px rgba(26,46,74,0.12);
  --shadow-xl:       0 16px 50px rgba(26,46,74,0.16);

  /* Typography */
  --font-heading:    'Cormorant Garamond', 'Libre Baskerville', Georgia, serif;
  --font-body:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent:     'Libre Baskerville', Georgia, serif;

  /* Spacing Scale (8px base) */
  --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;

  /* Grid */
  --container-max:   1200px;
  --container-narrow: 800px;
  --grid-gap:        2rem;

  /* Transitions */
  --ease-smooth:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:        cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast:   0.2s;
  --duration-normal: 0.35s;
  --duration-slow:   0.6s;

  /* Borders */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
}

/* ---------- 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: var(--font-body);
  color: var(--text-primary);
  background-color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--deep-blue);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}
a:hover {
  color: var(--saffron);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--deep-blue);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: clamp(1.05rem, 2vw, 1.25rem); }

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--saffron);
  display: inline-block;
  margin-bottom: var(--space-3);
}

.section-title {
  margin-bottom: var(--space-6);
}

.section-subtitle {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-muted);
  max-width: 600px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

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

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

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
}

/* ---------- Entry Portal ---------- */
.entry-portal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.entry-portal.portal-exit {
  opacity: 0;
  transform: translateY(-40px);
  pointer-events: none;
}

.entry-portal-inner {
  text-align: center;
  max-width: 460px;
  width: 100%;
  padding: var(--space-12);
  position: relative;
}

.entry-portal-frame {
  border: 1px solid var(--border);
  padding: var(--space-16) var(--space-12);
  position: relative;
}

.entry-portal-frame::before,
.entry-portal-frame::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--saffron-muted);
}
.entry-portal-frame::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
  border-color: var(--saffron);
}
.entry-portal-frame::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid;
  border-right: 2px solid;
  border-color: var(--saffron);
}

.entry-logo-mark {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--saffron), transparent);
  margin: 0 auto var(--space-8);
}

.entry-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--deep-blue);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.entry-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--deep-blue-dark);
  margin-bottom: var(--space-8);
}

.entry-divider {
  width: 60px;
  height: 1px;
  background: var(--saffron-muted);
  margin: 0 auto var(--space-8);
}

.entry-instruction {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.entry-input-wrap {
  position: relative;
  margin-bottom: var(--space-4);
}

.entry-input {
  width: 100%;
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-align: center;
  color: var(--deep-blue);
  background: var(--cream-light);
  border: 1px solid var(--border);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-smooth), box-shadow var(--duration-fast) var(--ease-smooth);
}

.entry-input:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(212,131,47,0.1);
}

.entry-input.shake {
  animation: shake 0.5s ease;
}

.entry-btn {
  display: inline-block;
  padding: var(--space-3) var(--space-10);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--white);
  background: var(--deep-blue);
  border: none;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-smooth), transform var(--duration-fast) var(--ease-smooth);
}

.entry-btn:hover {
  background: var(--deep-blue-light);
  transform: translateY(-1px);
}

.entry-error {
  font-size: 0.85rem;
  color: #B44;
  margin-top: var(--space-3);
  min-height: 1.2em;
  transition: opacity var(--duration-fast);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-4) 0;
  background: rgba(250,245,236,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.nav.scrolled {
  padding: var(--space-3) 0;
  border-bottom-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--deep-blue);
  letter-spacing: 0.06em;
  text-decoration: none;
}

.nav-brand:hover { color: var(--deep-blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  position: relative;
  padding: var(--space-1) 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--saffron);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--deep-blue);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Nav Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--deep-blue);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250,245,236,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--deep-blue);
  letter-spacing: 0.06em;
}

.nav-mobile a:hover {
  color: var(--saffron);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--cream);
  overflow: hidden;
  padding-top: 80px;
}

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

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

.hero-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--saffron);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hero-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--saffron);
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 700;
  color: var(--deep-blue-dark);
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.hero-subtitle {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  max-width: 440px;
  line-height: 1.7;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 460px;
  line-height: 1.8;
  margin-bottom: var(--space-10);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-image-wrap {
  position: relative;
}

.hero-image {
  width: 100%;
  height: 580px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.hero-image-accent {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--saffron-muted);
  border-radius: var(--radius-sm);
  z-index: -1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.btn-primary {
  background: var(--deep-blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--deep-blue-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--deep-blue);
  border: 1px solid var(--deep-blue);
}
.btn-outline:hover {
  background: var(--deep-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-saffron {
  background: var(--saffron);
  color: var(--white);
}
.btn-saffron:hover {
  background: var(--saffron-light);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: var(--space-8);
  transition: all var(--duration-normal) var(--ease-smooth);
}

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

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--saffron-bg);
  color: var(--saffron);
  font-size: 1.2rem;
  margin-bottom: var(--space-5);
}

.card-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--saffron-muted);
  margin-bottom: var(--space-3);
  line-height: 1;
}

.card h3 {
  margin-bottom: var(--space-3);
  font-size: 1.2rem;
}

.card p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ---------- Section Styles ---------- */
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-saffron-light { background: var(--saffron-bg); }
.bg-blue { background: var(--deep-blue); color: var(--text-light); }
.bg-blue h2, .bg-blue h3, .bg-blue h4 { color: var(--white); }
.bg-blue .section-label { color: var(--gold-light); }
.bg-blue p { color: rgba(255,255,255,0.75); }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Divider */
.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--saffron-muted), var(--saffron), var(--saffron-muted));
  margin: var(--space-6) auto;
}

.divider-left {
  margin-left: 0;
}

/* ---------- Page Header ---------- */
.page-header {
  background: var(--deep-blue);
  padding: calc(80px + var(--space-20)) 0 var(--space-20);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,46,74,0.95), rgba(15,30,51,0.98));
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: var(--space-4);
}

.page-header p {
  color: rgba(255,255,255,0.65);
  font-family: var(--font-accent);
  font-style: italic;
  max-width: 500px;
  margin: 0 auto;
}

.page-header .section-label {
  color: var(--gold-light);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding: var(--space-8) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: start;
  margin-bottom: var(--space-12);
  position: relative;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: var(--saffron);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 1px var(--saffron-muted);
  border-radius: 50%;
  justify-self: center;
  margin-top: var(--space-2);
}

.timeline-content {
  background: var(--white);
  padding: var(--space-6);
  border: 1px solid var(--border-light);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--saffron);
  margin-bottom: var(--space-2);
}

.timeline-item:nth-child(odd) .timeline-content {
  grid-column: 1;
  text-align: right;
}

.timeline-item:nth-child(odd) .timeline-dot {
  grid-column: 2;
}

.timeline-item:nth-child(odd)::after {
  grid-column: 3;
  content: '';
}

.timeline-item:nth-child(even) .timeline-content {
  grid-column: 3;
}

.timeline-item:nth-child(even) .timeline-dot {
  grid-column: 2;
}

.timeline-item:nth-child(even)::before {
  grid-column: 1;
  content: '';
}

/* ---------- Gallery Grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,30,51,0.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-4);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-smooth);
}

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

.gallery-overlay span {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---------- Events List ---------- */
.event-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: var(--space-6);
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-light);
  align-items: center;
  transition: background var(--duration-fast);
}

.event-item:hover {
  background: var(--saffron-bg);
}

.event-date {
  text-align: center;
}

.event-date .day {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--saffron);
  line-height: 1;
}

.event-date .month {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.event-info h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-2);
}

.event-info p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.event-tag {
  padding: var(--space-1) var(--space-4);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--saffron-bg);
  color: var(--saffron);
  border: 1px solid var(--saffron-muted);
  white-space: nowrap;
}

/* ---------- Blog Cards ---------- */
.blog-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  transition: all var(--duration-normal) var(--ease-smooth);
  overflow: hidden;
}

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

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

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

.blog-card-meta {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--saffron);
  margin-bottom: var(--space-3);
}

.blog-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.9rem;
  margin-bottom: var(--space-4);
}

.read-more {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--deep-blue);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.read-more::after {
  content: '→';
  transition: transform var(--duration-fast);
}

.read-more:hover::after {
  transform: translateX(4px);
}

/* ---------- Contact Form ---------- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--cream-light);
  border: 1px solid var(--border);
  outline: none;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(212,131,47,0.1);
}

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

/* ---------- Footer ---------- */
.footer {
  background: var(--deep-blue-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--space-16) 0 var(--space-8);
}

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

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: var(--space-4);
}

.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--saffron-light);
  margin-bottom: var(--space-5);
}

.footer-col ul {
  list-style: none;
}

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

.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: color var(--duration-fast);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin-bottom: var(--space-6);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-credit {
  font-size: 0.82rem;
}

.footer-credit a {
  color: var(--saffron-light);
  font-weight: 500;
}
.footer-credit a:hover {
  color: var(--saffron);
}

.footer-contact-line {
  font-size: 0.82rem;
}

.footer-contact-line a {
  color: rgba(255,255,255,0.6);
}
.footer-contact-line a:hover {
  color: var(--white);
}

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

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: all var(--duration-fast);
}

.footer-social a:hover {
  border-color: var(--saffron);
  color: var(--saffron);
  transform: translateY(-2px);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Stat Bar ---------- */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  text-align: center;
  padding: var(--space-12) 0;
}

.stat-item h3 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--saffron);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-item p {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Stat bar in blue section */
.bg-blue .stat-item h3 { color: var(--gold-light); }
.bg-blue .stat-item p { color: rgba(255,255,255,0.6); }

/* ---------- Quote Block ---------- */
.quote-block {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  position: relative;
}

.quote-block::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 6rem;
  color: var(--saffron-muted);
  position: absolute;
  top: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}

.quote-text {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--deep-blue);
  max-width: 700px;
  margin: 0 auto var(--space-6);
  line-height: 1.6;
}

.quote-author {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--saffron);
}

/* ---------- Feature Box ---------- */
.feature-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 500px;
}

.feature-box-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.feature-box-content {
  padding: var(--space-16) var(--space-12);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-box-content h2 {
  margin-bottom: var(--space-4);
}

.feature-box-content p {
  margin-bottom: var(--space-6);
}

/* ---------- Offering Card ---------- */
.offering-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-smooth);
  position: relative;
}

.offering-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--saffron);
  opacity: 0;
  transition: opacity var(--duration-normal), width var(--duration-normal);
}

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

.offering-card:hover::before {
  opacity: 1;
  width: 60px;
}

.offering-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--saffron-bg);
  color: var(--saffron);
  font-size: 1.5rem;
  border-radius: 50%;
}

.offering-card h3 {
  margin-bottom: var(--space-3);
}

.offering-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero-image { height: 400px; }
  .hero-content { padding: var(--space-8) 0 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-box { grid-template-columns: 1fr; }
  .feature-box-image { min-height: 300px; }
  .feature-box-content { padding: var(--space-10) var(--space-6); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .timeline::before { left: 20px; }
  .timeline-item {
    grid-template-columns: 40px 1fr;
  }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    grid-column: 2;
    text-align: left;
  }
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    grid-column: 1;
  }
  .timeline-item:nth-child(odd)::after,
  .timeline-item:nth-child(even)::before {
    display: none;
  }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .event-item { grid-template-columns: 80px 1fr; }
  .event-tag { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: var(--space-16) 0; }
  .page-header { padding: calc(80px + var(--space-12)) 0 var(--space-12); }
  .hero { min-height: auto; padding-bottom: var(--space-8); }
}

@media (max-width: 480px) {
  .stat-bar { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
  .entry-portal-frame { padding: var(--space-10) var(--space-6); }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15,30,51,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.lightbox-close:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* ---------- Contact Info Card ---------- */
.contact-info-card {
  background: var(--deep-blue);
  padding: var(--space-10);
  color: var(--text-light);
}

.contact-info-card h3 {
  color: var(--white);
  margin-bottom: var(--space-6);
}

.contact-info-item {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  align-items: flex-start;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--saffron-light);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-1);
}

.contact-info-text p,
.contact-info-text a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.contact-info-text a:hover {
  color: var(--saffron-light);
}

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

.contact-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  transition: all var(--duration-fast);
}

.contact-social a:hover {
  border-color: var(--saffron);
  color: var(--saffron);
  transform: translateY(-2px);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.8rem;
  margin-bottom: var(--space-4);
}

.breadcrumb a {
  color: rgba(255,255,255,0.5);
}

.breadcrumb a:hover {
  color: rgba(255,255,255,0.8);
}

.breadcrumb span {
  color: rgba(255,255,255,0.3);
  margin: 0 var(--space-2);
}

/* ---------- Tab Navigation ---------- */
.tab-nav {
  display: flex;
  gap: var(--space-1);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-8);
  overflow-x: auto;
}

.tab-btn {
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--deep-blue);
}

.tab-btn.active {
  color: var(--deep-blue);
  border-bottom-color: var(--saffron);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Decorative ---------- */
.ornament {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  color: var(--saffron-muted);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
}

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