/* ==========================================================================
   Sandra's Heart Foundation — Design Tokens
   Palette sampled from the organisation's own logo mark.
   Purple = the brand. Gold = the crown motif ("every girl deserves to be
   treated like royalty") — used sparingly as the one signature accent.
   ========================================================================== */

:root {
  --purple-950: #1F0740;
  --purple-900: #2A0654;
  --purple-800: #44037B;
  --purple-700: #5A1B96;
  --purple-500: #7B3FB0;
  --purple-300: #BD87DF;
  --lavender-100: #F1E6FA;
  --lavender-50: #FAF6FD;
  --white: #FFFDFE;
  --gold-500: #C9A24B;
  --gold-300: #E4CD8E;
  --ink: #2B1740;
  --ink-soft: #5B4A72;

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  --radius: 18px;
  --shadow-soft: 0 20px 50px -20px rgba(42, 6, 84, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Focus visibility (accessibility floor) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
}

/* ---------- Signature element: the Confidence Arc ----------
   A rising arc motif echoes the programme theme "Knowledge Today,
   Confidence Tomorrow" and the crown's curve in the logo. Used once
   per page as a section device — not repeated into decoration. */
.confidence-arc {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.confidence-arc svg { position: absolute; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 254, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lavender-100);
}
.nav-link {
  position: relative;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--purple-800); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold-500);
  color: var(--purple-950);
  box-shadow: 0 12px 30px -12px rgba(201, 162, 75, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(201, 162, 75, 0.75); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-outline-purple {
  background: transparent;
  color: var(--purple-800);
  border: 1.5px solid var(--purple-300);
}
.btn-outline-purple:hover { background: var(--lavender-100); transform: translateY(-2px); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--lavender-100);
  box-shadow: var(--shadow-soft);
}

/* ---------- Reveal-on-scroll (subtle, restrained) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Hero gradient ---------- */
.hero-gradient {
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(228, 205, 142, 0.28), transparent 60%),
    radial-gradient(70% 60% at 15% 100%, rgba(189, 135, 223, 0.35), transparent 60%),
    linear-gradient(160deg, var(--purple-950) 0%, var(--purple-800) 60%, var(--purple-700) 100%);
}

/* ---------- Small crown glyph used as signature bullet ---------- */
.crown-mark { color: var(--gold-500); }

/* ---------- Utility ---------- */
.eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--purple-500);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--purple-950);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold-500);
  color: var(--purple-950);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }
