/* Netparam Technologies — rebuilt site
   Two-track colour system: teal = software services, ochre = training.
   Used consistently so the colour tells you which side of the business you're in. */

:root {
  /* Brand palette sampled from the Netcom mark: violet #302484 (the oval and
     "NET") and orange #F0841E ("COM"). Violet carries C-DAC structure and
     accreditation; orange carries admissions and anything a student acts on. */
  --ink:        #1E1A44;
  --ink-soft:   #565179;
  --paper:      #FFFFFF;
  --wash:       #F0EFF6;
  --wash-deep:  #DEDCEB;

  --brand-violet: #302484;
  --brand-orange: #F0841E;

  --build:      #302484;
  --build-tint: #E7E4F3;
  --learn:      #B75F05;
  --learn-tint: #FCEEDC;
  --learn-ink:  #8A4703;

  --rule:       #D5D2E4;

  --f-display: "Bricolage Grotesque", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --measure: 62ch;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6.5vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.55rem); }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.35rem); letter-spacing: -0.014em; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

img { max-width: 100%; display: block; }

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

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff;
  padding: .75rem 1.25rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

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

.masthead {
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(8px);
}

.masthead .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 84px;
}

.logo {
  display: inline-flex; align-items: center;
  margin-right: auto;
  padding: .25rem 0;
}
.logo img { height: 46px; width: auto; }

@media (max-width: 520px) { .logo img { height: 36px; } }

.nav { display: flex; align-items: center; gap: 1.6rem; }

.nav a {
  text-decoration: none;
  font-size: .945rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--build); }

.nav-cta {
  background: var(--ink); color: #fff !important;
  padding: .6rem 1.15rem !important;
  border-radius: 3px; border-bottom: 0 !important;
  font-weight: 600;
}

.menu-btn {
  display: none;
  background: none; border: 1px solid var(--rule);
  border-radius: 3px; padding: .5rem .8rem;
  font: inherit; font-size: .9rem; font-weight: 600;
  cursor: pointer; color: var(--ink);
}

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    display: none;
    position: absolute; inset: 84px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: .5rem var(--pad) 1.5rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--wash-deep); }
  .nav a[aria-current="page"] { border-bottom-color: var(--build); }
  .nav-cta { margin-top: 1rem; text-align: center; }
}

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

.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem); }

.hero-since {
  font-size: .9rem; font-weight: 600; color: var(--ink-soft);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: .7rem;
}
.hero-since::before {
  content: ""; width: 34px; height: 2px; background: var(--build); flex: none;
}

.hero h1 { max-width: 17ch; }

.hero-lede {
  font-size: clamp(1.1rem, 1.9vw, 1.32rem);
  color: var(--ink-soft);
  max-width: 54ch;
  margin-top: 1.4rem;
}

/* the two-door fork — the structural idea of the whole site */

.fork {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.door {
  padding: clamp(2rem, 4vw, 3.25rem) clamp(1.5rem, 3vw, 2.75rem);
  text-decoration: none;
  display: flex; flex-direction: column;
  transition: background-color .18s ease;
}
.door + .door { border-left: 1px solid var(--rule); }

.door-build:hover, .door-build:focus-visible { background: var(--build-tint); }
.door-learn:hover, .door-learn:focus-visible { background: var(--learn-tint); }

.door-who {
  font-size: .88rem; font-weight: 700; letter-spacing: .01em;
  margin-bottom: .9rem;
}
.door-build .door-who { color: var(--build); }
.door-learn .door-who { color: var(--learn); }

.door h2 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); margin-bottom: .45rem; }
.door p { font-size: .99rem; color: var(--ink-soft); }

.door-go {
  margin-top: 1.5rem; font-weight: 600; font-size: .95rem;
  display: inline-flex; align-items: center; gap: .5rem;
}
.door-build .door-go { color: var(--build); }
.door-learn .door-go { color: var(--learn); }
.door-go span { font-size: 1.15em; line-height: 1; }

@media (max-width: 720px) {
  .fork { grid-template-columns: 1fr; }
  .door + .door { border-left: 0; border-top: 1px solid var(--rule); }
}

/* ---------- sections ---------- */

.band { padding: clamp(3rem, 6.5vw, 5.5rem) 0; }
.band-wash { background: var(--wash); }
.band-ink { background: var(--ink); color: #E6EDEA; }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink p { color: #B4C4C0; }

.band-head { max-width: 46ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.band-head p { color: var(--ink-soft); font-size: 1.08rem; }
.band-ink .band-head p { color: #A9BAB6; }

/* ---------- service list ---------- */

.services { border-top: 1px solid var(--rule); }

.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.service h3 { margin: 0; }
.service p { color: var(--ink-soft); margin: 0; font-size: 1rem; }

@media (max-width: 700px) {
  .service { grid-template-columns: 1fr; gap: .5rem; padding: 1.4rem 0; }
}

/* ---------- work ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.14);
}

.work-item { background: var(--ink); padding: clamp(1.6rem, 3vw, 2.2rem); }
.work-item h3 { font-size: 1.28rem; margin-bottom: .55rem; }
.work-kind {
  font-size: .84rem; font-weight: 600; color: #F7A14B;
  margin-bottom: 1rem;
}

/* ---------- courses ---------- */

.courses { display: grid; gap: 1.25rem; }

.course {
  border: 1px solid var(--rule);
  border-left: 4px solid var(--learn);
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--paper);
}
.course h3 { margin-bottom: .55rem; }
.course p { color: var(--ink-soft); font-size: 1rem; }

.course-meta {
  display: flex; flex-wrap: wrap; gap: .5rem .55rem;
  margin-top: 1.1rem; padding: 0; list-style: none;
}
.course-meta li {
  font-size: .84rem; font-weight: 600;
  background: var(--learn-tint); color: var(--learn-ink);
  padding: .3rem .65rem; border-radius: 2px;
}

/* ---------- offices ---------- */

.offices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.office h3 { margin-bottom: .8rem; }
.office address {
  font-style: normal; color: var(--ink-soft);
  margin-bottom: 1rem; max-width: 34ch;
}
.office dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; }
.office dt { font-weight: 600; font-size: .92rem; color: var(--ink-soft); }
.office dd { margin: 0; font-size: .97rem; }
.office dd a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.office dd a:hover { border-bottom-color: var(--ink); }

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

.btn {
  display: inline-block;
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
  padding: .82rem 1.6rem;
  border-radius: 3px;
  border: 1.5px solid var(--ink);
  background: var(--ink); color: #fff;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--brand-navy); border-color: var(--brand-navy); }

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

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.9rem; }

/* ---------- form ---------- */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 800px) { .form-layout { grid-template-columns: 1fr; } }

.field { margin-bottom: 1.15rem; }
.field label {
  display: block; font-weight: 600; font-size: .93rem;
  margin-bottom: .4rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem;
  padding: .7rem .85rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--build); }

.form-note { font-size: .9rem; color: var(--ink-soft); margin-top: 1rem; }

.aside-card {
  background: var(--wash);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-top: 4px solid var(--build);
}
.aside-card h3 { font-size: 1.15rem; }
.aside-card ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); }
.aside-card li { margin-bottom: .55rem; }

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

.prose h2 { margin-top: 2.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { color: var(--ink-soft); max-width: var(--measure); padding-left: 1.15rem; }
.prose li { margin-bottom: .5rem; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.facts div { border-top: 2px solid var(--ink); padding-top: .85rem; }
.facts dt { font-size: .88rem; color: var(--ink-soft); font-weight: 600; margin-bottom: .3rem; }
.facts dd { margin: 0; font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }

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

.footer { background: var(--ink); color: #A9BAB6; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer a { color: #DCE6E3; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2.25rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.footer h4 { color: #fff; font-size: .96rem; margin-bottom: .9rem; font-family: var(--f-body); font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.footer li { margin-bottom: .5rem; }
.footer-legal {
  padding-top: 1.75rem; font-size: .88rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

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

.footer-logo { margin-bottom: 1.1rem; }
.footer-logo img { height: 52px; width: auto; }

/* ---------- form validation ---------- */

.field-error { color: #A32C13; font-size: .9rem; margin: .35rem 0 0; font-weight: 500; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #A32C13; }

.alert { padding: .9rem 1.1rem; border-radius: 3px; margin-bottom: 1.5rem; font-size: .97rem; }
.alert-error { background: #FBEAE6; border-left: 4px solid #A32C13; color: #6E1D0C; }

/* ---------- admin ---------- */

.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.75rem; align-items: center; }
.filter-bar input, .filter-bar select {
  font: inherit; font-size: .95rem; padding: .6rem .75rem;
  border: 1px solid var(--rule); border-radius: 3px; background: var(--paper); color: var(--ink);
}
.filter-bar input { min-width: 230px; }
.filter-bar .btn { padding: .6rem 1.1rem; font-size: .95rem; }

.table-scroll { overflow-x: auto; border: 1px solid var(--rule); }

.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--paper); }
.data-table th, .data-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.data-table th { background: var(--wash); font-weight: 700; font-size: .88rem; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table a { color: var(--build); }

.pill { display: inline-block; font-size: .82rem; font-weight: 600; padding: .22rem .6rem; border-radius: 2px; }
.pill-new       { background: var(--build-tint); color: var(--build); }
.pill-contacted { background: var(--learn-tint); color: var(--learn-ink); }
.pill-closed    { background: var(--wash-deep); color: var(--ink-soft); }
.pill-spam      { background: #FBEAE6; color: #6E1D0C; }

.pager { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.5rem; }
.pager a {
  padding: .45rem .8rem; border: 1px solid var(--rule); border-radius: 3px;
  text-decoration: none; font-size: .93rem; font-weight: 600;
}
.pager a.is-current { background: var(--build); color: #fff; border-color: var(--build); }

/* ---------- accreditation strip ---------- */

.accredit {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.accredit img { height: 74px; width: auto; flex: none; }
.accredit p { font-size: .97rem; color: var(--ink-soft); max-width: 46ch; margin: 0; }

.footer .accredit { border: 0; padding: 0; margin-bottom: 1.1rem; }
.footer .accredit img { height: 54px; }

/* ---------- pathway ---------- */

.pathway {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.stage { background: var(--paper); padding: clamp(1.5rem, 3vw, 2.1rem); }
.stage-step {
  font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--brand-orange);
  margin-bottom: .9rem;
}
.stage h3 { font-size: 1.22rem; margin-bottom: .5rem; }
.stage p { font-size: .97rem; color: var(--ink-soft); margin: 0; }

/* ---------- fee table ---------- */

.fee { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--rule); }
.fee div { font-size: .93rem; }
.fee dt { display: inline; color: var(--ink-soft); font-weight: 600; }
.fee dd { display: inline; margin: 0 0 0 .3rem; font-weight: 700; }
