/* ── SIF Open Transparency Site ─────────────────────────────────────── */

:root {
  --green:      #2C5F2E;
  --green-deep: #1E3D0F;
  --rose:       #C94070;
  --rose-warm:  #E8607A;
  --cream:      #FAF6F0;
  --ink:        #1E2820;
  --muted:      #6b7c6d;
  --border:     #e0e8e1;
  --radius:     10px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: #f5f7f5;
  color: var(--ink);
  line-height: 1.6;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── Header ── */
.site-header {
  background: var(--green-deep);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.wordmark {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--cream);
  text-decoration: none;
}

.wordmark em { font-style: italic; color: var(--rose-warm); }

.brand-meta {
  font-size: 10px;
  color: rgba(250,246,240,0.55);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  color: rgba(250,246,240,0.75);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(250,246,240,0.12);
  color: var(--cream);
}

.btn-donate {
  background: var(--rose) !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: 20px !important;
  padding: 7px 16px !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 22px;
  cursor: pointer;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  padding: 60px 0;
  color: var(--cream);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose-warm);
  margin-bottom: 12px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 36px;
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: 16px;
}

.hero p {
  font-size: 15px;
  color: rgba(250,246,240,0.8);
  margin-bottom: 24px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stat-card {
  background: rgba(250,246,240,0.1);
  border: 1px solid rgba(250,246,240,0.15);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon { font-size: 24px; }

.stat-value {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 24px;
  color: var(--cream);
}

.stat-label {
  font-size: 12px;
  color: rgba(250,246,240,0.7);
  font-weight: 500;
}

.stat-sub {
  font-size: 11px;
  color: rgba(250,246,240,0.45);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--rose);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--rose-warm); text-decoration: none; }

/* ── Track cards ── */
.section-cards { padding: 60px 0; }

.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 28px;
  color: var(--ink);
  margin-bottom: 28px;
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.track-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.2s, transform 0.2s;
  display: block;
}

.track-card:hover {
  box-shadow: 0 6px 24px rgba(44,95,46,0.12);
  transform: translateY(-2px);
  text-decoration: none;
}

.track-card--rose { border-top: 3px solid var(--rose); }

.track-icon { font-size: 28px; margin-bottom: 10px; }
.track-name { font-weight: 700; font-size: 16px; margin-bottom: 8px; color: var(--green); }
.track-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── Page container ── */
.page-container { padding: 48px 0 64px; }

.page-header { margin-bottom: 32px; }
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 32px;
  color: var(--ink);
  margin-bottom: 8px;
}
.page-header p { font-size: 15px; color: var(--muted); }

/* ── Summary cards ── */
.summary-row {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.summary-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  flex: 1;
  min-width: 160px;
}

.summary-card--green { border-top: 3px solid var(--green); }

.summary-month { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.summary-amount { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 26px; color: var(--green); }
.summary-sub { font-size: 11px; color: #aaa; margin-top: 4px; }

/* ── Data table ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: 0 1px 4px rgba(0,0,0,0.07); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
}

.data-table th {
  background: var(--green);
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 14px;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f3f0;
  color: var(--ink);
  vertical-align: top;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8faf8; }

.td-date { white-space: nowrap; color: var(--muted); font-size: 12px; }
.td-num  { text-align: right; color: var(--muted); }
.td-amount { text-align: right; font-weight: 700; color: var(--green); white-space: nowrap; }

.tag {
  display: inline-block;
  background: #eef4ee;
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
  white-space: nowrap;
}

.tag--rose { background: #fdeef2; color: var(--rose); }

/* ── Rescue cards ── */
.rescue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.rescue-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.rescue-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 10px;
}

.rescue-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

.status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-green  { background: #eef4ee; color: var(--green); }
.status-blue   { background: #eef0fa; color: #3050a0; }
.status-orange { background: #fff3e0; color: #c07000; }
.status-yellow { background: #fffbe0; color: #a08000; }
.status-grey   { background: #f0f0f0; color: #666; }

.rescue-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.rescue-condition,
.rescue-treatment {
  font-size: 13px;
  color: #444;
  margin-top: 8px;
  line-height: 1.5;
}

/* ── Needs ── */
.needs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.need-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}

.need-card--urgent { border-top: 3px solid var(--rose); }

.urgent-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--rose);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.need-title { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.need-desc  { font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }

.progress-bar {
  height: 8px;
  background: #eef4ee;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 4px;
  transition: width 0.3s;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}

.need-remaining {
  font-size: 13px;
  font-weight: 600;
  color: var(--rose);
  margin-bottom: 14px;
}

.need-funded-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 14px;
}

.btn-fund {
  display: block;
  background: var(--green);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-fund:hover { background: var(--green-deep); text-decoration: none; }

/* ── Donate CTA ── */
.donate-cta {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 32px;
}

.donate-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.donate-cta h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--cream);
  margin-bottom: 6px;
}

.donate-cta p { font-size: 13px; color: rgba(250,246,240,0.75); }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 15px;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.coming-soon { font-size: 18px; }

/* ── Footer ── */
.site-footer {
  background: var(--green-deep);
  color: rgba(250,246,240,0.7);
  padding: 32px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.wordmark-sm {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 16px;
  color: var(--cream);
}

.wordmark-sm em { font-style: italic; color: var(--rose-warm); }

.footer-reg {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.footer-reg span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(250,246,240,0.1);
  color: rgba(250,246,240,0.7);
  padding: 3px 9px;
  border-radius: 10px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
  font-size: 13px;
}

.footer-links a { color: rgba(250,246,240,0.7); }
.footer-links a:hover { color: var(--cream); }

.footer-note {
  font-size: 11px;
  color: rgba(250,246,240,0.4);
  border-top: 1px solid rgba(250,246,240,0.1);
  padding-top: 14px;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .track-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  body.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--green-deep);
    padding: 12px;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .donate-cta-inner { flex-direction: column; }
  .footer-inner { flex-direction: column; }
  .footer-links { text-align: left; }
}

@media (max-width: 480px) {
  .track-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
}

/* ── Gallery ─────────────────────────────────────────────────────────── */

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.filter-btn {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--muted);
    text-decoration: none;
    transition: all 0.15s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    text-decoration: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.gallery-item:hover {
    box-shadow: 0 4px 20px rgba(44,95,46,0.12);
}

.gallery-photo-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f0f3f0;
}

.gallery-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-photo-wrap img {
    transform: scale(1.03);
}

.gallery-video-wrap {
    aspect-ratio: 16/9;
    background: #000;
}

.gallery-video-wrap iframe,
.gallery-video-wrap video {
    width: 100%;
    height: 100%;
}

.gallery-info {
    padding: 12px 14px;
}

.gallery-caption {
    font-size: 13px;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.5;
}

.gallery-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gallery-loc {
    font-size: 11px;
    color: var(--muted);
}

.gallery-date {
    font-size: 11px;
    color: #bbb;
    margin-left: auto;
}

/* ── Donate Page ─────────────────────────────────────────────────────── */

.donate-page-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
}

.donate-form-card,
.donate-qr-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.donate-form-card h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 20px;
    margin-bottom: 6px;
    color: var(--ink);
}

.donate-form-note {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
}

.donate-field {
    margin-bottom: 16px;
}

.donate-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #4a5e4b;
    margin-bottom: 6px;
}

.donate-field .opt {
    font-weight: 400;
    text-transform: none;
    color: #aaa;
    font-size: 10px;
}

.donate-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--ink);
    box-sizing: border-box;
}

.donate-field input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(44,95,46,0.12);
}

.amount-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.rupee-prefix {
    padding: 10px 12px;
    background: #f4f8f4;
    color: var(--green);
    font-weight: 700;
    font-size: 16px;
    border-right: 1px solid var(--border);
}

.amount-input-wrap input {
    border: none;
    border-radius: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    color: var(--green);
}

.amount-input-wrap input:focus {
    box-shadow: none;
}

.preset-amounts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.preset-amounts button {
    background: #f4f8f4;
    border: 1px solid #c8ddc9;
    color: var(--green);
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.15s;
}

.preset-amounts button:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.btn-generate {
    width: 100%;
    background: var(--green);
    color: #fff;
    border: none;
    padding: 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}

.btn-generate:hover { background: var(--green-deep); }

.btn-submit-utr {
    width: 100%;
    background: var(--rose);
    color: #fff;
    border: none;
    padding: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit-utr:hover { background: var(--rose-warm); }

/* QR card */
.qr-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.upi-logo { margin-bottom: 16px; }

.qr-placeholder {
    width: 200px;
    height: 200px;
    border: 2px dashed var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
    margin-bottom: 16px;
}

.qr-placeholder-icon { font-size: 48px; margin-bottom: 8px; }
.qr-placeholder-text { font-size: 12px; text-align: center; line-height: 1.5; color: #aaa; }

#qr-canvas-wrap {
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid var(--green);
    padding: 8px;
    background: #fff;
}

.upi-id-box {
    text-align: center;
    margin-top: 8px;
}

.upi-id-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.upi-id-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--green);
    font-family: monospace;
    letter-spacing: 0.02em;
}

.upi-id-name {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.qr-amount-tag {
    margin-top: 12px;
    background: var(--green);
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 24px;
    padding: 8px 24px;
    border-radius: 24px;
}

/* Steps */
.qr-steps {
    margin-bottom: 18px;
}

.qr-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--green);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.upi-apps { text-align: center; }
.upi-apps-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #aaa; margin-bottom: 4px; }
.upi-apps-list { font-size: 12px; color: var(--muted); }

@media (max-width: 768px) {
    .donate-page-grid { grid-template-columns: 1fr; }
    .donate-qr-card { order: -1; }
}
