/* =========================================================
   SaafPaani — Clean Water for Everyone
   Palette: deep ocean teal + warm cream + bright water teal
   Type: Fraunces (display) / Hanken Grotesk (body)
   ========================================================= */

:root {
  --ink:    #102a30;
  --ink-2:  #355258;
  --deep:   #0a4d57;
  --teal:   #0e8a9b;
  --cta:    #12b5a3;   /* bright water teal — donate buttons */
  --cta-d:  #0e9c8c;
  --cyan:   #2bb7c9;
  --gold:   #cf9a3e;
  --cream:  #f7f1e7;
  --cream-2:#efe6d6;
  --paper:  #ffffff;
  --line:   #e6ddcd;

  --shadow-sm: 0 2px 8px rgba(16,42,48,.06);
  --shadow:    0 14px 40px -16px rgba(16,42,48,.22);
  --shadow-lg: 0 30px 70px -24px rgba(10,77,87,.34);

  --radius:   18px;
  --radius-lg:26px;
  --maxw: 1140px;

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Hanken Grotesk", -apple-system, system-ui, sans-serif;
}

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; color: var(--ink); letter-spacing: -.01em; }
em { font-style: italic; color: var(--teal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-weight: 700; font-size: .98rem;
  padding: .85em 1.5em; border-radius: 999px; cursor: pointer;
  border: 0; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s;
  white-space: nowrap;
}
.btn .ico { width: 1.05em; height: 1.05em; transition: transform .3s; }
.btn:hover .ico { transform: translateX(4px); }

.btn-primary { background: var(--deep); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--deep); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); background: #fff; }

.btn-donate {
  width: 100%; justify-content: center;
  background: linear-gradient(135deg, var(--cta), var(--cta-d));
  color: #fff; box-shadow: 0 12px 26px -10px rgba(18,181,163,.6);
  letter-spacing: .01em;
}
.btn-donate:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -10px rgba(18,181,163,.7); }

.btn-lg { font-size: 1.05rem; padding: 1.05em 2em; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,241,231,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .3s, background .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); background: rgba(247,241,231,.94); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-drop { width: 34px; height: 44px; filter: drop-shadow(0 4px 8px rgba(14,138,155,.35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--sans); font-weight: 500; font-size: 1.18rem; letter-spacing: .14em; color: var(--ink); }
.brand-name strong { font-weight: 800; color: var(--teal); }
.brand-tag { font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-2); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-weight: 600; font-size: .95rem; color: var(--ink-2); transition: color .2s; }
.nav a:hover { color: var(--teal); }
.nav-cta { background: var(--cta); color: #fff !important; padding: .6em 1.3em; border-radius: 999px; box-shadow: 0 8px 18px -8px rgba(18,181,163,.7); }
.nav-cta:hover { background: var(--cta-d); }

/* =========================================================
   HERO  (full-bleed photo + donation widget)
   ========================================================= */
.hero { position: relative; overflow: hidden; min-height: 760px; display: flex; align-items: center; padding: 110px 0 140px; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: #0c5663 url("images/hero-bg.jpg") center right / cover no-repeat;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(7,49,57,.92) 0%, rgba(8,58,67,.74) 34%, rgba(8,58,67,.18) 56%, rgba(8,58,67,0) 72%),
    linear-gradient(180deg, rgba(7,49,57,.35), rgba(7,49,57,0) 30%);
}

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr; gap: 30px; max-width: 1180px;
}
.hero-copy { max-width: 560px; }
.hero h1 {
  color: #fff; font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.05; margin-bottom: 16px;
  text-shadow: 0 2px 24px rgba(0,0,0,.28); max-width: 12ch;
}
.hero-sub { color: rgba(255,255,255,.92); font-size: 1.12rem; font-weight: 500; max-width: 40ch; text-shadow: 0 1px 14px rgba(0,0,0,.3); }

/* ---------- Donation card ---------- */
.give-card {
  width: 100%; max-width: 430px; background: #fff;
  border-radius: 16px; box-shadow: 0 30px 70px -20px rgba(4,28,33,.55);
  overflow: hidden; margin-top: 6px;
}
.give-tabs { display: flex; align-items: stretch; background: #f3efe6; border-bottom: 1px solid var(--line); }
.give-tab {
  flex: 1; border: 0; background: transparent; cursor: pointer;
  font-family: var(--sans); font-weight: 700; font-size: .86rem; letter-spacing: .02em;
  color: var(--ink-2); padding: 16px 10px; transition: color .2s, background .2s;
}
.give-tab.is-active { background: var(--cta); color: #fff; }
.give-tab:not(.is-active):hover { color: var(--teal); }

.give-body { padding: 22px 22px 24px; }
.give-label {
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 14px;
}

.amt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.amt-grid--quad { grid-template-columns: repeat(2, 1fr); }
.is-hidden { display: none !important; }

.amt {
  border: 1.5px solid var(--line); background: #f7f4ed; border-radius: 11px; cursor: pointer;
  padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: var(--sans); transition: all .18s ease; color: var(--ink); text-align: center;
}
.amt:hover { border-color: var(--cta); background: #fff; transform: translateY(-1px); }
.amt.is-active { background: var(--gold); border-color: var(--gold); box-shadow: 0 8px 18px -8px rgba(207,154,62,.7); }
.amt.is-active .amt-sub { color: rgba(0,0,0,.62); }
.amt-val { font-weight: 800; font-size: 1.18rem; line-height: 1; color: var(--ink); }
.amt-sub { font-size: .72rem; font-weight: 600; color: var(--ink-2); }
.amt--sm { padding: 15px 8px; font-weight: 800; font-size: 1.12rem; }
.amt--other { font-size: .92rem; font-weight: 700; color: var(--ink-2); }
.amt--other.is-active { color: rgba(0,0,0,.7); }

.amt-input {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--cta); border-radius: 11px; padding: 4px 14px; background: #fff;
}
.amt-input-cur { font-weight: 800; font-size: 1.1rem; color: var(--ink-2); }
.amt-input input {
  flex: 1; border: 0; outline: 0; font-family: var(--sans); font-weight: 700; font-size: 1.1rem;
  padding: 12px 0; color: var(--ink); background: transparent;
}
.amt-input input::-webkit-outer-spin-button, .amt-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.impact {
  display: flex; align-items: flex-start; gap: 9px; margin: 18px 0 18px;
  font-size: .96rem; color: var(--ink); line-height: 1.45;
}
.impact b { color: var(--teal); }
.impact-ico { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 1px; }

.give-btn {
  display: flex; align-items: center; justify-content: center; gap: .5em;
  width: 100%; background: var(--cta); color: #fff; border: 0; border-radius: 12px;
  font-family: var(--sans); font-weight: 800; font-size: 1.08rem; letter-spacing: .01em;
  padding: 16px; cursor: pointer; text-decoration: none;
  box-shadow: 0 14px 28px -10px rgba(18,181,163,.7); transition: transform .22s, box-shadow .22s, background .22s;
}
.give-btn:hover { background: var(--cta-d); transform: translateY(-2px); box-shadow: 0 20px 36px -10px rgba(18,181,163,.8); }
.give-btn .ico { width: 1.05em; height: 1.05em; transition: transform .3s; }
.give-btn:hover .ico { transform: translateX(4px); }
.give-btn.is-disabled { background: #c9c2b3; box-shadow: none; pointer-events: none; }

.give-foot { margin-top: 14px; text-align: center; font-size: .8rem; color: var(--ink-2); }
.give-foot a { color: var(--teal); font-weight: 700; }
.give-foot a:hover { text-decoration: underline; }

.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; z-index: 2; }

/* =========================================================
   STATS
   ========================================================= */
.stats { background: var(--cream); padding: 6px 0 64px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.stat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--teal), var(--cyan)); }
.stat-num { display: block; font-family: var(--serif); font-size: 2.5rem; font-weight: 700; color: var(--deep); line-height: 1; }
.stat-lbl { display: block; margin-top: 8px; font-size: .9rem; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }

/* =========================================================
   SECTION HEADS
   ========================================================= */
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.kicker { display: inline-block; font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 14px; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.section-head.light .kicker { color: #8fe3da; }
.section-head.light h2, .section-head.light p { color: #eafdfb; }

/* =========================================================
   PROJECTS
   ========================================================= */
.projects { padding: 88px 0 96px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); position: relative;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.card-featured { border-color: var(--cta); box-shadow: 0 24px 60px -22px rgba(18,181,163,.4); }
.card-featured .card-media { }
.badge {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  background: var(--gold); color: #fff; font-weight: 700; font-size: .74rem;
  letter-spacing: .04em; padding: .4em .9em; border-radius: 999px; box-shadow: var(--shadow-sm);
}

.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.card:hover .card-media img { transform: scale(1.06); }

.card-body { padding: 26px 26px 28px; }
.card-body h3 { font-size: 1.6rem; margin-bottom: 4px; }
.card-tag { color: var(--ink-2); font-size: .95rem; margin-bottom: 14px; min-height: 2.6em; }
.price { font-family: var(--serif); font-size: 2.3rem; font-weight: 700; color: var(--teal); line-height: 1; margin-bottom: 20px; }

.feat { list-style: none; margin: 0 0 24px; display: grid; gap: 11px; }
.feat li { position: relative; padding-left: 30px; font-size: .96rem; color: var(--ink); font-weight: 500; }
.feat li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(18,181,163,.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e9c8c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
}

.pay-note { text-align: center; margin-top: 36px; color: var(--ink-2); font-size: .94rem; font-weight: 500; }

/* =========================================================
   WHAT'S INCLUDED
   ========================================================= */
.includes { background: linear-gradient(180deg, #fff, var(--cream)); padding: 90px 0; border-top: 1px solid var(--line); }
.inc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.inc {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .3s, box-shadow .3s;
}
.inc:hover { transform: translateY(-5px); box-shadow: var(--shadow); background: #fff; }
.inc-ico { font-size: 1.9rem; display: block; margin-bottom: 14px; }
.inc h4 { font-size: 1.22rem; margin-bottom: 8px; }
.inc p { color: var(--ink-2); font-size: .96rem; }

.after-note {
  margin-top: 40px; text-align: center; font-family: var(--serif); font-style: italic;
  font-size: 1.25rem; color: var(--deep);
}

/* =========================================================
   PROCESS (dark teal)
   ========================================================= */
.process {
  background: radial-gradient(900px 500px at 80% 0, rgba(43,183,201,.22), transparent 60%), linear-gradient(160deg, #0a4d57, #073b43);
  color: #eafdfb; padding: 92px 0;
}
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.steps li {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 30px 26px; backdrop-filter: blur(4px);
}
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px; margin-bottom: 18px;
  font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: #073b43;
  background: linear-gradient(135deg, #5fe0d2, var(--cta)); box-shadow: 0 8px 20px -8px rgba(18,181,163,.7);
}
.steps h4 { color: #fff; font-size: 1.32rem; margin-bottom: 8px; }
.steps p { color: #bfeae6; font-size: .98rem; }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner { padding: 80px 0; background: var(--cream); }
.cta-inner {
  background: linear-gradient(135deg, var(--cta), var(--teal));
  border-radius: var(--radius-lg); padding: 48px 54px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-inner::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
}
.cta-inner h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 6px; }
.cta-inner p { color: rgba(255,255,255,.92); font-size: 1.08rem; }
.cta-inner .btn-primary { background: #fff; color: var(--deep); }
.cta-inner .btn-primary:hover { background: var(--ink); color: #fff; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: #cdd8da; padding: 60px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot-brand { max-width: 420px; }
.foot-brand .brand-name { color: #fff; font-size: 1.3rem; }
.foot-brand .brand-name strong { color: var(--cta); }
.foot-brand p { margin-top: 12px; color: #9fb2b5; font-size: .96rem; }
.foot-links { display: flex; flex-direction: column; gap: 12px; }
.foot-links a { color: #cdd8da; font-weight: 600; font-size: .95rem; transition: color .2s; }
.foot-links a:hover { color: var(--cta); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: .85rem; color: #7e9295; }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero { min-height: 0; padding: 96px 0 120px; }
  .hero-scrim { background:
    linear-gradient(120deg, rgba(7,49,57,.92) 0%, rgba(8,58,67,.7) 50%, rgba(8,58,67,.35) 100%),
    linear-gradient(180deg, rgba(7,49,57,.3), rgba(7,49,57,.5)); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .inc-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .nav { gap: 18px; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .nav a:not(.nav-cta) { display: none; }
  .hero { padding: 80px 0 100px; }
  .hero-bg { background-position: 70% center; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero-sub { font-size: 1.02rem; }
  .give-card { max-width: 100%; }
  .inc-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 36px 28px; text-align: center; justify-content: center; }
  .foot-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 380px) {
  .brand-tag { display: none; }
  .amt-sub { display: none; }
}
