/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@600;700&display=swap');

/* General Reset */
* { box-sizing: border-box; }
body {
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* Top Navigation */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #004080;
  padding: 0.8rem 1.2rem;
  color: #fff;
}

.topnav .brand-mini {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
}

.topnav .brand-mini img {
  height: 34px;
  width: 34px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3));
}

.nav-toggle {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  font-size: 1rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0.6rem 0;
  background: #003366;
  position: absolute;
  right: 0.8rem;
  top: 3.2rem;
  width: 260px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.nav-links li { padding: 0; }
.nav-links li a {
  display: block;
  padding: 0.7rem 1rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.nav-links li a:hover { background: #00264d; }

.donate-pill {
  background: #ffcc00 !important;
  color: #004080 !important;
  margin: 0.4rem 1rem;
  text-align: center;
  border-radius: 20px;
}

/* Hide menu by default; JS will toggle [hidden] attr */
.nav-links[hidden] { display: none; }

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 1rem 2.2rem;
  background: #004080;
  color: #fff;
}

/* White circle behind logo to pop on dark header */
.logo-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  background: #ffffff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.logo-wrap .logo {
  width: 80px;
  height: auto;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  margin: 0.3rem 0 0.2rem;
}
.hero-sub {
  font-size: 1.1rem;
  margin: 0;
  font-style: italic;
  opacity: 0.95;
}
.tagline { font-size: 1.05rem; margin: 0.4rem 0; }
.subline { font-size: 0.95rem; margin-bottom: 1.2rem; }

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin: 1.2rem auto 0;
  flex-wrap: wrap;
}
.cd-box {
  background: #fff;
  color: #004080;
  padding: 0.9rem;
  border-radius: 10px;
  text-align: center;
  width: 78px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.cd-box span {
  font-size: 1.6rem;
  font-weight: 700;
  display: block;
  font-family: 'Playfair Display', serif;
}
.cd-box small { font-size: 0.85rem; opacity: 0.9; }

/* Sections */
.section { padding: 2rem 1.2rem; }
.section h2, .card h3 {
  font-family: 'Playfair Display', serif;
  text-align: center;
  margin-bottom: 1rem;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

/* Cards */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 1.3rem 1.3rem 1.1rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.card.accent { border-left: 5px solid #004080; }

.badge {
  background: #004080;
  color: #fff;
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 5px;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

/* Buttons & Links */
.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  background: #004080;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  margin-top: 0.5rem;
  font-weight: 700;
}
.btn.alt { background: #ffcc00; color: #004080; }
.btn:hover { opacity: 0.92; }

.link {
  color: #004080;
  font-weight: 700;
  text-decoration: none;
}
.link:hover { text-decoration: underline; }

/* Forms */
.stack { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 0.7rem; }
form input, form select, form textarea, form button {
  padding: 0.65rem;
  font-size: 1rem;
  border: 1px solid #cdd3da;
  border-radius: 6px;
}
form textarea { min-height: 120px; }
form button { background: #004080; color: #fff; cursor: pointer; border: none; }
form button:hover { background: #003366; }

.fine { font-size: 0.88rem; color: #5c6672; }
.hidden { display: none; }

/* Founder */
.founder {
  padding: 2rem 1.2rem;
  background: #e9edf2;
  text-align: center;
  font-style: italic;
}

/* Disclaimer block (high contrast) */
.disclaimer {
  background: #eef3ff;
  color: #0f1f3a;
  padding: 1rem 1.2rem;
  text-align: center;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1rem;
  background: #004080;
  color: #fff;
  font-size: 0.92rem;
}

/* Larger screens */
@media (min-width: 900px) {
  .hero-title { font-size: 2.8rem; }
  .logo-wrap { width: 140px; height: 140px; }
  .logo-wrap .logo { width: 94px; }
}