/* ===========================================================
   Sri Shivalayam, Marapaguntla — shared stylesheet
   =========================================================== */

:root {
  --maroon: #6b1f1f;
  --maroon-dark: #4e1414;
  --saffron: #e08a1e;
  --saffron-light: #f5b54a;
  --gold: #c79a3b;
  --cream: #fdf8f0;
  --cream-2: #f6ecd9;
  --ink: #2c2117;
  --ink-soft: #5a4b3a;
  --stone: #4a4f55;
  --shadow: 0 8px 30px rgba(70, 30, 10, 0.12);
  --radius: 14px;
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Georgia", "Iowan Old Style", "Times New Roman", serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Trajan Pro", "Georgia", serif;
  line-height: 1.25;
  color: var(--maroon);
  letter-spacing: 0.3px;
}

a { color: var(--maroon); }

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

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

/* ---------- Top bar / nav ---------- */
.topbar {
  background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
  color: var(--cream);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 22px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream);
}
.brand .om {
  font-size: 1.9rem;
  color: var(--saffron-light);
  line-height: 1;
}
.brand .brand-text strong {
  display: block;
  font-family: "Trajan Pro", Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: 1px;
}
.brand .brand-text span {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.85;
}
.menu {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.menu a {
  color: var(--cream);
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.menu a:hover { background: rgba(255,255,255,0.12); }
.menu a.active { background: var(--saffron); color: #3a1d05; font-weight: bold; }
.menu a.donate-btn {
  background: var(--saffron);
  color: #3a1d05;
  font-weight: bold;
  border: 1px solid var(--saffron-light);
}
.menu a.donate-btn:hover { background: var(--saffron-light); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(40,15,5,0.55), rgba(40,15,5,0.78));
}
.hero-inner { position: relative; z-index: 2; padding: 40px 22px; max-width: 820px; }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.8rem;
  color: var(--saffron-light);
  margin-bottom: 14px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  margin: 0 0 16px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.5);
}
.hero p {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: #f3e7d4;
  margin: 0 auto 26px;
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--saffron);
  color: #3a1d05;
  text-decoration: none;
  font-weight: bold;
  font-family: Georgia, serif;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1px solid var(--saffron-light);
  box-shadow: var(--shadow);
  transition: transform 0.15s, background 0.2s;
}
.btn:hover { background: var(--saffron-light); transform: translateY(-2px); }
.btn.ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.7);
  box-shadow: none;
  margin-left: 8px;
}
.btn.ghost:hover { background: rgba(255,255,255,0.14); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-alt { background: var(--cream-2); }
.section-maroon { background: linear-gradient(135deg, var(--maroon-dark), var(--maroon)); color: var(--cream); }
.section-maroon h1, .section-maroon h2, .section-maroon h3 { color: var(--saffron-light); }
.section-maroon p { color: #f0e2cf; }

.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.divider {
  width: 90px; height: 3px; margin: 16px auto 28px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.eyebrow-dark {
  text-transform: uppercase; letter-spacing: 3px;
  font-size: 0.78rem; color: var(--saffron); margin-bottom: 8px;
}

.prose { max-width: 760px; margin: 0 auto; }
.prose p { margin: 0 0 20px; font-size: 1.08rem; }
.prose .first::first-letter {
  font-size: 3.4rem; font-family: Georgia, serif; color: var(--saffron);
  float: left; line-height: 0.8; padding: 6px 10px 0 0;
}

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--cream-2);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.card .icon { font-size: 2rem; color: var(--saffron); }
.card h3 { margin: 12px 0 8px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background:#000; }
.gallery-grid img { width: 100%; height: 280px; object-fit: cover; transition: transform 0.4s; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.video-grid video { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); background:#000; }

/* ---------- Donation tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tier {
  background:#fff; border-radius: var(--radius); padding: 26px 18px;
  text-align:center; box-shadow: var(--shadow); border-top: 4px solid var(--saffron);
}
.tier .amt { font-size: 1.5rem; font-weight: bold; color: var(--maroon); }
.tier .amt .usd { font-size: 0.62em; font-weight: normal; color: var(--ink-soft); white-space: nowrap; }
.tier .label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); }
.tier p { font-size: 0.92rem; color: var(--ink-soft); }

.note {
  background: #fff7e6; border: 1px dashed var(--gold);
  border-radius: var(--radius); padding: 18px 22px; color: var(--ink-soft);
}
.placeholder { color: #b06a00; font-style: italic; }

/* ---------- Checkout page ---------- */
.checkout { max-width: 720px; margin: 0 auto; }
.step {
  background:#fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 28px; margin-bottom: 24px; border-left: 4px solid var(--saffron);
}
.step h3 { margin: 0 0 4px; display:flex; align-items:center; gap:12px; }
.step .num {
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:50%;
  background:var(--maroon); color:#fff; font-size:1rem; flex:none;
}
.step .step-sub { margin: 0 0 18px; color: var(--ink-soft); font-size:0.95rem; }
.amount-options { display:grid; grid-template-columns: repeat(3,1fr); gap:12px; }
.amount-options .opt {
  border:2px solid var(--cream-2); border-radius:12px; padding:16px 10px;
  text-align:center; cursor:pointer; transition:all .15s; background:var(--cream);
  font-family:Georgia,serif;
}
.amount-options .opt:hover { border-color:var(--saffron-light); }
.amount-options .opt.selected { border-color:var(--saffron); background:#fff6e8; box-shadow:0 4px 14px rgba(224,138,30,.18); }
.amount-options .opt .r { font-size:1.25rem; font-weight:bold; color:var(--maroon); }
.amount-options .opt .d { font-size:.8rem; color:var(--ink-soft); }
.custom-amount { margin-top:14px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.custom-amount label { font-size:.95rem; color:var(--ink-soft); }
.custom-amount input {
  font-size:1.05rem; padding:10px 14px; border:2px solid var(--cream-2);
  border-radius:10px; width:160px; font-family:Georgia,serif;
}
.custom-amount input:focus { outline:none; border-color:var(--saffron); }
.pay-slot {
  border:2px dashed var(--gold); border-radius:12px; background:#fff7e6;
  padding:30px 22px; text-align:center; color:var(--ink-soft);
}
.pay-slot .lock { font-size:1.6rem; }
/* ---------- UPI pay block ---------- */
.upi-box {
  border:2px solid var(--saffron); border-radius:14px; background:#fff8ee;
  padding:26px 22px; text-align:center;
}
.upi-title { margin:0 0 14px; font-family:Georgia,serif; font-weight:bold; color:var(--maroon); font-size:1.05rem; }
.upi-btn { font-size:1.12rem; padding:16px 34px; }
.upi-note { margin:14px 0 0; font-size:.9rem; color:var(--ink-soft); }
.upi-fallback {
  margin-top:20px; padding-top:16px; border-top:1px dashed var(--gold);
  display:flex; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap;
  font-size:.94rem; color:var(--ink-soft);
}
.upi-fallback code {
  background:#fff; border:1px solid var(--cream-2); border-radius:8px;
  padding:6px 12px; font-size:.95rem; color:var(--maroon); font-weight:bold;
}
.copy-btn {
  background:var(--maroon); color:#fff; border:0; border-radius:8px;
  padding:7px 16px; cursor:pointer; font-family:Georgia,serif; font-size:.9rem;
}
.copy-btn:hover { background:var(--maroon-dark); }
.upi-bank { margin:14px 0 0; font-size:.85rem; color:var(--ink-soft); font-style:italic; }

.trust-row { display:flex; gap:18px; justify-content:center; flex-wrap:wrap; margin-top:8px; color:var(--ink-soft); font-size:.9rem; }
.trust-row span { display:inline-flex; align-items:center; gap:6px; }

@media (max-width:560px){ .amount-options { grid-template-columns: repeat(2,1fr);} }

/* ---------- Donors ---------- */
.donor-summary { display:flex; gap:22px; justify-content:center; flex-wrap:wrap; margin-bottom:34px; }
.donor-summary .stat {
  background:#fff; border-radius:14px; box-shadow:var(--shadow);
  padding:22px 34px; text-align:center; border-top:4px solid var(--saffron);
}
.donor-summary .stat .big { font-size:1.9rem; font-weight:bold; color:var(--maroon); font-family:Georgia,serif; }
.donor-summary .stat .lbl { font-size:.78rem; letter-spacing:1.5px; text-transform:uppercase; color:var(--ink-soft); }
.donors-table {
  width:100%; max-width:820px; margin:0 auto; border-collapse:collapse;
  background:#fff; box-shadow:var(--shadow); border-radius:14px; overflow:hidden;
}
.donors-table th, .donors-table td { padding:13px 18px; text-align:left; border-bottom:1px solid var(--cream-2); }
.donors-table thead th { background:var(--maroon); color:var(--cream); font-family:Georgia,serif; letter-spacing:.5px; }
.donors-table td.amt { text-align:right; font-weight:bold; color:var(--maroon); white-space:nowrap; }
.donors-table th.amt { text-align:right; }
.donors-table td.rank { width:46px; color:var(--ink-soft); text-align:center; }
.donors-table tbody tr:nth-child(even){ background:var(--cream); }
.donors-table tbody tr:hover{ background:#fff6e8; }
@media (max-width:560px){ .donors-table th, .donors-table td { padding:10px 11px; font-size:.9rem; } }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; max-width: 520px; margin: 0 auto; }
.contact-list li {
  display: flex; align-items: center; gap: 14px;
  background:#fff; border-radius: var(--radius); padding: 16px 20px;
  margin-bottom: 14px; box-shadow: var(--shadow);
}
.contact-list .ic { font-size: 1.4rem; }
.contact-list a { color: var(--maroon); font-weight: bold; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- Board of Trustees ---------- */
.trustees {
  max-width: 760px; margin: 0 auto; background:#fff;
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.trustee {
  display:flex; justify-content:space-between; align-items:baseline; gap:20px;
  padding:15px 24px; border-bottom:1px solid var(--cream-2);
}
.trustee:last-child { border-bottom:0; }
.trustee .role { font-family:Georgia,serif; font-weight:bold; color:var(--maroon); white-space:nowrap; }
.trustee .tname { text-align:right; color:var(--ink); }
.trustee .tname em { color:var(--ink-soft); font-size:.86em; font-style:italic; }
@media (max-width:520px){
  .trustee { flex-direction:column; gap:2px; padding:13px 18px; }
  .trustee .tname { text-align:left; }
}

/* ---------- Map ---------- */
.map-wrap {
  margin: 30px auto 0; max-width: 820px;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 3px solid #fff;
}
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }
@media (max-width: 560px){ .map-wrap iframe { height: 300px; } }

/* ---------- Footer ---------- */
footer {
  background: var(--maroon-dark);
  color: #e9d8c4;
  padding: 40px 0 24px;
  text-align: center;
}
footer .om { font-size: 1.8rem; color: var(--saffron-light); }
footer a { color: var(--saffron-light); }
footer .fnav { margin: 14px 0; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
footer .fnav a { text-decoration: none; }
footer small { display:block; margin-top: 14px; opacity: 0.7; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .grid-3, .tiers { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .grid-2, .tiers, .gallery-grid { grid-template-columns: 1fr; }
  section { padding: 46px 0; }
  .menu { width: 100%; justify-content: center; }
  .gallery-grid img { height: 240px; }
}
