/* ==========================================================================
   Aspire Christian Academy
   Brand colours sampled from the logo: black #000000, brick red #861D13.
   Type: Montserrat (display, matches the wordmark) + Source Sans 3 (body)
         + Lora italic (scripture).
   ========================================================================== */

:root {
  /* Brand */
  --red:        #861D13;
  --red-deep:   #5C130C;
  --red-bright: #A8291C;
  --red-tint:   #F8EDEB;

  /* Neutrals — warmed slightly so the red sits comfortably */
  --ink:        #121110;
  --ink-soft:   #1E1C1A;
  --body:       #3D3936;
  --muted:      #6E6863;
  --rule:       #E4DDD5;
  --paper:      #FFFFFF;
  --paper-warm: #FAF7F3;

  --sans:    "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --serif:   "Lora", Georgia, "Times New Roman", serif;

  --container: 1140px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);

  --radius: 4px;
  --shadow: 0 1px 2px rgba(18, 17, 16, .04), 0 8px 24px -12px rgba(18, 17, 16, .18);
}

/* --------------------------------------------------------------- reset -- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-deep); }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-weight: 800; font-size: clamp(2.25rem, 5.5vw, 3.5rem); }
h2 { font-weight: 800; font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-weight: 700; font-size: clamp(1.125rem, 1.9vw, 1.3125rem); letter-spacing: -.005em; }
h4 { font-weight: 700; font-size: 1rem; letter-spacing: 0; }

p, li { text-wrap: pretty; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 760px; }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--warm { background: var(--paper-warm); }
.section--dark { background: var(--ink); color: #CFC9C3; }
.section--dark h2, .section--dark h3 { color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--red); color: #fff; padding: .75rem 1.25rem;
  font: 600 .9375rem var(--display); border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------- typography -- */

.eyebrow {
  font: 700 .75rem/1.4 var(--display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.eyebrow::after {
  content: ""; flex: 0 0 2.25rem; height: 2px;
  background: var(--red); opacity: .5;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::before {
  content: ""; flex: 0 0 2.25rem; height: 2px;
  background: var(--red); opacity: .5; order: -1;
}
.section--dark .eyebrow { color: #E0A79E; }
.section--dark .eyebrow::after, .section--dark .eyebrow::before { background: #E0A79E; }

.lead {
  font-size: clamp(1.125rem, 1.9vw, 1.3125rem);
  line-height: 1.6;
  color: var(--body);
}
.section--dark .lead { color: #CFC9C3; }

.section-head { max-width: 44rem; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::before {
  content: ""; flex: 0 0 2.25rem; height: 2px;
  background: currentColor; opacity: .5; order: -1;
}
.section-head > :last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ buttons -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 700 .9375rem/1 var(--display);
  letter-spacing: .02em;
  padding: 1rem 1.65rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn--primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }

.btn--ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }

.btn--ghost-light { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .875rem; }
.btn-row--center { justify-content: center; }

/* Text link with arrow */
.arrow-link {
  font: 700 .9375rem var(--display);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .45rem;
}
.arrow-link::after { content: "→"; transition: transform .18s ease; }
.arrow-link:hover::after { transform: translateX(3px); }

/* ------------------------------------------------------------- header -- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 78px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: clamp(160px, 22vw, 208px); }

.nav { display: flex; align-items: center; gap: clamp(.5rem, 1.6vw, 1.5rem); }
.nav a {
  font: 600 .9375rem var(--display);
  color: var(--ink);
  text-decoration: none;
  padding: .5rem 0;
  position: relative;
  white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .18s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--red); }
.nav .btn { padding: .7rem 1.15rem; }
.nav .btn::after { display: none; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: .6rem .8rem; cursor: pointer; color: var(--ink);
  font: 700 .875rem var(--display);
  align-items: center; gap: .5rem;
}
.nav-toggle__bars { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top:  6px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gutter) 1.5rem;
    box-shadow: var(--shadow);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--rule); font-size: 1.0625rem; }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 1rem; border-bottom: 0; justify-content: center; }
}

/* --------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  background: var(--ink);
  color: #CFC9C3;
  overflow: hidden;
  padding-block: clamp(4.5rem, 11vw, 8rem);
}
.hero__mark {
  position: absolute;
  right: clamp(-6rem, -4vw, -2rem); top: 50%; transform: translateY(-50%);
  width: clamp(360px, 46vw, 620px);
  opacity: .07;
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 5px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 55%, var(--red-bright) 100%);
}
.hero__inner { position: relative; max-width: 40rem; }
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero .lead { color: #C6C0BA; max-width: 34rem; }
.hero .btn-row { margin-top: 2.25rem; }

@media (max-width: 720px) {
  .hero__mark { opacity: .05; right: -22%; width: 90%; }
}

/* -------------------------------------------------------------- stats -- */

.stats {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border-inline: 1px solid var(--rule);
}
.stat {
  background: var(--paper);
  padding: clamp(1.75rem, 3.5vw, 2.5rem) clamp(1rem, 2.5vw, 1.75rem);
  text-align: center;
}
.stat__num {
  font: 800 clamp(2rem, 4.4vw, 2.875rem)/1 var(--display);
  color: var(--red);
  letter-spacing: -.03em;
  display: block;
}
.stat__label {
  display: block; margin-top: .6rem;
  font: 600 .75rem/1.4 var(--display);
  letter-spacing: .13em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 760px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* -------------------------------------------------------------- grids -- */

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
/* Grid items default to min-width:auto, which lets a wide table push the whole
   track past the container. Zeroing it lets .table-wrap's overflow-x do its job. */
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--split { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .grid--2, .grid--3, .grid--split { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------- cards -- */

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.125rem);
  position: relative;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card::before {
  content: ""; position: absolute; inset: -1px -1px auto -1px; height: 3px;
  background: var(--red); border-radius: var(--radius) var(--radius) 0 0;
  transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.card:hover { border-color: #D6CEC5; box-shadow: var(--shadow); transform: translateY(-2px); }
.card:hover::before { transform: scaleX(1); }
.card > :last-child { margin-bottom: 0; }
.card p { color: var(--muted); font-size: .9875rem; }

.card__num {
  font: 800 .8125rem/1 var(--display);
  letter-spacing: .12em;
  color: var(--red);
  display: block;
  margin-bottom: 1rem;
}
.card--static:hover { transform: none; box-shadow: none; border-color: var(--rule); }
.card--static::before { display: none; }

/* Numbered step cards */
.steps { counter-reset: step; }
.step { position: relative; }
.step__n {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--red-tint); color: var(--red);
  display: grid; place-items: center;
  font: 800 1rem var(--display);
  margin-bottom: 1.1rem;
}

/* --------------------------------------------------------- scripture -- */

.scripture {
  background: var(--red);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.scripture__mark {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(300px, 40vw, 460px);
  opacity: .08; pointer-events: none;
}
.scripture blockquote {
  margin: 0; position: relative;
  font: italic 400 clamp(1.375rem, 3.2vw, 2.125rem)/1.45 var(--serif);
  max-width: 44rem; margin-inline: auto;
  text-wrap: balance;
}
.scripture cite {
  display: block; margin-top: 1.5rem;
  font: 700 .8125rem var(--display);
  letter-spacing: .16em; text-transform: uppercase;
  font-style: normal; color: rgba(255,255,255,.8);
}

/* Inline pull quote on light backgrounds */
.pullquote {
  margin: 0;
  border-left: 3px solid var(--red);
  padding: .25rem 0 .25rem 1.5rem;
  font: italic 400 1.1875rem/1.6 var(--serif);
  color: var(--ink);
}
.pullquote cite {
  display: block; margin-top: .85rem;
  font: 700 .75rem var(--display);
  letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--muted);
}

/* ---------------------------------------------------------- prose bits -- */

.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin-top: 2.5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2em; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.35rem; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--red); }

.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li {
  position: relative; padding-left: 1.85rem; margin-bottom: .7rem;
}
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--red-tint); border: 2px solid var(--red);
}

/* ------------------------------------------------------------- tables -- */

.table-wrap { overflow-x: auto; margin-bottom: 1.5rem; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: .9875rem; }
/* Two-column reference tables don't need the scroll floor. */
table.table--compact { min-width: 0; }
caption { text-align: left; padding-bottom: .75rem; color: var(--muted); font-size: .9375rem; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th {
  font: 700 .75rem var(--display);
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  border-bottom-width: 2px; border-bottom-color: var(--ink);
}
tbody tr:last-child td { border-bottom: 0; }
td strong { color: var(--ink); }

/* ---------------------------------------------------- curriculum chips -- */

.subject-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.subject-list li {
  background: var(--paper);
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem;
  padding: .95rem 1.25rem;
}
.subject-list .subject { font: 600 1rem var(--display); color: var(--ink); }
.subject-list .grades {
  font: 700 .75rem var(--display); letter-spacing: .1em;
  color: var(--red); white-space: nowrap;
}

/* -------------------------------------------------------------- staff -- */

.staff-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 2.6vw, 1.75rem);
  background: var(--paper);
  border-top: 3px solid var(--red);
}
.staff-card h3 { margin-bottom: .35rem; }
.staff-card .role { color: var(--muted); font-size: .9375rem; margin: 0 0 .75rem; }
.staff-card .grades-taught {
  font: 700 .6875rem var(--display); letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); background: var(--red-tint);
  display: inline-block; padding: .3rem .6rem; border-radius: 2px;
}

/* ------------------------------------------------------------ contact -- */

.contact-block { margin-bottom: 2rem; }
.contact-block h3 { margin-bottom: .5rem; }
.contact-block p { margin-bottom: .3rem; }
.contact-block a { font-weight: 600; }

.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block; margin-bottom: .4rem;
  font: 600 .875rem var(--display); color: var(--ink);
}
.form-field .req { color: var(--red); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  font: 400 1rem var(--sans);
  color: var(--ink);
  padding: .8rem .9rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(134, 29, 19, .12);
}
.form-field textarea { min-height: 8rem; resize: vertical; }
.form-note { font-size: .875rem; color: var(--muted); margin-top: 1rem; }

/* --------------------------------------------------------------- misc -- */

.callout {
  background: var(--red-tint);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: clamp(1.35rem, 2.6vw, 1.85rem);
}
.callout > :last-child { margin-bottom: 0; }
.callout h3 { margin-bottom: .5rem; }

.price {
  font: 800 clamp(2.5rem, 6vw, 3.75rem)/1 var(--display);
  color: var(--red); letter-spacing: -.03em;
}
.price small {
  font: 600 1rem var(--display); color: var(--muted); letter-spacing: 0;
}

.page-hero {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.page-hero .lead { max-width: 42rem; }

.breadcrumb {
  font: 600 .8125rem var(--display);
  color: var(--muted); margin: 0 0 1.25rem;
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { padding: 0 .4rem; opacity: .5; }

/* ------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--ink);
  color: #A39D97;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: .9375rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer img.footer-logo { width: 200px; margin-bottom: 1.25rem; }
.site-footer h4 {
  color: #fff; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { color: #C9C3BD; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.75; }
.site-footer__base {
  padding-top: 1.75rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .8125rem; color: #7D7772;
}
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- 404 -- */

.error-page { text-align: center; padding-block: clamp(5rem, 14vw, 9rem); }
.error-page .code {
  font: 800 clamp(4rem, 14vw, 8rem)/1 var(--display);
  color: var(--red-tint); letter-spacing: -.04em; margin-bottom: .25em;
}

/* -------------------------------------------------------------- print -- */

@media print {
  .site-header, .site-footer, .nav-toggle, .btn-row, .hero__mark, .scripture__mark { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .section { padding-block: 1.5rem; }
  .hero, .section--dark, .scripture { background: #fff !important; color: #000 !important; }
  .hero h1, .scripture blockquote, .scripture cite { color: #000 !important; }
}
