/* =====================================================================
   bja-portal public side  ·  Bonnie Joseph Academy + KBCC
   Light theme, paper-cream canvas, warm walnut ink, terracotta accent.
   Public is brand register: design IS the product for prospective students.
   ===================================================================== */

:root {
  /* Surfaces */
  --paper:        oklch(0.965 0.018 80);
  --paper-deep:   oklch(0.940 0.022 75);
  --paper-edge:   oklch(0.985 0.012 80);
  --ink:          oklch(0.180 0.010 40);
  --ink-soft:     oklch(0.360 0.010 40);
  --ink-quiet:    oklch(0.520 0.010 50);
  --muted:        oklch(0.60  0.012 55);
  --line:         oklch(0.86  0.018 65);
  --line-strong:  oklch(0.74  0.022 60);

  /* Brand colors */
  --terracotta:        oklch(0.44 0.14 32);
  --terracotta-deep:   oklch(0.32 0.13 28);
  --terracotta-soft:   oklch(0.93 0.038 48);
  --bronze:            oklch(0.60 0.11 62);
  --bronze-soft:       oklch(0.93 0.034 70);

  /* Status colors (warm-shifted to match the palette, not the typical traffic-light SaaS set) */
  --sage:        oklch(0.50 0.08 145);
  --sage-soft:   oklch(0.94 0.030 145);
  --wine:        oklch(0.42 0.14 18);
  --wine-soft:   oklch(0.94 0.035 22);
  --ochre:       oklch(0.62 0.13 80);
  --ochre-soft:  oklch(0.95 0.033 82);

  /* Type stacks (system fonts only per project rule) */
  --serif:    "Iowan Old Style", "Charter", "Hoefler Text", "Adobe Caslon Pro", Georgia, serif;
  --sans:     -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
  --mono:     ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, monospace;

  /* Scale */
  --r-sm: 3px;
  --r-md: 5px;
  --r-lg: 8px;
  --shadow-rest: 0 1px 0 oklch(0.86 0.018 65 / 0.6);
  --shadow-lift: 0 6px 18px oklch(0.36 0.010 40 / 0.10), 0 1px 0 oklch(0.86 0.018 65 / 0.6);
  --ease-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-quint: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 16px/1.6 var(--sans);
  color: var(--ink);
  background:
    /* paper-grain — barely-there warm noise */
    radial-gradient(oklch(0.92 0.025 65 / 0.4) 1px, transparent 1.5px) 0 0/24px 24px,
    var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--terracotta); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--terracotta); }

::selection { background: var(--terracotta-soft); color: var(--terracotta-deep); }

/* ---------- Shell ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper-edge);
}
header.site .wrap {
  padding-top: 22px; padding-bottom: 22px;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 28px;
}
header.site .brand {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.25;
}
header.site .brand small {
  display: block;
  font: 500 11px/1.4 var(--mono);
  color: var(--ink-quiet);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 6px;
  font-family: var(--sans);
}
header.site .brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
header.site .brand-logo:hover { text-decoration: none; }
header.site .brand-logo img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
}
header.site .brand-logo small {
  margin-top: 0;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
header.site nav a {
  font: 500 13px/1 var(--sans);
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color 0.15s var(--ease-quart), background 0.15s var(--ease-quart);
}
header.site nav a:hover {
  color: var(--ink);
  background: var(--paper-deep);
  text-decoration: none;
}

footer.site {
  border-top: 1px solid var(--line);
  background: var(--paper-edge);
  padding: 28px 0;
  color: var(--ink-quiet);
  font-size: 13px;
}
footer.site .wrap {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 12px;
}
footer.site a { color: var(--ink-soft); }
footer.site a:hover { color: var(--terracotta); }

/* ---------- Landing (school picker) ----------
   Asymmetric editorial pairing, not identical card grid.
   Left column: deep typographic intro.
   Right column: two school selectors, each with their own visual identity. */

.landing {
  padding: 88px 0 0;
}
.landing-hero {
  max-width: 64ch;
  margin-bottom: 52px;
}
.landing-hero .eyebrow {
  font: 600 11px/1 var(--mono);
  color: var(--terracotta);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-family: var(--sans);
}
.landing-hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin: 0 0 22px;
  font-weight: 500;
}
.landing-hero h1 em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 500;
}
.landing-hero p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  max-width: 50ch;
}

.schools {
  padding: 8px 0 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.schools .school-card {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1.6fr) auto;
  align-items: center;
  gap: 40px;
  padding: 42px 8px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s var(--ease-quart), padding-left 0.25s var(--ease-quart);
}
.schools .school-card:hover {
  background: var(--paper-deep);
  text-decoration: none;
  padding-left: 24px;
}
.schools .school-card:hover .school-arrow { transform: translateX(6px); }

.school-card .school-mark {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 90px;
}
.school-card .school-mark img {
  max-height: 90px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.school-card .name-block h2 {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0 0 10px;
  font-weight: 500;
}
.school-card .name-block .city {
  font: 500 11px/1 var(--mono);
  color: var(--ink-quiet);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--sans);
  margin: 0 0 6px;
}
.school-card .name-block p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
}
.school-card .school-arrow {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--ink-quiet);
  transition: transform 0.3s var(--ease-quint), color 0.2s var(--ease-quart);
  align-self: center;
}
.school-card:hover .school-arrow { color: var(--terracotta); }
.schools .school-card.kbcc:hover .school-arrow { color: var(--bronze); }

/* ---------- Wizard (apply flow) ---------- */

main.wrap:has(.wizard-progress) {
  padding-top: 40px;
  padding-bottom: 64px;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  margin: 0 0 56px;
  padding: 0;
  list-style: none;
  position: relative;
  counter-reset: step;
}
.wizard-progress::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 13px;
  height: 1px;
  background: var(--line);
}
.wizard-progress .step {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  position: relative;
  font-size: 12px;
}
.wizard-progress .step .num {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  font: 600 12px/1 var(--mono);
  color: var(--ink-quiet);
  font-family: var(--sans);
  position: relative;
  z-index: 1;
  transition: all 0.25s var(--ease-quart);
}
.wizard-progress .step .lbl {
  font: 500 11px/1.3 var(--sans);
  color: var(--ink-quiet);
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
}
.wizard-progress .step.done .num {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--paper);
}
.wizard-progress .step.done .lbl { color: var(--ink-soft); }
.wizard-progress .step.current .num {
  background: var(--paper);
  border: 2px solid var(--terracotta);
  color: var(--terracotta);
  width: 30px; height: 30px;
  font-weight: 700;
}
.wizard-progress .step.current .lbl {
  color: var(--terracotta-deep);
  font-weight: 700;
}

.wizard-step {
  max-width: 600px;
  padding: 0 0 48px;
}
.wizard-step .step-mark {
  font: 600 11px/1 var(--mono);
  color: var(--ink-quiet);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-family: var(--sans);
}
.wizard-step .step-mark::before { content: "Step "; }
.wizard-step h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 10px;
  font-weight: 500;
}
.wizard-step .lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 56ch;
}
.wizard-step form {
  display: grid;
  gap: 22px;
}

/* Errors */
.errors {
  background: var(--wine-soft);
  border: 1px solid oklch(0.78 0.10 22);
  border-radius: var(--r-md);
  color: var(--wine);
  padding: 12px 14px;
  font-size: 14px;
  margin: 0 0 8px;
}
.errors p { margin: 4px 0; }

/* Fields */
.field { display: grid; gap: 6px; }
.field .lbl,
.field legend {
  font: 500 13px/1.3 var(--sans);
  color: var(--ink-soft);
  padding: 0;
}
.field .lbl em,
.field legend em {
  color: var(--terracotta);
  font-style: normal;
  font-weight: 600;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="number"],
.field input[type="password"],
.field select,
.field textarea {
  font: 16px/1.4 var(--sans);
  color: var(--ink);
  background: var(--paper-edge);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 11px 13px;
  width: 100%;
  transition: border-color 0.15s var(--ease-quart), background 0.15s var(--ease-quart), box-shadow 0.15s var(--ease-quart);
}
.field select { padding-right: 36px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-quiet) 50%),
                    linear-gradient(135deg, var(--ink-quiet) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--terracotta-soft);
}
.field .hint {
  font: 13px/1.4 var(--sans);
  color: var(--ink-quiet);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field-row-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 18px;
}
.field-group {
  border: none;
  padding: 0;
  margin: 0;
}
.field-group legend { margin-bottom: 10px; }

.radio-row, .checkbox-col {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.checkbox-col { flex-direction: column; gap: 8px; }
.radio, .checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  color: var(--ink-soft);
  padding: 2px 0;
}
.radio input, .checkbox input {
  accent-color: var(--terracotta);
  width: 17px; height: 17px;
  margin-top: 1px;
  flex: 0 0 auto;
}
.radio span, .checkbox span { color: var(--ink); }

/* Wizard buttons */
.wizard-buttons {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.btn-primary,
.btn-back,
a.btn-back, a.btn-primary {
  font: 500 14px/1 var(--sans);
  padding: 12px 22px;
  border-radius: var(--r-md);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s var(--ease-quart), color 0.18s var(--ease-quart),
              transform 0.18s var(--ease-quart), border-color 0.18s var(--ease-quart);
  border: 1px solid transparent;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary {
  background: var(--terracotta-deep);
  color: var(--paper);
  border-color: var(--terracotta-deep);
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  transform: translateY(-0.5px);
  text-decoration: none;
  color: var(--paper);
}
.btn-back, a.btn-back {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line-strong);
}
.btn-back:hover, a.btn-back:hover {
  background: var(--paper-deep);
  color: var(--ink);
  border-color: var(--ink-quiet);
  text-decoration: none;
}

/* Review screen */
.review-section {
  margin: 0 0 24px;
  padding: 20px 22px 18px;
  background: var(--paper-edge);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.review-section h3 {
  margin: 0 0 14px;
  font: 600 11px/1 var(--mono);
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-quiet);
  display: flex; justify-content: space-between; align-items: baseline;
}
.review-section h3 a {
  font: 500 12px/1 var(--sans);
  text-transform: none;
  letter-spacing: 0;
  color: var(--terracotta);
}
.review-section dl {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 8px 18px;
  margin: 0;
  font-size: 14px;
}
.review-section dt { color: var(--ink-quiet); font-size: 13px; }
.review-section dd { margin: 0; color: var(--ink); }
.review-section .empty { color: var(--ink-quiet); font-style: italic; }

/* Done page */
.done-page {
  max-width: 640px;
  padding-top: 64px;
}
.done-page .mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: var(--sage-soft);
  color: var(--sage);
  border-radius: 50%;
  font-size: 28px;
  margin: 0 0 24px;
}
.done-page h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0 0 14px;
  font-weight: 500;
}
.done-page h2 {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.005em;
  margin: 44px 0 8px;
  font-weight: 500;
}
.done-page .lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.6;
  margin: 0 0 10px;
}
.done-page .lede strong {
  color: var(--terracotta);
  font-weight: 600;
}

.doc-upload-grid {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
}
.doc-upload-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  background: var(--paper-edge);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: background 0.18s var(--ease-quart), border-color 0.18s var(--ease-quart);
}
.doc-upload-row:hover { background: var(--paper-deep); }
.doc-upload-row.uploaded {
  border-color: var(--sage);
  background: var(--sage-soft);
}
.doc-upload-row .name {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.doc-upload-row .status {
  font: 13px/1.45 var(--sans);
  color: var(--ink-quiet);
  margin-top: 3px;
}
.doc-upload-row.uploaded .status { color: var(--sage); }

/* Upload buttons (label-as-button pattern from the file inputs) */
.doc-upload-row label.btn-primary,
.doc-upload-row label.btn-back {
  padding: 9px 16px;
  font-size: 13px;
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .schools .school-card {
    grid-template-columns: 120px 1fr;
    gap: 22px;
    padding: 28px 4px;
  }
  .schools .school-card:hover { padding-left: 12px; }
  .schools .school-card .school-arrow { display: none; }
  .school-card .school-mark { height: 60px; }
  .school-card .school-mark img { max-height: 60px; }
  .school-card .name-block h2 { font-size: 22px; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .review-section dl { grid-template-columns: 1fr; }
  .review-section dt { font-weight: 600; color: var(--ink-soft); margin-top: 6px; }
  .wizard-progress { grid-template-columns: repeat(8, auto); overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .wizard-progress .step .lbl { display: none; }
  .wizard-progress .step.current .lbl { display: block; position: absolute; top: 36px; }
}
