/* =========================================================
   Right to Sight — Donations Page (full replacement)
   ========================================================= */

/* Reset and design tokens */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Layout */
  --page-max: 1200px;
  --gutter: 20px;
  --section-gap: 64px;

  /* Palette */
  --purple: #403d84;
  --blue: #5d84c2;
  --green: #88aa6f;
  --green-hover: #76985f;
  --dark-purple: #2f2c63;

  /* Surface and text */
  --bg: #EEF4EC;
  --card: #ffffff;
  --ink: #233323;
  --text: #333;
  --text-light: #666;
  --muted: #5E6D5E;

  /* Lines, radii, shadows */
  --border: #e0e4e8;
  --radius: 24px;
  --shadow-1: 0 6px 18px rgba(0,0,0,.08);
  --shadow-2: 0 14px 40px rgba(0,0,0,.12);

  /* Motion */
  --transition: .2s ease;

  /* Typography */
  --heading: 'Merriweather', serif;
  --body: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

html, body { height: 100%; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: radial-gradient(1200px 700px at 80% 0%, #F7FBF6 0%, var(--bg) 60%) fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--heading); color: #35561f; }

/* =========================
   Header (aligned container)
   ========================= */
header {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 1200;
}
header .container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img { height: 80px; width: auto; }

.nav-list { display: flex; gap: 1.5rem; }
.nav-list a {
  font-weight: 700;
  font-size: 15px;
  position: relative;
  padding: 10px 0;
}
.nav-list a::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width .18s ease;
}
.nav-list a:hover::after { width: 100%; }

/* Optional header buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 20px; font-weight: 800;
  border: 1px solid transparent; transition: var(--transition);
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hover); }
.btn-dark { background: var(--purple); color: #fff; }
.btn-dark:hover { background: var(--dark-purple); }

/* =========================
   Page container
   ========================= */
.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* =========================
   Hero grid (main layout)
   ========================= */
.hero {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 20px var(--gutter) var(--section-gap);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;  /* wider left, narrower right */
  gap: 8px;                              /* slightly tighter */
  align-items: start;
}

/* Left column: collage + text */
.hero-left { min-width: 0; }

.image-collage {
  position: relative;
  width: 100%;
  max-width: 600px;   /* ensure it fits its column */
  height: 460px;      /* anchors the section visually */
  margin-bottom: 16px;
}

.green-shape {
    position: absolute;
  
    /* larger overall shape */
    inset: 0 28% 0 -60px;
  
    background: linear-gradient(135deg, #558544, #3F6E37);
  
    /* rounder + taller */
    border-radius: 320px 320px 80px 80px;
  
    box-shadow: var(--shadow-2);
    filter: saturate(1.05);
  }

.circle-img {
  position: absolute;
  object-fit: cover;
  border-radius: 24px;
  outline: 6px solid rgba(255,255,255,.92);
  box-shadow: var(--shadow-1);
  image-rendering: -webkit-optimize-contrast;
}

.top-img  { width: 240px; height: 240px; left: 20px; top: -10px; transform: rotate(0deg); }
.left-img { width: 280px; height: 280px; left: -30px; bottom: -100px; transform: rotate(0deg); }
.right-img{ width: 300px; height: 300px; right: -4px; bottom: -4px; transform: rotate(0deg); }

/* Text block — lowered to use empty space */
.hero-text { max-width: 720px; margin-top: 120px; }

.hero-text h1 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 6px 0 10px;
}

.hero-text p {
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--muted);
}

/* =========================
   Right column (cards)
   ========================= */
.hero-right {
  width: 100%;
  max-width: 480px;     /* comfortable form width */
  min-width: 320px;
  margin-left: auto;
  margin-top: -8px;     /* small lift to tuck into open space */
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.donation-card,
.stats-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-1);
}

.donation-card h2 {
  text-align: center;
  font-family: var(--heading);
  color: var(--purple);
  font-size: 32px;
  letter-spacing: -0.2px;
  margin-bottom: 18px;
}

/* Donation controls */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.amount-grid button {
  height: 56px;
  border: 1.5px solid #9CC18A;
  background: #fff;
  font-size: 20px;
  font-weight: 800;
  border-radius: 12px;
  cursor: pointer;
  color: #2D3E2D;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.amount-grid button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(77,113,52,.12);
}
.amount-btn.active {
  background: var(--green);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 18px rgba(77,113,52,.25);
}

.custom-amount {
  width: 100%;
  height: 60px;
  border: 1.5px solid #9CC18A;
  background: #fff;
  color: #223322;
  font-size: 20px;
  font-weight: 700;
  padding: 0 16px;
  border-radius: 12px;
  margin: 6px 0 18px;
  transition: border-color .15s, box-shadow .15s;
}
.custom-amount:focus {
  outline: none;
  border-color: #9AD77A;
  box-shadow: 0 0 0 4px rgba(154,215,122,.25);
}

.donate-submit {
  width: 100%;
  height: 64px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  background: linear-gradient(180deg, var(--green), #3e5c2b);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .3px;
  box-shadow: 0 12px 24px rgba(61,99,45,.25);
  transition: transform .14s ease, filter .14s ease;
}
.donate-submit:hover { transform: translateY(-1px); filter: saturate(1.05); }
.donate-submit:active { transform: translateY(0); }

/* Stats card */
.progress-bar {
  width: 100%;
  height: 14px;
  background: #E6ECE3;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: inset 0 1px 0 rgba(0,0,0,.04);
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #76B85C, #5a8441);
  border-radius: 999px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  margin-bottom: 18px;
  gap: 8px;
}
.stats-grid h3 { font-size: 24px; color: #2E4A2A; margin-bottom: 2px; }
.stats-grid span { font-size: 12px; letter-spacing: .12em; font-weight: 800; color: #7D8A7D; }

.placeholder-lines { display: flex; flex-direction: column; gap: 12px; }
.placeholder-lines div { height: 10px; background: #EFF4ED; border-radius: 999px; }
.placeholder-lines div:nth-child(1) { width: 100%; }
.placeholder-lines div:nth-child(2) { width: 86%; }
.placeholder-lines div:nth-child(3) { width: 72%; }

/* Focus ring (a11y) */
button:focus-visible,
input:focus-visible,
a.btn:focus-visible {
  outline: 3px solid rgba(154,215,122,.85);
  outline-offset: 2px;
}

/* =========================
   Responsive adjustments
   ========================= */
@media (max-width: 1200px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-right {
    max-width: 560px;
    min-width: 0;
    margin: 0 auto; /* center when stacked */
  }
  .image-collage {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 860px) {
  header .container { padding: 0 16px; }
  .image-collage { height: 360px; }
  .top-img  { width: 200px; height: 200px; }
  .left-img { width: 170px; height: 170px; }
  .right-img{ width: 220px; height: 220px; }
  .donation-card, .stats-card { border-radius: 20px; padding: 20px; }
  .donation-card h2 { font-size: 28px; }
}

@media (max-width: 420px) {
  :root { --gutter: 14px; }
  .amount-grid { gap: 10px; }
  .amount-grid button { height: 52px; font-size: 18px; }
  .custom-amount { height: 54px; font-size: 18px; }
  .donate-submit { height: 58px; font-size: 22px; }
}
