/* =========================================================
   SARV DHARMA - colorful, responsive devotional theme (v3)
   ========================================================= */

:root {
  --saffron: #ff7a18;
  --saffron-2: #ffb347;
  --maroon: #6b0f1a;
  --maroon-2: #3e0a12;
  --gold: #f5c451;
  --gold-2: #b8860b;
  --teal: #0f766e;
  --teal-2: #2dd4bf;
  --rose: #e11d74;
  --cream: #fff8ee;
  --paper: #ffffff;
  --ink: #2b1b14;
  --muted: #6f5a4d;
  --line: #f3e1c4;
  --radius: 18px;
  --shadow: 0 14px 34px rgba(107, 15, 26, 0.12);
  --shadow-lg: 0 24px 60px rgba(62, 10, 18, 0.28);
  --header-h: 84px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Noto Sans Devanagari", "Noto Sans", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 179, 71, 0.18), transparent 35%),
    radial-gradient(circle at 100% 20%, rgba(45, 212, 191, 0.14), transparent 35%),
    radial-gradient(circle at 50% 100%, rgba(245, 196, 81, 0.16), transparent 40%),
    var(--cream);
  overflow-x: hidden;
}

body.lb-open { overflow: hidden; }

h1, h2, h3 {
  font-family: "Noto Serif Devanagari", "Noto Serif", Georgia, serif;
  color: var(--maroon);
  line-height: 1.3;
  margin: 0 0 0.55em;
}

h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.05rem); }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.3rem); }

p { margin: 0 0 1em; }

a { color: var(--saffron); font-weight: 600; }
a:hover { color: var(--rose); }

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

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.muted { color: var(--muted); }
.small-note { font-size: 0.92rem; color: var(--muted); }
.center { text-align: center; }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(100deg, var(--maroon-2) 0%, var(--maroon) 55%, #8a2a0f 100%);
  box-shadow: 0 6px 20px rgba(62, 10, 18, 0.25), inset 0 -3px 0 var(--gold);
}

.nav-wrap {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }

.brand-logo {
  height: 66px;
  width: auto;
  transition: transform 0.3s ease;
}

.brand:hover .brand-logo { transform: rotate(-2deg) scale(1.03); }

.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #fff1d6;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 9px 13px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
}

.nav-links a:hover { background: rgba(245, 196, 81, 0.18); color: var(--gold); }

.nav-links a[aria-current="page"] {
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  color: var(--maroon-2);
}

.nav-links a.nav-donate {
  background: var(--gold);
  color: var(--maroon-2);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--gold);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  margin: 6px 6px 6px 0;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-primary {
  background: linear-gradient(90deg, var(--saffron), #ff4d6d);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 90, 40, 0.35);
}

.btn-primary:hover { color: #fff; }

.btn-gold {
  background: linear-gradient(90deg, var(--gold), var(--saffron-2));
  color: var(--maroon-2);
}

.btn-gold:hover { color: var(--maroon-2); }

.btn-outline {
  border-color: var(--maroon);
  color: var(--maroon);
  background: transparent;
}

.btn-outline:hover { background: var(--maroon); color: #fff; }

.btn-light {
  border-color: #fff3dc;
  color: #fff3dc;
  background: rgba(255, 255, 255, 0.06);
}

.btn-light:hover { background: #fff3dc; color: var(--maroon); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 72px 0 84px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 122, 24, 0.55), transparent 40%),
    radial-gradient(circle at 88% 30%, rgba(45, 212, 191, 0.35), transparent 42%),
    radial-gradient(circle at 60% 110%, rgba(245, 196, 81, 0.35), transparent 45%),
    linear-gradient(135deg, #3e0a12 0%, #6b0f1a 50%, #9a3412 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.6;
  pointer-events: none;
}

.hero::before {
  width: 360px; height: 360px;
  top: -120px; left: -100px;
  background: radial-gradient(circle, rgba(255, 179, 71, 0.5), transparent 70%);
  animation: float 9s ease-in-out infinite;
}

.hero::after {
  width: 420px; height: 420px;
  bottom: -160px; right: -120px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.4), transparent 70%);
  animation: float 11s ease-in-out infinite reverse;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--maroon-2);
  background: linear-gradient(90deg, var(--gold), var(--saffron-2));
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  color: #fff7e6;
  font-size: clamp(2rem, 5.2vw, 3.3rem);
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.3);
}

.hero h1 .gold {
  display: block;
  background: linear-gradient(90deg, #ffe38a, #ffb347);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  font-size: 1.12rem;
  color: #ffe9c4;
  max-width: 580px;
  margin-top: 14px;
}

.hero .sat {
  font-family: "Noto Serif Devanagari", Georgia, serif;
  font-size: 1.4rem;
  color: var(--gold);
  margin: 12px 0 22px;
}

.hero-photo-wrap {
  position: relative;
  width: min(420px, 82vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--gold);
  box-shadow: 0 0 0 14px rgba(245, 196, 81, 0.16), var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.hero-wheel {
  position: absolute;
  inset: -34px;
  width: calc(100% + 68px);
  height: calc(100% + 68px);
  animation: spin 40s linear infinite;
  opacity: 0.55;
  z-index: 0;
}

.hero-badge {
  position: absolute;
  z-index: 2;
  background: #fff;
  color: var(--maroon);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}

.hero-badge.b1 { top: 6%; left: -4%; animation: float 6s ease-in-out infinite; }
.hero-badge.b2 { bottom: 8%; right: -6%; animation: float 7s ease-in-out infinite reverse; color: var(--teal); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 4px; }

/* ---------- Quote band ---------- */
.band {
  background: linear-gradient(90deg, var(--saffron) 0%, var(--gold) 50%, var(--saffron-2) 100%);
  color: var(--maroon-2);
  padding: 26px 0;
  text-align: center;
  font-family: "Noto Serif Devanagari", Georgia, serif;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  font-weight: 700;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.band small {
  display: block;
  font-family: "Noto Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 6px;
  opacity: 0.85;
}

/* ---------- Sections ---------- */
section { padding: 70px 0; position: relative; }

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 248, 238, 0.4));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.section-head { text-align: center; margin-bottom: 36px; }

.section-head p { color: var(--muted); max-width: 660px; margin: 0 auto; }

.ornament {
  display: block;
  width: 84px;
  height: 5px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--saffron), var(--gold), var(--teal-2));
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.photo-frame {
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
  border: 6px solid #fff;
}

/* ---------- Stat chips ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.stat {
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-family: "Noto Serif Devanagari", Georgia, serif;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  line-height: 1.2;
}

.stat span { font-size: 0.92rem; opacity: 0.95; }

.stat.s1 { background: linear-gradient(135deg, #ff7a18, #ff4d6d); }
.stat.s2 { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.stat.s3 { background: linear-gradient(135deg, #6b0f1a, #b8860b); }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
}

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

.card .icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.card .icon svg { width: 28px; height: 28px; }

.c-saffron { background: linear-gradient(135deg, #ff9a3c, #ff4d6d); }
.c-teal { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.c-gold { background: linear-gradient(135deg, #f5c451, #b8860b); }
.c-rose { background: linear-gradient(135deg, #e11d74, #7c3aed); }

.card:nth-child(2)::before { background: linear-gradient(90deg, var(--teal), var(--teal-2)); }
.card:nth-child(3)::before { background: linear-gradient(90deg, var(--rose), var(--saffron)); }
.card:nth-child(4)::before { background: linear-gradient(90deg, var(--maroon), var(--gold)); }

.card a.more {
  display: inline-block;
  margin-top: 6px;
  text-decoration: none;
  font-weight: 700;
}

/* ---------- Teaching posters ---------- */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.poster-grid figure {
  margin: 0;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-grid figure:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.poster-grid img { width: 100%; height: auto; }

.poster-grid figcaption {
  padding: 14px 18px 18px;
  font-size: 0.95rem;
  color: var(--muted);
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--saffron), var(--gold), var(--teal-2)) 1;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}

.gallery figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--paper);
  transition: transform 0.25s ease;
}

.gallery figure:hover { transform: scale(1.02); }

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  cursor: zoom-in;
  transition: filter 0.25s ease;
}

.gallery img:hover { filter: saturate(1.15) brightness(1.05); }

/* Lightbox */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20, 5, 8, 0.94);
  backdrop-filter: blur(4px);
}

.lb.open { display: flex; flex-direction: column; animation: fadeIn 0.2s ease; }

.lb-frame {
  position: relative;
  width: min(92vw, 1100px);
  height: min(74vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border: 3px solid rgba(245, 196, 81, 0.6);
}

.lb-caption {
  margin-top: 14px;
  color: #ffe9c4;
  text-align: center;
  font-size: 0.95rem;
  max-width: 900px;
}

.lb-count {
  position: absolute;
  top: 18px;
  left: 20px;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
}

.lb-btn {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: rgba(107, 15, 26, 0.85);
  color: var(--gold);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lb-btn:hover { background: var(--saffron); color: #fff; transform: scale(1.08); }

.lb-close { top: 14px; right: 16px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.08); }

.lb-hint {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 233, 196, 0.7);
  font-size: 0.82rem;
}

.lb-frame img.swap { animation: fadeIn 0.25s ease; }

/* ---------- Page title band ---------- */
.page-title {
  position: relative;
  overflow: hidden;
  padding: 58px 0 50px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 15% 30%, rgba(255, 179, 71, 0.5), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(45, 212, 191, 0.35), transparent 45%),
    linear-gradient(120deg, var(--maroon-2), var(--maroon) 55%, #9a3412);
  border-bottom: 4px solid var(--gold);
}

.page-title h1 { color: #fff7e6; margin-bottom: 8px; }
.page-title p { color: #ffe9c4; margin: 0 auto; max-width: 680px; }
.page-title a { color: var(--gold); font-size: 0.95rem; }

/* ---------- Quotes ---------- */
.quote {
  position: relative;
  background: linear-gradient(135deg, #fff, #fff4df);
  border-left: 6px solid var(--saffron);
  padding: 22px 26px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: "Noto Serif Devanagari", Georgia, serif;
  font-style: normal;
  color: var(--maroon);
  margin: 22px 0;
  box-shadow: var(--shadow);
}

.lead-quote {
  font-family: "Noto Serif Devanagari", Georgia, serif;
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  color: var(--maroon);
  max-width: 640px;
  padding-left: 18px;
  border-left: 5px solid var(--teal-2);
}

/* ---------- Tables & info boxes ---------- */
.life-table,
table.bank {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: table;
}

.life-table th,
.life-table td,
table.bank th,
table.bank td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.life-table th,
table.bank th {
  width: 36%;
  color: var(--maroon);
  background: linear-gradient(90deg, #fff1d6, #fff8ee);
}

.life-table tr:last-child th,
.life-table tr:last-child td,
table.bank tr:last-child th,
table.bank tr:last-child td { border-bottom: none; }

.objective-list {
  counter-reset: obj;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.objective-list li {
  counter-increment: obj;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px 20px 74px;
  position: relative;
  box-shadow: var(--shadow);
}

.objective-list li::before {
  content: counter(obj);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--saffron), var(--rose));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(225, 29, 116, 0.25);
}

.objective-list li:nth-child(even)::before { background: linear-gradient(135deg, var(--teal), var(--teal-2)); }

.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.rules-box {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--saffron);
}

.rules-box:last-child { border-top-color: var(--teal); }

.rules-box ol { padding-left: 22px; margin: 0; }
.rules-box li { margin-bottom: 6px; }

.post {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border-left: 6px solid var(--gold);
}

.post .date {
  display: inline-block;
  color: #fff;
  background: linear-gradient(90deg, var(--teal), var(--teal-2));
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.note {
  background: linear-gradient(90deg, #fff1d6, #ffe6c2);
  border-left: 5px solid var(--saffron);
  padding: 16px 18px;
  border-radius: 0 12px 12px 0;
  font-size: 0.97rem;
  margin-top: 18px;
}

.donate-box {
  background: var(--paper);
  border-radius: 24px;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: var(--shadow-lg);
  max-width: 760px;
  margin: 0 auto;
  border-top: 6px solid var(--gold);
}

.contact-list { list-style: none; padding: 0; margin: 0; }

.contact-list li {
  padding: 16px 18px;
  margin-bottom: 12px;
  background: var(--paper);
  border-radius: 14px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--teal);
}

.contact-list strong {
  display: block;
  color: var(--maroon);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(90deg, var(--maroon), var(--rose));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social a:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  color: #f7e9cc;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 179, 71, 0.25), transparent 40%),
    linear-gradient(180deg, var(--maroon) 0%, var(--maroon-2) 100%);
  border-top: 4px solid var(--gold);
  padding: 56px 0 26px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-logo { height: 70px; width: auto; margin-bottom: 14px; }

.site-footer h3 {
  color: var(--gold);
  font-family: "Noto Sans Devanagari", "Noto Sans", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.site-footer p { color: #f3dcae; font-size: 0.95rem; }

.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

.footer-links a {
  color: #ffe9c4;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover { color: var(--gold); }

.footer-social { display: flex; flex-wrap: wrap; gap: 10px; }

.footer-social a {
  color: var(--maroon-2);
  background: var(--gold);
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-social a:hover { background: #fff3c4; }

.copy {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 196, 81, 0.25);
  text-align: center;
  font-size: 0.9rem;
  color: #e8cf9b;
}

/* ---------- Motion ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-links a { padding: 8px 10px; font-size: 0.9rem; }
  .brand-logo { height: 58px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .nav-toggle { display: inline-flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 14px 4% 18px;
    background: linear-gradient(180deg, var(--maroon), var(--maroon-2));
    border-top: 2px solid var(--gold);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    display: block;
    padding: 14px 16px;
    font-size: 1.02rem;
    border-radius: 12px;
  }

  .nav-wrap { position: relative; }

  .hero-grid,
  .two-col,
  .rules-grid { grid-template-columns: 1fr; }

  .hero { padding: 52px 0 64px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-photo-wrap { order: -1; width: min(300px, 70vw); }
  .hero-badge.b1 { left: 0; }
  .hero-badge.b2 { right: 0; }

  .stats { grid-template-columns: 1fr; }

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

@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .container { width: min(1140px, 92%); }

  .brand-logo { height: 46px; }

  .btn { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .btn { margin-right: 0; }

  .card { padding: 24px 20px; }

  .life-table th, .life-table td,
  table.bank th, table.bank td { display: block; width: 100%; }
  .life-table th, table.bank th { padding-bottom: 4px; border-bottom: none; }
  .life-table td, table.bank td { padding-top: 0; }

  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery img { height: 150px; }

  .objective-list li { padding: 18px 16px 18px 66px; }
  .objective-list li::before { left: 14px; width: 36px; height: 36px; }

  .lb { padding: 0; }
  .lb-frame { width: 100vw; height: 70vh; }
  .lb-frame img { border-radius: 8px; }
  .lb-btn { width: 44px; height: 44px; font-size: 1.4rem; }
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }
  .lb-count { top: 12px; left: 12px; }
  .lb-close { top: 8px; right: 8px; }
  .lb-caption { font-size: 0.88rem; padding: 0 16px; }
}

@media (max-width: 380px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 220px; }
}
