/* ===== Design tokens ===== */
:root {
  --maroon: #6b1420;
  --maroon-dark: #4a0e16;
  --saffron: #e07a1f;
  --gold: #c9a227;
  --gold-light: #f3e3b3;
  --cream: #fdf8ef;
  --ink: #2a1c14;
  --muted: #6f6155;
  --white: #ffffff;
  --shadow: 0 8px 24px rgba(74, 14, 22, 0.12);
  --radius: 10px;
  --max-width: 1140px;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: 'Segoe UI', Tahoma, Verdana, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  margin: 0 0 0.5em;
  color: var(--maroon-dark);
}

p { margin: 0 0 1em; }

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

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

.divider-ornament {
  text-align: center;
  color: var(--gold);
  font-size: 1.4rem;
  margin: 0 0 32px;
  letter-spacing: 12px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--saffron);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(224, 122, 31, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-maroon {
  background: transparent;
  border-color: var(--maroon);
  color: var(--maroon);
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--maroon-dark);
  font-weight: bold;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--maroon);
  border-color: var(--saffron);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--maroon-dark);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 60%, #2f0a10 100%);
  padding: 100px 0 120px;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(201,162,39,0.25), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(224,122,31,0.25), transparent 45%);
}

.hero-content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 18px;
}

.hero p {
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-strip {
  position: relative;
  margin-top: -56px;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  text-align: center;
}

.info-card .icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.info-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.info-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ===== Cards / grids ===== */
.grid {
  display: grid;
  gap: 28px;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-body {
  padding: 22px 24px;
}

.placeholder-img {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
}

.placeholder-img.alt {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
}

.placeholder-img.gold {
  background: linear-gradient(135deg, var(--gold), var(--saffron));
}

.tag {
  display: inline-block;
  background: var(--gold-light);
  color: var(--maroon-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ===== Timings table ===== */
.timings-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.timings-table th, .timings-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid #f0e6d6;
}

.timings-table th {
  background: var(--maroon);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: normal;
}

.timings-table tr:last-child td { border-bottom: none; }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
  transition: transform 0.2s ease;
}

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

.gallery-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-btn {
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--maroon-dark);
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--gold);
  color: var(--white);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20,10,8,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}

.lightbox.open { display: flex; }

.lightbox-box {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  border-radius: var(--radius);
  max-width: 640px;
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ===== Forms ===== */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row.single { grid-template-columns: 1fr; }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ddd0ba;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
}

.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--saffron);
  outline-offset: 1px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--gold-light);
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 16px;
}

.form-success {
  display: none;
  background: #e6f4ea;
  color: #1e6b34;
  padding: 14px 18px;
  border-radius: 8px;
  margin-top: 16px;
  font-weight: 600;
}

.form-success.show { display: block; }

/* ===== Donation amounts ===== */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.amount-btn {
  border: 2px solid var(--gold);
  background: var(--white);
  padding: 14px 10px;
  border-radius: 8px;
  font-weight: 700;
  color: var(--maroon-dark);
  cursor: pointer;
  text-align: center;
}

.amount-btn.active, .amount-btn:hover {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--white);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--maroon-dark);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  color: var(--gold-light);
  margin-bottom: 14px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li { margin-bottom: 8px; }

.footer-grid a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.newsletter-inline {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.newsletter-inline input {
  flex: 1;
  min-width: 160px;
  padding: 10px 14px;
  border-radius: 6px;
  border: none;
}

/* ===== Page header (interior pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}

.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,0.85); margin: 0; }

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 20px;
    gap: 14px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
