/* =====================================================================
   NCG 2004 Alumni Set - shared styles ("Street Sticker" look)
   Colours are adjusted slightly from the logos so text is easy to read.
   ===================================================================== */

:root {
  --green: #167A33;
  --green-dark: #0F5A24;
  --gold: #F5C400;
  --sky: #7EC8E3;
  --navy: #14306B;
  --paper: #FFFBF0;
  --white: #FFFFFF;
  --danger: #B3261E;
  --radius: 18px;
  --shadow: 4px 4px 0 var(--navy);
  --font-head: "Bungee", "Arial Black", Impact, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--navy);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(126, 200, 227, 0.45) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

img { max-width: 100%; display: block; }

a { color: var(--green-dark); font-weight: 700; }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid #0B57D0; outline-offset: 2px; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--navy);
  padding: .6rem 1rem; z-index: 100; border: 3px solid var(--navy);
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---------- Header with BOTH logos side by side ---------- */

.site-header {
  background: var(--white);
  border-bottom: 4px solid var(--navy);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: 1000px; margin: 0 auto;
  padding: .6rem 1rem;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .4rem 1rem;
}
.brand {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--navy);
}
.logos { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: .5rem; }
.logo-badge {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--navy);
  overflow: hidden;
  display: grid; place-items: center;
}
.logo-badge img { width: 100%; height: 100%; object-fit: contain; }

.brand-text {
  font-family: var(--font-head);
  font-size: 1.05rem; line-height: 1.05;
  letter-spacing: .02em;
}
.brand-text small {
  display: block;
  font-family: var(--font-body); font-weight: 800;
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-dark);
}

.top-nav { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.top-nav a, .top-nav button {
  font: inherit; font-weight: 800; font-size: .95rem;
  min-height: 44px; padding: 0 .9rem;
  display: inline-flex; align-items: center;
  background: transparent; color: var(--navy);
  border: 3px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer;
}
.top-nav a:hover, .top-nav button:hover { border-color: var(--navy); background: var(--sky); }

/* ---------- Page layout ---------- */

.wrap { width: 100%; max-width: 640px; margin: 0 auto; padding: 1.25rem 1rem 2.5rem; flex: 1 0 auto; }
.wrap-wide { max-width: 1000px; }

h1, h2 { font-family: var(--font-head); font-weight: 400; line-height: 1.1; margin: 0 0 .6rem; }
h1 { font-size: clamp(1.6rem, 6.5vw, 2.5rem); }
h2 { font-size: clamp(1.2rem, 4.5vw, 1.6rem); }
p { margin: 0 0 1rem; }
.lead { font-size: 1.15rem; }
.muted { font-size: .95rem; }

.card {
  background: var(--white);
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.card.sky { background: var(--sky); }
.card.gold { background: var(--gold); }

/* Hero on the welcome page */
.hero { text-align: center; padding: 1rem 0 .5rem; }
.hero .logos { justify-content: center; gap: 1rem; margin-bottom: 1rem; }
.hero .logo-badge { width: 96px; height: 96px; }
.hero h1 span { display: block; color: var(--green); }
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 1rem; }

/* ---------- Buttons ---------- */

.btn {
  font: inherit; font-weight: 800; font-size: 1.05rem;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.4rem;
  background: var(--gold); color: var(--navy);
  border: 3px solid var(--navy); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--navy);
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--navy); color: var(--navy); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--navy); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); }
.btn-ghost { background: var(--white); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }

/* ---------- Forms ---------- */

.field { margin-bottom: 1rem; }
label { display: block; font-weight: 800; margin-bottom: .3rem; }
.hint { display: block; font-weight: 400; font-size: .9rem; }

input[type="text"], input[type="email"], input[type="password"], select {
  width: 100%; min-height: 48px;
  font: inherit; color: var(--navy);
  background: var(--white);
  border: 3px solid var(--navy); border-radius: 12px;
  padding: .55rem .8rem;
}
input[type="checkbox"] { width: 24px; height: 24px; accent-color: var(--green); flex: 0 0 auto; margin-top: .15rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; }
.check span { font-weight: 400; }

.message {
  border: 3px solid var(--navy); border-radius: 12px;
  padding: .7rem .9rem; margin-bottom: 1rem; font-weight: 700;
}
.message.error { background: #FDE8E6; color: var(--danger); border-color: var(--danger); }
.message.ok { background: #E3F4E8; color: var(--green-dark); border-color: var(--green-dark); }
.message.info { background: #E6F4FA; color: var(--navy); }

.status-badge {
  display: inline-block; padding: .2rem .8rem;
  background: var(--gold); color: var(--navy);
  border: 3px solid var(--navy); border-radius: 999px;
  font-weight: 800; font-size: .9rem;
}
.number-badge {
  display: inline-block; padding: .3rem 1rem;
  background: var(--gold); color: var(--navy);
  border: 3px solid var(--navy); border-radius: 12px;
  font-family: var(--font-head); font-size: 1.4rem;
  box-shadow: 3px 3px 0 var(--navy);
}

.center { text-align: center; }
[hidden] { display: none !important; }

/* ---------- Footer with both logos again ---------- */

.site-footer {
  background: var(--navy); color: var(--white);
  border-top: 4px solid var(--gold);
  padding: 1.1rem 1rem; text-align: center; font-size: .9rem;
}
.site-footer .logos { justify-content: center; margin-bottom: .6rem; }
.site-footer .logo-badge { width: 44px; height: 44px; border-color: var(--white); }
.site-footer p { margin: 0 0 .3rem; }

/* ---------- Larger screens ---------- */

@media (min-width: 600px) {
  .logo-badge { width: 60px; height: 60px; }
  .brand-text { font-size: 1.3rem; }
  .wrap { padding-top: 2rem; }
  .card { padding: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
