/* INN FOCUS NGO — Mobile-first design system
   Base = phones (320px+). Enhancements via min-width breakpoints.
   Type: Bodoni Moda (display serif) + Nunito Sans (body). Touch targets >= 48px.
   Palette: SFPI-inspired maroon + gold on warm neutrals.
*/

:root {
  --navy: #8c3027;
  --navy-2: #862e26;
  --navy-dark: #5c1f18;
  --ink: #272727;
  --muted: #6b625c;
  --muted-2: #8a7f78;
  --line: #e9e1d6;
  --line-2: #f1ebe2;
  --bg: #f6f4f2;
  --card: #ffffff;
  --amber: #dba860;
  --amber-dark: #b97f2e;
  --amber-soft: #faf0dd;
  --green: #8c3027;
  --green-soft: #f9ece6;
  --blue-soft: #faf0dd;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(60, 30, 20, 0.07);
  --shadow: 0 8px 28px rgba(140, 48, 39, 0.12);
  --shadow-lg: 0 20px 60px rgba(140, 48, 39, 0.18);
  --font-display: "Bodoni Moda", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 64px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

/* Narrow container on phones, wide on desktop */
.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; margin-top: 28px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }

/* ---------- Header (mobile: compact + drawer nav) ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: var(--sat);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  gap: 12px;
  min-height: var(--header-h);
  position: relative;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 48px; }
.logo img { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.logo-text small { font-size: 11px; color: var(--muted); letter-spacing: 0.02em; font-weight: 500; }

/* Drawer nav visible when .open (mobile default = hidden) */
.main-nav {
  display: none;
  flex-direction: column;
  align-items: stretch;
  position: absolute;
  top: calc(100% + 6px);
  left: 12px;
  right: 12px;
  background: #fff;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  border-radius: 14px;
  border: 1px solid var(--line);
  gap: 2px;
  z-index: 101;
}
.main-nav.open { display: flex; }
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  padding: 14px;
  border-radius: 10px;
  min-height: 48px;
  display: flex;
  align-items: center;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a:active { background: var(--line-2); }
.main-nav a.active { color: var(--navy); background: var(--blue-soft); }
.btn-donate {
  background: var(--navy) !important;
  color: #fff !important;
  font-weight: 700;
  justify-content: center;
}
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--line-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
}

/* ---------- Buttons (mobile: full-width stacks, 48px targets) ---------- */
.btn-primary, .btn-secondary, .btn-outline, .btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  min-height: 48px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-primary { background: var(--amber); color: #3e2723; box-shadow: var(--shadow-sm); }
.btn-primary:hover, .btn-primary:active { background: #e5b96e; }
.btn-primary.big { font-size: 16px; padding: 15px 26px; margin-top: 14px; width: 100%; }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover, .btn-secondary:active { background: var(--navy-2); }
.btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.btn-whatsapp { background: #8c3027; color: #fff; }
.btn-whatsapp:hover, .btn-whatsapp:active { background: #5c1f18; }
.btn-primary.full, .btn-whatsapp.full, .full { width: 100%; }
.link { color: var(--navy); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--amber); }
.link:hover { color: var(--navy-2); }

/* ---------- Hero (mobile: stacked, compact) ---------- */
.hero {
  background: radial-gradient(1200px 600px at 15% -10%, #a8502f 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #fff;
  padding: 40px 0 36px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f5e3c2;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
  max-width: 100%;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #dba860; flex-shrink: 0; }
.hero h1 { font-size: clamp(1.75rem, 7.2vw, 2rem); color: #fff; margin-bottom: 12px; font-weight: 600; }
.hero h1 span { color: var(--amber); }
.hero-sub { font-size: 16px; color: #e8ded2; }
.hero-sub strong { color: #fff; font-weight: 600; }
.hero-buttons { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.hero-buttons .btn-primary, .hero-buttons .btn-outline { width: 100%; }
.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: #b8a89a;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 12px;
}
.hero-photo { position: relative; min-width: 0; }
/* Hero carousel — perfectly fitted: fixed 16/10 frame, cover-fit slides */
.hero-carousel { position: relative; }
.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #2a1a12;
}
.carousel-track { display: flex; height: 100%; transition: transform 0.55s ease; }
.carousel-slide { flex: 0 0 100%; height: 100%; min-width: 0; }
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: auto;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(20, 10, 8, 0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.15s;
  z-index: 2;
}
.carousel-arrow:hover, .carousel-arrow:active { background: rgba(20, 10, 8, 0.8); }
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }
.carousel-dots { display: flex; gap: 4px; justify-content: center; margin-top: 8px; }
.carousel-dots button {
  border: none;
  background: none;
  cursor: pointer;
  padding: 12px 6px;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.carousel-dots button::after {
  content: "";
  width: 26px;
  height: 6px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.2s, width 0.2s;
}
.carousel-dots button[aria-selected="true"]::after { background: var(--amber); width: 34px; }
.photo-caption {
  margin-top: 10px;
  font-size: 12.5px;
  color: #e8ded2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.photo-caption::before { content: ""; width: 24px; height: 2px; background: var(--amber); display: inline-block; border-radius: 2px; flex-shrink: 0; }

/* ---------- Trust bar (mobile: 1 col) ---------- */
.trustbar { background: var(--card); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: 1fr; gap: 0; padding: 0; }
.trust-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-bottom: 1px solid var(--line-2);
}
.trust-item:last-child { border-bottom: none; }
.trust-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-icon svg { width: 20px; height: 20px; }
.trust-item strong { display: block; font-size: 15px; color: var(--ink); font-family: var(--font-display); }
.trust-item small { color: var(--muted); font-size: 13px; line-height: 1.45; display: block; margin-top: 2px; }

/* ---------- Sections ---------- */
.section-head { text-align: left; margin: 40px 0 20px; max-width: 720px; }
.section-head.centered { text-align: center; margin-left: auto; margin-right: auto; }
.eyebrow {
  color: var(--navy);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--amber); border-radius: 2px; display: inline-block; }
.section-head.centered .eyebrow::after { content: ""; width: 22px; height: 2px; background: var(--amber); border-radius: 2px; display: inline-block; }
.eyebrow.light { color: #f5e3c2; }
.section-head h2 { font-size: clamp(1.4rem, 5.5vw, 2rem); margin: 4px 0 8px; }
.section-head p { color: var(--muted); font-size: 15.5px; }

.mission-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.mission-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 26px 22px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.mission-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-2), var(--navy));
}
.mission-card:nth-child(2)::before { background: linear-gradient(90deg, #b98a3e, #5c3a1e); }
.mission-card:nth-child(3)::before { background: linear-gradient(90deg, #e5b96e, #b97f2e); }
.card-num {
  position: absolute;
  top: 10px; right: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  color: #edf1f7;
  user-select: none;
  pointer-events: none;
}
.mission-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mission-card h3 { margin: 0 0 8px; font-size: 18px; }
.mission-card p { color: var(--muted); font-size: 15px; }
.mission-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--blue-soft);
  border: 1px solid #e7d3ac;
  padding: 5px 11px;
  border-radius: 100px;
}
.mission-card:nth-child(2) .mission-tag { color: #5c3a1e; background: var(--green-soft); border-color: #e3cfae; }
.mission-card:nth-child(3) .mission-tag { color: #5c3a1e; background: var(--amber-soft); border-color: #f5e3c2; }
.mission-icon {
  width: 52px; height: 52px; border-radius: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #a8502f, var(--navy-dark));
  color: #fff;
  box-shadow: 0 10px 20px rgba(11, 36, 88, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}
.mission-icon.green { background: linear-gradient(135deg, #b98a3e, #5c3a1e); box-shadow: 0 10px 20px rgba(21, 128, 61, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.mission-icon.amber { background: linear-gradient(135deg, #f3d9a4, #b97f2e); color: #3e2723; box-shadow: 0 10px 20px rgba(217, 119, 6, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.mission-icon svg { width: 24px; height: 24px; }

/* ---------- Programs ---------- */
.programs { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0 44px; margin-top: 40px; }
.program-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
.program-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  border: 1px solid var(--line);
}
.program-card h4 { margin: 14px 0 6px; font-size: 17px; }
.program-card p { color: var(--muted); font-size: 15px; }
.p-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff;
}
.p-icon svg { width: 22px; height: 22px; }
.p-icon.blue { background: #8c3027; }
.p-icon.orange { background: #c06a2c; }
.p-icon.green { background: #8c3027; }
.p-icon.purple { background: #7c4a2d; }
.p-icon.pink { background: #a83a3a; }
.p-icon.teal { background: #5f6e3e; }

/* ---------- Proof ---------- */
.proof-section { padding: 40px 16px; }
.proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.proof-media { display: grid; gap: 12px; }
.proof-media .main-img {
  border-radius: 14px;
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.proof-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.proof-thumbs img { border-radius: 12px; aspect-ratio: 4/3; width: 100%; object-fit: cover; border: 1px solid var(--line); }
.proof-grid h2 { margin: 8px 0 14px; font-size: clamp(1.4rem, 5.5vw, 1.9rem); }
.check-list { list-style: none; margin: 16px 0; display: grid; gap: 12px; }
.check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; color: #4a423c;
}
.check {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
  border: 1px solid #e3cfae;
}
.check svg { width: 13px; height: 13px; }
.quote {
  margin-top: 18px;
  background: var(--amber-soft);
  border-left: 3px solid var(--amber);
  padding: 14px 16px;
  font-style: italic;
  border-radius: 0 12px 12px 0;
  color: #5c3a1e;
  font-size: 15px;
}

/* ---------- Donate home ---------- */
.donate-home {
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #fff;
  padding: 44px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.donate-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.donate-grid h2 { font-size: clamp(1.45rem, 6vw, 2.1rem); color: #fff; margin: 8px 0 12px; }
.donate-grid > div > p { color: #e8ded2; font-size: 15.5px; }
.upi-box {
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 10px 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 8px;
  font-size: 14px;
  gap: 10px;
  flex-wrap: wrap;
}
.upi-box code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; font-size: 14px; word-break: break-all; }
.copy-btn {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 12px 20px;
  min-height: 48px;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.copy-msg { font-size: 13px; color: #f5e3c2; min-height: 20px; }
.donate-buttons { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 12px; }
.donate-buttons .btn-whatsapp, .donate-buttons .btn-primary { width: 100%; }
.qr-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 0 0 20px;
  text-align: center;
  max-width: 340px;
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.qr-card-top { background: var(--bg); padding: 18px 20px 0; border-bottom: 1px solid var(--line); }
.qr-card-top h4 { font-size: 17px; }
.qr-card-top p { font-size: 13px; color: var(--muted); margin: 4px 0 14px; }
.qr-card img { width: 100%; max-width: 260px; margin: 18px auto 10px; border-radius: 8px; border: 1px solid var(--line); aspect-ratio: 1/1; object-fit: contain; background: #fff; padding: 10px; }
.qr-card .bank { font-size: 13.5px; color: var(--muted); padding: 0 20px; }
.qr-card .bank strong { color: var(--ink); }

/* ---------- CTA ---------- */
.cta-banner {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  margin: 36px auto;
  box-shadow: var(--shadow-sm);
}
.cta-banner h2 { font-size: clamp(1.35rem, 5.5vw, 1.9rem); }
.cta-banner p { color: var(--muted); margin: 10px 0 6px; font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #e8ded2; margin-top: 0; padding-bottom: var(--sab); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 36px 16px 28px; }
.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer p { font-size: 15px; line-height: 1.7; }
.site-footer a { color: #f5e3c2; text-decoration: none; padding: 6px 0; display: inline-block; min-height: 32px; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; }
.footer-brand strong { color: #fff; font-family: var(--font-display); display: block; font-size: 16px; }
.footer-brand small { font-size: 12px; color: #b8a89a; }
.site-footer .reg { margin-top: 14px; font-size: 13px; color: #b8a89a; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); padding: 10px 14px; border-radius: 10px; display: inline-block; }
.copyright { text-align: center; padding: 18px 16px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; color: #b8a89a; }

/* ---------- WhatsApp float (safe-area aware) ---------- */
.whatsapp-float {
  position: fixed;
  bottom: calc(16px + var(--sab));
  right: 16px;
  background: #8c3027; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  z-index: 200; color: #fff;
}
.whatsapp-float svg { width: 26px; height: 26px; }
.whatsapp-float:active { transform: scale(0.96); }

/* ---------- Inner pages ---------- */
.page-hero {
  background: radial-gradient(900px 400px at 50% -20%, #a8502f 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-dark), var(--navy));
  color: #fff;
  padding: 40px 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.7rem, 7vw, 2.5rem); color: #fff; }
.page-hero h1 span { color: var(--amber); }
.page-hero > .container > p { color: #e8ded2; margin-top: 10px; font-size: 15.5px; }
.breadcrumb { margin-top: 14px; font-size: 13px; color: #b8a89a; }
.breadcrumb a { color: #f5e3c2; text-decoration: none; min-height: 32px; display: inline-block; }

.about-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  background: #fff; padding: 20px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-top: 24px;
  align-items: start;
}
.about-grid h2 { margin: 8px 0 14px; font-size: clamp(1.4rem, 5.5vw, 1.9rem); }
.about-grid p { color: #4a423c; margin-bottom: 12px; font-size: 15.5px; }
.rounded-img { border-radius: 14px; border: 1px solid var(--line); width: 100%; object-fit: cover; }
.mt { margin-top: 16px; }
.figure-caption { font-size: 13px; color: var(--muted); margin-top: 8px; }

.legal { background: #fff; margin-top: 32px; padding: 12px 0 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.legal-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 8px; }
.legal-card { background: var(--bg); border-radius: var(--radius); padding: 22px 20px; text-align: left; border: 1px solid var(--line); }
.legal-card h4 { margin: 14px 0 6px; font-size: 17px; }
.legal-card p { font-size: 15px; }
.legal-card small { color: var(--muted); font-size: 13px; }
.legal-card.highlight-yellow { background: var(--amber-soft); border-color: #f5e3c2; }
.legal-card.highlight-green { background: var(--green-soft); border-color: #e3cfae; }

.about-contact { padding: 24px 16px 44px; }
.contact-box {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  background: var(--navy); color: #e9e1d6; border-radius: var(--radius-lg); padding: 24px 20px;
}
.contact-box h3 { color: #fff; margin-bottom: 10px; font-size: 17px; }
.contact-box p { font-size: 15px; color: #e8ded2; }
.contact-box a { color: #f5e3c2; }
.contact-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; flex-direction: column; }
.contact-actions .btn-primary, .contact-actions .btn-outline, .contact-actions .btn-secondary { width: 100%; }
.contact-actions .btn-secondary { background: var(--amber); color: #3e2723; }
.contact-actions .btn-outline { border-color: rgba(255,255,255,0.3); }

/* ---------- Work page ---------- */
.work-intro { text-align: center; padding: 28px 16px 8px; max-width: 760px; }
.work-intro h2 { font-size: clamp(1.4rem, 5.5vw, 1.9rem); margin: 8px 0; }
.work-grid { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 16px; }
.work-card {
  background: #fff; border-radius: 16px; padding: 22px 20px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--navy);
}
.work-card:nth-child(2) { border-top-color: #c06a2c; }
.work-card:nth-child(3) { border-top-color: #a83a3a; }
.work-card:nth-child(4) { border-top-color: #8c3027; }
.work-card:nth-child(5) { border-top-color: #7c4a2d; }
.work-card:nth-child(6) { border-top-color: #5f6e3e; }
.work-card h3 { margin: 12px 0 8px; font-size: 18px; }
.work-card > p { color: var(--muted); font-size: 15px; }
.work-tag {
  display: inline-block; background: var(--bg); color: var(--navy);
  font-size: 11.5px; font-weight: 800; padding: 5px 11px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.07em; border: 1px solid var(--line);
}
.work-card ul { margin: 14px 0 6px 0; list-style: none; display: grid; gap: 8px; }
.work-card li { font-size: 15px; color: #4a423c; display: flex; gap: 10px; align-items: flex-start; }
.work-card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); margin-top: 9px; flex-shrink: 0; }
.outcome {
  background: var(--bg); border: 1px solid var(--line);
  padding: 10px 14px; border-radius: 10px; margin-top: 14px; font-size: 13.5px; color: #4a423c;
}
.steps { background: var(--navy-dark); color: #fff; margin-top: 32px; padding: 16px 0 44px; }
.steps .section-head h2 { color: #fff; }
.steps .section-head p { color: #b8a89a; }
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.step { background: #fff; color: var(--ink); border-radius: 14px; padding: 22px 20px; text-align: left; }
.step-num {
  background: var(--navy); color: #fff; width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; font-size: 14px; font-weight: 800; font-family: var(--font-display);
}
.step h4 { margin: 12px 0 6px; font-size: 16px; }
.step p { color: var(--muted); font-size: 14.5px; }
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
.gallery-grid figure { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.gallery-grid img { aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.gallery-grid figcaption { padding: 12px 14px; font-size: 13.5px; color: var(--muted); }
/* Featured video — 16:9 fitted frame, click-to-play (no preload) */
.video-feature { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.video-feature video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #1a1210; }
.video-feature .figure-caption { padding: 12px 16px; }

/* ---------- Donate page ---------- */
.donate-page-grid { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 24px 16px; align-items: start; }
.qr-big-card {
  background: #fff; border-radius: var(--radius-lg); padding: 0 0 22px; text-align: center;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  overflow: hidden;
}
.qr-title { background: var(--navy); color: #fff; padding: 18px 16px; font-size: 17px; font-family: var(--font-display); }
.qr-sub { color: var(--muted); font-size: 13px; margin: 14px 16px 0; }
.qr-big-card > img { border-radius: 8px; border: 1px solid var(--line); margin: 16px auto 6px; max-width: 270px; width: calc(100% - 48px); aspect-ratio: 1/1; object-fit: contain; background: #fff; padding: 10px; }
.apps { margin: 14px 0 6px; font-weight: 700; color: var(--navy); font-size: 14px; }
.apps small { display: block; font-weight: 500; color: var(--muted); margin-top: 2px; }
.bank-note { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 14px 16px; font-size: 13.5px; color: var(--muted); }
.qr-actions { padding: 0 16px; }
.qr-actions .btn-whatsapp { width: 100%; }

/* UPI intent pay row (mobile: stacked) */
.pay-row { margin: 14px 16px 4px; text-align: left; }
.pay-row.dark { margin: 16px 0 4px; }
.pay-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.pay-row.dark .pay-label { color: #f5e3c2; }
.pay-input-row { display: flex; flex-direction: column; gap: 10px; }
.pay-input-row input {
  flex: 1; min-width: 0; width: 100%;
  padding: 14px;
  min-height: 52px;
  border: 1.5px solid var(--line); border-radius: 11px;
  font-size: 16px; /* 16px prevents iOS auto-zoom */
  font-family: var(--font-body); background: #fff; color: var(--ink);
}
.pay-input-row input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(140,48,39,0.12); }
.btn-upi {
  background: var(--green); color: #fff; border: none; border-radius: 11px;
  padding: 14px 18px; min-height: 52px; font-weight: 800; font-size: 16px; cursor: pointer;
  width: 100%; font-family: var(--font-body);
}
.btn-upi:hover, .btn-upi:active { background: #5c1f18; }
.pay-note { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
#payMsg, #payMsgHome { min-height: 20px; }
.copy-msg.dark { color: var(--green); font-weight: 700; }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: 22px 18px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form-card h3 { font-size: 18px; }
.form-card form { margin-top: 18px; display: grid; gap: 14px; }
.form-card label { display: grid; gap: 7px; font-weight: 600; font-size: 14px; color: var(--ink); }
.form-card input, .form-card textarea {
  padding: 14px;
  min-height: 52px;
  border: 1.5px solid var(--line); border-radius: 11px;
  font-size: 16px; /* prevents iOS zoom */
  font-family: var(--font-body); width: 100%; background: #fff; color: var(--ink);
}
.form-card textarea { min-height: 96px; }
.form-card input:focus, .form-card textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(140,48,39,0.12); }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; text-align: center; }
.contact-mini { background: var(--navy); color: #e9e1d6; border-radius: var(--radius-lg); padding: 22px 18px; margin-top: 18px; }
.contact-mini h3 { color: #fff; margin-bottom: 10px; font-size: 17px; }
.contact-mini p { font-size: 15px; color: #e8ded2; margin-bottom: 10px; }
.contact-mini a { color: #f5e3c2; }
.faq { max-width: 800px; padding-bottom: 8px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 12px 0; }
.faq summary {
  font-weight: 700; color: var(--navy); cursor: pointer;
  font-size: 16px; font-family: var(--font-display);
  min-height: 48px; display: flex; align-items: center;
}
.faq details p { margin-top: 10px; color: #5c554e; font-size: 15px; }

/* Focus visibility (kept large for touch + keyboard) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- Tablet (min 640px): 2-col grids, inline buttons ---------- */
@media (min-width: 640px) {
  .container { padding: 0 20px; }
  .hero-buttons { flex-direction: row; }
  .hero-buttons .btn-primary, .hero-buttons .btn-outline { width: auto; flex: 1; }
  .btn-primary.big { width: auto; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { border-right: 1px solid var(--line-2); }
  .mission-grid, .program-grid, .legal-grid, .steps-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .donate-buttons { flex-direction: row; }
  .donate-buttons .btn-whatsapp, .donate-buttons .btn-primary { width: auto; flex: 1; }
  .pay-input-row { flex-direction: row; }
  .pay-input-row input { width: auto; }
  .btn-upi { width: auto; }
  .contact-actions { flex-direction: row; }
  .contact-actions .btn-primary, .contact-actions .btn-outline, .contact-actions .btn-secondary { width: auto; }
  .proof-grid { padding: 24px; }
  .form-card { padding: 26px 24px; }
}

/* ---------- Desktop (min 960px): full multi-column layout + inline nav ---------- */
@media (min-width: 960px) {
  .container { padding: 0 24px; }
  .header-inner { padding: 12px 24px; }
  .logo img { width: 44px; height: 44px; }
  .logo-text strong { font-size: 16px; }
  .main-nav {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 6px;
  }
  .main-nav a { font-size: 14.5px; padding: 9px 14px; min-height: 0; display: inline-flex; }
  .btn-donate { padding: 10px 18px !important; }
  .menu-btn { display: none; }

  .hero { padding: 64px 0 60px; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 44px; }
  .hero h1 { font-size: 48px; }
  .hero-sub { font-size: 17.5px; }
  .badge { font-size: 12.5px; }
  .hero-buttons .btn-primary, .hero-buttons .btn-outline { flex: none; width: auto; }

  .section-head { margin: 56px 0 24px; }
  .section-head h2 { font-size: 32px; }
  .mission-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .mission-card { padding: 28px 26px 26px; transition: transform 0.18s, box-shadow 0.18s; }
  .mission-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .mission-card:hover { box-shadow: var(--shadow); }
  .program-grid { grid-template-columns: repeat(3, 1fr); }
  .program-card { padding: 26px 24px; transition: transform 0.18s, box-shadow 0.18s, background 0.18s; }
  .program-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: #fff; }

  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-item { padding: 20px 22px; border-bottom: none; border-right: 1px solid var(--line-2); }
  .trust-item:last-child { border-right: none; }

  .proof-section { padding: 56px 24px; }
  .proof-grid { grid-template-columns: 1fr 1fr; gap: 36px; padding: 30px; }
  .proof-grid h2 { font-size: 30px; }

  .donate-home { padding: 60px 0; }
  .donate-grid { grid-template-columns: 1.15fr 0.85fr; gap: 40px; }
  .donate-grid h2 { font-size: 34px; }

  .cta-banner { padding: 44px 28px; margin: 48px auto; }
  .cta-banner h2 { font-size: 30px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding: 48px 24px 32px; }

  .page-hero { padding: 56px 0; }
  .page-hero h1 { font-size: 40px; }
  .about-grid { grid-template-columns: 1.05fr 0.95fr; gap: 36px; padding: 32px; margin-top: 32px; }
  .about-grid h2 { font-size: 30px; }
  .legal-grid { grid-template-columns: repeat(3, 1fr); }
  .about-contact { padding: 32px 24px 56px; }
  .contact-box { grid-template-columns: 1fr 1fr 1.2fr; padding: 32px; }

  .work-intro h2 { font-size: 30px; }
  .work-grid { grid-template-columns: 1fr 1fr; padding: 24px; }
  .work-card { padding: 28px; }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }

  .donate-page-grid { grid-template-columns: 0.95fr 1.05fr; gap: 24px; padding: 32px 24px; }
  .qr-big-card { position: sticky; top: 92px; }

  .whatsapp-float { bottom: 22px; right: 22px; }
  .whatsapp-float:hover { transform: scale(1.06); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
