/* ==========================================================================
   Kusteeveer Khashaba Jadhav Foundation — Site Stylesheet
   Theme: heritage maroon & gold, akhada-earth neutrals, tricolour accents
   ========================================================================== */

:root {
  --maroon: #6b1f1f;
  --maroon-deep: #491414;
  --maroon-ink: #33100f;
  --gold: #c08f2f;
  --gold-bright: #dcaf52;
  --gold-pale: #f0dfb6;
  --saffron: #e07b27;
  --green: #1e5b3c;
  --cream: #faf6ed;
  --sand: #f1e8d6;
  --sand-deep: #e6d9bf;
  --ink: #29211a;
  --muted: #71634f;
  --line: #ddcfae;
  --white: #fffdf8;

  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --font-dev: "Noto Sans Devanagari", "Segoe UI", sans-serif;

  --wrap: 1140px;
  --radius: 10px;
  --shadow: 0 14px 40px -18px rgba(51, 16, 15, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--maroon); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; color: var(--maroon-ink); }

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

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--maroon-deep);
  color: var(--gold-pale);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
  gap: 16px;
}
.topbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar a.crosslink {
  color: var(--gold-bright);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.topbar a.crosslink:hover { color: var(--gold-pale); text-decoration: underline; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; align-items: center; gap: 5px; white-space: nowrap; font-weight: 600; }
.lang-switch a { color: var(--gold-pale); text-decoration: none; font-weight: 600; opacity: 0.85; }
.lang-switch a:hover { opacity: 1; text-decoration: underline; }
.lang-switch .current { color: var(--gold-bright); font-weight: 700; }
.lang-switch .sep { opacity: 0.4; }
@media (max-width: 640px) { .topbar span:first-child { display: none; } }

/* Cross-site bridge banner (to the legacy archive) */
.legacy-bridge {
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(220, 175, 82, 0.14), transparent 58%),
    var(--maroon-ink);
  color: var(--cream);
  text-align: center;
}
.legacy-bridge .wrap { padding-top: 58px; padding-bottom: 62px; max-width: 820px; }
.legacy-bridge h2 { color: var(--white); font-size: clamp(1.5rem, 2.7vw, 2.1rem); margin-bottom: 14px; text-wrap: balance; }
.legacy-bridge p { color: rgba(250, 246, 237, 0.85); margin-bottom: 26px; }
.legacy-bridge .btn-row { justify-content: center; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--maroon);
  color: var(--white);
  box-shadow: 0 6px 24px -12px rgba(0, 0, 0, 0.55);
}
.site-header::after {
  /* tricolour ribbon */
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(to right,
    #e07b27 0 33.3%, #f6f1e4 33.3% 66.6%, #1e5b3c 66.6% 100%);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.brand img { width: 50px; height: 50px; flex: 0 0 auto; }
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
}
.brand-name .en {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--gold-pale);
}
.brand-name .mr {
  font-family: var(--font-dev);
  font-size: 0.78rem;
  color: rgba(240, 223, 182, 0.75);
  white-space: nowrap;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.nav a {
  color: rgba(255, 253, 248, 0.88);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.nav a:hover { background: rgba(220, 175, 82, 0.16); color: var(--gold-bright); }
.nav a.active { color: var(--gold-bright); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 6px 6px 0 0; }

.nav a.btn-donate {
  background: var(--gold);
  color: var(--maroon-ink);
  font-weight: 700;
  margin-left: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: none;
}
.nav a.btn-donate:hover { background: var(--gold-bright); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid rgba(240, 223, 182, 0.5);
  color: var(--gold-pale);
  font-size: 1.4rem;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--maroon-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 18px 18px;
    gap: 2px;
    box-shadow: 0 20px 30px -18px rgba(0, 0, 0, 0.6);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; }
  .nav a.active { box-shadow: none; }
  .nav a.btn-donate { margin: 10px 0 0; text-align: center; }
  .brand-name .en { white-space: normal; font-size: 0.98rem; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(192, 143, 47, 0.28), transparent 60%),
    radial-gradient(900px 420px at -10% 110%, rgba(224, 123, 39, 0.16), transparent 55%),
    linear-gradient(160deg, var(--maroon-ink) 0%, var(--maroon-deep) 55%, var(--maroon) 100%);
  color: var(--cream);
  overflow: hidden;
}
.hero::before {
  /* faint concentric medal rings */
  content: "";
  position: absolute;
  right: -180px;
  top: 50%;
  transform: translateY(-50%);
  width: 640px;
  height: 640px;
  border-radius: 50%;
  border: 2px solid rgba(220, 175, 82, 0.18);
  box-shadow:
    0 0 0 60px rgba(220, 175, 82, 0.05),
    0 0 0 130px rgba(220, 175, 82, 0.04),
    0 0 0 210px rgba(220, 175, 82, 0.03);
  pointer-events: none;
}
.hero .wrap { position: relative; padding-top: 88px; padding-bottom: 92px; max-width: 900px; }

.hero .kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid rgba(220, 175, 82, 0.45);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--gold-bright); }
.hero p.lead {
  font-size: 1.2rem;
  max-width: 640px;
  color: rgba(250, 246, 237, 0.88);
  margin-bottom: 34px;
}
.hero .dev-line {
  font-family: var(--font-dev);
  color: rgba(240, 223, 182, 0.85);
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 13px 28px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--maroon-ink); }
.btn-gold:hover { background: var(--gold-bright); }
.btn-ghost { border: 1.5px solid rgba(240, 223, 182, 0.6); color: var(--gold-pale); }
.btn-ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.btn-maroon { background: var(--maroon); color: var(--white); }
.btn-maroon:hover { background: var(--maroon-deep); }

/* Page hero (inner pages) */
.page-hero {
  background:
    radial-gradient(900px 380px at 90% -20%, rgba(192, 143, 47, 0.25), transparent 60%),
    linear-gradient(160deg, var(--maroon-ink) 0%, var(--maroon-deep) 60%, var(--maroon) 100%);
  color: var(--cream);
}
.page-hero .wrap { padding-top: 64px; padding-bottom: 58px; }
.page-hero .kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.page-hero h1 {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  color: var(--white);
  margin: 10px 0 12px;
  text-wrap: balance;
}
.page-hero p { max-width: 720px; color: rgba(250, 246, 237, 0.85); font-size: 1.1rem; }

/* --------------------------------------------------------------------------
   Stat band
   -------------------------------------------------------------------------- */

.stat-band { background: var(--maroon-ink); color: var(--cream); }
.stat-band .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 34px;
  padding-bottom: 38px;
}
.stat { text-align: center; padding: 0 8px; }
.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--gold-bright);
  line-height: 1.1;
}
.stat .lbl {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 246, 237, 0.75);
  margin-top: 6px;
}
@media (max-width: 860px) {
  .stat-band .wrap { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: 78px 0; }
.section.alt { background: var(--sand); }
.section.dark {
  background: linear-gradient(160deg, var(--maroon-ink), var(--maroon-deep));
  color: var(--cream);
}
.section.dark h2, .section.dark h3 { color: var(--white); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 10px;
}
.section.dark .eyebrow { color: var(--gold-bright); }

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 18px;
  text-wrap: balance;
}
.section-intro { max-width: 760px; color: var(--muted); font-size: 1.1rem; margin-bottom: 42px; }
.section.dark .section-intro { color: rgba(250, 246, 237, 0.8); }

.rule {
  width: 72px;
  height: 3px;
  background: linear-gradient(to right, var(--gold), var(--gold-pale));
  border: 0;
  margin: 0 0 22px;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .card-grid, .card-grid.two { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card a.more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--maroon);
  text-decoration: none;
}
.card a.more:hover { color: var(--saffron); }

/* Numbered objective cards */
.objective { position: relative; padding-left: 78px; }
.objective .obj-num {
  position: absolute;
  left: 24px;
  top: 30px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Split feature (image/text)
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 34px; } }

.photo-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 340px;
  background:
    repeating-linear-gradient(45deg, rgba(192, 143, 47, 0.07) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, var(--sand), var(--sand-deep));
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  padding: 26px;
}
.photo-slot .ph-icon { font-size: 2.4rem; }
.photo-slot strong { color: var(--maroon); letter-spacing: 0.06em; font-size: 0.85rem; text-transform: uppercase; }
.photo-slot span { font-size: 0.85rem; max-width: 300px; }

/* --------------------------------------------------------------------------
   Figures (photographs with captions/credits)
   -------------------------------------------------------------------------- */

.figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  border: 1px solid var(--line);
}
.figure img { width: 100%; display: block; }
.figure figcaption {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  padding: 10px 16px;
  background: var(--white);
  border-top: 3px solid var(--gold);
}
.figure figcaption .credit { display: block; font-size: 0.72rem; opacity: 0.75; }
.split .figure img { min-height: 300px; max-height: 460px; object-fit: cover; }
.two-col .figure img { max-height: 520px; object-fit: cover; }
.gallery-grid .figure img { height: 230px; object-fit: cover; }
.card .figure { margin-bottom: 18px; }
.card .figure img { height: 200px; object-fit: cover; }

/* --------------------------------------------------------------------------
   Quote
   -------------------------------------------------------------------------- */

.quote-band {
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(220, 175, 82, 0.12), transparent 55%),
    var(--maroon-deep);
  color: var(--cream);
  text-align: center;
}
.quote-band .wrap { padding-top: 70px; padding-bottom: 70px; max-width: 860px; }
.quote-band blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-style: italic;
  color: var(--gold-pale);
  text-wrap: balance;
}
.quote-band cite {
  display: block;
  margin-top: 20px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 246, 237, 0.7);
}

/* --------------------------------------------------------------------------
   Compliance table
   -------------------------------------------------------------------------- */

.info-table { width: 100%; border-collapse: collapse; background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.info-table th, .info-table td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th {
  width: 38%;
  background: var(--sand);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--maroon);
}
.info-table td { font-size: 0.98rem; color: var(--ink); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { border-bottom: 0; padding-bottom: 4px; }
  .info-table td { padding-top: 4px; }
}

/* --------------------------------------------------------------------------
   Accordion (MOA details)
   -------------------------------------------------------------------------- */

details.accordion {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
details.accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 700;
  color: var(--maroon);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.accordion summary::-webkit-details-marker { display: none; }
details.accordion summary::after { content: "+"; font-size: 1.4rem; color: var(--gold); flex: 0 0 auto; }
details.accordion[open] summary::after { content: "–"; }
details.accordion .acc-body { padding: 0 22px 20px; color: var(--muted); font-size: 0.97rem; }

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-grid .photo-slot { min-height: 240px; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background:
    radial-gradient(800px 320px at 85% 120%, rgba(224, 123, 39, 0.25), transparent 60%),
    linear-gradient(150deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  color: var(--cream);
  text-align: center;
}
.cta-band .wrap { padding-top: 72px; padding-bottom: 76px; max-width: 820px; }
.cta-band h2 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; text-wrap: balance; }
.cta-band p { color: rgba(250, 246, 237, 0.85); margin-bottom: 30px; }
.cta-band .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { background: var(--maroon-ink); color: rgba(250, 246, 237, 0.8); font-size: 0.93rem; }
.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(to right,
    #e07b27 0 33.3%, #f6f1e4 33.3% 66.6%, #1e5b3c 66.6% 100%);
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding: 54px 0 40px;
}
@media (max-width: 900px) { .footer-cols { grid-template-columns: 1fr; gap: 30px; } }

.footer-brand { display: flex; align-items: flex-start; gap: 14px; }
.footer-brand img { width: 62px; height: 62px; }
.footer-brand .fb-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--gold-pale); }
.footer-brand .fb-mr { font-family: var(--font-dev); font-size: 0.9rem; color: rgba(240, 223, 182, 0.7); }
.footer-brand p { margin-top: 10px; font-size: 0.88rem; color: rgba(250, 246, 237, 0.65); }

.site-footer h4 {
  color: var(--gold-bright);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(250, 246, 237, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); }

.footer-legal {
  border-top: 1px solid rgba(240, 223, 182, 0.16);
  padding: 20px 0 26px;
  font-size: 0.8rem;
  color: rgba(250, 246, 237, 0.55);
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */

.note {
  background: var(--gold-pale);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  font-size: 0.95rem;
  color: var(--maroon-ink);
}
.center { text-align: center; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--gold-bright);
  color: var(--maroon-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(51, 16, 15, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s ease;
  z-index: 500;
}
.back-to-top svg { width: 22px; height: 22px; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover, .back-to-top:focus-visible { background: var(--gold-pale); }
@media (max-width: 640px) {
  .back-to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
  .back-to-top svg { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0.15s ease, visibility 0.15s; }
}
