/* ============================================
   RAM KINKAR SHAHI MEMORIAL FOUNDATION
   Design: Warm Saffron + Deep Navy + Ivory
   Typography: Playfair Display + Inter
   ============================================ */

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

:root {
  --saffron:     #E8700A;
  --saffron-lt:  #F5A44A;
  --saffron-bg:  #FEF3E7;
  --navy:        #1B2A4A;
  --navy-md:     #2D4270;
  --ivory:       #FAF7F2;
  --white:       #FFFFFF;
  --text-dark:   #1C1C1E;
  --text-mid:    #4A4A5A;
  --text-light:  #8A8A9A;
  --border:      #E6E0D8;
  --gold-line:   #C9943A;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 24px rgba(27,42,74,0.09);
  --shadow-lift: 0 12px 40px rgba(27,42,74,0.16);

  --max-w: 1180px;
  --section-pad: 96px 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--ivory);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--saffron); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--saffron);
  color: var(--white);
  border-color: var(--saffron);
}
.btn-primary:hover {
  background: #C65E00;
  border-color: #C65E00;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,112,10,0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}
.btn-full { width: 100%; text-align: center; }

/* ---- SECTION HEADERS ---- */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 12px;
}
.section-eyebrow.light { color: var(--saffron-lt); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title.light { color: var(--white); }

.section-intro {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 580px;
  margin-bottom: 56px;
}

/* ============================
   NAVBAR
   ============================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(27,42,74,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.3); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo {
  /*width: 46px;*/
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--saffron);
}
.nav-title-group {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.nav-sub {
  font-size: 0.68rem;
  color: var(--saffron-lt);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--saffron-lt); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--navy);
  padding: 16px 24px 24px;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,0.85);
  padding: 12px 0;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================
   HERO
   ============================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #0E1A30 50%, #1a2a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(232,112,10,0.12) 0%, transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(45,66,112,0.5) 0%, transparent 50%);
  pointer-events: none;
}

/* Decorative saffron stripe — the signature element */
.hero::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(to bottom, var(--saffron), var(--saffron-lt), transparent);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  background: rgba(232,112,10,0.15);
  border: 1px solid rgba(232,112,10,0.4);
  color: var(--saffron-lt);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
}
.hero-title-main {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
}
.hero-title-sub {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 400;
  color: var(--saffron-lt);
  letter-spacing: 0.04em;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.72);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* ============================
   INFO STRIP
   ============================ */
.info-strip {
  background: var(--saffron);
  padding: 20px 24px;
}
.strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}
.strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.strip-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.strip-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}
.strip-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.3);
}

/* ============================
   ABOUT
   ============================ */
.about {
  padding: var(--section-pad);
  background: var(--ivory);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}
.about-text p {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-contact-block {
  margin-top: 32px;
  padding: 24px;
  background: var(--white);
  border-left: 4px solid var(--saffron);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
}
.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-mid);
}
.ci-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.contact-line a { color: var(--saffron); font-weight: 500; }

.about-logo-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.about-logo {
  /*width: 220px;*/
  height: 220px;
  object-fit: contain;
  border-radius: 50%;
  border: 6px solid var(--saffron-bg);
  box-shadow: var(--shadow-lift);
}

/* ============================
   LEGACY
   ============================ */
.legacy {
  background: var(--navy);
  padding: var(--section-pad);
  position: relative;
  overflow: hidden;
}
.legacy-bg-pattern {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(232,112,10,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.legacy-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 72px;
  align-items: start;
  margin-top: 8px;
}
.legacy-portrait-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.portrait-frame {
  width: 240px;
  height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 4px solid rgba(232,112,10,0.4);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: contrast(1.05);
}
.portrait-caption { text-align: center; }
.portrait-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.portrait-years {
  display: block;
  font-size: 0.8rem;
  color: var(--saffron-lt);
  letter-spacing: 0.08em;
}

.legacy-quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--saffron-lt);
  border-left: 3px solid var(--saffron);
  padding-left: 20px;
  margin-bottom: 28px;
  line-height: 1.5;
}
.legacy-text p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.legacy-closing {
  font-style: italic;
  color: rgba(255,255,255,0.55) !important;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  margin-top: 8px;
}

/* ============================
   MISSION
   ============================ */
.mission {
  padding: var(--section-pad);
  background: var(--white);
}
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.mission-card {
  padding: 32px 28px;
  background: var(--ivory);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all .3s;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  overflow: hidden;
}
.mission-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--saffron-lt));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.mission-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
  border-color: rgba(232,112,10,0.25);
}
.mission-card:hover::before { transform: scaleX(1); }
.mission-card.visible { opacity: 1; transform: translateY(0); }

.mission-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.mission-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.mission-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ============================
   TEAM
   ============================ */
.team {
  padding: var(--section-pad);
  background: var(--saffron-bg);
}
.team-grid {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--white);
  padding: 36px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: all .3s;
  min-width: 240px;
}
.team-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-6px);
}
.team-photo-wrap {
  width: 140px;
  height: 160px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 3px solid var(--saffron-bg);
  box-shadow: 0 8px 24px rgba(232,112,10,0.2);
}
.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.team-info { text-align: center; }
.team-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.team-role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saffron);
  background: var(--saffron-bg);
  padding: 4px 14px;
  border-radius: 100px;
}

/* ============================
   CONTACT
   ============================ */
.contact {
  padding: var(--section-pad);
  background: var(--ivory);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-card {
  background: var(--white);
  padding: 24px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--saffron-bg);
}
.contact-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.8;
}
.contact-card a { color: var(--saffron); }

/* ---- CONTACT FORM ---- */
.contact-form-wrap {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--border);
}
.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 28px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--ivory);
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(232,112,10,0.12);
  background: var(--white);
}
.form-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: #2E7D32;
  text-align: center;
  min-height: 20px;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--navy);
  padding: 48px 24px 32px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.footer-logo {
  /*width: 52px;*/
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(232,112,10,0.4);
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}
.footer-cin {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-top: 3px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color .2s;
}
.footer-links a:hover { color: var(--saffron-lt); }
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-logo-wrap { justify-content: flex-start; }
  .legacy-grid { grid-template-columns: 1fr; }
  .legacy-portrait-wrap { flex-direction: row; gap: 28px; align-items: center; justify-content: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  :root { --section-pad: 64px 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .strip-divider { display: none; }
  .strip-inner { gap: 12px; }
  .legacy-portrait-wrap { flex-direction: column; }
  .contact-form-wrap { padding: 28px 20px; }
  .hero-title-main { font-size: 2.4rem; }
}

@media (max-width: 480px) {
  .mission-grid { grid-template-columns: 1fr; }
  .team-grid { flex-direction: column; align-items: center; }
}

/* ============================
   SCROLL ANIMATIONS
   ============================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}