/* =========================================================
   AI Certification UK — Main Stylesheet
   ========================================================= */

:root {
  --navy: #002529;
  --navy-deep: #00171a;
  --cyan: #0e9cad;
  --cyan-light: #9aedf7;
  --cyan-tint: #c7f5f9;
  --cyan-text: #0b6b78; /* WCAG AA-compliant (6.2:1 on white) variant of brand cyan for text on light backgrounds */
  --white: #ffffff;
  --ink: #002529;
  --ink-subtle: #4a5667;
  --border: #e7eef0;
  --bg-neutral: #f6fafb;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(0, 37, 41, 0.06);
  --shadow-md: 0 12px 32px rgba(0, 37, 41, 0.10);
  --shadow-lg: 0 24px 60px rgba(0, 37, 41, 0.16);
  --font-display: "Satoshi Variable", "Satoshi", "Inter", sans-serif;
  --font-body: "Inter Variable", "Inter", "Noto Sans", sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(#ffffff);
  line-height: 1.35;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
p { margin: 0 0 1em; color: var(--accent); }
a { color: color: var(--accent); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}
img { max-width: 100%; display: block; }
ul { padding-left: 1.2em; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-blue);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--cyan);
  display: inline-block;
}
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--neutral { background: var(--bg-neutral); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(255,255,255,0.78); }
.section-head {
  max-width: 760px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}
.btn-primary { background: #14bfd3; color: var(--navy); }
.btn-primary:hover { background: var(--cyan-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-outline-dark { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;

}
.nav__logo img { height: 115px; width: auto; }
.nav__links {
  display: none;
  list-style: none;
  margin: 0;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: 250px;
  background: var(--white);
  padding: 20px 24px 28px;
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  gap: 18px;
  text-align: center;
}
.nav.open .nav__links { display: flex; }
.nav__links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--cyan);
  transition: width 0.2s ease;
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { width: 100%; }
.nav__links a[aria-current="page"] { color: var(--cyan-text); }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.25s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Section intro paragraph for grid sections ===== */
.section-head p:last-child { margin-bottom: 0; }

/* ===== Body imagery ===== */
.body-image {
  margin: 40px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.body-image img { width: 100%; height: auto; display: block; }
.body-image figcaption {
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--ink-subtle);
  background: var(--bg-neutral);
  border-top: 3px solid var(--cyan);
}
.image-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 40px;
}
.image-grid .body-image { margin: 0; height: 100%; }
.image-grid .body-image img { height: 100%; object-fit: cover; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 88px 0 80px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(154, 237, 247, 0.12);
  border: 1px solid rgba(154, 237, 247, 0.35);
  color: var(--cyan-light);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 { color: var(--white); }
.hero__lead { font-size: 1.15rem; color: rgba(255,255,255,0.82); max-width: 560px; }
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,37,41,0) 45%, rgba(0,37,41,0.55) 100%);
}
.hero__media-caption {
  position: absolute;
  left: 20px; right: 20px; bottom: 18px;
  z-index: 2;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero--page { padding: 0; }
.hero--page .hero__grid { grid-template-columns: 1fr; padding: 72px 0 64px; text-align: center; }
.hero--page .hero__lead { margin: 0 auto; }
.hero__decoline {
  position: absolute;
  top: 0; right: -10%;
  width: 60%; height: 100%;
  background: radial-gradient(circle at top right, rgba(154,237,247,0.14), transparent 60%);
  pointer-events: none;
}

/* ===== Stats strip ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 40px;
  margin-top: 8px;
}
.stats__item { padding: 0 20px; border-left: 1px solid rgba(255,255,255,0.14); }
.stats__item:first-child { border-left: none; padding-left: 0; }
.stats__num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--cyan-light); }
.stats__label { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin: 0; }

/* ===== Cards & grids ===== */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--cyan-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--navy);
}
.card__icon svg { width: 26px; height: 26px; }

/* Role map rows (alternating editorial list) */
.role-list { border-top: 1px solid var(--border); }
.role-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.role-row__title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
}
.role-row__title .tag {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-text);
  font-weight: 700;
  margin-top: 6px;
}

/* Pathway comparison */
.pathways {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.pathway {
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  border: 1px solid var(--border);
}
.pathway--foundation { background: var(--bg-neutral); }
.pathway--practitioner { background: var(--navy); color: var(--white); }
.pathway--practitioner h3, .pathway--practitioner strong { color: var(--white); }
.pathway--practitioner p, .pathway--practitioner li { color: rgba(255,255,255,0.82); }
.pathway__level {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--cyan-tint);
  color: var(--navy);
  margin-bottom: 16px;
}
.pathway--practitioner .pathway__level { background: rgba(154,237,247,0.18); color: var(--cyan-light); }
.pathway ul { margin: 18px 0 0; padding-left: 0; list-style: none; }
.pathway li { display: flex; gap: 10px; padding: 6px 0; }
.pathway li::before { content: "✓"; color: var(--cyan-text); font-weight: 700; flex-shrink: 0; }
.pathway--practitioner li::before { color: var(--cyan-light); }

/* Checklist / numbered steps */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step__num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cyan-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
}

/* Checklist items with check icon (procurement list) */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px;
  background: var(--bg-neutral);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--cyan);
}
.checklist strong { color: var(--navy); }

/* Quote / pull-quote block */
.pullquote {
  border-left: 4px solid var(--cyan);
  padding: 8px 0 8px 28px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  font-weight: 600;
  margin: 40px 0;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, #013a40 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2, .cta-band p { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.78); margin: 0; }

/* Footer */
.site-footer {
  background: #ebfeff;
  color: rgba(255,255,255,0.75);
  padding: 64px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__logo img { height: 115px; margin-bottom: 16px; }
.footer__about { max-width: 320px; font-size: 0.92rem; color:black;}
.footer h4 { color: var(--white); font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: rgba(255,255,255,0.75); font-size: 0.95rem; }
.footer a:hover { color: var(--cyan-light); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
  color: black;
}
.footer__socials { display: flex; gap: 14px; }
.footer__socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer__socials svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.8); }

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,0.65); }
.breadcrumb a:hover { color: var(--cyan-light); }

/* Article page */
.article-head { text-align: center; max-width: 820px; margin: 0 auto; }
.article-meta { display: flex; justify-content: center; gap: 16px; color: rgba(255,255,255,0.65); font-size: 0.88rem; margin-bottom: 18px; flex-wrap: wrap; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin: -40px auto 0; max-width: 980px; box-shadow: var(--shadow-lg); position: relative; z-index: 3; }
.article-cover img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 { margin-top: 2em; }
.article-body ul { color: var(--ink-subtle); }
.article-body li { margin-bottom: 0.4em; }
.takeaway-box {
  background: var(--cyan-tint);
  border-radius: var(--radius-md);
  padding: 32px 32px 32px !important;
  margin-top: 1px;
}

.takeaway-box > :first-child {
  margin-top: 0 !important;
}

.takeaway-box h3 {
  margin-top: 0 !important;
  margin-bottom: 10px;
}

.takeaway-box p:last-child {
  margin-bottom: 0;
}

/* Listicle numbered big items */
.qlist { counter-reset: q; display: grid; gap: 0; }
.qitem {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.qitem__num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--cyan-tint);
  -webkit-text-stroke: 2px var(--navy);
  line-height: 1;
}
.qitem h3 { margin-bottom: 8px; }

/* Contact page */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 8px; }
.form-row label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.form-row input, .form-row select, .form-row textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.97rem;
  background: var(--white);
  color: var(--ink);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--cyan);
}
.form-note { font-size: 0.85rem; color: var(--ink-subtle); }
.form-success {
  display: none;
  background: var(--cyan-tint);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  color: var(--navy);
  font-weight: 600;
  margin-top: 8px;
}
.form-success.visible { display: block; }

.contact-info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-info-card h3 { color: var(--white); }
.contact-info-card a { color: var(--cyan-light); font-weight: 600; }
.contact-info-card ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.contact-info-card li { display: flex; gap: 12px; color: rgba(255,255,255,0.85); }
.notice-box {
  margin-top: 28px;
  border: 1px dashed rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  padding: 18px;
  font-size: 0.88rem;
  color: white;
}

/* 404 */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--navy);
  color: var(--white);
  padding: 80px 24px;
}
.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: 700;
  color: var(--cyan-light);
  line-height: 1;
  margin-bottom: 10px;
}

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.badge-icon { display: inline-flex; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--cyan);
  color: var(--navy);
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }


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

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
    padding: 56px 24px 48px;
    text-align: left;
  }

  .hero__media {
    order: -1;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 28px;
  }

  .stats__item:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }

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

  .pathways {
    grid-template-columns: 1fr;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {

  /* Navigation */
  .nav.open .nav__actions .btn {
    display: inline-flex;
    margin-top: 6px;
  }

  /* Hero Section */
  .hero__grid {
    grid-template-columns: 1fr;
    padding: 40px 24px 48px;
    text-align: left;
    gap: 28px;
  }

  .hero__media {
    order: -1;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 7vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: 18px;
  }

  .hero__badge {
    max-width: 100%;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .hero__lead {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0;
  }

  .hero__ctas {
    justify-content: flex-start;
    margin-top: 24px;
    gap: 12px;
  }

  /* Grids */
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }

  .role-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .qitem {
    grid-template-columns: 56px 1fr;
    gap: 16px;
  }

  /* CTA */
  .cta-band {
    flex-direction: column;
    text-align: center;
    padding: 40px 28px;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* General Sections */
  .section {
    padding: 64px 0;
  }

  .article-cover {
    margin-top: -24px;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== About & Contact Page Mobile Hero Fix ===== */

@media (max-width: 760px) {

  .hero--page .hero__grid {
    grid-template-columns: 1fr;
    padding: 40px 24px 48px;
    text-align: left;
    gap: 28px;
  }

  .hero--page h1 {
    font-size: clamp(1.9rem, 7vw, 2.4rem);
    line-height: 1.4;
    margin-bottom: 18px;
    text-align: left;
  }

  .hero--page .hero__badge {
    max-width: 100%;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .hero--page .hero__lead {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    text-align: left;
  }

  .hero--page .hero__ctas {
    justify-content: flex-start;
    margin-top: 24px;
    gap: 12px;
  }

}
