@import url('https://fonts.bunny.net/css?family=inter:400,500,600,700|literata:500,600,700');

:root {
  --primary: #6B0000;
  --primary-dark: #4A0000;
  --accent: #E46B1F;
  --bg: #FFF8F2;
  --bg-dark: #F5EBE0;
  --text: #2B2B2B;
  --text-muted: rgba(43, 43, 43, 0.65);
  --border: #E5D7CC;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(74, 0, 0, 0.06);
  --shadow: 0 4px 20px rgba(74, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(74, 0, 0, 0.1);
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Literata', Georgia, serif;
  --font-display: 'Literata', Georgia, serif;
  --header-h: 4.75rem;
  --topbar-h: 2.25rem;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.section { padding: 4.5rem 0; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }
.section-sm { padding: 3rem 0; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; max-width: 42rem; margin-left: auto; margin-right: auto; margin-bottom: 3rem; }

.display {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}
.heading {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
}
.lead, .body-lg {
  font-family: var(--font);
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.text-muted { color: var(--text-muted); font-size: 0.9375rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.625rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: #c85a15; }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-white { background: var(--white); color: var(--primary-dark); border-color: var(--white); }
.btn-white:hover { background: var(--bg); }
.btn-erp {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.btn-erp:hover { background: var(--primary-dark); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover { box-shadow: var(--shadow); }
.card-lg { padding: 2rem; }
.card-interactive:hover { transform: translateY(-3px); }

.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { display: grid; gap: 1.5rem; }
.grid-4 { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius);
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* Top bar */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8125rem;
  transition: transform 0.3s, opacity 0.3s;
}
.top-bar.hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; position: absolute; width: 100%; }
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--topbar-h);
  flex-wrap: wrap;
  padding: 0.375rem 0;
}
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
}
.top-bar-link:hover { color: var(--accent); }
.top-bar-tagline { opacity: 0.65; display: none; }
@media (min-width: 768px) { .top-bar-tagline { display: inline; } }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 242, 0.97);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(255, 248, 242, 0.98);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 16px rgba(74, 0, 0, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.logo { display: flex; align-items: center; gap: 0.875rem; flex-shrink: 0; }
.logo img { width: 3rem; height: 3rem; }
.logo-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  color: var(--primary-dark);
  line-height: 1.2;
}
.logo-text span { font-size: 0.625rem; color: var(--text-muted); letter-spacing: 0.04em; text-transform: uppercase; max-width: 14rem; line-height: 1.3; }

.nav-desktop { display: none; align-items: center; gap: 0.125rem; }
@media (min-width: 1100px) { .nav-desktop { display: flex; } }
.nav-desktop > a,
.nav-item > .nav-trigger {
  padding: 0.5rem 0.625rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}
.nav-trigger::after { content: ' ▾'; font-size: 0.65em; opacity: 0.6; }
.nav-desktop > a:hover,
.nav-desktop > a.active,
.nav-item > .nav-trigger:hover,
.nav-item.open > .nav-trigger { color: var(--primary); background: rgba(107, 0, 0, 0.05); }
.nav-desktop > a.active { font-weight: 600; }

.nav-item { position: relative; }
.mega-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  width: 24rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition);
}
.nav-item:hover .mega-menu,
.nav-item.open .mega-menu,
.nav-item:focus-within .mega-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.mega-item {
  display: flex;
  gap: 0.875rem;
  padding: 0.875rem;
  border-radius: var(--radius);
}
.mega-item:hover { background: var(--bg); }
.mega-item strong { display: block; font-size: 0.9375rem; color: var(--primary-dark); margin-bottom: 0.125rem; }
.mega-item span { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.4; }
.mega-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  background: rgba(107, 0, 0, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.header-cta { display: none; align-items: center; flex-shrink: 0; }
@media (min-width: 1100px) { .header-cta { display: flex; } }

.header-login {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.header-login:hover {
  border-color: var(--primary);
  background: rgba(107, 0, 0, 0.04);
  color: var(--primary-dark);
}
.header-login--mobile {
  justify-content: center;
  width: 100%;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
}
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--primary-dark);
}
.menu-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-toggle.active .menu-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active .menu-bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .menu-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1100px) { .menu-toggle { display: none; } }
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  padding: 0.5rem 0 1.5rem;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-nav.open { display: block; animation: slideDown 0.3s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.mobile-cta-row { display: flex; gap: 0.5rem; }
.mobile-nav a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border);
}
.mobile-cta { padding: 0 1.25rem 1rem; display: flex; flex-direction: column; gap: 0.625rem; }
.mobile-cta-row { display: flex; gap: 0.5rem; }
.mobile-cta-row .btn { flex: 1; justify-content: center; padding: 0.625rem 0.75rem; font-size: 0.875rem; }

/* Cinematic Hero */
.hero-cinematic {
  position: relative;
  min-height: clamp(28rem, 85vh, 42rem);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 75% center;
  opacity: 0;
  transition: opacity 1.4s ease;
  transform: scale(1);
}
.hero-slide.active {
  opacity: 1;
  animation: heroKenBurns 14s ease-out forwards;
}
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.active { animation: none; }
  /* Scroll reveal removed — caused blank pages when JS failed */
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(74, 0, 0, 0.92) 0%,
    rgba(74, 0, 0, 0.78) 38%,
    rgba(74, 0, 0, 0.45) 62%,
    rgba(74, 0, 0, 0.25) 100%
  );
}
.hero-cinematic .display {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  max-width: 16ch;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.hero-cinematic .display::after {
  content: '';
  display: block;
  width: 4rem;
  height: 3px;
  background: var(--accent);
  margin-top: 1.25rem;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  padding: 5rem 0 5.5rem;
}
.hero-cinematic .lead {
  color: rgba(255, 255, 255, 0.92);
  max-width: 36rem;
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  line-height: 1.8;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; align-items: center; }
.hero-actions .btn-lg {
  padding: 0.875rem 1.625rem;
  font-size: 0.9375rem;
}
.hero-actions .btn-white {
  background: var(--white);
  color: var(--primary-dark);
  border-color: var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.hero-actions .btn-white:hover {
  background: var(--bg);
  border-color: var(--bg);
}
.hero-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: transparent;
}
.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.85);
}
.hero-dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.625rem;
  align-items: center;
}
.hero-dot {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.hero-dot::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 0.375rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.2s, transform 0.2s;
}
.hero-dot:hover::after { background: rgba(255, 255, 255, 0.6); }
.hero-dot.active::after {
  background: var(--accent);
  transform: translateY(-50%) scaleX(1.1);
}

/* Stats */
.stats-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-block { padding: 0 1rem; }
.stat-block + .stat-block { border-left: none; }
@media (min-width: 768px) {
  .stat-block + .stat-block { border-left: 1px solid var(--border); }
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.375rem;
}
.stat-label { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }

/* Mission split */
.split-section { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 992px) { .split-section { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.split-image {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.split-image img { width: 100%; height: 100%; object-fit: cover; }
.pillar-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pillar-grid { grid-template-columns: 1fr 1fr; } }
.pillar-card {
  padding: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pillar-card strong { display: block; color: var(--primary-dark); font-size: 0.9375rem; margin-bottom: 0.25rem; }
.pillar-card p { font-size: 0.875rem; color: var(--text-muted); }

/* Institution cards */
.institution-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
  height: 100%;
}
.institution-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.institution-card-image {
  aspect-ratio: 16/10;
  background: var(--bg-dark);
  overflow: hidden;
  position: relative;
}
.institution-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.institution-card:hover .institution-card-image img { transform: scale(1.03); }
.institution-card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.institution-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}
.institution-card-body p { font-size: 0.9375rem; color: var(--text-muted); flex: 1; }
.institution-card-link {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}
.institution-card-link::after { content: ' →'; }

/* Hostel cards */
.hostel-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s;
}
@media (min-width: 768px) { .hostel-card { grid-template-columns: 12rem 1fr; } }
.hostel-card-image {
  min-height: 10rem;
  background: var(--primary-dark);
  position: relative;
}
.hostel-card-image img { width: 100%; height: 100%; object-fit: cover; min-height: 10rem; }
.hostel-card-body { padding: 1.75rem; }
.hostel-capacity {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.75rem;
}

/* Impact / project cards */
.impact-card { position: relative; padding-top: 0.5rem; }
.impact-card .impact-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.impact-card .impact-label { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 1rem; }

/* Story cards */
.story-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.story-quote {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
}
.story-author strong { display: block; color: var(--primary-dark); font-size: 0.9375rem; }
.story-author span { font-size: 0.8125rem; color: var(--text-muted); }

/* Donor recognition */
.donor-grid { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.donor-badge {
  padding: 0.75rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

/* News cards */
.news-card { display: flex; flex-direction: column; height: 100%; }
.news-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  transition: color var(--transition);
}
.news-card-link:hover h3 { color: var(--primary); }
.news-card-link:hover .section-link { color: var(--accent); }
.news-card .news-date { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.news-card h3 { font-family: var(--font-display); font-size: 1.125rem; color: var(--primary-dark); margin: 0.5rem 0; }

/* CTA band */
.cta-band {
  background: var(--primary-dark);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.cta-band .heading { color: var(--white); margin-bottom: 1rem; }
.cta-band p { opacity: 0.85; max-width: 36rem; margin: 0 auto 2rem; font-family: var(--font-serif); font-size: 1.125rem; }

/* Page headers */
.page-hero {
  background: var(--primary-dark);
  color: var(--white);
  padding: 4rem 0 3.5rem;
  border-bottom: 4px solid var(--accent);
}
.page-hero .display { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); }
.page-hero .lead { color: rgba(255, 255, 255, 0.85); margin-top: 1rem; }
.page-header {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0;
}

/* Footer */
.site-footer { background: var(--primary-dark); color: var(--white); padding: 4rem 0 2rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-col h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.95);
}
.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Utilities */
.bg-white { background: var(--white); }
.bg-cream { background: var(--bg); }
.bg-warm { background: var(--bg-dark); }
.bg-maroon { background: var(--primary-dark); color: var(--white); }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; }
.badge {
  display: inline-block;
  background: rgba(107, 0, 0, 0.08);
  color: var(--primary);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}
.badge-accent { background: rgba(228, 107, 31, 0.12); color: var(--accent); }

.icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.icon-box.maroon { background: rgba(107, 0, 0, 0.08); color: var(--primary); }
.icon-box.accent { background: rgba(228, 107, 31, 0.1); color: var(--accent); }

.timeline { border-left: 2px solid rgba(107, 0, 0, 0.15); padding-left: 1.75rem; }
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.05rem;
  top: 0.35rem;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--bg);
}
.timeline-year { font-family: var(--font-display); font-size: 1.125rem; color: var(--primary-dark); margin-bottom: 0.25rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.375rem; color: var(--primary-dark); }
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.9375rem;
  font-family: var(--font);
  transition: border-color 0.2s;
}
.form-control:focus { border-color: var(--primary); outline: none; }

/* Gallery masonry */
.gallery-grid { columns: 1; column-gap: 1.25rem; }
@media (min-width: 640px) { .gallery-grid { columns: 2; } }
@media (min-width: 1024px) { .gallery-grid { columns: 3; } }
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s;
}
.gallery-item:hover { box-shadow: var(--shadow); }
.gallery-item img { width: 100%; display: block; }
.gallery-item-body { padding: 1.25rem; }
.gallery-item.tall img { aspect-ratio: 3/4; object-fit: cover; }
.gallery-item.wide img { aspect-ratio: 16/10; object-fit: cover; }
.gallery-item img { aspect-ratio: 4/3; object-fit: cover; }

.img-placeholder {
  background: linear-gradient(145deg, var(--bg-dark) 0%, #e8ddd4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Donation */
.donation-tier {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.donation-tier:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.donation-tier.featured { border-color: var(--primary); box-shadow: var(--shadow); }
.donation-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary);
  margin: 0.75rem 0;
}
.trust-list { display: grid; gap: 1rem; }
@media (min-width: 768px) { .trust-list { grid-template-columns: repeat(3, 1fr); } }
.trust-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.trust-item strong { display: block; color: var(--primary-dark); margin-bottom: 0.25rem; }

.login-grid { display: grid; gap: 1rem; max-width: 56rem; margin: 0 auto; }
@media (min-width: 640px) { .login-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .login-grid { grid-template-columns: repeat(3, 1fr); } }
.login-card { text-align: center; padding: 2rem 1.5rem; }

.section-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}
.section-link:hover { color: var(--accent); }

.feature-list { list-style: none; }
.feature-list li {
  padding: 0.625rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9375rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ——— Enhanced polish ——— */

.section-eyebrow.light { color: var(--accent); }

.btn-block { width: 100%; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.stats-bar {
  background: var(--white);
  border-top: 3px solid var(--primary);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
  position: relative;
}
.stat-block {
  padding: 0 1.5rem;
  transition: transform var(--transition);
}
.stat-block:hover { transform: translateY(-2px); }

.card {
  border-top: 3px solid transparent;
}
.card:hover { border-top-color: var(--primary); }

.story-card { position: relative; }
.story-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: rgba(107, 0, 0, 0.08);
  position: absolute;
  top: 0.5rem;
  right: 1.5rem;
  line-height: 1;
}

.institution-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(74, 0, 0, 0.35), transparent 50%);
  pointer-events: none;
}

.section-header .heading::after {
  content: '';
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--accent);
  margin-top: 1rem;
}
.section-header.center .heading::after { margin-left: auto; margin-right: auto; }

/* Footer CTA */
.footer-cta {
  background: var(--primary);
  color: var(--white);
  padding: 3rem 0;
}
.footer-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.footer-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  margin-bottom: 0.5rem;
}
.footer-cta-text {
  opacity: 0.88;
  max-width: 32rem;
  font-family: var(--font-serif);
  line-height: 1.6;
}
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Footer */
.footer-brand { max-width: 22rem; }
.footer-logo { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 1.25rem; }
.footer-name { display: block; font-family: var(--font-display); font-size: 1.0625rem; }
.footer-location { font-size: 0.8125rem; opacity: 0.65; }
.footer-about { font-size: 0.875rem; opacity: 0.72; line-height: 1.65; margin-bottom: 1.25rem; }
.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-trust span {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  opacity: 0.85;
}
.footer-erp { color: var(--accent) !important; font-weight: 600 !important; }
.footer-bottom-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255, 255, 255, 0.55); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--accent); }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }
.back-to-top[hidden] { display: none; }

/* Contact */
.contact-cards { display: flex; flex-direction: column; gap: 1rem; }
.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow-sm); }
.contact-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: rgba(107, 0, 0, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card strong { display: block; color: var(--primary-dark); font-size: 0.875rem; margin-bottom: 0.25rem; }
.contact-card p { font-size: 0.9375rem; color: var(--text-muted); margin: 0; }
.contact-card a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

.form-card { box-shadow: var(--shadow); }
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107, 0, 0, 0.1);
}
.form-note { font-size: 0.8125rem; color: var(--text-muted); margin-top: 1rem; text-align: center; }
.required { color: var(--accent); }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #3d0000 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.cta-band {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #3d0000 100%);
  position: relative;
}

.donor-badge {
  transition: transform var(--transition), border-color var(--transition);
}
.donor-badge:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.gallery-item {
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-item:hover { transform: translateY(-3px); }

#main-content { min-height: 50vh; }

@media print {
  .top-bar, .site-header, .footer-cta, .back-to-top, .hero-dots { display: none !important; }
  body { background: white; color: black; }
}
