/* =====================================================
   DONATE PAGE — Sacred Saffron Theme
   Fonts: Playfair Display (headings) + Outfit (body)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,700;1,500&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design Tokens ── */
:root {
  --saffron:       #E8601C;
  --saffron-light: #FFF3EA;
  --saffron-dark:  #B84A10;
  --gold:          #D4A017;
  --gold-light:    #FFF9E6;
  --maroon:        #7B1C2E;
  --maroon-light:  #F9EEF1;
  --cream:         #FDFAF4;
  --cream-dark:    #F5EFE4;
  --text:          #1A1209;
  --text-muted:    #7A6050;
  --border:        rgba(184, 116, 60, 0.18);
  --border-strong: rgba(184, 116, 60, 0.35);
  --shadow-sm:     0 2px 12px rgba(139, 69, 19, 0.08);
  --shadow-md:     0 8px 36px rgba(139, 69, 19, 0.13);
  --shadow-lg:     0 20px 60px rgba(139, 69, 19, 0.2);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Noise texture overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── Hero Banner ── */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--maroon) 0%, #4A0E1C 50%, #1A0709 100%);
  padding: 4rem 2rem 5rem;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232,96,28,0.28) 0%, transparent 70%);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 64px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-om {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 1rem;
  animation: floatOm 4s ease-in-out infinite;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 20px rgba(212,160,23,0.5));
}
@keyframes floatOm {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero h1 span {
  color: var(--gold);
  font-style: italic;
}
.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  margin-top: 0.75rem;
  font-weight: 300;
  position: relative;
  z-index: 1;
  letter-spacing: 0.3px;
}
.hero-mandala {
  position: absolute;
  font-size: 18rem;
  opacity: 0.04;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  user-select: none;
  animation: slowSpin 60s linear infinite;
}
@keyframes slowSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── Trust Badges ── */
.trust-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 2rem 2rem 0;
  max-width: 900px;
  margin: 0 auto;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 40px;
  padding: 0.55rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.trust-badge:hover {
  border-color: var(--saffron);
  color: var(--saffron-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.trust-badge .badge-icon { font-size: 1rem; }

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 2.5rem 2rem 1rem;
}
.divider span { color: var(--saffron); font-size: 1.2rem; }
.divider-line { height: 1px; flex: 1; max-width: 80px; background: var(--border-strong); }

/* ── Section Title ── */
.section-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--maroon);
  letter-spacing: 0.3px;
  margin-bottom: 0.4rem;
}
.section-sub {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 400;
}

/* ── Donation Cards Grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  padding: 0 2rem 1rem;
  max-width: 960px;
  margin: 0 auto;
}

.donation-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.1rem 1.4rem;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.5s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.donation-card:nth-child(2) { animation-delay: 0.05s; }
.donation-card:nth-child(3) { animation-delay: 0.10s; }
.donation-card:nth-child(4) { animation-delay: 0.15s; }
.donation-card:nth-child(5) { animation-delay: 0.20s; }
.donation-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.donation-card:hover {
  border-color: var(--saffron);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.donation-card:hover::before { transform: scaleX(1); }
.donation-card.active {
  border-color: var(--saffron);
  background: var(--saffron-light);
  box-shadow: 0 8px 32px rgba(232,96,28,0.18);
}
.donation-card.active::before { transform: scaleX(1); }
.donation-card .icon {
  font-size: 2.6rem;
  display: block;
  margin-bottom: 0.8rem;
  transition: transform var(--transition);
}
.donation-card:hover .icon { transform: scale(1.15) rotate(-5deg); }
.donation-card .name {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  font-family: 'Playfair Display', serif;
}
.donation-card .desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.card-check {
  position: absolute;
  top: 10px; right: 10px;
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(232,96,28,0.4);
}
.donation-card.active .card-check { display: flex; }

/* ── Impact Stats ── */
.impact-strip {
  display: flex;
  justify-content: center;
  gap: 2px;
  flex-wrap: wrap;
  padding: 2.5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.impact-item {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 1.5rem 1rem;
  background: #fff;
  border: 1.5px solid var(--border);
  position: relative;
  overflow: hidden;
}
.impact-item:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.impact-item:last-child  { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.impact-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
}
.impact-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--saffron);
  display: block;
}
.impact-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Gallery ── */
.gallery-section {
  padding: 0 2rem 3rem;
  max-width: 960px;
  margin: 0 auto;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 10px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--cream-dark);
  border: 1.5px solid var(--border);
  aspect-ratio: 1 / 1;
}
.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

/* Placeholder — centered, sits behind the image */
.gallery-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  z-index: 0;
}
.gallery-placeholder .ph-icon {
  font-size: 2rem;
  opacity: 0.5;
}

/* Image — stacked on top of placeholder, fills the cell */
.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  z-index: 1;
}
.gallery-item:hover img {
  transform: scale(1.08);
}

/* Overlay — above the image */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(123,28,46,0.75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  z-index: 2;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-caption {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,18,9,0.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.lightbox.show {
  display: flex;
}
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: zoomIn 0.3s ease;
}
@keyframes zoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}
.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  text-align: center;
}

/* ── Testimonial ── */
.testimonials-section {
  padding: 0 2rem 3rem;
  max-width: 960px;
  margin: 0 auto;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.testimonial-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 12px; right: 18px;
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--saffron);
  opacity: 0.15;
  line-height: 1;
}
.testimonial-text {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.author-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--saffron-light), var(--gold-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.author-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.author-city {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── FAQ / Why Donate ── */
.why-section {
  background: linear-gradient(135deg, var(--maroon-light) 0%, var(--gold-light) 100%);
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  padding: 3rem 2rem;
  margin-bottom: 2rem;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 900px;
  margin: 2rem auto 0;
}
.why-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.why-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.why-text h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--maroon);
  margin-bottom: 3px;
}
.why-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Overlay ── */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 18, 9, 0.6);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(6px);
}
.overlay.show { display: flex; }

/* ── Modal ── */
.modal {
  background: #fff;
  padding: 2.25rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  max-width: 460px;
  border-radius: var(--radius-lg);
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-lg);
}
@keyframes slideUp {
  from { transform: translateY(40px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--cream-dark);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--border); color: var(--text); }

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.3rem;
}
.modal-icon { font-size: 1.8rem; }
.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  color: var(--maroon);
}
.modal-subtitle {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.selected-type-badge {
  display: inline-block;
  background: var(--saffron-light);
  color: var(--saffron-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(232, 96, 28, 0.22);
}

/* ── Form ── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(232,96,28,0.1);
}
.form-input.error { border-color: #ef4444; }
.error-msg { font-size: 0.74rem; color: #ef4444; margin-top: 4px; }

/* ── Amount Pills ── */
.amount-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0.85rem;
}
.amount-pill {
  padding: 7px 16px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
}
.amount-pill:hover { border-color: var(--saffron); color: var(--saffron); }
.amount-pill.active {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #fff;
  box-shadow: 0 3px 12px rgba(232,96,28,0.3);
}

/* ── Pay Button ── */
.pay-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 0.75rem;
  transition: all var(--transition);
  letter-spacing: 0.3px;
  box-shadow: 0 4px 20px rgba(232,96,28,0.35);
}
.pay-btn:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,96,28,0.45);
}
.pay-btn:active { transform: scale(0.99); }
.pay-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.secure-note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.secure-note::before { content: '🔒'; font-size: 0.75rem; }

/* ── Success Screen ── */
.success-screen { text-align: center; padding: 1rem 0; }
.success-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 24px rgba(22,163,74,0.2);
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.success-screen h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #166534;
  margin-bottom: 0.5rem;
}
.success-screen p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }
.success-amount {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--saffron);
  margin: 1.25rem 0;
  text-shadow: 0 2px 12px rgba(232,96,28,0.2);
}
.done-btn {
  margin-top: 1.5rem;
  padding: 0.8rem 2.5rem;
  background: var(--maroon);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: all var(--transition);
}
.done-btn:hover { background: #5e1522; transform: translateY(-1px); }

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2.5rem 2rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  border-top: 1px solid var(--border);
  background: var(--cream-dark);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--saffron); }

/* ── Scroll-to-top ── */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(232,96,28,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 50;
}
.scroll-top.visible { display: flex; }
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(232,96,28,0.5); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero { padding: 3rem 1.5rem 4.5rem; }
  .hero h1 { font-size: 1.75rem; }
  .trust-bar { gap: 0.75rem; }
  .cards-grid { padding: 0 1rem 1rem; gap: 0.75rem; }
  .impact-strip { padding: 2rem 1rem; }
  .impact-item:first-child { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
  .impact-item:last-child  { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:first-child { grid-column: span 2; }
  .modal { padding: 1.75rem 1.25rem; border-radius: var(--radius-md); }
  .why-section { padding: 2rem 1rem; }
  .gallery-section, .testimonials-section { padding: 0 1rem 2rem; }
}
@media (max-width: 400px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; }
}