/* Nura Care Institute -- design system
   Palette: Ink (charcoal), Slate/Sky (logo blue), Ember (logo coral), Chart (cool paper)
   Display: Roboto Slab. Body: Public Sans. Data/code: IBM Plex Mono. */

:root {
  --ink: #1b1e22;
  --ink-soft: #353a42;
  --slate: #46587a;
  --sky: #7e94bc;
  --sky-pale: #e7ebf3;
  --ember: #df5430;
  --ember-dark: #b8421f;
  --chart: #f5f6f8;
  --white: #ffffff;
  --line: #dfe2e7;
  --line-strong: #c6cbd3;

  --font-display: "Roboto Slab", "Georgia", serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --max: 1180px;
  --radius: 5px;
  --shadow: 0 1px 2px rgba(27, 30, 34, 0.06), 0 8px 24px -12px rgba(27, 30, 34, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.25rem, 4.4vw, 3.6rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--slate);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--ember);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 2px;
}

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

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

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--ember);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.9em;
}

.section {
  padding: 64px 0;
}

.section--tight {
  padding: 40px 0;
}

.section--ink {
  background: var(--ink);
  color: #e7e9ec;
}

.section--ink h2,
.section--ink h3 {
  color: var(--white);
}

.section--chart {
  background: var(--chart);
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.4rem;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 10px 18px;
  z-index: 1000;
  border-radius: 0 0 6px 0;
}

.skip-link:focus {
  left: 0;
}

/* Top bar (ledger strip) */
.topbar {
  background: var(--ink);
  color: #c9cdd3;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 7px;
  padding-bottom: 7px;
  flex-wrap: wrap;
  gap: 6px;
}

.topbar a {
  color: #e9ddd6;
}

.topbar strong {
  color: var(--ember);
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  height: 40px;
  width: auto;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
  color: var(--ink);
}

.brand-text span {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--ember);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ember);
}

.nav-cta {
  background: var(--ember);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700 !important;
}

.nav-cta:hover {
  background: var(--ember-dark);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease;
}

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

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--ember);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--ember-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--ink);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Hero */
.hero {
  padding: 56px 0 72px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 0.45em;
}

.hero-lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 50ch;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 22px;
  margin-top: 2.2rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.hero-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1;
}

/* Certificate card graphic */
.cert-card {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 28px 26px 24px;
  position: relative;
  transform: rotate(-1.2deg);
}

.cert-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  pointer-events: none;
}

.cert-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

.cert-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 18px 0 4px;
  color: var(--ink);
}

.cert-sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.pulse-line {
  width: 100%;
  height: 54px;
  display: block;
  margin: 10px 0 14px;
}

.pulse-line path {
  fill: none;
  stroke: var(--ember);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pulse-animated path {
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: draw-pulse 1.8s ease-out 0.3s forwards;
}

@keyframes draw-pulse {
  to {
    stroke-dashoffset: 0;
  }
}

.cert-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 6px;
}

.cert-sig {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--slate);
}

.cert-sig small {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-top: 2px;
}

.cert-seal {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--ember);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--ember);
  text-align: center;
  line-height: 1.1;
}

/* Divider */
.divider {
  width: 100%;
  height: 34px;
  display: block;
}

.divider path {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 2;
}

/* Catalog list */
.catalog {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.catalog-row {
  display: grid;
  grid-template-columns: 110px 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding: 22px 18px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease;
}

.catalog-row:hover {
  background: var(--sky-pale);
}

.catalog-code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: 0.03em;
}

.catalog-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  margin: 0 0 3px;
  color: var(--ink);
}

.catalog-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

.catalog-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ember);
  white-space: nowrap;
}

.catalog-price small {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.catalog-arrow {
  font-family: var(--font-mono);
  color: var(--ink-soft);
  font-size: 1.1rem;
}

@media (max-width: 720px) {
  .catalog-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "code arrow"
      "name name"
      "price price";
    row-gap: 8px;
  }
  .catalog-code {
    grid-area: code;
  }
  .catalog-arrow {
    grid-area: arrow;
    justify-self: end;
  }
  .catalog-name {
    grid-area: name;
  }
  .catalog-name + .catalog-desc {
    grid-area: name;
  }
  .catalog-price {
    grid-area: price;
  }
}

/* Two column feature block */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.statement {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--ink);
  line-height: 1.35;
}

.statement em {
  font-style: normal;
  color: var(--ember);
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}

.checklist li:last-child {
  border-bottom: 1px solid var(--line);
}

.checklist svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--ember);
}

/* Instructor */
.instructor {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: center;
}

.avatar-badge {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--slate);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
}

/* CTA band */
.cta-band {
  background: var(--ember);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
}

.cta-band .hero-lede {
  color: rgba(255, 255, 255, 0.92);
  margin-left: auto;
  margin-right: auto;
}

.cta-band-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c9cdd3;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.9fr 1.1fr;
  gap: 40px;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 1.1em;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 0.6em;
}

.footer-grid a {
  color: #c9cdd3;
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--ember);
}

.footer-brand p {
  color: #9aa0aa;
  max-width: 32ch;
  font-size: 0.92rem;
}

.footer-bottom {
  border-top: 1px solid #34383f;
  margin-top: 44px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #82888f;
}

.footer-bottom a {
  color: #aab4c7;
}

.footer-bottom a:hover {
  color: var(--ember);
}

/* Page hero (interior pages) */
.page-hero {
  background: var(--chart);
  padding: 48px 0 44px;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}

.breadcrumbs a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--ember);
}

.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 10px 18px;
  font-family: var(--font-mono);
  margin-top: 1rem;
}

.price-tag .amount {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ember);
}

.price-tag .unit {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* Course detail layout */
.course-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.fact-card {
  background: var(--chart);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 96px;
}

.fact-card dl {
  margin: 0;
}

.fact-card dt {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--slate);
  margin-top: 16px;
}

.fact-card dt:first-child {
  margin-top: 0;
}

.fact-card dd {
  margin: 4px 0 0;
  font-weight: 600;
}

.prose h2 {
  margin-top: 2.2rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.callout {
  background: var(--sky-pale);
  border-left: 4px solid var(--slate);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  font-size: 0.95rem;
}

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.faq-q .icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--ink-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.faq-item[data-open="true"] .icon {
  transform: rotate(45deg);
  color: var(--ember);
  border-color: var(--ember);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-a-inner {
  padding-bottom: 20px;
  color: var(--ink-soft);
  max-width: 70ch;
}

/* Forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.form-row .hint {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--slate);
  outline: none;
  box-shadow: 0 0 0 3px var(--sky-pale);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  display: none;
}

.form-status[data-state="success"] {
  display: block;
  background: #e7f3ec;
  color: #205c3c;
  border: 1px solid #b9ddc7;
}

.form-status[data-state="error"] {
  display: block;
  background: #fbeaea;
  color: #8a2424;
  border: 1px solid #f0c2c2;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Utility */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.stack-gap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1rem 0;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--chart);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--ink-soft);
}

.contact-strip {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.contact-strip dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.contact-strip dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 100%;
  height: 320px;
}

/* Submenu / dropdown */
.has-submenu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.submenu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 6px;
  margin-left: 2px;
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  line-height: 0;
}

.submenu-toggle::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s ease;
}

.submenu-toggle[aria-expanded="true"]::before {
  transform: rotate(180deg);
}

.has-submenu:hover .submenu-toggle {
  color: var(--ember);
}

.submenu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 214px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  z-index: 200;
}

.submenu li {
  margin: 0;
}

.submenu a {
  display: block;
  padding: 9px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  text-decoration: none;
}

.submenu a:hover {
  background: var(--sky-pale);
  color: var(--ember);
}

.submenu[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hero certificate image */
.cert-image {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px;
  transform: rotate(-1.2deg);
}

.cert-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.cert-image figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 10px;
  padding: 0 6px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* Service-area cards */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 16px;
}

.area-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.area-card:hover {
  border-color: var(--slate);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.area-card-city {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}

.area-card-county {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
}

.area-card-link {
  margin-top: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ember);
}

/* Numbered process steps */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 3px 0 22px 52px;
  min-height: 38px;
  font-size: 1rem;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  background: var(--ember);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
}

.steps li strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
}

/* ===================== Responsive ===================== */

/* Desktop submenu opens on hover or keyboard focus */
@media (min-width: 901px) {
  .has-submenu {
    align-self: stretch;
  }
  /* invisible bridge so the cursor can travel from trigger to dropdown */
  .has-submenu::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
  }
  .has-submenu:hover .submenu,
  .has-submenu:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* Tablet landscape */
@media (max-width: 1024px) {
  .nav-links {
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

/* Hero + secondary layouts collapse */
@media (max-width: 920px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-img {
    order: -1;
    max-width: 440px;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .course-layout {
    grid-template-columns: 1fr;
  }
  .fact-card {
    position: static;
  }
}

/* Tablet portrait and below: hamburger nav drawer */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 22px;
    transform: translateY(-130%);
    transition: transform 0.22s ease;
    box-shadow: var(--shadow);
  }
  .nav-links[data-open="true"] {
    transform: translateY(0);
  }
  .nav-links > li {
    border-bottom: 1px solid var(--line);
  }
  .nav-links a {
    display: block;
    padding: 14px 4px;
  }
  .nav-cta {
    display: inline-block;
    margin: 12px 0 4px;
    text-align: center;
  }
  /* submenu becomes an inline accordion inside the drawer */
  .has-submenu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  .has-submenu > a {
    flex: 1;
  }
  .submenu-toggle {
    padding: 14px 8px;
  }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: 100%;
    min-width: 0;
    border: none;
    border-left: 2px solid var(--line-strong);
    border-radius: 0;
    box-shadow: none;
    margin: 0 0 6px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .submenu[data-open="true"] {
    max-height: 560px;
    padding: 4px 0 8px;
  }
  .submenu a {
    white-space: normal;
    padding: 11px 16px;
  }
  .instructor {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .instructor .avatar-badge {
    margin: 0 auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Large phones and down */
@media (max-width: 600px) {
  .section {
    padding: 48px 0;
  }
  .hero {
    padding: 40px 0 52px;
  }
  .cert-image {
    transform: none;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .contact-strip {
    gap: 18px;
  }
  .hero-meta {
    gap: 16px;
  }
  .cta-band-actions .btn,
  .hero-ctas .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
