/* ===================================================================
   Himalayan Hopes — Project Aabha
   Warm "sunrise / light" theme
   =================================================================== */

:root {
  /* Sunrise palette */
  --sun-gold: #F4A300;
  --sun-amber: #FFB627;
  --sun-orange: #FF7A2F;
  --sun-deep: #E85D04;
  /* Himalayan sky */
  --sky: #1B6CA8;
  --sky-deep: #0E4D75;
  --sky-soft: #7FB2D6;
  /* Neutrals */
  --cream: #FFF9F0;
  --cream-2: #FFF3E0;
  --ink: #2A2118;
  --ink-soft: #5A4E42;
  --line: #EADFCB;
  --white: #ffffff;
  /* Effects */
  --shadow-sm: 0 2px 8px rgba(42, 33, 24, 0.08);
  --shadow: 0 8px 28px rgba(42, 33, 24, 0.12);
  --shadow-lg: 0 18px 50px rgba(42, 33, 24, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --grad-sun: linear-gradient(135deg, #FFB627 0%, #FF7A2F 55%, #E85D04 100%);
  --grad-sky: linear-gradient(135deg, #1B6CA8 0%, #0E4D75 100%);
  --grad-stats: linear-gradient(135deg, #FF9E2C 0%, #EC6608 55%, #C9450A 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: "Fraunces", Georgia, "Times New Roman", serif; line-height: 1.15; color: var(--ink); font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }

a { color: var(--sky); text-decoration: none; transition: color .2s; }
a:hover { color: var(--sun-deep); }

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

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

section { padding: 74px 0; }

.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .18em;
  font-size: .78rem; font-weight: 700; color: var(--sun-deep);
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin-top: 12px; }

.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 1rem; padding: 14px 28px;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .2s;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad-sun); color: #fff; box-shadow: 0 8px 20px rgba(232,93,4,.32); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(232,93,4,.42); }
.btn-sky { background: var(--grad-sky); color: #fff; box-shadow: 0 8px 20px rgba(14,77,117,.3); }
.btn-sky:hover { color:#fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--sun-deep); border-color: var(--sun-gold); }
.btn-lg { padding: 17px 36px; font-size: 1.08rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 249, 240, 0.9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; white-space: nowrap; font-family: "Fraunces", serif; font-weight: 600; font-size: 1.22rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .logo-mark { width: 40px; height: 40px; flex: none; }
.brand-logo { height: 42px; width: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.12; white-space: nowrap; }
.brand small { display:block; font-family: "Inter", sans-serif; font-weight:600; font-size:.62rem; letter-spacing:.09em; text-transform:uppercase; color: var(--sun-deep); margin-top:3px; }
.hero-logo { display:block; width: 100%; max-width: 300px; margin: 0 auto 16px; }
.footer-logo { width: 190px; height: auto; margin-bottom: 4px; }
@media (max-width: 420px){ .brand-text small { display:none; } .brand-logo { height: 38px; } }
.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .95rem; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--sun-deep); }
.nav-cta { margin-left: 4px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display:block; width: 26px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 96px 0 84px;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(255,182,39,.35), transparent 60%),
    radial-gradient(760px 480px at 8% 12%, rgba(127,178,214,.28), transparent 60%),
    var(--cream);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { margin-bottom: 30px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-tags { display:flex; gap:10px; flex-wrap:wrap; margin-top: 30px; }
.tag { font-size:.82rem; font-weight:600; color: var(--sky-deep); background: #fff; border:1px solid var(--line); padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); }

.hero-visual { position: relative; }
.hero-card {
  background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg);
  padding: 30px; position: relative; overflow: hidden;
}
.hero-card::before { content:""; position:absolute; inset:0; background: var(--grad-sun); opacity:.06; }
.hero-sun { width: 140px; height: 140px; margin: 4px auto 18px; display:block; }
.hero-verse { text-align:center; font-family:"Fraunces",serif; font-style: italic; color: var(--sky-deep); font-size: 1.05rem; line-height:1.5; }
.hero-verse small { display:block; margin-top:10px; font-family:"Inter",sans-serif; font-style: normal; color: var(--ink-soft); font-size:.82rem; }

/* ---------- Stats bar ---------- */
.stats { background: var(--grad-stats); color:#fff; padding: 46px 0; }
.stats-grid { display:grid; grid-template-columns: repeat(4,1fr); gap: 26px; text-align:center; }
.stat .num { font-family:"Fraunces",serif; font-size: clamp(2rem,4vw,2.9rem); font-weight:600; color: #FFFFFF; }
.stat .label { color: #FFF3E0; }
.stat .label { font-size:.92rem; opacity:.92; margin-top:4px; }

/* ---------- Cards / features ---------- */
.cards { display:grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.card {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico { width:52px; height:52px; border-radius: 14px; display:grid; place-items:center; margin-bottom:16px; background: var(--cream-2); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .98rem; }

.bg-cream2 { background: var(--cream-2); }
.bg-white { background:#fff; }

/* ---------- Split feature ---------- */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items:center; }
.split .media { border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow); background: var(--grad-sun); min-height: 320px; display:grid; place-items:center; }
.split ul { list-style:none; margin-top:18px; }
.split ul li { position:relative; padding-left: 30px; margin-bottom: 13px; color: var(--ink-soft); }
.split ul li::before { content:""; position:absolute; left:0; top:7px; width:16px; height:16px; border-radius:50%; background: var(--grad-sun); }

/* ---------- Fundraiser / goals ---------- */
.goal-card {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  overflow:hidden; box-shadow: var(--shadow-sm); display:flex; flex-direction:column;
  transition: transform .2s, box-shadow .2s;
}
.goal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.goal-head { padding: 26px 26px 6px; }
.goal-head .ico { width:56px;height:56px;border-radius:14px;display:grid;place-items:center;margin-bottom:14px;background:var(--grad-sun); }
.goal-body { padding: 6px 26px 26px; display:flex; flex-direction:column; flex:1; }
.goal-body p { color: var(--ink-soft); font-size:.96rem; }
.progress { height: 12px; background: var(--cream-2); border-radius: 999px; overflow:hidden; margin: 18px 0 8px; }
.progress > span { display:block; height:100%; background: var(--grad-sun); border-radius:999px; }
.goal-meta { display:flex; justify-content:space-between; font-size:.9rem; margin-bottom: 16px; }
.goal-meta b { color: var(--ink); }
.goal-meta .muted { color: var(--ink-soft); }
.goal-card .btn { margin-top:auto; }

.donate-box {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px; max-width: 560px; margin: 0 auto;
}
.amount-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:10px; margin: 18px 0; }
.amount-grid button {
  padding: 14px 6px; border-radius: var(--radius-sm); border:2px solid var(--line);
  background:#fff; font-weight:600; cursor:pointer; font-size:1rem; transition:.18s;
}
.amount-grid button:hover, .amount-grid button.sel { border-color: var(--sun-gold); background: var(--cream-2); color: var(--sun-deep); }

/* ---------- Callout / band ---------- */
.band { background: var(--grad-sun); color:#fff; text-align:center; }
.band h2 { color:#fff; }
.band p { max-width:640px; margin: 12px auto 26px; font-size:1.1rem; }
.band .btn-ghost { border-color: rgba(255,255,255,.7); color:#fff; }
.band .btn-ghost:hover { background:#fff; color: var(--sun-deep); }
.band .btn-white { background:#fff; color: var(--sun-deep); }

/* ---------- Timeline ---------- */
.timeline { max-width: 780px; margin: 0 auto; position:relative; }
.timeline::before { content:""; position:absolute; left: 19px; top: 6px; bottom: 6px; width:2px; background: var(--line); }
.tl-item { position:relative; padding: 0 0 30px 58px; }
.tl-item .dot { position:absolute; left:8px; top:2px; width:24px; height:24px; border-radius:50%; background: var(--grad-sun); box-shadow: 0 0 0 5px var(--cream); }
.tl-item h4 { margin-bottom:4px; }
.tl-item span.date { font-size:.82rem; font-weight:700; color: var(--sky); text-transform:uppercase; letter-spacing:.08em; }
.tl-item p { color: var(--ink-soft); font-size:.96rem; margin-top:4px; }

/* ---------- Partner logos ---------- */
.partners { display:flex; gap: 30px; flex-wrap:wrap; justify-content:center; align-items:center; }
.partner-tile { background:#fff; border:1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 26px; box-shadow: var(--shadow-sm); font-weight:600; color: var(--ink-soft); text-align:center; }

/* ---------- Gallery ---------- */
.gallery { display:grid; grid-template-columns: repeat(3,1fr); gap:16px; }
.gallery figure { border-radius: var(--radius-sm); overflow:hidden; box-shadow: var(--shadow-sm); position:relative; aspect-ratio: 1/1; }
.gallery figure .ph { position:absolute; inset:0; display:grid; place-items:center; background: var(--grad-sky); color:#fff; text-align:center; padding:16px; font-size:.9rem; }
.gallery figure img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; }
.split-photo { border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow); align-self:start; }
.split-photo img { display:block; width:100%; height:auto; }
.gallery figcaption { position:absolute; left:0; right:0; bottom:0; background: linear-gradient(transparent, rgba(0,0,0,.6)); color:#fff; padding: 22px 12px 10px; font-size:.85rem; }

/* ---------- Forms ---------- */
form.hh-form { display:grid; gap: 16px; max-width: 620px; }
.hh-form label { font-weight:600; font-size:.92rem; display:block; margin-bottom:6px; }
.hh-form input, .hh-form textarea, .hh-form select {
  width:100%; padding: 13px 15px; border:1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; background:#fff; color: var(--ink);
}
.hh-form input:focus, .hh-form textarea:focus { outline:2px solid var(--sun-gold); border-color: var(--sun-gold); }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }

/* ---------- Info cards / contact ---------- */
.info-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:22px; }
.info-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.info-card h4 { margin-bottom:6px; }
.info-card p, .info-card a { color: var(--ink-soft); font-size:.96rem; }

/* ---------- Notice / editable placeholder ---------- */
.edit-note {
  background: #FFF7E0; border:1px dashed var(--sun-gold); color: #7a5a00;
  border-radius: var(--radius-sm); padding: 12px 16px; font-size:.86rem; margin: 10px 0;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #E9E0D4; padding: 72px 0 30px; }
.footer-grid { display:grid; grid-template-columns: 1.7fr 1fr 1fr 1.4fr; gap: 40px 56px; }
.footer-grid > div { min-width: 0; }
.site-footer h5 { font-family:"Inter"; text-transform:uppercase; letter-spacing:.12em; font-size:.8rem; color:#fff; margin-bottom:18px; }
.site-footer a { color:#C9BEB0; display:block; margin-bottom:11px; font-size:.94rem; line-height:1.4; }
.site-footer a:hover { color: var(--sun-amber); }
.footer-brand p { color:#B7AC9D; font-size:.92rem; margin-top:16px; max-width: 320px; line-height:1.7; }
.footer-bottom { border-top:1px solid #453b30; margin-top: 48px; padding-top: 24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px 24px; font-size:.85rem; color:#9E9384; }

/* ---------- Stakeholders / team highlight ---------- */
.collab-ribbon {
  display:flex; align-items:center; justify-content:center; gap:20px; flex-wrap:wrap;
  background: linear-gradient(135deg, #FFF3E0 0%, #EDE9FE 100%);
  border:1px solid var(--line); border-radius: var(--radius);
  padding: 22px 28px; box-shadow: var(--shadow-sm); max-width: 760px; margin: 0 auto 44px;
}
.collab-ribbon .pill { font-family:"Fraunces",serif; font-weight:600; font-size:1.15rem; }
.collab-ribbon .pill.hh { color: var(--sun-deep); }
.collab-ribbon .pill.brp { color: #4B2F9B; }
.collab-ribbon .x { color: var(--ink-soft); font-size:1.3rem; }

/* Featured founder */
.founder-feature {
  display:grid; grid-template-columns: 200px 1fr; gap: 0; align-items:stretch;
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  overflow:hidden; box-shadow: var(--shadow-lg); max-width: 860px; margin: 0 auto 20px;
  position:relative;
}
.founder-feature::after {
  content:"FOUNDER"; position:absolute; top:16px; right:-34px; transform: rotate(45deg);
  background: var(--grad-sun); color:#fff; font-size:.66rem; font-weight:700; letter-spacing:.14em;
  padding: 5px 44px; box-shadow: var(--shadow-sm);
}
.founder-feature .ff-photo {
  background: var(--grad-sun); display:grid; place-items:center; font-size:4.4rem; color:#fff;
}
.founder-feature .ff-body { padding: 30px 32px; }
.founder-feature .ff-body h3 { font-size: 1.85rem; margin-bottom: 4px; }
.founder-feature .ff-role { color: var(--sun-deep); font-weight:700; font-size:1rem; margin-bottom:10px; }
.founder-feature .ff-body p { color: var(--ink-soft); }
.founder-feature .org { display:inline-block; margin-bottom:12px; font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.09em; padding:5px 13px; border-radius:999px; }

.stakeholders { display:grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.stakeholder {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  overflow:hidden; box-shadow: var(--shadow); text-align:center; padding-bottom: 26px;
  transition: transform .2s, box-shadow .2s;
}
.stakeholder:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.stakeholder .top { height: 78px; }
.stakeholder.hh .top { background: var(--grad-sun); }
.stakeholder.brp .top { background: var(--grad-sky); }
.stakeholder .avatar {
  width: 92px; height: 92px; border-radius:50%; margin: -46px auto 14px;
  background: var(--cream); border:4px solid #fff; display:grid; place-items:center;
  font-size:2.3rem; box-shadow: var(--shadow-sm);
}
.stakeholder h3 { margin-bottom: 3px; font-size:1.3rem; }
.stakeholder .role { color: var(--sun-deep); font-weight:600; font-size:.92rem; }
.stakeholder.brp .role { color: var(--sky); }
.stakeholder .org {
  display:inline-block; margin-top:10px; font-size:.7rem; font-weight:700;
  text-transform:uppercase; letter-spacing:.09em; padding:5px 13px; border-radius:999px;
}
.org-hh { background: var(--cream-2); color: var(--sun-deep); }
.org-brp { background: #EDE9FE; color: #4B2FF6; }
.stakeholder p.bio { color: var(--ink-soft); font-size:.93rem; padding: 12px 22px 0; }

/* ---------- Gallery upload hint ---------- */
.upload-hint {
  border:2px dashed var(--sky-soft); border-radius: var(--radius);
  background: #fff; padding: 26px; text-align:center; color: var(--ink-soft);
  max-width: 820px; margin: 0 auto;
}

/* ---------- Donate notice modal ---------- */
.hh-modal-overlay {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; padding: 22px;
  background: rgba(42, 33, 24, 0.55); backdrop-filter: blur(3px);
}
.hh-modal-overlay.open { display: flex; }
.hh-modal {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  max-width: 420px; width: 100%; padding: 34px 30px; text-align: center;
  transform: translateY(10px); animation: hhpop .25s ease forwards;
}
@keyframes hhpop { to { transform: translateY(0); } }
.hh-modal .sun { font-size: 2.6rem; margin-bottom: 8px; }
.hh-modal h3 { margin-bottom: 10px; }
.hh-modal p { color: var(--ink-soft); margin-bottom: 22px; }
.hh-modal .btn { width: 100%; justify-content: center; }

/* ---------- Reveal animation ---------- */
.reveal { opacity:0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity:1; transform:none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .cards, .info-grid, .stakeholders { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 460px; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
/* Collapse the nav to a hamburger before the 8 links get cramped */
@media (max-width: 940px) {
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--cream); border-bottom:1px solid var(--line);
    padding: 8px 22px 20px; transform: translateY(-140%); transition: transform .32s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width:100%; border-bottom:1px solid var(--line); }
  .nav-links li:last-child { border-bottom:0; padding-top:10px; }
  .nav-links a { display:block; padding: 13px 0; font-size: 1rem; }
  .nav-cta { margin-left: 0; }
  .nav-cta .btn { display:inline-flex; }
  .nav-toggle { display:block; }
}

@media (max-width: 680px) {
  section { padding: 54px 0; }
  .cards, .info-grid, .amount-grid, .gallery, .form-row, .stats-grid, .stakeholders { grid-template-columns: 1fr; }
  .founder-feature { grid-template-columns: 1fr; }
  .founder-feature .ff-photo { padding: 26px; font-size: 3.4rem; }
  .amount-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content:center; }
}
