/* ==========================================================================
   Mukta Seva Foundation — Theme Stylesheet
   Palette reference: dark forest green header/footer + warm orange accent,
   cream section backgrounds, editorial photography hero.
   ========================================================================== */

:root {
  --color-green-dark: #123a2f;
  --color-green-darker: #0c2921;
  --color-orange: #f2a13a;
  --color-orange-dark: #e08a1e;
  --color-cream: #fbf8f2;
  --color-cream-2: #f4efe6;
  --color-ink: #1d2420;
  --color-body: #5c6560;
  --color-white: #ffffff;
  --color-border: #e7e1d5;
  --color-footer: #1b1b1b;
  --color-teal: #2fa792;
  --color-red: #e1543f;

  --font-display: "Poppins", "Noto Sans Devanagari", "Segoe UI", Arial, sans-serif;
  --font-body: "Mulish", "Noto Sans Devanagari", "Segoe UI", Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --shadow-card: 0 14px 34px rgba(18, 58, 47, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-body);
  background: var(--color-white);
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-ink);
  font-weight: 700;
  margin: 0 0 .6rem;
  line-height: 1.25;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-block;
  color: var(--color-orange-dark);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .82rem;
  margin-bottom: .5rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--color-orange);
  margin-right: 8px;
  vertical-align: middle;
}

.section { padding: 72px 0; }
.section--cream { background: var(--color-cream); }
.section--tight { padding: 48px 0; }

.text-center { text-align: center; }
.section-head { max-width: 640px; margin: 0 auto 46px; }
.section-head.text-center .eyebrow::before { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 4px;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
}
.btn-primary {
  background: var(--color-orange);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-orange-dark); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.55);
  color: var(--color-white);
}
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-dark {
  background: var(--color-green-dark);
  color: var(--color-white);
}
.btn-dark:hover { background: var(--color-green-darker); }
.btn-block { width: 100%; justify-content: center; }

/* ===== Top utility bar ===== */
.topbar {
  background: var(--color-green-darker);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-info .icon { color: var(--color-orange); }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem;
}
.topbar-social a:hover { background: var(--color-orange); }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.2); font-weight: 700; font-size: .78rem; }
.lang-switch span { color: rgba(255,255,255,.4); }
.lang-switch a { color: rgba(255,255,255,.65); }
.lang-switch a.active { color: var(--color-orange); }
.lang-switch a:hover { color: var(--color-white); }

/* ===== Main navbar ===== */
.navbar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 50;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); }
.brand img { height: 46px; width: auto; }
.brand-text { line-height: 1.15; }
.brand-text strong { display: block; font-size: 1.05rem; color: var(--color-green-dark); }
.brand-text small { color: var(--color-orange-dark); font-weight: 700; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }

.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
  font-weight: 600;
  font-size: .88rem;
  color: var(--color-ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--color-orange-dark); border-color: var(--color-orange); }

.navbar-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--color-green-dark); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(12,41,33,.55), rgba(12,41,33,.78)), var(--color-green-darker);
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 2px, transparent 2px 40px);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 620px; }
.hero .eyebrow { color: var(--color-orange); }
.hero .eyebrow::before { background: var(--color-orange); }
.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}
.hero h1 span { color: var(--color-orange); }
.hero p { color: rgba(255,255,255,.85); max-width: 480px; margin-bottom: 1.8rem; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-avatars { display: flex; align-items: center; }
.hero-avatars span {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--color-green-darker);
  margin-left: -12px;
  background: var(--color-orange);
  color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
  overflow: hidden;
}
.hero-avatars span:first-child { margin-left: 0; }
.hero-image-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.35);
  font-size: .8rem;
  border: 1px dashed rgba(255,255,255,.15);
  z-index: 1;
}

/* ===== Intro / "You're the Hope of Others" split ===== */
.split {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.split-media {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--color-cream-2);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-body);
  font-size: .85rem;
  text-align: center;
  padding: 20px;
  overflow: hidden;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
/* Signature diamond/torn photo shape, as in the reference design */
.split-media.diamond {
  clip-path: polygon(38% 0%, 100% 0%, 100% 62%, 62% 100%, 0% 100%, 0% 38%);
  border-style: solid;
  border-color: var(--color-orange);
  border-width: 3px;
  background: repeating-linear-gradient(135deg, var(--color-cream-2) 0 14px, #efe8d9 14px 28px);
}
.split-content .contact-inline {
  display: flex; gap: 26px; margin-top: 26px; flex-wrap: wrap; align-items: center;
}
.contact-inline .ci-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-cream-2);
  color: var(--color-orange-dark);
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 10px; font-weight: 700;
  flex-shrink: 0;
}
.contact-inline > div { display: flex; align-items: center; }
.contact-inline small { display: block; color: var(--color-body); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.contact-inline strong { color: var(--color-ink); }

/* ===== Stats row (cream, dividers — matches reference) ===== */
.stats-band { background: var(--color-white); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.stats-grid > div {
  border-left: 1px solid var(--color-border);
  padding: 6px 10px;
}
.stats-grid > div:first-child { border-left: none; }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--color-orange-dark); font-family: var(--font-display); }
.stat-label { color: var(--color-body); font-size: .82rem; margin-top: 4px; }

/* ===== Cards grid (services / causes / projects) ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(18,58,47,.14); }
.card-media {
  aspect-ratio: 16/10;
  background: var(--color-cream-2);
  border-bottom: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-body);
  font-size: .78rem;
  text-align: center;
  padding: 10px;
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; }
.card-body h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.card-body p { font-size: .9rem; margin-bottom: 0; }
.read-more {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  font-size: .82rem;
  color: var(--color-orange-dark);
  border-bottom: 1px solid var(--color-orange-dark);
}
.read-more:hover { color: var(--color-green-dark); border-color: var(--color-green-dark); }

/* service card (icon style) */
.service-card { padding: 30px 24px; text-align: left; }
.service-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--color-cream-2);
  color: var(--color-orange-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* progress bar for causes/projects */
.progress-wrap { padding: 0 22px 22px; }
.progress-meta { display: flex; justify-content: space-between; font-size: .78rem; color: var(--color-body); margin-bottom: 6px; }
.progress-meta strong { color: var(--color-ink); }
.progress-track { height: 7px; background: var(--color-cream-2); border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--color-orange); border-radius: 10px; }
/* Cycle accent colors across cards, matching the reference (orange / teal / red) */
.grid-3 > *:nth-child(3n+1) .progress-fill,
.grid-3 > *:nth-child(3n+1) .event-date-badge { background: var(--color-orange); }
.grid-3 > *:nth-child(3n+2) .progress-fill,
.grid-3 > *:nth-child(3n+2) .event-date-badge { background: var(--color-teal); }
.grid-3 > *:nth-child(3n+3) .progress-fill,
.grid-3 > *:nth-child(3n+3) .event-date-badge { background: var(--color-red); }
.grid-3 > *:nth-child(3n+1) .testimonial-quote { color: var(--color-orange); }
.grid-3 > *:nth-child(3n+2) .testimonial-quote { color: var(--color-teal); }
.grid-3 > *:nth-child(3n+3) .testimonial-quote { color: var(--color-red); }
.status-pill {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--color-cream-2);
  color: var(--color-green-dark);
  margin-bottom: 10px;
}
.status-pill.completed { background: rgba(46,125,50,.12); color: #2e7d32; }

/* photo strip */
.photo-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.photo-strip .ph {
  aspect-ratio: 1/1;
  background: var(--color-cream-2);
  border: 1px dashed var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; color: var(--color-body); text-align: center; padding: 6px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.photo-strip .ph img { width: 100%; height: 100%; object-fit: cover; }

/* testimonials */
.testimonial-card { background: var(--color-white); border-radius: var(--radius-md); padding: 30px 26px; position: relative; border: 1px solid var(--color-border); text-align: left; }
.testimonial-quote {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--color-cream-2);
  color: var(--color-orange);
  font-size: 1.3rem; font-weight: 800; font-family: var(--font-display);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.testimonial-person { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--color-border); }
.avatar-placeholder {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-cream-2);
  border: 1px dashed var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; color: var(--color-body);
  flex-shrink: 0;
}
.testimonial-person strong { display: block; color: var(--color-ink); font-size: .92rem; }
.testimonial-person span { font-size: .78rem; color: var(--color-orange-dark); }

/* events */
.event-card { position: relative; }
.event-date-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--color-orange); /* overridden by the color-cycle rule above */
  color: var(--color-white);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  line-height: 1.1;
  box-shadow: 0 8px 16px rgba(0,0,0,.15);
}
.event-date-badge .d { display: block; font-size: 1.15rem; font-weight: 800; font-family: var(--font-display); }
.event-date-badge .m { display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: .04em; }
.event-meta { display: flex; gap: 14px; font-size: .8rem; color: var(--color-body); margin: 8px 0 10px; flex-wrap: wrap; }

/* team */
.team-card { text-align: center; padding: 26px 18px; }
.team-photo {
  width: 110px; height: 110px; border-radius: 50%;
  background: var(--color-cream-2);
  border: 2px dashed var(--color-border);
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; color: var(--color-body); text-align: center; padding: 8px;
}
.team-card h3 { font-size: 1rem; margin-bottom: 2px; }
.team-card span { color: var(--color-orange-dark); font-size: .82rem; font-weight: 600; }
.team-social { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.team-social a {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--color-cream-2);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: var(--color-green-dark);
}
.team-social a:hover { background: var(--color-orange); color: var(--color-white); }

/* CTA donation band */
.cta-band {
  background: linear-gradient(180deg, rgba(12,58,47,.82), rgba(12,41,33,.90)), var(--color-green-dark) center/cover;
  color: var(--color-white);
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band.has-photo { background-image: linear-gradient(180deg, rgba(12,58,47,.82), rgba(12,41,33,.90)), var(--cta-photo, none); background-size: cover; background-position: center; }
.cta-band h2 { color: var(--color-white); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 520px; margin: 0 auto 24px; }
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 40px);
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }

/* Page banner (interior pages) */
.page-banner {
  background: linear-gradient(180deg, rgba(12,41,33,.72), rgba(12,41,33,.82)), var(--color-green-darker);
  color: var(--color-white);
  padding: 70px 0 50px;
  text-align: center;
}
.page-banner h1 { color: var(--color-white); margin-bottom: 8px; }
.breadcrumb { color: rgba(255,255,255,.7); font-size: .85rem; }
.breadcrumb a { color: var(--color-orange); }

/* Footer */
.site-footer { background: var(--color-footer); color: rgba(255,255,255,.7); }
.footer-top { padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { color: var(--color-white); font-size: 1rem; margin-bottom: 18px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a:hover { color: var(--color-orange); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { height: 42px; }
.footer-brand strong { color: var(--color-white); font-family: var(--font-display); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-white); font-size: .8rem;
}
.footer-social a:hover { background: var(--color-orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  font-size: .82rem;
}
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a:hover { color: var(--color-orange); }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* Forms */
.form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 34px;
  box-shadow: var(--shadow-card);
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; font-size: .85rem; color: var(--color-ink); margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .92rem;
  background: var(--color-cream);
}
.form-control:focus { outline: none; border-color: var(--color-orange); background: var(--color-white); }
textarea.form-control { min-height: 130px; resize: vertical; }
.field-error { color: #c0392b; font-size: .78rem; margin-top: 4px; display: block; }
.alert-success {
  background: rgba(46,125,50,.1);
  border: 1px solid rgba(46,125,50,.3);
  color: #256029;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  font-weight: 600;
}
.validation-summary-errors ul { margin: 0; padding-left: 18px; color: #c0392b; font-size: .85rem; }

/* Donation info panels */
.donate-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.donate-methods .card-body ul { margin-top: 10px; }
.donate-methods .card-body li { font-size: .86rem; margin-bottom: 6px; padding-left: 18px; position: relative; }
.donate-methods .card-body li::before { content: "\2713"; position: absolute; left: 0; color: var(--color-orange-dark); font-weight: 700; }

.bank-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.bank-table td { padding: 10px 14px; border-bottom: 1px solid var(--color-border); }
.bank-table td:first-child { color: var(--color-body); width: 45%; }
.bank-table td:last-child { color: var(--color-ink); font-weight: 700; }

/* map */
.map-embed {
  width: 100%;
  aspect-ratio: 16/7;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* Registration badges (footer of about page) */
.reg-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.reg-badge {
  background: var(--color-cream-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: .8rem;
}
.reg-badge strong { display: block; color: var(--color-green-dark); font-size: .85rem; }

/* Responsive */
@media (max-width: 1150px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: .82rem; }
}
@media (max-width: 991px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-strip { grid-template-columns: repeat(3, 1fr); }
  .donate-methods { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .nav-links { position: fixed; top: 0; right: -100%; height: 100vh; width: 270px; background: var(--color-white); flex-direction: column; padding: 90px 26px; gap: 20px; transition: right .25s ease; box-shadow: -10px 0 30px rgba(0,0,0,.1); }
  .nav-links.open { right: 0; }
  .nav-toggle { display: block; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 460px; text-align: left; }
  .topbar-info { display: none; }
}
