/* ============================================================
   Alaafin High School Alumni — Stylesheet
   Palette: deep indigo (heritage) + gold (accent) + warm cream
   ============================================================ */

:root {
  /* Indigo — the school's deep colour */
  --indigo-900: #131a3a;
  --indigo-800: #1c2554;
  --indigo-700: #26306e;
  --indigo-600: #35429b;
  --indigo-500: #4a5ac1;
  --indigo-100: #e6e9f7;

  /* Gold — the accent */
  --gold-700: #a67c00;
  --gold-600: #c8961a;
  --gold-500: #e0b03c;
  --gold-400: #f0c85a;
  --gold-100: #fbf3d9;

  /* Warm neutrals */
  --cream: #fbf9f4;
  --cream-dark: #f3efe6;
  --surface: #ffffff;

  --text: #10142b;
  --muted: #6a6f80;
  --border: #e5e0d3;

  --radius: 10px;
  --radius-lg: 18px;

  --primary: var(--indigo-700);
  --primary-hover: var(--indigo-900);
  --accent: var(--gold-600);
  --accent-hover: var(--gold-700);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--indigo-600); }
a:hover { color: var(--gold-700); }

/* ---------- Navigation ---------- */
.navbar {
  background: var(--indigo-900);
  border-bottom: 3px solid var(--gold-600);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  min-height: 76px;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--cream);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gold-600);
  color: var(--indigo-900);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.logo-text {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.navbar nav > a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.88;
  transition: opacity 0.15s, color 0.15s;
}

.navbar nav > a:hover {
  opacity: 1;
  color: var(--gold-400);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--gold-600);
  color: var(--indigo-900);
  border-color: var(--gold-600);
}

.btn-primary:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--indigo-900);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--indigo-700);
  color: var(--indigo-700);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 2px solid rgba(251, 249, 244, 0.3);
}

.btn-ghost:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
  background: rgba(224, 176, 60, 0.08);
}

.navbar .btn-primary {
  padding: 0.55rem 1.2rem;
  font-size: 0.92rem;
}

/* ---------- Main ---------- */
main { padding: 0 0 3rem; min-height: 60vh; }

h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 0.5rem; }
h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 0.5rem; }

.page-subtitle {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.page-subtitle a { font-weight: 500; }

.results-count {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(224, 176, 60, 0.15), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(74, 90, 193, 0.35), transparent 55%),
    var(--indigo-900);
  color: var(--cream);
  padding: 4.5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}

.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(224, 176, 60, 0.35);
  border-radius: 999px;
}

.hero h1 {
  max-width: 780px;
  margin-bottom: 1.25rem;
}

.hero h1 .accent { color: var(--gold-400); }

.hero p {
  max-width: 580px;
  font-size: 1.15rem;
  color: rgba(251, 249, 244, 0.78);
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* ---------- Feature Cards ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: -3.5rem;
  position: relative;
  z-index: 2;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link:hover { transform: translateY(-4px); }

.card-link:hover .card,
.card-link:hover .feature-card {
  border-color: var(--gold-500);
  box-shadow: 0 14px 32px rgba(19, 26, 58, 0.14);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--indigo-100);
  color: var(--indigo-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-card h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.feature-card .arrow {
  margin-top: 1.25rem;
  color: var(--gold-700);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s;
}

.card-link:hover .feature-card .arrow { transform: translateX(4px); }

/* ---------- Homepage mission ---------- */
.home-mission { margin-top: 4rem; }

.mission-card {
  background: var(--indigo-100);
  border-left: 4px solid var(--gold-600);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
}

.mission-card h2 { color: var(--indigo-800); }
.mission-card p { color: var(--indigo-800); margin-top: 0.75rem; font-size: 1rem; }

/* ---------- Generic card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* ---------- Forms ---------- */
form p { margin-bottom: 1rem; }
form label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.92rem; }

form input, form textarea, form select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

form input:focus, form textarea:focus, form select:focus {
  outline: none;
  border-color: var(--indigo-600);
  box-shadow: 0 0 0 3px rgba(53, 66, 155, 0.15);
}

/* ---------- Messages ---------- */
.messages { list-style: none; margin: 1.5rem 0 0; }
.messages li {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  background: var(--indigo-100);
  color: var(--indigo-900);
  border-left: 4px solid var(--indigo-600);
  margin-bottom: 0.5rem;
}

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.filter-bar label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

/* ---------- Card grids ---------- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.person-card { text-align: center; }

.person-name { font-size: 1.15rem; margin-bottom: 0.25rem; }
.person-meta { color: var(--muted); font-size: 0.9rem; }
.person-role { margin-top: 0.5rem; font-size: 0.95rem; }

/* ---------- Avatars ---------- */
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.85rem;
  display: block;
}

.avatar-lg {
  width: 120px;
  height: 120px;
  margin-bottom: 1rem;
}

.avatar-initial {
  background: var(--indigo-700);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
}

.avatar-lg.avatar-initial { font-size: 3rem; }

/* ---------- Tags ---------- */
.tag {
  display: inline-block;
  background: var(--gold-100);
  color: var(--gold-700);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.15rem 0.25rem 0.15rem 0;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.page-info {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--muted);
}

/* ---------- Alerts ---------- */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border-left: 4px solid transparent;
}

.alert-warning {
  background: var(--gold-100);
  border-left-color: var(--gold-600);
  color: var(--gold-700);
}

.alert-success {
  background: var(--indigo-100);
  border-left-color: var(--indigo-600);
  color: var(--indigo-800);
}

/* ---------- Item lists (profile) ---------- */
.item-list {
  list-style: none;
  margin-top: 0.5rem;
}

.item-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.item-list li:last-child { border-bottom: none; }

.item-list a {
  font-weight: 500;
  color: var(--indigo-700);
  text-decoration: none;
}

.item-list a:hover { color: var(--gold-700); text-decoration: underline; }

.item-list .meta {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
footer {
  background: var(--indigo-900);
  color: rgba(251, 249, 244, 0.75);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
  border-top: 3px solid var(--gold-600);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-weight: 700;
  color: var(--cream);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.footer-tagline {
  color: var(--gold-400);
  font-style: italic;
  font-size: 0.95rem;
}

.footer-heading {
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

footer a {
  display: block;
  color: rgba(251, 249, 244, 0.75);
  text-decoration: none;
  padding: 0.2rem 0;
  font-size: 0.95rem;
}

footer a:hover { color: var(--gold-400); }

.footer-copy {
  border-top: 1px solid rgba(251, 249, 244, 0.12);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(251, 249, 244, 0.55);
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}
