/* ====== Base ====== */
:root {
  --navy: #0a2a5e;
  --navy-700: #0d3a7a;
  --navy-900: #071a38;
  --white: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #f8fafc;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(10, 42, 94, .12);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
.container { width: min(1120px, 92%); margin-inline: auto; }

.sr-only { position: absolute; left: -9999px; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: .5rem 1rem;
  background: var(--navy);
  color: var(--white);
}

/* ====== Logo ====== */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 90px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}
.logo-text {
  font-weight: 700;
  color: var(--navy);
  margin-left: 0.6rem;
}

/* ====== Header / Nav ====== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: all 0.3s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  transition: padding 0.3s ease;
}
.nav ul {
  list-style: none;
  display: flex;
  gap: .6rem;
  align-items: center;
  margin: 0;
  padding: 0;
}
.nav a {
  display: inline-block;
  text-decoration: none;
  padding: .6rem .9rem;
  border-radius: 999px;
  color: var(--navy);
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease;
}
.nav a:hover { background: #eef2ff; color: var(--navy-700); }
.nav a.active { font-weight: 700; color: var(--navy-700); }

/* ====== Buttons ====== */
.btn {
  display: inline-block;
  padding: .8rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid transparent;
}
.btn-solid {
  background: var(--navy);
  color: var(--white);
}
.btn-solid:hover { background: var(--navy-700); }
.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline:hover { background: #e6eefc; }
.btn-ghost { color: var(--navy); }

/* ====== Hero ====== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 60%, var(--navy-900) 100%);
  color: var(--white);
  padding: 5rem 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin: 0 0 .6rem;
}
.hero p { color: #e5e7eb; margin: 0 0 1.2rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-media { display: flex; justify-content: center; }
.hero-card {
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 600;
  text-align: center;
}

/* ====== Sections / Cards / Grid ====== */
.section { padding: 4rem 0; }
.section-alt { background: var(--white); }
.grid { display: grid; gap: 1.4rem; }
.grid.two { grid-template-columns: repeat(2,1fr); }
.grid.three { grid-template-columns: repeat(3,1fr); }
.card {
  background: var(--white);
  padding: 1.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-alt { background: #eef2ff; border: 1px solid #dbe6ff; }
.bullet { padding-left: 1.2rem; }
.bullet li { margin: .4rem 0; }

/* ====== Gallery Page ====== */
.gallery-block {
  margin-top: 2.5rem;
}
.gallery-block h3,
.gallery-block h2 {
  color: var(--navy);
  margin-bottom: .3rem;
}
.gallery-block p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  align-items: start;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  background: #f3f5f8;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(10, 42, 94, .25);
}

/* ====== Lightbox ====== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: var(--radius);
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  object-fit: contain;
  animation: fadeIn 0.3s ease;
}
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.2rem;
  color: var(--white);
  cursor: pointer;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  transition: background 0.2s ease;
}
.lightbox .close:hover {
  background: rgba(255,255,255,0.2);
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ====== Founder Section (About) ====== */
#founder {
  background: var(--white);
  align-items: center;
  padding: 4rem 0;
}
.founder-text h2 {
  color: var(--navy);
  margin-bottom: 1rem;
  font-size: 2rem;
}
.founder-text p {
  margin-bottom: 1rem;
  color: var(--ink);
  line-height: 1.7;
}
.founder-photo img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  background: #f3f5f8;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.founder-quote {
  font-style: italic;
  color: var(--navy-700);
  border-left: 4px solid var(--navy);
  padding-left: 1rem;
  margin-top: 1rem;
}
.founder-signature {
  color: var(--muted);
  font-weight: 600;
  margin-top: 0.6rem;
}

/* ====== Footer ====== */
.site-footer {
  background: var(--navy-900);
  color: #cbd5e1;
  padding: 2rem 0;
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-inner a { color: #cbd5e1; }
.footer-inner a:hover { color: var(--white); }
.social { list-style: none; display: flex; gap: .8rem; margin: 0; padding: 0; }

/* ====== Responsive ====== */
@media (max-width: 900px) {
  #founder .grid.two { grid-template-columns: 1fr; }
  .founder-photo { margin-top: 2rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .grid.two { grid-template-columns: 1fr; }
  .grid.three { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; gap: 1rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ====== FIX DONATE BUTTON OVERLAP ====== */
.nav ul {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav li:last-child {
  margin-left: 0.6rem;
}

.btn-outline {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
  z-index: 1;
  position: relative;
}

.btn-outline:hover {
  background: #eef2ff;
}

.btn-solid {
  background: var(--navy);
  color: var(--white);
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  position: relative;
  z-index: 2; /* keeps Donate button above blue background */
  display: inline-block;
  white-space: nowrap;
}

.btn-solid:hover {
  background: var(--navy-700);
}
