/* ==========================================================================
   SAMARITAN VOCATIONAL TRAINING CENTRE — Design Tokens
   Concept: "The Registry" — a vocational centre's record book made visible.
   Deep ledger-green grounds the site like a hardbound register; warm paper
   cards hold each trade like an entry in that register; an ochre accent
   marks action; a stamp-red marks certification. Course listings are styled
   as certificate stubs — the tangible thing a student walks away with.
   ========================================================================== */

:root {
  /* Color */
  --ink:        #14241C;  /* near-black green — body text, deep panels   */
  --forest:     #1F3D2E;  /* primary brand — header, footer, dark bands  */
  --forest-2:   #2A4F3B;  /* lighter forest — hover states on dark       */
  --paper:      #F2EDE1;  /* warm paper — card surfaces                  */
  --paper-2:    #E8E0CC;  /* deeper paper tint — alternating sections    */
  --line:       #C9BC9C;  /* ledger rule lines on paper                  */
  --gold:       #C8932B;  /* ochre accent — CTAs, highlights             */
  --gold-dark:  #A6741D;
  --stamp:      #9C3A2A;  /* certification stamp red                     */
  --cream-text: #F2EDE1;  /* text on dark backgrounds                    */
  --muted:      #5B6B5E;  /* muted text on paper                         */

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Layout */
  --max-width: 1180px;
  --radius: 3px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; font-weight: 600; line-height: 1.12; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.eyebrow::before {
  content: "";
  width: 1.1em;
  height: 1px;
  background: var(--gold-dark);
}

.section { padding: var(--space-5) 0; }
.section--tight { padding: var(--space-4) 0; }
.section--dark { background: var(--forest); color: var(--cream-text); }
.section--alt  { background: var(--paper-2); }

.section-head { max-width: 640px; margin-bottom: var(--space-4); }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 0.6rem;color: var(--forest);}
.section-head p { margin-top: 0.9rem; color: var(--muted); font-size: 1.02rem; }
.section--dark .section-head p { color: #cfd9cf; }

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-dark); }
.btn-outline { border-color: currentColor; color: inherit; }
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.section:not(.section--dark) .btn-outline { border-color: var(--ink); }
.section:not(.section--dark) .btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 0.55em 1.1em; font-size: 0.82rem; }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--forest);
  color: var(--cream-text);
  border-bottom: 1px solid rgba(242,237,225,0.12);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-mark {
  height: 90px;
  width: auto;
  flex-shrink: 0;
  display: block;
}
.brand-text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: #b9c7bb;
  text-transform: uppercase;
  font-weight: 400;
  margin-top: 0.2rem;
}
.nav-links {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a { position: relative; padding: 0.3rem 0; }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--gold);
  transition: width 0.2s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle {
  display: none;
  background: none; border: 1.5px solid var(--cream-text); color: var(--cream-text);
  border-radius: var(--radius); padding: 0.4rem 0.6rem;
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--forest);
    border-top: 1px solid rgba(242,237,225,0.12);
    max-height: 0; overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.is-open { max-height: 360px; }
  .nav-links li { border-bottom: 1px solid rgba(242,237,225,0.08); }
  .nav-links a { display: block; padding: 1rem var(--space-3); }
  .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  background: var(--forest);
  color: var(--cream-text);
  position: relative;
  overflow: hidden;
  background-image:
    repeating-linear-gradient(to bottom, rgba(242,237,225,0.05) 0px, rgba(242,237,225,0.05) 1px, transparent 1px, transparent 42px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-5) 0 var(--space-4);
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-top: 0.7rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-sub {
  margin-top: 1.3rem;
  font-size: 1.12rem;
  max-width: 36ch;
  color: #d9e2da;
}
.hero-actions {
  margin-top: var(--space-3);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #b9c7bb;
}
.hero-meta strong { color: var(--cream-text); display: block; font-size: 1rem; font-family: var(--font-body); }

/* Seal graphic */
.hero-seal-wrap { display: flex; justify-content: center; }
.seal {
  width: min(280px, 80%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transform: rotate(-6deg);
  background: radial-gradient(circle at 50% 45%, rgba(200,147,43,0.08), transparent 70%);
}
.seal::before, .seal::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(200,147,43,0.5);
}
.seal::before { inset: 14px; }
.seal::after { inset: 28px; border-style: solid; border-color: rgba(242,237,225,0.15); }
.seal-text {
  font-family: var(--font-mono);
  text-align: center;
  letter-spacing: 0.06em;
  font-size: 0.74rem;
  line-height: 1.7;
}
.seal-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: var(--space-4); }
  .hero-seal-wrap { order: -1; }
  .hero-meta { flex-wrap: wrap; gap: var(--space-3); }
}

/* ==========================================================================
   LEDGER STRIP (stats)
   ========================================================================== */
.ledger {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.ledger-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.ledger-item {
  padding: var(--space-3) var(--space-2);
  border-left: 1px solid var(--line);
  text-align: center;
}
.ledger-item:first-child { border-left: none; }
.ledger-item .num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--stamp);
  letter-spacing: 0.02em;
}
.ledger-item .label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
@media (max-width: 700px) {
  .ledger-row { grid-template-columns: repeat(2, 1fr); }
  .ledger-item:nth-child(3) { border-left: none; }
}

/* ==========================================================================
   ABOUT TEASER / TWO COLUMN
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
}
.split--rev .split-figure { order: 2; }
.split p + p { margin-top: 1rem; }
.split .lede { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.4; }
.split-figure {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.value-list { list-style: none; margin-top: var(--space-2); display: grid; gap: 0.9rem; }
.value-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.value-list .icon { color: var(--stamp); flex-shrink: 0; margin-top: 0.2rem; }
.value-list strong { display: block; font-size: 0.98rem; }
.value-list span.desc { color: var(--muted); font-size: 0.92rem; }

@media (max-width: 860px) {
  .split, .split--rev .split-figure { grid-template-columns: 1fr; order: unset; }
  .split { display: block; }
  .split > * + * { margin-top: var(--space-3); }
}

/* ==========================================================================
   COURSE / CERTIFICATE CARDS
   ========================================================================== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
}
.cert-card {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  isolation: isolate;
}
/* perforated stub edge */
.cert-card::before {
  content: "";
  position: absolute;
  left: -1px; top: 14px; bottom: 14px;
  width: 0;
  border-left: 2px dashed var(--line);
}
.cert-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  padding-left: 0.6rem;
}
.cert-code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  white-space: nowrap;
}
.cert-icon {
  width: 30px; height: 30px;
  color: var(--forest);
  flex-shrink: 0;
}
.cert-card h3 {
  font-size: 1.18rem;
  padding-left: 0.6rem;
  color: var(--forest);
}
.cert-card p {
  color: var(--muted);
  font-size: 0.92rem;
  padding-left: 0.6rem;
}
.cert-meta {
  margin-top: auto;
  padding-left: 0.6rem;
  display: flex;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--forest);
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}
.cert-stamp {
  position: absolute;
  right: 14px; bottom: 14px;
  width: 52px; height: 52px;
  border: 1.5px solid var(--stamp);
  border-radius: 50%;
  color: var(--stamp);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.46rem;
  line-height: 1.15;
  letter-spacing: 0.03em;
  transform: rotate(-10deg);
  opacity: 0.85;
}
.cert-card-link {
  margin-top: 0.4rem;
  padding-left: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

/* Expanded course detail (courses.html) */
.cert-card--full { padding-bottom: 1.8rem; }
.cert-card--full .cert-meta { flex-direction: column; gap: 0.35rem; padding-right: 64px; }
.learn-list { list-style: none; padding-left: 0.6rem; display: grid; gap: 0.45rem; margin-top: 0.2rem; }
.learn-list li { font-size: 0.88rem; color: var(--ink); padding-left: 1.1rem; position: relative; }
.learn-list li::before {
  content: "—";
  position: absolute; left: 0; color: var(--stamp);
}

/* ==========================================================================
   PROCESS STEPS (real sequence — admission)
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 28px; left: 0; right: 0;
  height: 1px;
  background: var(--line);
  z-index: 0;
}
.step { position: relative; z-index: 1; }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--forest);
  color: var(--forest);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: 0.9rem; margin-top: 0.4rem; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
}
@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.testi-card {
  background: var(--paper);
  border-left: 3px solid var(--gold);
  padding: 1.4rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.testi-card p.quote { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.5;color: var(--forest); }
.testi-card .who {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
@media (max-width: 860px) { .testimonials { grid-template-columns: 1fr; } }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
  background: var(--forest);
  color: var(--cream-text);
  padding: var(--space-4) 0;
}
.cta-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: 30ch; }

/* ==========================================================================
   PAGE HEADER (sub-pages)
   ========================================================================== */
.page-header {
  background: var(--forest);
  color: var(--cream-text);
  padding: var(--space-4) 0 var(--space-3);
  background-image: repeating-linear-gradient(to bottom, rgba(242,237,225,0.05) 0px, rgba(242,237,225,0.05) 1px, transparent 1px, transparent 42px);
}
.page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 0.5rem; }
.page-header p { color: #d9e2da; margin-top: 0.8rem; max-width: 52ch; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #b9c7bb;
  letter-spacing: 0.04em;
}
.breadcrumb a { color: var(--gold); }

/* ==========================================================================
   FORM (contact)
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-5); }
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--forest);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest); }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.8rem; }
.form-success {
  display: none;
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border: 1.5px solid var(--stamp);
  color: var(--stamp);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.form-success.is-visible { display: block; }

.info-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.info-list { list-style: none; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: 0.9rem; }
.info-list .icon { color: var(--forest); flex-shrink: 0; margin-top: 0.15rem; }
.info-list strong { display: block; font-size: 0.92rem; }
.info-list span { color: var(--muted); font-size: 0.9rem; }
.map-frame {
  margin-top: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 860px) {
  .form-grid { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: #cbd6cc;
  padding: var(--space-4) 0 var(--space-2);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(242,237,225,0.12);
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-grid ul { display: grid; gap: 0.6rem; list-style: none; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand p { margin-top: 0.8rem; color: #9fae9f; max-width: 32ch; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.2rem;
  font-size: 0.78rem;
  color: #8a9a8b;
  font-family: var(--font-mono);
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
/* ==========================================================================
   SCROLL REVEAL (progressive enhancement — only hides content once JS has
   confirmed it can reveal it again; without JS, everything stays visible)
   ========================================================================== */
body.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
body.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
