/* ==========================================================
   Punjab Results Hub - design system
   Palette: crisp white, deep navy, emerald green, charcoal text
   Fonts:   Outfit (headings), Nunito Sans (body)
   Motion:  one soft rise-in (hero on load, cards on scroll),
            gentle lift on hover, all disabled for reduced motion
   Reuse this file on every page.
   ========================================================== */

:root {
  --white: #ffffff;
  --navy: #0b1f3a;
  --navy-soft: #16305a;
  --emerald: #059669;
  --emerald-btn: #047857;
  --emerald-hover: #065f46;
  --emerald-bright: #10b981;
  --emerald-tint: #ecfdf5;
  --ink: #1f2937;
  --muted: #4b5563;
  --line: #e5e7eb;

  --font-head: "Outfit", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --max: 1120px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 3px solid var(--emerald-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--emerald-btn); color: #fff; padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  color: #fff;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 1.25rem;
}
.brand svg { flex: none; }

.site-nav ul { display: flex; gap: 0.35rem; }
.site-nav a {
  display: block; padding: 0.55rem 0.95rem; border-radius: 8px;
  text-decoration: none; color: #dbe5f3; font-weight: 600; font-size: 1rem;
  transition: background-color 0.2s, color 0.2s;
}
.site-nav a:hover { background: var(--navy-soft); color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--emerald-bright); border-radius: 8px 8px 0 0; }

.nav-toggle {
  display: none; background: transparent; border: 0; color: #fff;
  width: 44px; height: 44px; border-radius: 8px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle:hover { background: var(--navy-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1rem; border-radius: var(--radius-sm);
  background: var(--emerald-btn); color: #fff;
  font-family: var(--font-body); font-weight: 700; font-size: 0.98rem; line-height: 1.2;
  text-decoration: none; text-align: center; border: 0; cursor: pointer;
  transition: background-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:hover { background: var(--emerald-hover); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(4, 120, 87, 0.28); }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }
.btn-icon { flex: none; opacity: 0.9; }
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem); text-align: center; }
.hero h1 {
  font-size: clamp(2.1rem, 5.6vw, 3.6rem);
  font-weight: 700;
  max-width: 17ch;
  margin-inline: auto;
}
.hero p {
  max-width: 56ch; margin: 1.4rem auto 2.2rem;
  color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.2rem);
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 2.75rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.35rem); font-weight: 700; }
.section-head p { margin: 0.8rem 0 0; color: var(--muted); }

/* ---------- Board grid ---------- */
.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

.card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.card:hover { border-color: var(--emerald); box-shadow: 0 14px 30px rgba(11, 31, 58, 0.09); }
.card-title { font-size: 1.4rem; font-weight: 600; }
.card-text { margin: 0.6rem 0 1.5rem; color: var(--muted); font-size: 0.98rem; line-height: 1.55; flex: 1; }
.card-actions { display: grid; gap: 0.6rem; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
.step { position: relative; padding-top: 4rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.9rem; height: 2.9rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 1.2rem;
}
.step h3 { font-size: 1.25rem; font-weight: 600; }
.step p { margin: 0.5rem 0 0; color: var(--muted); }

/* ---------- Disclaimer ---------- */
.disclaimer {
  background: var(--emerald-tint);
  border-left: 5px solid var(--emerald);
  border-radius: var(--radius-sm);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  max-width: 820px; margin-inline: auto;
}
.disclaimer h2 { font-size: 1.5rem; font-weight: 600; }
.disclaimer p { margin: 0.8rem 0 0; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cbd7e8; padding: 3.5rem 0 1.75rem; margin-top: 2rem; font-size: 0.98rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.7fr; gap: 3rem; }
.site-footer h2 { color: #fff; font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }
.footer-brand p { margin: 0.9rem 0 0; max-width: 42ch; line-height: 1.6; }
.footer-boards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem 1.5rem; }
.footer-boards a, .footer-nav a { text-decoration: none; color: #cbd7e8; transition: color 0.2s; }
.footer-boards a:hover, .footer-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin-top: 2rem; }
.footer-contact { margin-top: 2rem; }
.footer-contact p { margin: 0; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.9rem; color: #9fb1cb; }

/* ---------- Motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
}
.js .hero-anim { animation: rise 0.75s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms); }
.js .card { opacity: 0; }
.js .card.is-in { opacity: 1; transform: none; animation: rise 0.6s var(--ease) backwards; animation-delay: var(--d, 0ms); }
.js .card.is-in:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .card { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy); border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.6rem 1.25rem 1.1rem; display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.2rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--emerald-bright); border-radius: 8px; }
  .steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .step { padding-top: 0; padding-left: 4rem; }
}

@media (max-width: 620px) {
  .board-grid { grid-template-columns: 1fr; }
  .footer-boards { grid-template-columns: repeat(2, 1fr); }
}
