/* ZAPF brand: deep blue + slate, carried over from the old zapf.africa site.
   Layout/conventions mirror the nogwebsite stylesheet. */
:root {
  --brand: #003087;
  --brand-dark: #002263;
  --charcoal: #363a41;
  --bg: #f8f9fb;
  --card: #ffffff;
  --text: #262a30;
  --muted: #6a707a;
  --border: #e2e5ea;
  --success: #167a3d;
  --error: #b42318;
  --info: #1f6581;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 1rem; }
a { color: var(--brand); }
h1, h2, h3 { color: var(--brand-dark); line-height: 1.25; }
main { min-height: 60vh; }
main > .container { padding: 1.75rem 1rem 3rem; }

/* ---------- Top bar (contact + socials) ---------- */
.top-bar { background: var(--charcoal); }
.top-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .3rem 1rem; }
.top-mail { color: #d3d6da; text-decoration: none; font-size: .85rem; }
a.top-mail:hover { color: #fff; }
.top-socials { display: flex; align-items: center; gap: .4rem; }

/* Social icon chips (top bar, footer) */
.soc { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: inherit; }
.soc-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 26px; height: 26px; border-radius: 50%; background: var(--soc-color); color: #fff;
}
.soc-icon svg { width: 14px; height: 14px; display: block; }
.soc:hover .soc-icon { filter: brightness(1.2); }
.soc-label { font-size: .92rem; }

/* ---------- Header + navigation ---------- */
.site-header { background: #fff; border-bottom: 3px solid var(--brand); position: sticky; top: 0; z-index: 50; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 1rem; }
.brand img { height: 46px; width: auto; display: block; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--charcoal); cursor: pointer; }
.site-nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.site-nav > a {
  display: block; padding: .5rem .7rem; border: none; background: none; cursor: pointer;
  color: var(--charcoal); text-decoration: none; font-weight: 500; font-size: .95rem; border-radius: 6px;
}
.site-nav > a:hover { color: var(--brand); background: #f0f4fb; }
.site-nav > a.active { color: var(--brand); }
.site-nav > a.featured-event { color: var(--brand); font-weight: 600; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; flex-direction: column; align-items: stretch; width: 100%; flex-basis: 100%; padding-bottom: .5rem; }
  .site-nav.open { display: flex; }
  .nav-row { flex-wrap: wrap; }
}

/* ---------- Home hero ---------- */
.hero { background: linear-gradient(115deg, var(--brand-dark) 0%, var(--brand) 55%, #1b4fae 100%); color: #fff; }
.hero-inner { padding: 4.5rem 1rem; max-width: 1080px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.7rem); margin: 0 0 .5rem; }
.hero p { max-width: 42rem; font-size: 1.08rem; margin: 0 0 1.5rem; color: #dfe7f5; }
.hero .btn { margin-right: .5rem; }
.hero .btn-primary { font-size: 1.05rem; padding: .65rem 1.4rem; }

/* Featured event banner */
.event-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: var(--brand-dark); color: #fff; border-radius: 10px; padding: 1rem 1.4rem; margin: 1.75rem auto 0;
}
.event-banner .when { color: #b9c7e6; font-size: .95rem; }
.event-banner h2 { color: #fff; margin: 0 0 .2rem; font-size: 1.3rem; }
.event-banner .banner-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Card grid (what to expect) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem;
  text-decoration: none; color: var(--text); display: block;
  transition: box-shadow .15s ease, border-color .15s ease;
}
a.card:hover { box-shadow: 0 4px 12px rgba(0, 48, 135, .12); border-color: var(--brand); }
.card h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .5rem 1rem; border-radius: 6px;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  text-decoration: none; cursor: pointer; font-size: 1rem;
}
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-light { background: #fff; border-color: #fff; color: var(--brand-dark); font-weight: 600; }
.btn-light:hover { background: #e8edf7; }

/* ---------- Content pages ---------- */
.page-narrow { max-width: 800px; }
.lead { font-size: 1.08rem; color: var(--charcoal); }
.notice { background: #fff4e0; color: #92610c; border: 1px solid #f0d9a6; border-radius: 8px; padding: .75rem 1rem; margin: 1rem 0; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem 1.5rem; margin: 1rem 0; }
.muted { color: var(--muted); }
.section-title { margin-top: 2.25rem; }

/* ---------- Sponsors (data pulled from the events portal) ---------- */
.sponsor-logos { display: flex; flex-wrap: wrap; gap: 1rem; align-items: stretch; justify-content: center; margin: 1rem 0 1.75rem; }
.sponsor {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: .9rem 1.2rem; min-width: 10rem; min-height: 4.5rem;
  text-decoration: none; transition: box-shadow .15s ease, border-color .15s ease;
}
a.sponsor:hover { box-shadow: 0 4px 12px rgba(0, 48, 135, .12); border-color: var(--brand); }
.sponsor img { max-height: 56px; max-width: 160px; display: block; }
.sponsor-name { font-weight: 600; color: var(--charcoal); }
.tier-group h3 {
  font-size: .85rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin: 1.25rem 0 .25rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #d3d6da; margin-top: 2rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1.5rem; padding: 2rem 1rem 1rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-logo { height: 40px; width: auto; background: #fff; border-radius: 6px; padding: 4px 8px; }
.site-footer h4 { color: #fff; margin: .2rem 0 .6rem; font-size: .95rem; }
.site-footer a { display: block; color: #d3d6da; text-decoration: none; padding: .15rem 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-socials .soc { display: flex; align-items: center; }
.footer-socials .soc:hover { text-decoration: none; }
.footer-socials .soc-icon { width: 22px; height: 22px; }
.footer-socials .soc-icon svg { width: 12px; height: 12px; }
.site-footer .muted { color: #aab0b8; }
.copyright { border-top: 1px solid #494e56; padding: .9rem 1rem; margin-top: 1rem; color: #aab0b8; }
