/* ============================================
   Jyapu Samaj Jestha Nagarik Ananda Niketan
   Professional Stylesheet + Banner Slider
   ============================================ */

:root {
  --terracotta: #c45c3e;
  --terracotta-dark: #a3482f;
  --gold: #d4a017;
  --gold-soft: #e8b923;
  --cream: #faf6f1;
  --cream-dark: #f0e9df;
  --ink: #1e1a17;
  --text: #2c2622;
  --text-muted: #5c534c;
  --white: #ffffff;
  --border: rgba(30, 26, 23, 0.08);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --container: 1140px;
  --header-h: 78px;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(30, 26, 23, 0.08);
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  color: var(--terracotta);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 0.85rem; }
.lead { font-size: 1.1rem; color: var(--text-muted); max-width: 640px; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1.25rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.7rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(196, 92, 62, 0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.75);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--terracotta);
  border-color: var(--terracotta);
}
.btn-outline:hover {
  background: var(--terracotta);
  color: var(--white);
  transform: translateY(-2px);
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(250, 246, 241, 0.98);
  box-shadow: 0 4px 20px rgba(30, 26, 23, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo-link { display: flex; align-items: center; gap: 0.85rem; }
.logo-link img { width: 48px; height: 48px; object-fit: contain; }
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.logo-text span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.nav-links { display: flex; align-items: center; gap: 0.15rem; }
.nav-links a {
  padding: 0.5rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--terracotta); }
.nav-links a.nav-cta {
  background: var(--terracotta);
  color: var(--white) !important;
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  margin-left: 0.4rem;
}
.nav-links a.nav-cta:hover { background: var(--terracotta-dark); }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 0.4rem;
}
.menu-toggle svg { width: 26px; height: 26px; }
.nav-overlay { display: none; }

/* ========== HERO SLIDER ========== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 92vh;
  min-height: 580px;
  max-height: 860px;
  margin-top: var(--header-h);
  overflow: hidden;
  background: #1a1614;
}
.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 1s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}
.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.08);
  transition: transform 9s ease-out;
}
.slide.active .slide-bg {
  transform: scale(1);
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26, 22, 20, 0.88) 0%,
    rgba(26, 22, 20, 0.62) 42%,
    rgba(26, 22, 20, 0.28) 100%
  );
}
.slide-overlay.darker {
  background: linear-gradient(
    105deg,
    rgba(26, 22, 20, 0.9) 0%,
    rgba(26, 22, 20, 0.7) 45%,
    rgba(26, 22, 20, 0.4) 100%
  );
}
.slide-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  padding-top: 1rem;
  padding-bottom: 3rem;
}
.slide-eyebrow {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(28px);
  transition: all 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}
.slide.active .slide-eyebrow {
  opacity: 1;
  transform: translateY(0);
}
.slide-title {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 5.5vw, 3.9rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 1.1rem;
  max-width: 720px;
  opacity: 0;
  transform: translateY(32px);
  transition: all 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}
.slide.active .slide-title {
  opacity: 1;
  transform: translateY(0);
}
.slide-punchline {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-style: italic;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1rem;
  max-width: 580px;
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.55s;
}
.slide.active .slide-punchline {
  opacity: 1;
  transform: translateY(0);
}
.slide-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin-bottom: 1.8rem;
  opacity: 0;
  transform: translateY(22px);
  transition: all 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.68s;
}
.slide.active .slide-desc {
  opacity: 1;
  transform: translateY(0);
}
.slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.8s;
}
.slide.active .slide-actions {
  opacity: 1;
  transform: translateY(0);
}

/* Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.07);
}
.slider-arrow.prev { left: 1.5rem; }
.slider-arrow.next { right: 1.5rem; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.55rem;
}
.slider-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: all 0.35s ease;
}
.slider-dots button.active {
  background: var(--gold-soft);
  width: 26px;
  border-radius: 10px;
}
.slider-dots button:hover:not(.active) {
  background: rgba(255, 255, 255, 0.7);
}

/* Progress bar */
.slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 20;
}
.slider-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gold-soft);
  transition: width 0.1s linear;
}

/* Sections */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--cream-dark); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .lead { margin: 0.6rem auto 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.vision-band {
  padding: 4.5rem 0;
  background: var(--ink);
  color: var(--white);
  text-align: center;
}
.vision-band blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  max-width: 720px;
  margin: 0 auto 1rem;
  color: var(--white);
}
.vision-band .support {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(30, 26, 23, 0.1);
}
.card-icon { font-size: 1.8rem; margin-bottom: 0.9rem; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.55; }

.phases { display: flex; flex-direction: column; gap: 1.25rem; }
.phase-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.phase-status {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: var(--white);
  padding: 1.2rem 0.5rem;
}
.phase-status.live { background: #2d8a4e; }
.phase-status.planned { background: var(--gold); color: var(--ink); }
.phase-status.future { background: #6b6560; }
.phase-body { padding: 1.4rem 1.6rem; }
.phase-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.phase-badge {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: rgba(45, 138, 78, 0.15);
  color: #1e6b3a;
}
.phase-badge.planned-badge {
  background: rgba(212, 160, 23, 0.2);
  color: #9a6b00;
}
.phase-body p { margin-bottom: 0.6rem; font-size: 0.95rem; }
.phase-body a { font-size: 0.9rem; font-weight: 600; color: var(--terracotta); }
.phase-body a:hover { text-decoration: underline; }

.day-list { margin-bottom: 1.6rem; }
.day-list li { padding: 0.4rem 0; color: var(--text-muted); font-size: 0.98rem; }

.cta-band {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--terracotta) 0%, #a3482f 100%);
  color: var(--white);
  text-align: center;
}
.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 0.8rem;
}
.cta-band p {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 540px;
  margin: 0 auto 1.8rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.cta-band .btn-primary {
  background: var(--white);
  color: var(--terracotta);
  border-color: var(--white);
}
.cta-band .btn-primary:hover {
  background: var(--cream);
  border-color: var(--cream);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.cta-band .btn-secondary { border-color: rgba(255, 255, 255, 0.7); }
.cta-band .btn-secondary:hover {
  background: var(--white);
  color: var(--terracotta);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand img { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.footer-brand h3 { font-size: 1.1rem; color: var(--white); margin-bottom: 0.4rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.5; opacity: 0.75; }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}
.footer-col ul li { margin-bottom: 0.45rem; }
.footer-col a {
  font-size: 0.9rem;
  opacity: 0.75;
  transition: opacity var(--transition), color var(--transition);
}
.footer-col a:hover { opacity: 1; color: var(--gold-soft); }
.footer-bottom { padding: 1.5rem 0; text-align: center; }
.footer-bottom p { font-size: 0.85rem; opacity: 0.65; line-height: 1.6; }

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col .photo-frame { order: -1; }
}
@media (max-width: 768px) {
  :root { --header-h: 70px; }
  .menu-toggle { display: block; z-index: 1002; }
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(26, 22, 20, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
  }
  .nav-overlay.open { opacity: 1; visibility: visible; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: min(300px, 82vw);
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 5.5rem 1.8rem 2rem;
    gap: 0.3rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1001;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { width: 100%; padding: 0.75rem 0; font-size: 1.05rem; }
  .nav-links a.nav-cta { margin: 0.8rem 0 0; text-align: center; justify-content: center; }

  .hero-slider { height: 78vh; min-height: 500px; }
  .slide-content {
    text-align: center;
    align-items: center;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .slide-title, .slide-punchline, .slide-desc { margin-left: auto; margin-right: auto; }
  .slide-actions { justify-content: center; }
  .slider-arrow { width: 42px; height: 42px; }
  .slider-arrow.prev { left: 0.75rem; }
  .slider-arrow.next { right: 0.75rem; }
  .slider-dots { bottom: 1.6rem; }
  .phase-card { grid-template-columns: 90px 1fr; }
  .section { padding: 4rem 0; }
}
@media (max-width: 540px) {
  .slide-actions { flex-direction: column; width: 100%; }
  .slide-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .phase-card { grid-template-columns: 1fr; }
  .phase-status { padding: 0.8rem; }
}
