/* ============================================
   The Workshop
   Shared stylesheet for home + curriculum
   ============================================ */

/* --- Tokens --- */
:root {
  --bg: #24160f;
  --bg-deep: #1b100b;
  --bg2: #312017;
  --panel: #2a1a12;
  --cream: #f5eddf;
  --muted: #d1c0ac;
  --gold: #d7ad72;
  --ink: #21150f;
  --line: rgba(245, 237, 223, 0.16);
  --gold-line: rgba(215, 173, 114, 0.52);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --nav-h: 74px;
  --wrap: min(1180px, 92vw);
  --radius-pill: 999px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-serif: Georgia, serif;
}

/* --- Reset & base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg), var(--bg-deep) 80%);
  color: var(--cream);
  font-family: var(--font-sans);
  line-height: 1.55;
}

.page-curriculum {
  background: linear-gradient(180deg, var(--bg), var(--bg-deep) 86%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

button {
  cursor: pointer;
  font: inherit;
  color: inherit;
}

button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.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;
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

/* --- Typography --- */
h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  margin: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.lead {
  font-size: 20px;
  color: var(--muted);
}

.page-home .lead {
  max-width: 650px;
}

.page-curriculum .lead {
  max-width: 780px;
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--gold-line);
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: #3a2418;
  color: var(--cream);
  font-weight: 650;
}

.btn.primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

/* --- Header / desktop nav --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(36, 22, 15, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  font-family: var(--font-serif);
  font-size: 28px;
  letter-spacing: 0.02em;
  flex: 0 1 auto;
  min-width: 0;
}

.brand small {
  display: block;
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}

.nav-cta {
  flex-shrink: 0;
}

.nav-toggle,
.nav-close {
  display: none;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
}

.nav-backdrop,
.side-nav {
  display: none;
}

/* --- Home hero --- */
.home-hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding: 72px 0 40px;
}

.page-home h1 {
  font-size: clamp(56px, 8vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin: 16px 0 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 560px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #1c110c;
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(transparent, rgba(25, 14, 8, 0.78));
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: 54% 48%;
  transform: scale(1.08);
}

.portrait-tag {
  position: absolute;
  z-index: 2;
  left: 26px;
  bottom: 24px;
  font-size: 13px;
  color: var(--cream);
  max-width: 270px;
}

/* --- Page sections --- */
.page-home section {
  padding: 86px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 34px;
}

.page-home h2 {
  font-size: clamp(38px, 5vw, 62px);
  letter-spacing: -0.025em;
}

.page-home h2.heading-card {
  font-size: 42px;
  margin-top: 8px;
}

.section-sub {
  color: var(--muted);
  max-width: 620px;
}

.heading-card {
  font-size: 42px;
  margin-top: 8px;
}

/* --- Cards, roadmap, lists --- */
.vms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
}

.card .num {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 28px;
  margin-bottom: 10px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.road-step {
  padding: 24px;
  border-top: 1px solid rgba(215, 173, 114, 0.46);
  background: rgba(255, 255, 255, 0.018);
}

.road-step b {
  display: block;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.road-step h3 {
  font-size: 25px;
  margin-bottom: 4px;
}

.road-step span {
  color: var(--muted);
  font-size: 14px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-row.spaced {
  margin-top: 28px;
}

.pill {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.015);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.list-card ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.list-card li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--cream);
}

.list-card li:last-child {
  border-bottom: 0;
}

.placeholder {
  color: #bda98f;
  font-style: italic;
}

/* --- Contact --- */
.contact {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

.contact-box {
  padding: 34px;
  border: 1px solid rgba(215, 173, 114, 0.44);
  border-radius: 24px;
  background: linear-gradient(135deg, #352117, #21140e);
}

.contact-box h2 {
  font-size: 48px;
  margin: 8px 0 14px;
}

.contact-box .section-sub {
  margin: 0;
}

.contact-box .pill-row {
  margin-top: 22px;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field-error {
  min-height: 0;
  color: #f0b4a0;
  font-size: 13px;
}

.field-error:empty {
  display: none;
}

input,
textarea {
  width: 100%;
  background: #1e120c;
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: 12px;
  padding: 14px 15px;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(215, 173, 114, 0.45);
  outline-offset: 1px;
}

input.invalid,
textarea.invalid {
  border-color: #e08a72;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
}

.form-status.success {
  background: rgba(215, 173, 114, 0.16);
  border: 1px solid rgba(215, 173, 114, 0.45);
  color: var(--cream);
}

.form-status.error {
  background: rgba(224, 138, 114, 0.12);
  border: 1px solid rgba(224, 138, 114, 0.45);
  color: #f0b4a0;
}

.form-status[hidden] {
  display: none;
}

/* --- Curriculum page --- */
.curriculum-hero {
  padding: 104px 0 74px;
  text-align: center;
}

.page-curriculum h1 {
  font-size: clamp(54px, 8vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 14px auto 24px;
  max-width: 980px;
}

.journey {
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  max-width: 1080px;
}

.j {
  padding: 22px 14px;
  background: rgba(255, 255, 255, 0.018);
  border-right: 1px solid var(--line);
}

.j:last-child {
  border-right: 0;
}

.j b {
  display: block;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.j span {
  display: block;
  font-family: var(--font-serif);
  font-size: 20px;
  margin-top: 4px;
}

.page-curriculum section {
  padding: 66px 0;
  border-top: 1px solid var(--line);
}

.stage-head {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 26px;
}

.stage-num {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
  padding-top: 8px;
}

.stage-copy h2 {
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.02em;
}

.stage-copy p {
  margin: 7px 0 0;
  color: var(--muted);
  max-width: 760px;
}

.courses {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-left: 188px;
}

.course {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.course-no {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(215, 173, 114, 0.42);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 12px;
}

.course h3 {
  font-size: 22px;
  margin: 0 0 5px;
}

.course p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tag {
  display: inline-block;
  margin-top: 9px;
  padding: 3px 8px;
  border: 1px solid rgba(215, 173, 114, 0.35);
  border-radius: var(--radius-pill);
  color: var(--gold);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.audience {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  justify-content: center;
}

.cta {
  text-align: center;
  padding: 82px 0;
}

.cta h2 {
  font-size: clamp(38px, 5vw, 62px);
  margin-bottom: 12px;
}

.cta p {
  color: var(--muted);
  max-width: 650px;
  margin: 0 auto 25px;
}

/* --- Footer --- */
.site-footer {
  padding: 44px 0 54px;
  border-top: 1px solid var(--line);
  color: #ad9b87;
  font-size: 13px;
}

.page-curriculum .site-footer {
  padding: 40px 0 50px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

/* --- Mobile side nav --- */
@media (max-width: 900px) {
  .nav-inner {
    gap: 12px;
    justify-content: flex-start;
  }

  .nav-cta,
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    flex-shrink: 0;
    border: 1px solid var(--gold-line);
    border-radius: var(--radius-pill);
    background: #3a2418;
  }

  .nav-toggle-icon,
  .nav-toggle-icon::before,
  .nav-toggle-icon::after {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--gold);
    border-radius: 2px;
    position: relative;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle-icon::before,
  .nav-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle-icon::before {
    top: -5px;
  }

  .nav-toggle-icon::after {
    top: 5px;
  }

  body.nav-open .nav-toggle-icon {
    background: transparent;
  }

  body.nav-open .nav-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  body.nav-open .nav-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(12, 7, 4, 0.62);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .side-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 60;
    width: min(340px, 88vw);
    height: 100dvh;
    padding: 22px 22px 32px;
    background: linear-gradient(180deg, #352117, #1b100b);
    border-left: 1px solid rgba(215, 173, 114, 0.44);
    box-shadow: var(--shadow);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    visibility: hidden;
  }

  body.nav-open .side-nav {
    transform: translateX(0);
    visibility: visible;
  }

  .side-nav-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
  }

  .side-nav-label {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 28px;
  }

  .side-nav-label small {
    display: block;
    margin-top: 4px;
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
  }

  .nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gold-line);
    border-radius: var(--radius-pill);
    background: #3a2418;
    color: var(--gold);
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
  }

  .side-nav-links {
    display: flex;
    flex-direction: column;
    font-size: 22px;
    font-family: var(--font-serif);
    color: var(--cream);
  }

  .side-nav-links a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .side-nav-cta {
    display: inline-flex;
    margin-top: auto;
    width: 100%;
  }

  .home-hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .portrait-frame {
    min-height: 520px;
  }

  .vms,
  .roadmap,
  .two-col,
  .contact {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-sub {
    margin-top: 12px;
  }

  .journey {
    grid-template-columns: repeat(2, 1fr);
  }

  .j {
    border-bottom: 1px solid var(--line);
  }

  .stage-head {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .courses {
    margin-left: 0;
    grid-template-columns: 1fr;
  }

  .page-curriculum .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

body.nav-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav-backdrop,
  .nav-toggle-icon,
  .nav-toggle-icon::before,
  .nav-toggle-icon::after,
  .side-nav {
    transition: none;
  }
}
