@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap");

/* reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green: #22c55e;
  --green2: #34d399;
  --text: #0b0f14;
  --muted: rgba(0, 0, 0, 0.65);
  --card: rgba(255, 255, 255, 0.92);
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.12);
}

body {
  font-family:
    "Google Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  min-height: 100vh;
  color: var(--text);
  overflow-x: hidden;
  background: #ffffff;
}

/* optional demo bg */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  filter: brightness(0.7);
}

/* navbar */
.header {
  position: absolute; /* ✅ overlay on hero */
  top: 18px;
  left: 0;
  width: 100%;
  z-index: 999;
}

.nav {
  width: min(980px, 92%);
  margin: 0 auto;
  padding: 12px 18px;
  border-radius: 999px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  min-width: 0;
  padding-left: 20px;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-center {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  font-size: 14px;
  transition: 0.2s ease;
  padding: 7px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-link:hover {
  color: white;
}

.nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.btn {
  text-decoration: none;
  background: var(--green);
  color: white;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  transition: 0.2s ease;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.22);
  white-space: nowrap;
}

.btn:hover {
  background: var(--green2);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  padding: 10px;
}

.menu-btn span {
  display: block;
  height: 2px;
  width: 18px;
  background: rgba(255, 255, 255, 0.9);
  margin: 4px auto;
}

/* mobile menu */
.mobile-menu {
  width: min(600px, 92%);
  margin: 12px auto 0 auto;
  border-radius: 24px;
  padding: 10px;
  display: none;

  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mobile-menu.open {
  display: block;
}

.mobile-link {
  display: block;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 500;
  transition: 0.2s ease;
}

.mobile-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

/* page container */
.page {
  width: min(980px, 92%);
  margin: 0 auto;
  padding-top: 0;
}

/* footer */
.footer {
  padding: 28px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-copy {
  color: rgba(0, 0, 0, 0.6);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 14px;
}

.footer-links a {
  color: rgba(0, 0, 0, 0.65);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* MOBILE NAV rules */
@media (max-width: 768px) {
  .nav-center {
    display: none;
  }

  /* ✅ logo left, hamburger right, spaced */
  .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* ✅ hide donate on navbar for mobile */
  .nav-donate {
    display: none;
  }

  .menu-btn {
    display: inline-block;
  }

  .footer-inner {
    flex-direction: column;
  }
}
