/* Spark Manufacturing Academy: shared styles */
:root {
  --navy: #0F2742;
  --navy-deep: #0A1C31;
  --spark: #FF6B1A;
  --spark-hover: #FF8540;
  --gold: #FFC233;
  --blue: #1F5FD1;
  --mist: #F3F6FA;
  --ink: #17212B;
  --muted: #5B6776;
  --line: #DCE3EA;
  --white: #FFFFFF;
  --on-navy: #CFDBE8;
  --radius: 14px;
  --head: "Bricolage Grotesque", "Trebuchet MS", Arial, sans-serif;
  --body: "Figtree", "Segoe UI", Arial, sans-serif;

  /* Category tints: tag background / tag text */
  --c-industry-bg: #E7EFFE; --c-industry: #1C4FAF;
  --c-career-bg: #FFEFE4;   --c-career: #B2470A;
  --c-skill-bg: #E6F5EC;    --c-skill: #1D6B3E;
  --c-equip-bg: #F0EBFD;    --c-equip: #5433B8;
  --c-process-bg: #FFF5D6;  --c-process: #7F5A00;
  --c-next-bg: #E3F4F5;     --c-next: #0B6269;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--ink); background: var(--white); line-height: 1.6; font-size: 18px; }
img, svg { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.08; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
p { max-width: 64ch; }
p + p { margin-top: 14px; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-block; font-family: var(--body); font-weight: 700; font-size: 1.05rem;
       padding: 13px 26px; border-radius: 10px; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--spark); color: var(--white); }
.btn-primary:hover { background: var(--spark-hover); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--mist); }
.btn-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-light:hover { background: rgba(255,255,255,0.1); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #FFD066; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.text-link { font-weight: 700; color: var(--blue); text-decoration: none; border-bottom: 2px solid currentColor; }
.text-link:hover { color: var(--spark); }

/* Utility bar (university-style quick links) */
.utility { background: var(--navy-deep); color: var(--on-navy); font-size: 0.9rem; }
.utility .wrap { display: flex; justify-content: flex-end; gap: 22px; padding-top: 7px; padding-bottom: 7px; }
.utility a { color: var(--on-navy); text-decoration: none; }
.utility a:hover { color: var(--white); text-decoration: underline; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo svg { width: 38px; height: 38px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-family: var(--head); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; }
.logo-text span { white-space: nowrap; font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-top: 3px; letter-spacing: 0.02em; }
.nav-toggle { display: none; flex-shrink: 0; background: var(--white); border: 2px solid var(--navy); color: var(--navy);
              font-family: var(--body); font-weight: 700; font-size: 1rem; padding: 7px 14px; border-radius: 10px; cursor: pointer; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav li { white-space: nowrap; }
.nav a { display: block; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; padding: 8px 10px; border-radius: 8px; }
.nav a:hover { background: var(--mist); }
.nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--spark); border-radius: 0; }
.nav .btn { margin-left: 8px; padding: 10px 18px; color: var(--white); }
.nav .btn:hover { background: var(--spark-hover); }

/* Home hero */
.hero { padding: 72px 0 80px; background: var(--white); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.hero p.sub { font-size: 1.3rem; color: var(--muted); margin-top: 18px; }
.search { display: flex; margin-top: 30px; max-width: 560px; border: 2px solid var(--navy); border-radius: 12px; overflow: hidden; background: var(--white); }
.search input { flex: 1; min-width: 0; border: 0; font: inherit; padding: 14px 16px; color: var(--ink); }
.search input:focus { outline: none; }
.search:focus-within { box-shadow: 0 0 0 4px rgba(255,194,51,0.6); }
.search button { border: 0; background: var(--navy); color: var(--white); font: inherit; font-weight: 700; padding: 0 22px; cursor: pointer; }
.search button:hover { background: var(--blue); }
.popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 0.95rem; color: var(--muted); }
.chip { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--mist); color: var(--navy); font-weight: 600;
        text-decoration: none; border: 1px solid var(--line); font-size: 0.95rem; }
.chip:hover { border-color: var(--navy); }
.hero-art { background: var(--navy); border-radius: 24px; aspect-ratio: 1 / 1; display: grid; place-items: center; position: relative; overflow: hidden; }
.hero-art svg { width: 86%; height: auto; }

/* Interior page header */
.page-head { background: var(--mist); padding: 56px 0 52px; position: relative; overflow: hidden; }
.page-head .wrap { position: relative; }
.page-head p { font-size: 1.25rem; color: var(--muted); margin-top: 12px; }
.page-head .spark-deco { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 150px; height: 150px; opacity: 0.9; }
.crumbs { font-size: 0.95rem; margin-bottom: 12px; color: var(--muted); }
.crumbs a { color: var(--blue); }

/* Sections */
section { padding: 84px 0; }
.band { background: var(--mist); }
.navy { background: var(--navy); color: var(--white); }
.navy p { color: var(--on-navy); }
.navy h2, .navy h3 { color: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.section-head p { color: var(--muted); }
.lead p { font-size: 1.25rem; color: var(--muted); }
.muted { color: var(--muted); }
.prose ul { margin: 12px 0 0 22px; max-width: 64ch; }
.prose li { margin-bottom: 6px; }
.prose h3 { margin-top: 30px; }

/* Card grids */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.card p { color: var(--muted); font-size: 1rem; }
.card .text-link { margin-top: auto; padding-top: 12px; align-self: flex-start; border-bottom: 0; text-decoration: underline; text-underline-offset: 4px; }
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--navy); }

/* Audience cards: a colored top edge per audience */
.audience .card { border-top: 6px solid var(--spark); }
.audience .card:nth-child(2) { border-top-color: var(--gold); }
.audience .card:nth-child(3) { border-top-color: var(--blue); }
.audience .card:nth-child(4) { border-top-color: var(--navy); }
.audience .card h3 { font-size: 1.35rem; }

/* Discover > Explore > Prepare: a real sequence, so numbered */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
                    background: var(--gold); color: var(--navy); font-family: var(--head); font-weight: 800; font-size: 1.5rem; margin-bottom: 14px; }
.steps p { color: var(--muted); font-size: 1rem; }

/* Topic cards (library) */
.tag { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 6px; align-self: flex-start; }
.t-industry { background: var(--c-industry-bg); color: var(--c-industry); }
.t-career { background: var(--c-career-bg); color: var(--c-career); }
.t-skill { background: var(--c-skill-bg); color: var(--c-skill); }
.t-equip { background: var(--c-equip-bg); color: var(--c-equip); }
.t-process { background: var(--c-process-bg); color: var(--c-process); }
.t-next { background: var(--c-next-bg); color: var(--c-next); }
.topic { padding: 0; overflow: hidden; }
.topic .swatch { height: 10px; }
.topic .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.topic h3 { font-size: 1.18rem; margin: 0; }
.topic .soon { margin-top: auto; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.s-industry { background: var(--c-industry); } .s-career { background: var(--spark); } .s-skill { background: #2E9E5E; }
.s-equip { background: #7556D9; } .s-process { background: var(--gold); } .s-next { background: #129AA3; }

/* Library filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }
.filter { font: inherit; font-weight: 600; font-size: 0.95rem; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
          background: var(--white); color: var(--ink); cursor: pointer; }
.filter:hover { border-color: var(--navy); }
.filter[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.result-count { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.empty { display: none; background: var(--mist); border-radius: var(--radius); padding: 28px; }
.empty.show { display: block; }

/* Split and panels */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.panel { background: var(--navy); color: var(--white); padding: 36px; border-radius: var(--radius); }
.panel p { color: var(--on-navy); }
.panel h3 { color: var(--white); }
.panel .note { margin-top: 14px; font-size: 0.95rem; }

/* Closing call to action */
.billboard { background: var(--navy); color: var(--white); border-radius: 24px; padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.billboard p { color: var(--on-navy); font-size: 1.15rem; }
.billboard h2 { color: var(--white); }

/* Placeholder notes for unfinished content */
.placeholder { background: #FFF6D6; border: 2px dashed #E0A800; border-radius: 10px; padding: 14px 18px; margin-top: 12px; color: #5C4A00; max-width: 64ch; font-size: 1rem; }

/* Forms */
.form { display: grid; gap: 16px; max-width: 560px; margin-top: 20px; }
.form label { display: block; font-weight: 700; margin-bottom: 6px; }
.form input, .form textarea, .form select { width: 100%; font: inherit; padding: 11px 13px; border: 1.5px solid #B9C4CF; border-radius: 10px; background: var(--white); color: var(--ink); }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--navy); }
.form textarea { min-height: 130px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form.inline { grid-template-columns: 1fr auto; align-items: end; }
.form.inline button { height: 50px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--on-navy); padding: 64px 0 36px; font-size: 0.97rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer h3 { font-size: 1.05rem; color: var(--gold); margin-bottom: 12px; }
.site-footer .logo { color: var(--white); margin-bottom: 14px; }
.site-footer .logo-text span { color: var(--on-navy); }
.site-footer .legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid #22384F; font-size: 0.9rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--white); padding: 12px 24px 24px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15,39,66,0.08); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav .btn { margin: 10px 0 0; text-align: center; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--spark); }
}
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 420px; aspect-ratio: 4 / 3; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .page-head .spark-deco { display: none; }
}
@media (max-width: 700px) {
  .grid-4, .grid-3, .grid-2, .steps, .split { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  section { padding: 60px 0; }
  .hero { padding: 48px 0 60px; }
  .billboard { grid-template-columns: 1fr; padding: 36px 28px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .utility .wrap { justify-content: center; }
  .form.inline { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .logo-text strong { font-size: 1.35rem; }
  .logo-text span { font-size: 0.7rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Professionals section ---------- */
.steps.four { grid-template-columns: repeat(4, 1fr); }
.ladder .card { position: relative; }
.ladder .card.here { border: 2px solid var(--spark); }
.ladder .here-badge { position: absolute; top: -13px; left: 22px; background: var(--spark); color: var(--white); font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 6px; }
.status { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 6px; background: var(--mist); color: var(--muted); border: 1px solid var(--line); }
.meta { font-size: 0.95rem; color: var(--muted); }
.meta strong { color: var(--ink); }
.pathway h3 { margin-top: 4px; }
.pathway .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; }
.plan .price { font-family: var(--head); font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1.1; margin: 6px 0 2px; }
.plan .per { font-size: 0.9rem; color: var(--muted); }
.plan.featured { border: 2px solid var(--spark); }
.plan .ribbon { position: absolute; top: -13px; left: 22px; background: var(--spark); color: var(--white); font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 6px; }
.plan .btn { margin-top: auto; text-align: center; }
.checklist { list-style: none; margin: 14px 0 22px; }
.checklist li { position: relative; padding-left: 26px; margin-bottom: 8px; font-size: 0.98rem; color: var(--ink); }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 3px solid #2E9E5E; border-bottom: 3px solid #2E9E5E; transform: rotate(-45deg); }

/* Reference table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 24px; background: var(--white); }
.ref-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; min-width: 720px; }
.ref-table th, .ref-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ref-table th { background: var(--mist); font-weight: 700; color: var(--navy); }
.ref-table tr:last-child td { border-bottom: 0; }
.ref-table td a { font-weight: 600; }
.disclaimer { font-size: 0.95rem; color: var(--muted); margin-top: 18px; }

/* FAQ */
.faq { max-width: 820px; margin-top: 20px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style-position: outside; }
.faq details p { margin-top: 10px; color: var(--muted); }

@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, 1fr); } .steps.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .plans, .steps.four { grid-template-columns: 1fr; } }
