/* ==========================================================================
   saa.spectrum3847.org — recruitment page for St. Agnes Academy students

   Mobile-first by necessity: essentially all traffic arrives from a QR code on
   a printed flyer, so the phone layout is the real layout and the desktop
   layout is the enhancement.

   Palette and type are lifted verbatim from spectrum3847.org
   (src/layouts/LandingLayout.astro) so the two sites read as one brand. The
   single addition is --gold, taken from the 2026 Impact Magazine, used only as
   a hairline accent where the St. Agnes crest (gold and black) appears.
   ========================================================================== */

:root {
  --ink: #1f1b23;
  --muted: #635a72;
  --p900: #2a0044;
  --p800: #3c0060;
  --p700: #4c0070;
  --accent: #8b5cf6;
  --accent-soft: #c4b5fd;
  --link: #5b1594;
  --surface: #ffffff;
  --surface-alt: #f8f5fc;
  --border: #d4c0ee;
  --gold: #ffcb05;

  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;

  --wrap: min(1120px, 100% - 2.5rem);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(31, 27, 35, .05), 0 8px 24px rgba(76, 0, 112, .07);
  --shadow-lg: 0 18px 46px rgba(42, 0, 68, .18);
}

@media (min-width: 48rem) {
  :root { --wrap: min(1120px, 100% - 4rem); }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:where(h1, h2, h3, h4) { font-family: var(--font-heading); font-weight: 800; line-height: 1.1; letter-spacing: -.015em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.62;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Room for the sticky mobile action dock so the footer is never trapped. */
  padding-bottom: env(safe-area-inset-bottom);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible { outline-color: var(--accent-soft); }

.skip {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: 200; background: #fff; color: var(--p800); font-weight: 700;
  padding: .7rem 1.1rem; border-radius: 0 0 10px 10px;
}
.skip:focus { transform: translate(-50%, 0); }

.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- type primitives ---------- */
.eyebrow {
  font-family: var(--font-heading);
  font-size: .78rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--link);
}
.on-dark .eyebrow { color: var(--accent-soft); }

h1 { font-size: clamp(2.1rem, 8.4vw, 3.9rem); }
h2 { font-size: clamp(1.65rem, 5.6vw, 2.6rem); }
h3 { font-size: clamp(1.12rem, 3.4vw, 1.35rem); }

.lede { font-size: clamp(1.06rem, 3.6vw, 1.28rem); line-height: 1.5; color: var(--muted); }
.on-dark .lede { color: rgba(255, 255, 255, .84); }
.on-dark { color: #fff; }
.on-dark p { color: rgba(255, 255, 255, .88); }

p + p { margin-top: .85em; }
strong { font-weight: 700; color: var(--p700); }
.on-dark strong { color: #fff; }

.hl {
  /* Emphasis for the three promises. A full-height tint rather than an
     underline-style marker gradient — at body sizes the gradient version read
     as a strikethrough through the middle of the words. */
  background: rgba(196, 181, 253, .42);
  padding: .1em .22em;
  margin: 0 -.06em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  color: var(--p900);
  font-weight: 600;
}

/* ---------- sections ---------- */
section { padding: clamp(2.9rem, 8vw, 5rem) 0; }
.band-deep { background: var(--p900); }
.band-mid { background: var(--p800); }
.band-wash { background: var(--surface-alt); }
.band-line { border-top: 1px solid var(--border); }

.head { max-width: 46rem; }
.head .eyebrow { margin-bottom: .55rem; }
.head h2 + p { margin-top: .9rem; }
.rule { width: 3.2rem; height: 4px; border-radius: 3px; background: var(--accent); margin: .85rem 0 0; }
.on-dark .rule { background: var(--accent-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.02rem;
  line-height: 1.2; text-align: center;
  padding: .95rem 1.4rem; border-radius: 12px;
  min-height: 52px; /* comfortable thumb target */
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: #fff; color: var(--p800); box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
.btn-primary:hover { background: #f4ecff; }

.btn-solid { background: var(--p700); color: #fff; box-shadow: var(--shadow); }
.btn-solid:hover { background: var(--p800); }

.btn-ghost { border: 2px solid rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

.btn-outline { border: 2px solid var(--border); color: var(--p700); background: #fff; }
.btn-outline:hover { border-color: var(--accent); background: var(--surface-alt); }

.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.btn-row .btn { flex: 1 1 15rem; }

/* ---------- header ---------- */
.bar {
  position: sticky; top: 0; z-index: 60;
  background: var(--p900);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.bar-in {
  width: var(--wrap); margin-inline: auto;
  display: flex; align-items: center; gap: .85rem;
  min-height: 58px; padding-block: .5rem;
}
.bar-logo img { height: 26px; width: auto; }
.bar-x { color: rgba(255, 255, 255, .4); font-size: 1rem; line-height: 1; }
.bar-crest img { height: 34px; width: auto; }
.bar-tag {
  margin-left: auto; font-family: var(--font-heading); font-weight: 700;
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-soft);
}
.bar .btn { display: none; }
@media (min-width: 60rem) {
  .bar-tag { margin-left: auto; }
  .bar .btn { display: inline-flex; margin-left: 1rem; padding: .6rem 1rem; min-height: 42px; font-size: .95rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--p900);
  padding-top: clamp(2.2rem, 7vw, 4rem);
  padding-bottom: 0;
}
.hero::before {
  /* A spectrum wash: the team is named for bands of the electromagnetic
     spectrum, so the only decorative flourish on the page is that. */
  content: ''; position: absolute; inset: -30% -20% auto -20%; height: 150%;
  background:
    radial-gradient(55% 45% at 18% 8%, rgba(139, 92, 246, .55), transparent 70%),
    radial-gradient(45% 40% at 88% 0%, rgba(255, 203, 5, .13), transparent 68%),
    radial-gradient(60% 50% at 60% 100%, rgba(76, 0, 112, .85), transparent 72%);
  pointer-events: none;
}
.hero > * { position: relative; }

.hero-copy { max-width: 40rem; }
.hero h1 { margin-top: .7rem; }
.hero h1 .glow { color: var(--accent-soft); }
.hero .lede { margin-top: 1.05rem; }
.hero .btn-row { margin-top: 1.6rem; }
.hero-note {
  margin-top: .95rem; font-size: .92rem; color: rgba(255, 255, 255, .68);
}

.hero-media {
  margin-top: clamp(1.8rem, 6vw, 2.6rem);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-media img { width: 100%; height: auto; }

@media (min-width: 62rem) {
  /* align-items: stretch (the default) lets the photo column fill the row
     height set by the copy, so the image crops taller instead of leaving a
     block of empty purple above it. */
  .hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; }
  .hero-copy { align-self: center; padding-bottom: 3.4rem; }
  .hero-media { margin-top: clamp(2rem, 4vw, 3.2rem); }
  .hero-media img { height: 100%; object-fit: cover; object-position: 55% 40%; }
}

/* ---------- promise cards (the three non-negotiables) ---------- */
.promise { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 46rem) { .promise { grid-template-columns: repeat(3, 1fr); } }

.p-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.45rem; box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
}
.p-card h3 { color: var(--p800); }
.p-card p { margin-top: .5rem; color: var(--muted); font-size: .99rem; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; margin-top: 2.1rem; }
@media (min-width: 46rem) { .stats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 68rem) { .stats.five { grid-template-columns: repeat(5, 1fr); } }

.stat b {
  display: block; font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(1.95rem, 7vw, 2.7rem); line-height: 1; letter-spacing: -.03em;
  color: var(--accent-soft);
}
.stat span {
  display: block; margin-top: .45rem; font-size: .87rem; line-height: 1.35;
  color: rgba(255, 255, 255, .82);
}
.stats-light .stat b { color: var(--p700); }
.stats-light .stat span { color: var(--muted); }

/* ---------- roles ---------- */
.roles { display: grid; gap: .85rem; margin-top: 2rem; }
@media (min-width: 34rem) { .roles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 58rem) { .roles { grid-template-columns: repeat(3, 1fr); } }

.role {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 1.05rem 1.1rem 1.15rem;
}
.role h3 { font-size: 1.04rem; color: var(--p800); display: flex; align-items: center; gap: .55rem; }
.role p { margin-top: .35rem; font-size: .95rem; color: var(--muted); line-height: 1.5; }
.role .ico { flex: none; width: 22px; height: 22px; color: var(--accent); }
.role .ico svg { width: 100%; height: 100%; }

.roles-note { margin-top: 1.4rem; font-size: 1rem; color: var(--muted); }

/* ---------- split (copy + photo) ---------- */
.split { display: grid; gap: 1.7rem; align-items: center; }
@media (min-width: 58rem) {
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .split.flip .split-media { order: -1; }
}
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.on-dark .split-media { box-shadow: var(--shadow-lg); }
.split-media img { width: 100%; height: auto; }
.split-copy h2 + p, .split-copy .rule + p { margin-top: 1rem; }

figure { margin: 0; }
figcaption {
  padding: .7rem .9rem; font-size: .84rem; line-height: 1.4;
  color: var(--muted); background: var(--surface-alt);
}
.on-dark figcaption { color: rgba(255, 255, 255, .78); background: rgba(255, 255, 255, .07); }

/* ---------- steps / first year ---------- */
.steps { counter-reset: step; display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.6rem 1.25rem 1.35rem; box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 1.15rem; left: 1.25rem;
  font-family: var(--font-heading); font-weight: 800; font-size: .95rem;
  width: 1.85rem; height: 1.85rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--p700); color: #fff;
}
.step h3 { color: var(--p800); }
.step p { margin-top: .45rem; font-size: .97rem; color: var(--muted); }
.step .when {
  display: inline-block; margin-bottom: .3rem;
  font-family: var(--font-heading); font-weight: 700; font-size: .74rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}

/* ---------- pull quote ---------- */
.quote {
  margin-top: 2rem; padding: 1.5rem 1.4rem;
  background: rgba(255, 255, 255, .07); border-left: 4px solid var(--accent-soft);
  border-radius: 0 12px 12px 0;
}
.quote p { font-size: clamp(1.06rem, 3.6vw, 1.22rem); line-height: 1.5; font-style: italic; }
.quote cite {
  display: block; margin-top: .75rem; font-style: normal;
  font-family: var(--font-heading); font-weight: 700;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-soft);
}
.quote-light { background: var(--surface-alt); border-left-color: var(--accent); border-radius: 0 12px 12px 0; }
.quote-light p { color: var(--p900); }
.quote-light cite { color: var(--link); }

/* ---------- join steps (the three links) ---------- */
.join { display: grid; gap: 1rem; margin-top: 2.2rem; }
@media (min-width: 56rem) { .join { grid-template-columns: repeat(3, 1fr); } }

.join-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.45rem; box-shadow: var(--shadow);
}
.join-card.lead { border: 2px solid var(--accent); box-shadow: 0 14px 34px rgba(76, 0, 112, .14); }
.join-tag {
  align-self: flex-start; margin-bottom: .8rem;
  font-family: var(--font-heading); font-weight: 800; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 999px;
  background: var(--surface-alt); color: var(--link);
}
.join-card.lead .join-tag { background: var(--p700); color: #fff; }
.join-card h3 { color: var(--p800); }
.join-card p { margin-top: .5rem; font-size: .97rem; color: var(--muted); }
.join-card .btn { margin-top: 1.15rem; width: 100%; }
.join-card p.small { margin-top: .6rem; font-size: .86rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 1.9rem; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; align-items: flex-start; gap: .8rem;
  padding: 1.05rem .2rem; cursor: pointer; list-style: none;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.04rem;
  color: var(--p800);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; margin-left: auto; margin-top: .38rem;
  width: .58rem; height: .58rem;
  border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .a { padding: 0 .2rem 1.15rem; color: var(--muted); font-size: 1rem; }
.faq .a a { color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- final CTA ---------- */
.final { text-align: center; }
.final .head { margin-inline: auto; }
.final .btn-row { margin-top: 1.8rem; justify-content: center; }
.final .btn-row .btn { flex: 0 1 18rem; }
.final .hero-note { max-width: 34rem; margin-inline: auto; }

/* ---------- footer ---------- */
.foot { background: var(--p900); color: rgba(255, 255, 255, .8); padding: 2.6rem 0 3.2rem; font-size: .95rem; }
.foot-top { display: grid; gap: 1.8rem; }
@media (min-width: 52rem) { .foot-top { grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; } }
.foot h4 {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-soft); margin-bottom: .7rem;
}
.foot a { color: #fff; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255, 255, 255, .35); }
.foot a:hover { text-decoration-color: #fff; }
.foot li + li { margin-top: .4rem; }
.foot-logo img { height: 30px; width: auto; margin-bottom: .9rem; }
.foot-crests { display: flex; align-items: center; gap: 1rem; margin-top: 1.1rem; }
.foot-crests img { height: 46px; width: auto; }
.foot-fine {
  margin-top: 2.2rem; padding-top: 1.3rem; border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .86rem; color: rgba(255, 255, 255, .6);
}

/* ---------- sticky mobile action dock ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(42, 0, 68, .96);
  border-top: 1px solid rgba(255, 255, 255, .16);
  transform: translateY(115%); transition: transform .22s ease;
  backdrop-filter: saturate(140%) blur(6px);
}
.dock.show { transform: translateY(0); }
.dock .btn { width: 100%; min-height: 50px; }
@media (min-width: 60rem) { .dock { display: none; } }

@media (forced-colors: active) {
  .btn, .p-card, .role, .step, .join-card { border: 1px solid CanvasText; }
  .hero::before { display: none; }
}
