/* ==========================================================================
   Leo Animal Foundation — shared stylesheet
   Mobile-first. No frameworks. Edit colour tokens in :root.
   ========================================================================== */

:root {
  --green: #315C43;
  --green-deep: #234532;
  --green-ink: #17301f;
  --cream: #FFF9F0;
  --beige: #F0E8DA;
  --gold: #E9AE45;
  --gold-soft: #fdf0d6;
  --gold-ink: #7a5410;
  --text: #303630;
  --muted: #555e56;
  --white: #FFFFFF;
  --error: #b3261e;
  --success: #1f6b3d;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 12px 32px rgba(35, 69, 50, 0.12);
  --shadow-sm: 0 4px 14px rgba(35, 69, 50, 0.08);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --maxw: 1180px;
  --header-h: 68px;
  --paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23315C43' fill-opacity='0.06'%3E%3Cellipse cx='40' cy='52' rx='13' ry='11'/%3E%3Cellipse cx='27' cy='36' rx='5' ry='6.5'/%3E%3Cellipse cx='36' cy='27' rx='5' ry='6.5'/%3E%3Cellipse cx='47' cy='27' rx='5' ry='6.5'/%3E%3Cellipse cx='55' cy='37' rx='5' ry='6.5'/%3E%3Cellipse cx='92' cy='100' rx='9' ry='7.5'/%3E%3Cellipse cx='83' cy='89' rx='3.5' ry='4.5'/%3E%3Cellipse cx='89' cy='83' rx='3.5' ry='4.5'/%3E%3Cellipse cx='96' cy='83' rx='3.5' ry='4.5'/%3E%3Cellipse cx='102' cy='89' rx='3.5' ry='4.5'/%3E%3C/g%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--green-deep);
  line-height: 1.18;
  margin: 0 0 0.55em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 1000;
  background: var(--green-deep); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { left: 12px; color: #fff; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-family: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(49, 92, 67, .25); }
.btn-primary:hover { background: var(--green-deep); color: #fff; }
.btn-gold { background: var(--gold); color: #2b2414; box-shadow: 0 6px 16px rgba(233, 174, 69, .3); }
.btn-gold:hover { background: #f0bb5c; color: #2b2414; }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-light { background: #fff; color: var(--green-deep); }
.btn-light:hover { background: var(--cream); color: var(--green-deep); }
.btn-ghost-light { border-color: rgba(255,255,255,.85); color: #fff; background: rgba(255,255,255,.06); }
.btn-ghost-light:hover { background: #fff; color: var(--green-deep); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .94rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.text-link { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.text-link svg { width: 18px; height: 18px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 249, 240, .95);
  -webkit-backdrop-filter: saturate(1.2) blur(8px); backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid rgba(49, 92, 67, .1);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-deep); min-width: 0; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; line-height: 1.15; }
.brand-name small { display: block; font-family: var(--font-body); font-size: .72rem; color: var(--muted); font-weight: 500; letter-spacing: .01em; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.primary-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  text-decoration: none; color: var(--text); font-weight: 500; font-size: .97rem;
}
.primary-nav a:hover { background: var(--beige); color: var(--green-deep); }
.primary-nav a[aria-current="page"] { color: var(--green); background: rgba(49, 92, 67, .09); font-weight: 600; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(49,92,67,.25);
  background: #fff; cursor: pointer; padding: 0;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 20px; height: 2px; background: var(--green-deep); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease; position: relative;
}
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023px) {
  .primary-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    background: var(--cream); border-bottom: 1px solid rgba(49,92,67,.12);
    box-shadow: 0 16px 30px rgba(35,69,50,.12);
    padding: 10px 20px 22px; display: none;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav a { padding: 14px 12px; font-size: 1.06rem; border-bottom: 1px solid rgba(49,92,67,.07); }
}
@media (max-width: 420px) {
  .brand-name small { display: none; }
  .brand-name { font-size: 1rem; }
  .header-donate { padding: 8px 14px; }
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .primary-nav { margin-left: auto; }
  .header-actions { margin-left: 8px; }
}

/* ---------- Hero ---------- */
.eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--gold-ink); margin-bottom: 14px;
}
.hero {
  position: relative; color: #fff; overflow: hidden; background: var(--green-deep);
  min-height: min(88vh, 720px); display: flex; align-items: center;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(23,48,31,.55) 0%, rgba(23,48,31,.88) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: .9;
  background-image: var(--paw); background-size: 140px; mix-blend-mode: screen; filter: invert(1);
}
.hero .container { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 72px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; max-width: 14ch; }
.hero-lead { font-size: clamp(1.05rem, 1.7vw, 1.25rem); max-width: 56ch; color: rgba(255,255,255,.93); }
.hero-location {
  display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 28px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  padding: 7px 16px; border-radius: 999px; font-size: .95rem; font-weight: 500;
}
.hero-location svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 760px) {
  .hero::after { background: linear-gradient(90deg, rgba(23,48,31,.92) 0%, rgba(23,48,31,.7) 48%, rgba(23,48,31,.12) 100%); }
}

.page-hero { min-height: 400px; }
.page-hero .container { padding-top: 64px; padding-bottom: 64px; }
.page-hero h1 { max-width: 20ch; }
.page-hero .hero-lead { margin-bottom: 0; }
.page-hero.plain { background: var(--green-deep); min-height: 300px; }
.page-hero.plain::after { display: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 8vw, 104px) 0; position: relative; }
.section-cream { background: var(--cream); }
.section-beige { background: var(--beige); }
.section-white { background: #fff; }
.section-paws { background-color: var(--cream); background-image: var(--paw); background-size: 150px; }
.section-green { background: var(--green-deep); color: rgba(255,255,255,.9); }
.section-green h2, .section-green h3 { color: #fff; }
.section-green .eyebrow { color: var(--gold); }
.section-head { max-width: 740px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-green .section-head p { color: rgba(255,255,255,.82); }

.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 880px) {
  .split { grid-template-columns: 1.05fr .95fr; }
  .split.reverse > :first-child { order: 2; }
}
.media-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; background: var(--beige); }
.media-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media-frame::after {
  content: ""; position: absolute; right: -18px; bottom: -18px; width: 110px; height: 110px;
  border-radius: 28px; background: var(--gold); opacity: .18; z-index: -1;
}
.lead { font-size: 1.12rem; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: #fff; border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(49,92,67,.08);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); }
.card .card-action { margin-top: auto; padding-top: 18px; }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(49,92,67,.1); color: var(--green); margin-bottom: 18px; flex: none;
}
.card-icon svg { width: 28px; height: 28px; }
.card-icon.gold { background: var(--gold-soft); color: var(--gold-ink); }
.card-media { margin: -28px -28px 22px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--beige); }
.card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink);
  margin-bottom: 12px;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.section-label { display: flex; justify-content: center; margin-bottom: 14px; }

/* Pillars */
.pillars { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { padding: 30px 28px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.pillar .card-icon { background: rgba(233,174,69,.18); color: var(--gold); }
.pillar p { color: rgba(255,255,255,.82); }
.fine-print { font-size: .88rem; opacity: .8; margin-top: 28px; text-align: center; }

/* Founder */
.founder {
  display: grid; gap: 32px; align-items: center; background: #fff; border-radius: 26px;
  padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow-sm); border: 1px solid rgba(49,92,67,.08);
}
@media (min-width: 820px) { .founder { grid-template-columns: 240px 1fr; } }
.founder-mark {
  width: 200px; height: 200px; margin: 0 auto; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #3f7456, var(--green-deep));
  display: grid; place-items: center; color: #fff; position: relative;
  box-shadow: 0 16px 36px rgba(35,69,50,.25);
}
.founder-mark span { font-family: var(--font-head); font-size: 3.4rem; font-weight: 600; letter-spacing: .02em; }
.founder-mark::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px dashed rgba(233,174,69,.6);
}
.founder-name { font-family: var(--font-head); font-size: 1.25rem; color: var(--green); font-weight: 600; margin-bottom: 4px; }
.founder-role { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }

/* Notice / transparency */
.notice {
  background: #fff; border-left: 6px solid var(--gold); border-radius: var(--radius-sm);
  padding: 26px 28px; box-shadow: var(--shadow-sm);
}
.notice h3 { display: flex; align-items: center; gap: 10px; }
.notice h3 svg { width: 24px; height: 24px; color: var(--gold-ink); flex: none; }
.notice ul { margin: 12px 0 0; padding-left: 20px; }
.notice li { margin-bottom: 6px; }
.notice-warn { background: var(--gold-soft); border-left-color: var(--gold); }
.notice-warn p { color: var(--gold-ink); }

.transparency {
  display: grid; gap: 28px; align-items: center; background: #fff; border-radius: 26px;
  padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow-sm);
  border: 1px solid rgba(49,92,67,.08); position: relative; overflow: hidden;
}
@media (min-width: 880px) { .transparency { grid-template-columns: 90px 1fr auto; } }
.transparency-icon { width: 80px; height: 80px; border-radius: 22px; background: var(--gold-soft); color: var(--gold-ink); display: grid; place-items: center; }
.transparency-icon svg { width: 40px; height: 40px; }

/* CTA band */
.cta-band { position: relative; color: #fff; overflow: hidden; background: var(--green-deep); }
.cta-band .bg { position: absolute; inset: 0; }
.cta-band .bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,48,31,.93), rgba(23,48,31,.72)); }
.cta-band .container { position: relative; z-index: 2; padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 112px); }
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { max-width: 58ch; color: rgba(255,255,255,.9); font-size: 1.1rem; margin-bottom: 28px; }

/* Values */
.values { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value { display: flex; gap: 16px; background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.value .card-icon { width: 48px; height: 48px; margin: 0; border-radius: 14px; }
.value .card-icon svg { width: 24px; height: 24px; }
.value h3 { font-size: 1.12rem; margin-bottom: .3em; }
.value p { color: var(--muted); font-size: .98rem; }

.mv-grid { display: grid; gap: 22px; }
@media (min-width: 820px) { .mv-grid { grid-template-columns: 1fr 1fr; } }
.mv-card { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); border-top: 5px solid var(--green); }
.mv-card.gold { border-top-color: var(--gold); }

/* Journey */
.journey { list-style: none; margin: 0 auto 32px; padding: 0; display: grid; gap: 14px; max-width: 980px; counter-reset: step; }
@media (min-width: 820px) { .journey { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; } }
.journey-step {
  background: #fff; border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(49,92,67,.1);
}
.journey-step .stage { display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--gold-ink); margin-bottom: 4px; }
.journey-step strong { font-family: var(--font-head); font-size: 1.3rem; color: var(--green-deep); font-weight: 600; }
.journey-arrow { display: grid; place-items: center; color: var(--gold); }
.journey-arrow svg { width: 30px; height: 30px; transform: rotate(90deg); }
@media (min-width: 820px) { .journey-arrow svg { transform: none; } }

/* ---------- Donation ---------- */
.donate-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .donate-layout { grid-template-columns: 1.1fr .9fr; } }
.donate-card {
  background: #fff; border-radius: 26px; padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow); border: 1px solid rgba(49,92,67,.08);
}
.donate-card h2 { display: flex; align-items: center; gap: 12px; }
.donate-card h2 svg { width: 32px; height: 32px; color: var(--green); flex: none; }
.step-label { font-weight: 700; color: var(--green-deep); margin: 26px 0 10px; font-size: 1rem; display: flex; gap: 10px; align-items: center; }
.step-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-size: .85rem; flex: none; }
.amounts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 520px) { .amounts { grid-template-columns: repeat(5, 1fr); } }
.chip {
  min-height: 52px; border-radius: 14px; border: 2px solid rgba(49,92,67,.2); background: var(--cream);
  font-family: inherit; font-weight: 700; font-size: 1.05rem; color: var(--green-deep); cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.chip:hover { border-color: var(--green); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.chip.custom { font-size: .9rem; grid-column: span 2; line-height: 1.2; padding: 0 6px; }
@media (min-width: 520px) { .chip.custom { grid-column: auto; } }
.custom-amount { margin-top: 14px; }
.custom-amount .input-prefix { position: relative; max-width: 260px; }
.custom-amount .input-prefix span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); }
.custom-amount input { padding-left: 32px; }
.selected-amount { background: var(--cream); border-radius: 12px; padding: 14px 16px; margin: 16px 0 0; font-size: .98rem; }
.selected-amount strong { color: var(--green-deep); }

.qr-wrap { display: grid; gap: 22px; align-items: center; }
@media (min-width: 1200px) { .qr-wrap { grid-template-columns: 260px 1fr; } }
.qr-box { margin: 0; width: min(100%, 300px); justify-self: center; }
.qr-box img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 16px; border: 1px solid rgba(49,92,67,.15); background: #fff; padding: 10px; }
.qr-placeholder {
  aspect-ratio: 1; border-radius: 16px; border: 3px dashed var(--gold); background: var(--gold-soft);
  display: grid; place-items: center; text-align: center; padding: 22px; color: var(--gold-ink);
}
.qr-placeholder svg { width: 54px; height: 54px; margin: 0 auto 10px; }
.qr-placeholder strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.qr-placeholder span { font-size: .85rem; line-height: 1.45; display: block; }
.qr-box figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 10px; }

.upi-details { display: grid; gap: 12px; }
.upi-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--cream); border-radius: 12px; padding: 12px 14px; }
.upi-row .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); width: 100%; }
.upi-row .value-text { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 1rem; font-weight: 600; color: var(--green-deep); word-break: break-all; flex: 1 1 160px; }
.upi-row .value-text .ph { font-family: var(--font-body); word-break: normal; font-size: .88rem; }
.donate-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.status-msg { margin-top: 14px; font-size: .95rem; min-height: 1.2em; }
.status-msg.ok { color: var(--success); }
.status-msg.err { color: var(--error); }

.howto { display: grid; gap: 14px; margin-top: 24px; }
@media (min-width: 640px) { .howto { grid-template-columns: 1fr 1fr; } }
.howto div { background: var(--cream); border-radius: 14px; padding: 18px; }
.howto h3 { font-size: 1.02rem; font-family: var(--font-body); font-weight: 700; display: flex; gap: 8px; align-items: center; }
.howto h3 svg { width: 20px; height: 20px; color: var(--green); }
.howto ol { margin: 0; padding-left: 20px; font-size: .95rem; color: var(--muted); }

.side-panel { display: grid; gap: 20px; }
.side-panel .media-frame img { aspect-ratio: 5 / 4; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm); border: 1px solid rgba(49,92,67,.08); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 600; color: var(--green-deep);
  position: relative; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .faq-body { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Forms ---------- */
.contact-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: .85fr 1.15fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.contact-item .card-icon { width: 46px; height: 46px; margin: 0; border-radius: 13px; }
.contact-item .card-icon svg { width: 22px; height: 22px; }
.contact-item h3 { font-size: .8rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: 4px; font-weight: 700; }
.contact-item p, .contact-item a { font-weight: 600; color: var(--green-deep); word-break: break-word; }

.form-card { background: #fff; border-radius: 26px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .96rem; color: var(--green-deep); }
.field .hint { font-weight: 400; color: var(--muted); font-size: .86rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--cream);
  border: 1.5px solid rgba(49,92,67,.25); border-radius: 12px; padding: 12px 14px; min-height: 50px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(49,92,67,.15); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.field-error { color: var(--error); font-size: .88rem; margin: 6px 0 0; font-weight: 500; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; }
.checkbox input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--green); flex: none; }
.checkbox label { font-weight: 400; color: var(--text); font-size: .95rem; }
.form-method { background: var(--cream); border-radius: 12px; padding: 14px 16px; font-size: .92rem; color: var(--muted); margin: 0; }
.form-status { font-size: .98rem; border-radius: 12px; }
.form-status:not(:empty) { padding: 14px 16px; }
.form-status.ok { background: #e7f3eb; color: var(--success); }
.form-status.err { background: #fbe9e7; color: var(--error); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Placeholders (must be replaced before launch) ---------- */
.ph {
  display: inline-block; background: #fff6e3; color: var(--gold-ink); border: 1px dashed #c98a1e;
  border-radius: 6px; padding: 0 8px; font-size: .9em; font-weight: 500; line-height: 1.6;
}
.site-footer .ph { background: rgba(233,174,69,.12); color: #f3cf86; border-color: rgba(233,174,69,.6); }

/* ---------- Legal / prose ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.55rem; margin-top: 1.8em; }
.prose h2:first-of-type { margin-top: 0; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.review-banner {
  background: var(--gold-soft); border: 2px dashed var(--gold); color: var(--gold-ink);
  border-radius: 14px; padding: 18px 22px; margin-bottom: 36px; font-size: .96rem;
}

/* Social */
.social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; text-decoration: none; font-size: .9rem; font-weight: 500; border: 1px solid rgba(255,255,255,.18); }
.social-pill:hover { background: var(--gold); color: #2b2414; }
.social-links.light .social-pill { background: var(--cream); color: var(--green-deep); border-color: rgba(49,92,67,.2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-ink); color: rgba(255,255,255,.8); padding-top: 64px; font-size: .97rem; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; padding-bottom: 48px; }
@media (min-width: 680px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr .8fr 1.1fr 1fr; } }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand img { background: #fff; }
.footer-brand .brand-name small { color: rgba(255,255,255,.65); }
.footer-tagline { font-family: var(--font-head); color: var(--gold); font-size: 1.15rem; margin-bottom: 8px; }
.footer-h { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; font-weight: 700; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; padding-bottom: 26px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* WhatsApp floating button (only shown when a verified number is configured) */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px; border-radius: 999px;
  background: #1f7a4a; color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 10px 26px rgba(0,0,0,.22);
}
.wa-float:hover { background: #17633b; color: #fff; }
.wa-float svg { width: 22px; height: 22px; }
@media (max-width: 520px) { .wa-float .wa-text { display: none; } .wa-float { padding: 14px; } }
[hidden] { display: none !important; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .wa-float, .hero-actions, .cta-band { display: none; }
  body { background: #fff; }
}

/* ---------- Online donations (Razorpay) ---------- */
.donate-stack { display: grid; gap: 28px; min-width: 0; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: not-allowed; }
.pay-methods { font-size: .86rem; color: var(--muted); margin: 10px 0 0; text-align: center; }
#donate-online .form-grid { margin-top: 4px; }
.receipt-list { display: grid; gap: 0; margin: 22px 0; border: 1px solid rgba(49,92,67,.15); border-radius: 12px; overflow: hidden; }
.receipt-list > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px 16px; background: var(--white); }
.receipt-list > div:nth-child(odd) { background: var(--cream); }
.receipt-list dt { font-weight: 600; color: var(--muted); font-size: .92rem; }
.receipt-list dd { margin: 0; font-weight: 700; color: var(--green-deep); word-break: break-all; }
@media print {
  .site-header, .site-footer, .wa-float, .no-print, .skip-link { display: none !important; }
  .section { padding: 0 !important; background: none !important; }
  .receipt-card { box-shadow: none !important; border: 1px solid #ccc; }
}

/* ---------- Founder photo ---------- */
.founder-photo { width: 200px; height: 200px; margin: 0 auto; border-radius: 50%; position: relative; box-shadow: 0 16px 36px rgba(35,69,50,.25); }
.founder-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.founder-photo::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px dashed rgba(233,174,69,.6); }

/* ---------- Cat gallery ---------- */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.g-item { margin: 0; border-radius: var(--radius-sm, 14px); overflow: hidden; background: var(--beige); aspect-ratio: 1 / 1; box-shadow: var(--shadow-sm); }
.g-item img, .g-item video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.g-item:hover img, .g-item:hover video { transform: scale(1.04); }
.g-video { position: relative; }
.g-video::after { content: "\25B6  Video"; position: absolute; left: 10px; bottom: 10px; font-size: .72rem; font-weight: 700; letter-spacing: .05em; color: #fff; background: rgba(23,48,31,.7); padding: 3px 9px; border-radius: 99px; pointer-events: none; }
.gallery-note { text-align: center; color: var(--muted); font-size: .9rem; margin: 18px 0 0; }
@media (prefers-reduced-motion: reduce) { .g-item img, .g-item video { transition: none; } }

/* ---------- Support page layout: UPI card full width ---------- */
.upi-full { grid-column: 1 / -1; }
.upi-cols { display: grid; gap: 0 40px; }
@media (min-width: 900px) {
  .upi-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .upi-full .howto { grid-template-columns: 1fr 1fr; }
}
.upi-col { min-width: 0; }
.upi-food-tip { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--gold-soft, #fbefd6); font-size: .92rem; color: var(--green-deep); }

/* ---------- Purpose choice ---------- */
.purpose { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 520px) { .purpose { grid-template-columns: 1fr 1fr; } }
.purpose legend { padding: 0; grid-column: 1 / -1; }
.purpose-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 2px solid rgba(49,92,67,.2); border-radius: 14px; background: var(--cream); cursor: pointer; transition: border-color .2s, background .2s; }
.purpose-opt input { margin-top: 4px; accent-color: var(--green); width: 18px; height: 18px; flex: none; }
.purpose-opt strong { display: block; color: var(--green-deep); }
.purpose-opt small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.35; }
.purpose-opt:has(input:checked) { border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(49,92,67,.08); }
.purpose-opt:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Feed a street cat ---------- */
.food-grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .food-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.food-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.food-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.food-tag { position: absolute; left: 16px; top: 16px; background: var(--gold); color: var(--green-deep); font-weight: 700; font-size: .8rem; padding: 6px 12px; border-radius: 99px; }
.food-copy h2 { margin-bottom: 14px; }
.food-copy .step-label { margin-top: 22px; }
a.chip { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; text-align: center; }
.food-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
/* Right column fills the height of the donation form (no empty space beside it) */
@media (min-width: 960px) {
  .donate-layout { align-items: stretch; }
  .side-panel { grid-template-rows: auto minmax(0, 1fr); align-self: stretch; }
  .side-panel .side-photo { min-height: 280px; }
  .side-panel .side-photo img { height: 100%; aspect-ratio: auto; object-position: 50% 35%; }
  .upi-full { align-self: start; }
}

/* ---------- Instagram reel feature ---------- */
.reel-feature { display: grid; gap: 28px; align-items: center; margin-top: clamp(40px, 6vw, 72px); background: var(--cream); border-radius: 26px; padding: clamp(22px, 4vw, 48px); }
@media (min-width: 860px) { .reel-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); } }
.reel-copy h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 6px 0 12px; }
.reel-copy p { color: var(--muted); }
.reel-embed { width: 100%; max-width: 400px; justify-self: center; min-height: 200px; }
.reel-embed .instagram-media { margin: 0 auto !important; min-width: 0 !important; width: 100% !important; max-width: 400px !important; border-radius: 16px !important; }
.reel-embed blockquote.instagram-media:not([style]) { background: #fff; border: 1px solid rgba(49,92,67,.15); padding: 40px 20px; text-align: center; }

/* ---------- Self-hosted feature video (feeding rounds) ---------- */
.feature-video { position: relative; border-radius: 20px; overflow: hidden; background: var(--green-deep); box-shadow: var(--shadow); }
.feature-video video { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 640px; object-fit: cover; }
.video-sound { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 99px; background: rgba(23,48,31,.78); color: #fff; font: 600 .85rem/1 inherit; font-family: inherit; cursor: pointer; backdrop-filter: blur(4px); }
.video-sound:hover { background: rgba(23,48,31,.92); }
.video-sound:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.video-sound svg { width: 18px; height: 18px; }
.video-sound .sound-on { display: none; }
.video-sound[aria-pressed="true"] .sound-on { display: inline; }
.video-sound[aria-pressed="true"] .sound-off { display: none; }
.reel-embed { max-width: 360px; }
.reel-actions { margin-top: 18px; }
/* Feed a street cat: portrait video column */
.food-media-video { box-shadow: none; overflow: visible; max-width: 380px; width: 100%; justify-self: center; }
.food-media-video .food-tag { z-index: 2; }
@media (min-width: 900px) { .food-grid:has(.food-media-video) { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); } }
