:root {
  --saffron: #c1440e;
  --saffron-dark: #9c360c;
  --marigold: #e07b1f;
  --gold: #d9a441;
  --cream: #fdf7ee;
  --cream-2: #f7ecdc;
  --ink: #33211a;
  --ink-soft: #6b5547;
  --line: #e8d9c3;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(51, 33, 26, 0.08);
  --shadow-md: 0 12px 32px rgba(51, 33, 26, 0.12);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(253, 247, 238, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 76px;
}
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand-logo { height: 52px; width: auto; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; text-decoration: none; font-weight: 600; font-size: 15px;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  background: transparent; transition: all 0.2s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--saffron), var(--marigold)); color: #fff; padding: 12px 28px; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; padding: 12px 28px; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-lg { padding: 14px 34px; font-size: 16px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 176px 0 110px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(224, 123, 31, 0.35), transparent 60%),
    radial-gradient(900px 450px at 10% 110%, rgba(193, 68, 14, 0.4), transparent 60%),
    linear-gradient(160deg, #4a1d0a 0%, #7a2c0a 45%, #9c360c 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  padding: 8px 18px; border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px; margin-bottom: 26px; color: #ffe4c7;
}
.hero-title { font-size: clamp(42px, 7vw, 72px); margin-bottom: 22px; text-shadow: 0 3px 20px rgba(0,0,0,0.25); }
.hero-sub {
  max-width: 640px; margin: 0 auto 36px;
  font-size: 17px; color: #f7e6d2; line-height: 1.75;
}
.hero-sub em { font-style: italic; color: #ffd9a6; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.hero-note { font-size: 13px; color: #eecba8; letter-spacing: 0.4px; }
.hero-note::before { content: "✦ "; color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-tinted { background: var(--cream-2); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.kicker {
  display: inline-block; font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--saffron); font-weight: 600;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(32px, 4.5vw, 44px); margin-bottom: 14px; }
.section-sub { color: var(--ink-soft); font-size: 16px; }

/* ---------- Causes ---------- */
.causes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cause-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0 0 30px;
  box-shadow: var(--shadow-sm); position: relative;
  overflow: hidden;
}
.cause-card h3 { font-size: 23px; margin: 22px 28px 12px; color: var(--saffron-dark); }
.cause-card ul { list-style: none; margin: 0 28px; }
.cause-card li {
  padding: 7px 0 7px 22px; position: relative;
  font-size: 14.5px; color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}
.cause-card li:last-child { border-bottom: 0; }
.cause-card li::before {
  content: "•"; position: absolute; left: 4px; color: var(--marigold); font-weight: 700;
}
.cause-media { position: relative; height: 190px; overflow: hidden; }
.cause-media img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform 0.4s ease;
}
.cause-card:hover .cause-media img { transform: scale(1.05); }
.cause-feature {
  background: linear-gradient(160deg, #fff 60%, var(--cream-2));
  border-color: var(--gold);
}
.cause-feature p { font-size: 15px; color: var(--ink-soft); margin: 0 28px; }
.cause-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: linear-gradient(135deg, var(--saffron), var(--marigold));
  color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 1px;
  padding: 5px 14px; border-radius: 999px;
}

/* ---------- Donate ---------- */
.donate { background: var(--white); }
.donate-tabs {
  display: flex; gap: 10px; justify-content: center;
  margin-bottom: 36px; flex-wrap: wrap;
}
.donate-tab {
  font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 13px 30px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--cream); color: var(--ink-soft); cursor: pointer;
  transition: all 0.2s ease;
}
.donate-tab:hover { border-color: var(--marigold); color: var(--saffron); }
.donate-tab.is-active {
  background: linear-gradient(135deg, var(--saffron), var(--marigold));
  color: #fff; border-color: transparent; box-shadow: var(--shadow-sm);
}
.donate-panel { display: none; }
.donate-panel.is-active { display: block; animation: fadeUp 0.35s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Razorpay ---------- */
.razorpay-holder {
  position: fixed;
  top: 0;
  left: -9999px;
}
.razorpay-form { display: flex; justify-content: center; }

.bank-card {
  max-width: 760px; margin: 0 auto;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.bank-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 26px 30px; background: var(--cream-2);
  border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.bank-head h3 { font-size: 26px; color: var(--saffron-dark); }
.bank-head p { font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }
.bank-badge {
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--saffron), var(--marigold));
  color: #fff; padding: 7px 16px; border-radius: 999px;
}
.bank-rows { padding: 8px 0; }
.bank-row {
  display: grid; grid-template-columns: 190px 1fr auto;
  align-items: center; gap: 16px;
  padding: 15px 30px; border-bottom: 1px dashed var(--line);
}
.bank-row:last-child { border-bottom: 0; }
.bank-label {
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ink-soft);
}
.bank-value { font-size: 15.5px; font-weight: 500; word-break: break-word; }
.bank-value-em { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 700; color: var(--saffron-dark); }
.copy-btn {
  font-family: inherit; font-size: 12px; font-weight: 600;
  padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--white); color: var(--ink-soft); cursor: pointer;
  transition: all 0.2s ease; white-space: nowrap;
}
.copy-btn:hover { border-color: var(--saffron); color: var(--saffron); }
.copy-btn.copied { background: var(--saffron); border-color: var(--saffron); color: #fff; }
.bank-note {
  padding: 16px 30px; font-size: 13.5px; color: var(--ink-soft);
  background: var(--cream-2); border-top: 1px solid var(--line);
}

/* ---------- Overseas Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(51, 33, 26, 0.55);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.modal-overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(680px, 100%);
  max-height: 90vh; overflow-y: auto;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  animation: fadeUp 0.3s ease;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 30px; background: var(--cream-2);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1;
}
.modal-head h3 { font-size: 24px; color: var(--saffron-dark); }
.modal-head p { font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }
.modal-close {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--white);
  color: var(--ink-soft); font-size: 16px; line-height: 1; cursor: pointer;
  transition: all 0.2s ease;
}
.modal-close:hover { border-color: var(--saffron); color: var(--saffron); }
.modal .bank-note { border-top: 1px solid var(--line); }

/* ---------- Floating Contact Widget ---------- */
.contact-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.contact-fab {
  width: 56px; height: 56px;
  border: none; border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--marigold));
  color: #fff; font-size: 24px;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(193, 68, 14, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 12px 28px rgba(193, 68, 14, 0.5); }
.contact-fab-close { display: none; font-size: 20px; }
.contact-widget.open .contact-fab-icon { display: none; }
.contact-widget.open .contact-fab-close { display: block; }
.contact-widget.open .contact-fab { background: var(--ink); box-shadow: 0 8px 22px rgba(51, 33, 26, 0.35); }

.contact-pop {
  display: none;
  min-width: 250px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 12px;
  animation: popUp 0.25s ease;
}
@keyframes popUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.contact-widget.open .contact-pop { display: block; }
.contact-pop-head {
  padding: 13px 18px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px; font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--saffron-dark), var(--saffron));
}
.contact-pop-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.contact-pop-link:last-child { border-bottom: 0; }
.contact-pop-link:hover { background: var(--cream-2); }
.cp-ico { font-size: 16px; flex-shrink: 0; }
.cp-text { font-size: 14px; font-weight: 500; flex: 1; word-break: break-all; }
.cp-arrow { color: var(--ink-soft); font-size: 13px; }

/* ---------- Footer ---------- */
.footer {
  background: linear-gradient(160deg, #3b1807, #5a2208);
  color: #ecc9a6; padding: 60px 0 30px;
}
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand .brand-logo { margin-bottom: 14px; height: 52px; }
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-col h4 {
  font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: 1.5px;
  text-transform: uppercase; color: #fff; margin-bottom: 14px;
}
.footer-col a { display: block; color: #ecc9a6; text-decoration: none; font-size: 14px; padding: 4px 0; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px; margin-top: 10px;
  font-size: 13px; color: #b98d66; text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .causes-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 160px 0 80px; }
  .bank-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 22px; }
  .copy-btn { justify-self: start; }
  .bank-head { padding: 22px; }
  .bank-note { padding: 14px 22px; }
  .modal-head { padding: 18px 20px; }
  .modal .bank-note { padding: 14px 22px; }
}
