/* Nepal Flood Relief, modern theme */

:root {
  --bg: #f4f6f6;
  --surface: #ffffff;
  --surface-2: #f0f3f3;
  --ink: #131a1e;
  --muted: #566169;
  --line: #e4e8e9;
  --brand: #0f766e;
  --brand-deep: #0b5750;
  --brand-tint: #e5f2f0;
  --accent: #ec4a25;
  --accent-deep: #cf3c1b;
  --alert: #c0362c;
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1140px;
  --shadow-sm: 0 1px 2px rgba(19,26,30,.05), 0 4px 12px rgba(19,26,30,.06);
  --shadow-md: 0 4px 12px rgba(19,26,30,.08), 0 18px 40px rgba(19,26,30,.10);
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}

a { color: var(--brand-deep); }

.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }
.narrow { width: min(720px, 92vw); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--b);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  padding: .72rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: .95rem 2rem; font-size: 1.02rem; }
.btn-sm { padding: .5rem 1.1rem; font-size: .88rem; }
.btn-ghost {
  background: transparent; color: var(--brand-deep);
  border-color: color-mix(in srgb, var(--brand) 35%, transparent);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--brand-tint); color: var(--brand-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; }
.brand {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em;
  font-size: 1.05rem;
}
.brand::before {
  content: ""; display: inline-block; width: .62rem; height: .62rem;
  margin-right: .5rem; border-radius: 3px; background: var(--brand);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(2.75rem, 7vw, 5.5rem) 0; }
.hero-glow {
  position: absolute; inset: -20% -10% auto auto;
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle at 70% 30%,
    color-mix(in srgb, var(--brand) 32%, transparent), transparent 62%);
  filter: blur(10px); pointer-events: none; z-index: 0;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--brand-deep);
  background: var(--brand-tint);
  border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
  padding: .35rem .75rem; border-radius: 999px; margin: 0 0 1.1rem;
}
.eyebrow .dot {
  width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero-copy h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; }
.lede { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.7rem 0 .9rem; }
.reassure { font-size: .88rem; color: var(--muted); margin: 0; }

.hero-video {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  background: #0c1a1c; box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,.06);
}
.hero-video video, .hero-video iframe, .yt-facade {
  display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #0c1a1c;
}
.hero-video video { object-fit: cover; }
.hero-video figcaption { font-size: .8rem; color: #c4d2d0; padding: .6rem .9rem; background: #0c1a1c; }

/* YouTube click-to-load facade */
.yt-facade { position: relative; cursor: pointer; overflow: hidden; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-facade::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,26,28,.1), rgba(12,26,28,.5));
}
.yt-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255,255,255,.95); z-index: 1;
  transition: transform .12s ease;
}
.yt-play::before {
  content: ""; position: absolute; top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid; border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent var(--brand-deep);
}
.yt-facade:hover .yt-play, .yt-facade:focus-visible .yt-play { transform: translate(-50%, -50%) scale(1.09); }
.yt-facade:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }

/* ---------- Section shell ---------- */
.section-title {
  font-size: clamp(1.5rem, 3.2vw, 2.15rem); font-weight: 700; margin-bottom: 1.6rem;
}
.stats, .why, .donate, .trust { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.stats { background: var(--surface); border-block: 1px solid var(--line); }
.stats .section-title, .donate .section-title { text-align: center; }

/* ---------- Stats ---------- */
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.stat {
  position: relative; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.1rem; text-align: center; overflow: hidden;
}
.stat::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--brand);
}
.stat-alert::before { background: var(--alert); }
.stat-num {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 4.2vw, 2.7rem); letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.stat-alert .stat-num { color: var(--alert); }
.stat-label { font-size: .9rem; color: var(--muted); }
.stat-note {
  max-width: 62ch; margin: 1.5rem auto 0; text-align: center;
  font-size: .92rem; color: var(--muted);
}
.stat-source { text-align: center; font-size: .82rem; color: var(--muted); margin-top: .5rem; }

/* ---------- Why ---------- */
.why p { color: #2b363c; }
.why h3 { margin-top: 1.9rem; font-size: 1.15rem; }
.needs { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.needs li { padding-left: 1.9rem; position: relative; color: #2b363c; }
.needs li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 1.15rem; height: 1.15rem; border-radius: 6px;
  background: var(--brand-tint);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
}
.needs li::after {
  content: ""; position: absolute; left: .38rem; top: .62em;
  width: .32rem; height: .58rem; border: solid var(--brand-deep);
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---------- Donate ---------- */
.donate { background: var(--surface); border-top: 1px solid var(--line); }
.progress-card, .pay-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.progress-card { padding: 1.4rem 1.5rem; margin: 1.5rem 0; }
.progress-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .6rem; }
.raised { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.goal { color: var(--muted); font-size: .95rem; }
.progress-track { height: 12px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-deep));
  transition: width 1s cubic-bezier(.22,.61,.36,1);
}
.donor-count { margin: .7rem 0 0; font-size: .9rem; color: var(--muted); }

.tiers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .8rem; margin: 1.5rem 0;
}
.tier {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1rem 1.1rem;
  transition: transform .12s ease, border-color .15s ease;
}
.tier:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.tier-amount { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.tier-impact { font-size: .85rem; color: var(--muted); margin-top: .3rem; }

.pay-card { padding: 1.7rem; text-align: center; }
.pay-note { color: var(--muted); font-size: .95rem; margin: 0 0 1.1rem; }
.btn-donate {
  display: block; width: 100%;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  color: #fff; text-decoration: none;
  padding: 1.05rem 1.5rem; border-radius: 14px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 35%, transparent);
  transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-donate:hover { transform: translateY(-2px); filter: brightness(1.03); box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 42%, transparent); }
.btn-donate:active { transform: translateY(0); }
.razorpay-form { display: flex; justify-content: center; min-height: 44px; }
.pay-secure { margin: .9rem 0 0; font-size: .82rem; color: var(--muted); }
.pay-fallback { color: var(--alert); font-size: .9rem; }
.pay-fallback code { background: #f1e2df; padding: .1em .35em; border-radius: 4px; }

/* ---------- Trust ---------- */
.trust-lead { color: var(--muted); }
.trust-list { display: grid; gap: 1rem; margin: 1.5rem 0; }
.trust-list > div {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1.05rem 1.25rem;
}
.trust-list dt {
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--brand-deep);
}
.trust-list dd { margin: .35rem 0 0; color: #2b363c; }
.trust-contact { font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: #10161a; color: #b9c6c8; padding: 2.75rem 0; font-size: .9rem; }
.site-footer #footerLine { font-family: var(--font-display); font-weight: 600; color: #e7edee; }
.site-footer .fine { color: #8b9a9d; font-size: .82rem; max-width: 64ch; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-video { order: -1; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 430px) {
  .stat-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress-fill { transition: none; }
  .eyebrow .dot { animation: none; }
}
