/* NeuralCraftLab — neuralcraftlab.life */
:root {
  --dark: #1A0F2E;
  --accent: #F5A623;
  --light: #FAF7F2;
  --plum: #2E1A47;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(26, 15, 46, 0.18);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--dark);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #d4891a; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

.container { width: min(1140px, 92vw); margin-inline: auto; }
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section__lead { font-size: 1.125rem; max-width: 62ch; margin-bottom: 2rem; color: rgba(26, 15, 46, 0.82); }

/* Surface system */
.surface-dark { background: var(--dark); color: var(--light); }
.surface-dark a { color: var(--accent); }
.surface-dark .btn-primary,
.surface-dark a.btn-primary {
  color: #fff;
  font-weight: 700;
}
.surface-dark .section__lead { color: rgba(250, 247, 242, 0.78); }

.surface-light { background: var(--light); color: var(--dark); }

.surface-accent { background: var(--accent); color: #fff; }
.surface-accent h2, .surface-accent h3, .surface-accent p { color: #fff; }
.surface-accent a:not(.btn) { color: #fff; text-decoration: underline; font-weight: 600; }
.surface-accent .section__lead { color: rgba(255, 255, 255, 0.92); }
.surface-accent .disclaimer {
  color: #fff;
  font-weight: 700;
  opacity: 1;
  background: rgba(26, 15, 46, 0.2);
  border-left-color: #fff;
}
.surface-accent .disclaimer a { color: #fff; }

.surface-accent .card {
  background: #b8860b;
  color: #fff;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.surface-accent .card h3,
.surface-accent .card p {
  color: #fff;
  font-weight: 700;
}

.surface-plum { background: var(--plum); color: var(--light); }
.surface-plum a { color: var(--accent); }
.surface-plum .section__lead { color: rgba(250, 247, 242, 0.78); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 130;
  background: rgba(26, 15, 46, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245, 166, 35, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--light);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
}
.logo:hover { color: var(--accent); }
.logo svg { width: 36px; height: 36px; flex-shrink: 0; }

.nav-main { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
.nav-main a {
  color: rgba(250, 247, 242, 0.88);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-main a:hover, .nav-main a[aria-current="page"] { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
  margin-left: auto;
}

.nav-close {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
}

.nav-overlay {
  display: none;
  position: fixed;
  z-index: 110;
  background: rgba(26, 15, 46, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.nav-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Hero Pattern C — diagonal craft split */
.hero-craft {
  display: grid;
  grid-template-columns: 48% 52%;
  min-height: clamp(480px, 72vh, 680px);
  background: var(--dark);
  overflow: hidden;
}

.hero-craft__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  padding-right: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  z-index: 2;
}

.hero-craft__copy h1 { color: var(--light); margin-bottom: 1rem; }
.hero-craft__copy .slogan {
  color: rgba(250, 247, 242, 0.85);
  font-size: 1.125rem;
  max-width: 38ch;
  margin-bottom: 2rem;
}

.hero-craft__visual {
  position: relative;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -4%;
}

.hero-craft__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: clamp(480px, 72vh, 680px);
}

.hero-craft__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--dark) 0%, transparent 35%);
  z-index: 1;
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-color: var(--accent);
}
.btn-primary:hover { background: #e09510; border-color: #e09510; color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--light);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--dark); }

.btn-dark {
  background: var(--dark);
  color: var(--light);
  border-color: var(--dark);
}
.btn-dark:hover { background: var(--plum); border-color: var(--plum); color: var(--light); }

/* Metrics grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.metric-card {
  text-align: center;
  padding: 1.75rem 1rem;
  border-radius: var(--radius);
  background: rgba(250, 247, 242, 0.06);
  border: 1px solid rgba(245, 166, 35, 0.2);
}

.metric-card__value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.metric-card__label { font-size: 0.875rem; opacity: 0.85; }

/* Card grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.card:hover { transform: translateY(-4px); }

.card__img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card__body { padding: 1.5rem; }

.surface-dark .card { background: rgba(46, 26, 71, 0.6); border: 1px solid rgba(245, 166, 35, 0.15); }
.surface-plum .card { background: rgba(26, 15, 46, 0.5); border: 1px solid rgba(245, 166, 35, 0.15); }

/* Discipline tags */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(245, 166, 35, 0.15);
  border: 1px solid rgba(245, 166, 35, 0.35);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Toolchain */
.toolchain-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  list-style: none;
}

.toolchain-list li {
  padding: 1rem;
  text-align: center;
  background: rgba(26, 15, 46, 0.04);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(26, 15, 46, 0.08);
}

/* Forge split */
.forge-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.forge-split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Instructor strip */
.instructor-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(245, 166, 35, 0.1);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  margin-top: 2rem;
  color: var(--dark);
}

.instructor-strip h3,
.instructor-strip p {
  color: var(--dark);
}

.surface-accent .instructor-strip {
  color: #fff;
  background: rgba(26, 15, 46, 0.18);
  border-left-color: var(--dark);
}

.surface-accent .instructor-strip h3,
.surface-accent .instructor-strip p,
.surface-accent .instructor-strip strong,
.surface-accent .instructor-strip span { color: #fff; }
.surface-accent .instructor-strip span { opacity: 0.92; }

.instructor-strip img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Accordion */
.accordion { border-radius: var(--radius); overflow: hidden; }

.accordion__item { border-bottom: 1px solid rgba(26, 15, 46, 0.1); }
.surface-dark .accordion__item { border-color: rgba(250, 247, 242, 0.12); }

.accordion__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.25rem;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: inherit;
  transition: background var(--transition);
}

.accordion__trigger:hover { background: rgba(245, 166, 35, 0.08); }

.accordion__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.accordion__item.is-open .accordion__icon { transform: rotate(180deg); }

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion__panel-inner {
  padding: 0 1.25rem 1.15rem;
  font-size: 0.9375rem;
  opacity: 0.9;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) 2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--plum) 0%, var(--dark) 100%);
  color: var(--light);
}

.cta-band h2 { color: var(--light); margin-bottom: 0.75rem; }
.cta-band p { max-width: 50ch; margin: 0 auto 1.75rem; opacity: 0.88; }

/* Program table */
.program-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: 0.9375rem; }
.program-table th, .program-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(26, 15, 46, 0.1);
}
.program-table th { font-family: var(--font-display); background: rgba(245, 166, 35, 0.12); }
.surface-dark .program-table th { background: rgba(245, 166, 35, 0.15); }
.surface-dark .program-table th, .surface-dark .program-table td { border-color: rgba(250, 247, 242, 0.1); }

/* Contact form */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info { list-style: none; }
.contact-info li { margin-bottom: 1rem; padding-left: 1.5rem; position: relative; }
.contact-info li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.9rem; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(26, 15, 46, 0.12);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-checkbox { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.875rem; }
.form-checkbox input { width: auto; margin-top: 0.25rem; }

.form-success {
  padding: 1rem 1.25rem;
  background: rgba(245, 166, 35, 0.15);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

/* Legal prose */
.legal-prose h2 { margin-top: 2rem; }
.legal-prose h3 { margin-top: 1.5rem; }
.legal-prose p, .legal-prose li { margin-bottom: 0.85rem; }
.legal-prose ul, .legal-prose ol { margin-left: 1.5rem; margin-bottom: 1rem; }

.meta-updated {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.disclaimer {
  font-size: 0.8125rem;
  opacity: 0.75;
  padding: 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(245, 166, 35, 0.06);
  margin-top: 2rem;
}

.disclaimer--lg {
  font-size: 0.9375rem;
  opacity: 0.88;
}

#cta.section { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
#cta .disclaimer { font-size: 0.9375rem; opacity: 0.88; }

.section--faq-campus { padding-top: clamp(4rem, 8vw, 6.5rem); }

.page-hero--img img.page-hero__img--sm { max-width: 88%; margin-inline: auto; }

.services-pricing-note {
  color: #fff;
  font-weight: 700;
  opacity: 1;
}

/* Footer 4 columns */
.site-footer {
  background: var(--dark);
  color: rgba(250, 247, 242, 0.82);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(250, 247, 242, 0.75); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(250, 247, 242, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  opacity: 0.65;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--plum);
  color: var(--light);
  padding: 1.25rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.cookie-banner__text { flex: 1; min-width: 260px; font-size: 0.9rem; }
.cookie-banner__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.cookie-banner .btn { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

.cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(26, 15, 46, 0.7);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal.is-open { display: flex; }

.cookie-modal__box {
  background: var(--light);
  color: var(--dark);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
}

.cookie-modal__box h3 { margin-bottom: 1rem; }
.cookie-modal__box label { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; font-size: 0.9rem; }

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 { font-size: 6rem; color: var(--accent); line-height: 1; }

/* Page hero (inner pages) */
.page-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: linear-gradient(160deg, var(--dark) 0%, var(--plum) 100%);
  color: var(--light);
}

.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { opacity: 0.85; max-width: 55ch; }

.page-hero--img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.page-hero--img img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .hero-craft { grid-template-columns: 1fr; min-height: auto; }
  .hero-craft__visual {
    clip-path: none;
    margin-left: 0;
    order: -1;
    max-height: 320px;
  }
  .hero-craft__visual img { min-height: 320px; }
  .forge-split, .contact-layout, .page-hero--img { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-overlay {
    display: block;
    top: var(--header-height, 58px);
    left: min(300px, 85vw);
    right: 0;
    bottom: 0;
  }

  .header-inner > nav {
    position: fixed;
    top: var(--header-height, 58px);
    left: 0;
    bottom: 0;
    width: min(300px, 85vw);
    height: calc(100dvh - var(--header-height, 58px));
    z-index: 120;
    background: var(--dark);
    border-right: 1px solid rgba(245, 166, 35, 0.2);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
    transform: translateX(-100%);
    transition: transform var(--transition);
    overflow: hidden;
  }

  .header-inner > nav.is-open {
    transform: translateX(0);
  }

  .nav-close {
    display: block;
  }

  .nav-main {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 4.5rem 1.5rem 2rem;
    gap: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-main li {
    width: 100%;
    border-bottom: 1px solid rgba(250, 247, 242, 0.1);
  }

  .nav-main li:last-child {
    border-bottom: none;
  }

  .nav-main a {
    display: block;
    padding: 1rem 0;
    font-size: 1.0625rem;
  }

  .footer-grid { grid-template-columns: 1fr; }
  .program-table { font-size: 0.8125rem; }
  .program-table th, .program-table td { padding: 0.6rem 0.5rem; }
}

/* Programme pathway (programs page) */
.pathway-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 2rem 0;
  list-style: none;
}

.pathway-steps li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pathway-steps__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(245, 166, 35, 0.15);
  border: 1px solid rgba(245, 166, 35, 0.4);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--accent);
}

.pathway-steps__arrow {
  color: rgba(250, 247, 242, 0.4);
  font-size: 1.25rem;
}

.programme-cards { display: grid; gap: 1.25rem; }

.programme-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.surface-dark .programme-card {
  background: rgba(46, 26, 71, 0.6);
  border: 1px solid rgba(245, 166, 35, 0.15);
  border-left: 4px solid var(--accent);
}

.programme-card__code {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.programme-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.85;
}

.programme-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tuition-band {
  text-align: center;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--plum) 0%, var(--dark) 100%);
  color: var(--light);
  margin-top: 2rem;
}

.tuition-band h3 { color: var(--light); margin-bottom: 0.75rem; }
.tuition-band p { opacity: 0.9; max-width: 55ch; margin-inline: auto; }

.programs-pathway-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 1rem;
  width: 100%;
  max-height: clamp(180px, 28vh, 280px);
  object-fit: cover;
  object-position: center;
}

@media (min-width: 901px) {
  .programs-pathway-img {
    max-width: 72%;
    max-height: clamp(220px, 30vh, 320px);
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .programme-card { grid-template-columns: 1fr; }
  .pathway-steps__arrow { display: none; }
}
