/* ============================================
   MCI Lakshya Charitable Trust - Stylesheet
   Brand theme: navy lead, red & green accents
   ============================================ */

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

:root {
  --primary: #1B2A6B;          /* navy blue - brand (Ashoka Chakra) */
  --primary-dark: #131F4F;
  --accent: #E21F26;            /* red - brand wordmark "MCI" */
  --accent-dark: #C01820;
  --green: #3AA935;             /* green - brand wordmark "LAKSHYA" */
  --green-dark: #2E8A2A;
  --text: #242938;
  --muted: #5E6680;
  --bg: #ffffff;
  --bg-soft: #EAF2FA;           /* light sky blue */
  --bg-alt: #DBE8F4;
  --border: #D9E2EC;
  --shadow: 0 2px 8px rgba(20,30,80,0.07);
  --shadow-lg: 0 8px 24px rgba(20,30,80,0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --max-width: 1140px;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0.6em;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1em; color: var(--text); }

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

/* ============ Header / Nav ============ */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-weight: 700;
}

.logo-link img { height: 66px; width: auto; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title { font-size: 1.42rem; color: var(--primary); font-weight: 700; }
.logo-sub { font-size: 0.82rem; color: var(--muted); font-weight: 600; letter-spacing: 1px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  font-size: 1.5rem;
  color: var(--primary);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: center;
}

.nav-list a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.nav-list a:hover,
.nav-list a.active { background: var(--bg-soft); color: var(--primary); }

.nav-list .nav-cta a {
  background: linear-gradient(135deg, #E8302F 0%, #C01820 100%);
  color: white;
  margin-left: 8px;
  box-shadow: 0 3px 10px rgba(226,31,38,0.32);
}
.nav-list .nav-cta a:hover { background: linear-gradient(135deg, #C01820 0%, #9E1014 100%); color: white; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #243A8F 0%, #131F4F 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(27,42,107,0.30);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #131F4F 0%, #0E1638 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(27,42,107,0.42);
}

.btn-accent {
  background: linear-gradient(135deg, #E8302F 0%, #C01820 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(226,31,38,0.32);
}
.btn-accent:hover {
  background: linear-gradient(135deg, #C01820 0%, #9E1014 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 7px 22px rgba(226,31,38,0.46);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }

.btn-large { padding: 16px 36px; font-size: 1.05rem; }

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, #EAF3FB 0%, #CADFF1 100%);
  padding: 80px 0 70px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-logo { width: 130px; margin: 0 auto 24px; }

.hero h1 {
  font-size: 2.6rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 28px;
  font-weight: 500;
}

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ Sections ============ */
.section { padding: 70px 0; }
.section-alt { background: linear-gradient(180deg, #EFF5FB 0%, #DBE8F4 100%); }

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 { color: var(--primary); margin-bottom: 10px; }
.section-header p {
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-header .accent-line {
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  margin: 14px auto 18px;
  border-radius: 2px;
}

/* ============ Mission strip ============ */
.mission-strip { background: var(--bg); padding: 60px 0; }
.mission-strip .container { max-width: 900px; text-align: center; }
.mission-strip p { font-size: 1.1rem; color: var(--text); line-height: 1.8; }

/* ============ Stats ============ */
.stats {
  background: linear-gradient(120deg, #16224F 0%, #243A8F 55%, #1B2A6B 100%);
  color: white;
  padding: 50px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-num {
  font-size: 2.4rem;
  font-weight: 700;
  color: white;
  display: block;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}

/* ============ Cards ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #DCEAF5, #C3DCEF);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  color: var(--primary);
}

.card h3 { color: var(--primary); margin-bottom: 8px; }

.card .who-serves {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

/* ============ Gallery ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--bg-alt);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

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

.gallery-item .caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: white;
  padding: 30px 14px 12px;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.2s;
}

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

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
}

/* ============ Events / Timeline ============ */
.event-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 26px;
}

.event-item img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }

.event-content { padding: 28px; }

.event-date {
  display: inline-block;
  background: var(--bg-soft);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.event-content h3 { color: var(--primary); }

/* ============ Donate ============ */
.donate-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.amount-btn {
  padding: 14px;
  background: var(--bg-soft);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  transition: all 0.2s;
}

.amount-btn:hover { background: var(--bg-alt); }
.amount-btn.selected { background: var(--primary); color: white; border-color: var(--primary); }

.bank-details {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 22px;
  margin-top: 24px;
}

.bank-details h4 { color: var(--primary); margin-bottom: 12px; }

.bank-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.bank-row:last-child { border-bottom: none; }
.bank-row span:first-child { color: var(--muted); }
.bank-row span:last-child { font-weight: 600; }

.tax-info {
  background: #F0F8EC;
  border-left: 4px solid var(--green);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  margin-top: 22px;
  font-size: 0.95rem;
}

/* ============ Forms ============ */
.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.form-row { margin-bottom: 18px; }

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--primary);
  font-size: 1rem;
}

.form-row label .req { color: var(--accent); }

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-row textarea { min-height: 120px; resize: vertical; }

.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.contact-card h3 { color: var(--primary); font-size: 1.1rem; }
.contact-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 6px; }

/* ============ Footer ============ */
.site-footer {
  background: #141E48;
  color: #D0D0D0;
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  color: white;
  margin-bottom: 14px;
  font-size: 1rem;
}

.footer-grid p, .footer-grid li {
  color: #B8C0D4;
  font-size: 0.9rem;
  margin-bottom: 6px;
  list-style: none;
}

.footer-grid a { color: #B8C0D4; }
.footer-grid a:hover { color: var(--accent); }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-logo img { width: 46px; }
.footer-logo span { color: white; font-weight: 600; }

.footer-bottom {
  border-top: 1px solid #2A3566;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #8B93AD;
}

.social-links { display: flex; gap: 10px; margin-top: 12px; }
.social-links a {
  width: 36px;
  height: 36px;
  background: #2A3566;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.95rem;
}
.social-links a:hover { background: var(--accent); color: white; }

/* ============ Page heading band ============ */
.page-heading {
  background: linear-gradient(135deg, #16245C 0%, #243A8F 55%, #1B2A6B 100%);
  padding: 58px 0 48px;
  text-align: center;
}

.page-heading h1 { color: #ffffff; }
.page-heading p { color: rgba(255,255,255,0.9); margin: 0; }

/* ============ About / founder ============ */
.founder-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  align-items: start;
}

.founder-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--muted);
  overflow: hidden;
}

.founder-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.founder-name { color: var(--primary); font-size: 1.5rem; margin-bottom: 4px; }
.founder-role { color: var(--accent); font-weight: 600; margin-bottom: 14px; font-size: 0.95rem; }

/* ============ Focus areas ============ */
.focus-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 30px 0;
}

.focus-item {
  background: var(--bg);
  border-left: 4px solid var(--green);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-weight: 500;
}

/* ============ Trustees & Team ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

.team-member {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.team-member:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.tm-avatar {
  width: 62px;
  height: 62px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #243A8F, #1B2A6B);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.tm-name { color: var(--primary); font-weight: 700; font-size: 1.35rem; }

/* ============ Placeholder note ============ */
.placeholder-note {
  background: #FFF3CD;
  border-left: 4px solid #FFB300;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: #6B4F00;
  margin: 16px 0;
}

/* ============ Responsive ============ */
@media (max-width: 860px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .hero h1 { font-size: 1.9rem; }
  .hero { padding: 60px 0 50px; }
  .section { padding: 50px 0; }

  .nav-toggle { display: block; }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    border-top: 1px solid var(--border);
    padding: 12px 0;
    box-shadow: var(--shadow-lg);
  }

  .nav-list.open { display: flex; }
  .nav-list a { display: block; padding: 12px 24px; }
  .nav-list .nav-cta a { margin: 8px 24px 0; text-align: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .founder-card { grid-template-columns: 1fr; text-align: center; }
  .founder-photo { margin: 0 auto; }

  .event-item { grid-template-columns: 1fr; }
  .event-item img { min-height: 200px; }

  .form-row-grid { grid-template-columns: 1fr; }

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

  .donate-card, .form-card { padding: 24px; }
}

@media (max-width: 480px) {
  .logo-title { font-size: 1.15rem; }
  .logo-sub { font-size: 0.72rem; }
  .logo-link img { height: 54px; }
  .stat-num { font-size: 1.9rem; }
}

/* ============ Floating WhatsApp button ============ */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.28);
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(0,0,0,0.35);
}
.whatsapp-float svg { width: 33px; height: 33px; display: block; }
