/* ═══════════════════════════════════════════
   MyCharityDB — nav.css
   Navigation · Footer · Shared chrome
═══════════════════════════════════════════ */

/* ─── NAVIGATION ─── */
#nav {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 200;
  height: 70px;
}
.nav-inner {
  height: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  background: transparent;
}
.nav-brand img {
  height: 56px;
  width: auto;
  display: block;
}
.nav-brand:hover { text-decoration: none; opacity: .85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--ink-2);
  padding: .4rem .65rem;
  border-radius: var(--r);
  transition: color .12s, background .12s;
}
.nav-links a:hover { color: var(--green); background: var(--green-light); text-decoration: none; }
.nav-links a.active { color: var(--green); font-weight: 500; }

.nav-cta {
  background: var(--green) !important;
  color: var(--white) !important;
  padding: .45rem 1rem !important;
  border-radius: var(--r);
  font-weight: 500;
  margin-left: .5rem;
  transition: background .15s !important;
}
.nav-cta:hover {
  background: var(--green-mid) !important;
  text-decoration: none !important;
  color: var(--white) !important;
}

/* Hamburger */
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .2s;
}

/* Mobile drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: 70px;
  left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 199;
  padding: 1.5rem;
  flex-direction: column;
  gap: .25rem;
  border-top: 1px solid var(--rule);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 15px;
  color: var(--ink-2);
  padding: .75rem 1rem;
  border-radius: var(--r);
  display: block;
}
.nav-mobile a:hover { background: var(--surface); color: var(--green); text-decoration: none; }
.nav-mobile .nav-cta {
  background: var(--green) !important;
  color: var(--white) !important;
  text-align: center;
  margin-top: .75rem;
  padding: .85rem 1rem !important;
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ─── FOOTER ─── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,.45);
  padding: 3rem 0 2rem;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 1.75rem;
}
.footer-brand {
  display: inline-block;
  margin-bottom: .85rem;
  text-decoration: none;
}
.footer-brand img {
  height: 52px;
  width: auto;
  display: block;
}
.footer-brand:hover { opacity: .8; text-decoration: none; }
.footer-tagline {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,.4);
  margin-bottom: 1.25rem;
  max-width: 260px;
}
.footer-contact {
  font-size: 13px;
  color: rgba(255,255,255,.45);
}
.footer-contact a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
}
.footer-contact a:hover { color: #5fcf8a; }

.footer-col h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: .85rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.footer-col ul li a {
  font-size: 13.5px;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .12s;
}
.footer-col ul li a:hover { color: rgba(255,255,255,.85); }

.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: .75rem;
}
.footer-base a { color: rgba(255,255,255,.35); text-decoration: none; }
.footer-base a:hover { color: rgba(255,255,255,.6); }
.footer-base-links { display: flex; gap: 1.25rem; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
