/* FT Skills Development Institute
   Colours come from the logo: #0167b1 blue and #000 black.
   Wet-floor yellow is reserved for deadline notices only.
   The faint people-and-bulb icon is the one decorative device. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --blue: #0167b1;
  --blue-deep: #014a80;
  --blue-night: #01335a;
  --blue-mist: #e8f1f9;
  --ink: #0d1b26;
  --paper: #fff;
  --surface: #f4f7fa;
  --line: #d9e3ec;
  --line-strong: #b7c7d4;
  --muted: #4d5b67;
  --notice: #ffd100;
  --notice-soft: #fff4bf;

  --font: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wide: 112%;

  --r-lg: 22px;
  --r: 14px;
  --r-sm: 10px;

  /* 1.25 modular scale from an 18px body */
  --s-1: 0.889rem;
  --s0: 1.125rem;
  --s1: 1.406rem;
  --s2: 1.758rem;
  --s3: 2.197rem;
  --s4: 2.747rem;
  --s5: 3.433rem;

  --gutter: clamp(1rem, 4.5vw, 3rem);
  --space: clamp(4.5rem, 10vw, 8rem);
  --measure: 66ch;
  --header-h: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--s0);
  line-height: 1.65;
  font-variant-numeric: lining-nums;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-deep); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
p, ul, ol, dl, address { margin: 0 0 1rem; }
address { font-style: normal; }
.muted { color: var(--muted); }

h1, h2, h3 {
  margin: 0 0 0.6em;
  line-height: 1.12;
  font-stretch: var(--wide);
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: clamp(var(--s3), 4.4vw, 3.6rem); font-weight: 350; }
h2 { font-size: clamp(var(--s2), 3.2vw, var(--s4)); font-weight: 380; }
h3 { font-size: var(--s1); font-weight: 650; font-stretch: 105%; letter-spacing: -0.005em; }

.wrap { width: min(100% - 2 * var(--gutter), 78rem); margin-inline: auto; }
.prose { max-width: var(--measure); }
.prose > :last-child { margin-bottom: 0; }
.lead { font-size: var(--s1); line-height: 1.55; max-width: 42ch; color: var(--muted); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand img { width: 120px; height: 80px; }
.site-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--s-1); padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--blue); }
.site-nav .nav-contact { background: var(--blue); color: var(--paper); padding: 0.6rem 1.2rem; border: 0; border-radius: 999px; }
.site-nav .nav-contact:hover, .site-nav .nav-contact[aria-current="page"] { background: var(--blue-deep); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .brand img { width: 78px; height: 52px; }
  .nav-toggle {
    display: block; font: inherit; font-weight: 600; font-size: var(--s-1);
    background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: 999px;
    padding: 0.5rem 1.1rem; cursor: pointer; color: var(--ink);
  }
  .site-nav { display: none; position: absolute; inset: 100% 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -20px rgba(1, 51, 90, 0.35); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1.5rem; }
  .site-nav a { display: block; font-size: var(--s0); padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .nav-contact { margin-top: 1rem; text-align: center; }
}

/* Breadcrumbs */
.crumbs { font-size: var(--s-1); padding-top: 1.5rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); margin-right: 0.35rem; }
.crumbs a { color: var(--muted); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 600; font-size: var(--s0); line-height: 1.2;
  padding: 0.95rem 1.6rem; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--line-strong); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { border-color: var(--blue); color: var(--blue-deep); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--paper); }

/* Sections */
.section { padding-block: var(--space); }
.section-tint { background: var(--surface); }
.section-head { max-width: 48rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head p { color: var(--muted); font-size: var(--s1); line-height: 1.55; }

/* The motif: her logo's people-and-bulb icon, oversized and faint */
.motif { position: relative; isolation: isolate; overflow: hidden; }
.motif::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: min(62vw, 760px); aspect-ratio: 1954 / 1287;
  background: url("/assets/brand/icon.svg") no-repeat center / contain;
  opacity: 0.05;
}

/* Home hero */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem); }
.hero.motif::before { left: -16%; top: -12%; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.tagline { color: var(--blue); font-size: var(--s1); font-weight: 500; font-stretch: 100%; line-height: 1.3; margin: 0 0 1.1rem; }
.hero h1 { margin-bottom: 0.55em; }
.hero .lead { max-width: 46ch; }

.collage { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(0.75rem, 1.6vw, 1.25rem); align-items: start; }
.collage img { width: 100%; border-radius: var(--r-lg); background: var(--surface); }
.collage .c-side { display: grid; gap: clamp(0.75rem, 1.6vw, 1.25rem); padding-top: clamp(2.5rem, 6vw, 4.5rem); }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .collage .c-side { padding-top: 2rem; }
}

/* The Register: qualifications record */
.register { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 24px 48px -32px rgba(1, 51, 90, 0.25); }
.register-head { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; background: var(--blue-mist); }
.register-head img { width: 54px; height: auto; flex: none; }
.register-head h2 { font-size: var(--s1); font-weight: 600; font-stretch: 105%; margin: 0; }
.register-head p { margin: 0.15rem 0 0; font-size: var(--s-1); color: var(--muted); line-height: 1.4; }
.register ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.register li { padding: 1.25rem 1.5rem; border-top: 1px solid var(--line); }
.register li:nth-child(odd) { border-right: 1px solid var(--line); }
.register .q-name { display: block; font-weight: 600; line-height: 1.35; color: var(--ink); text-decoration: none; }
.register .q-name:hover { color: var(--blue-deep); text-decoration: underline; }
.facts { display: flex; flex-wrap: wrap; gap: 0.2rem 1.25rem; margin: 0.5rem 0 0; font-size: var(--s-1); font-variant-numeric: tabular-nums; }
.facts div { display: flex; gap: 0.3rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.facts a { font-weight: 600; }
.register-foot { padding: 1rem 1.5rem; border-top: 1px solid var(--line); font-size: var(--s-1); color: var(--muted); }
.register-foot p { margin: 0; }
@media (max-width: 720px) {
  .register ol { grid-template-columns: 1fr; }
  .register li:nth-child(odd) { border-right: 0; }
}

/* Deadline notice: wet-floor yellow, as a rounded panel */
.notice { background: var(--notice); color: var(--ink); border-radius: var(--r-lg); margin-top: clamp(1.5rem, 3vw, 2rem); }
.notice-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); gap: 1.5rem 3rem; padding: clamp(1.75rem, 4vw, 2.75rem); align-items: start; }
.notice h2 { font-size: var(--s2); font-weight: 450; margin: 0; }
.notice ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; }
.notice .date { display: block; font-size: var(--s3); font-weight: 700; font-stretch: var(--wide); line-height: 1.1; font-variant-numeric: tabular-nums; }
.notice p { margin: 0.4rem 0 0; }
.notice a { color: var(--ink); font-weight: 650; }
@media (max-width: 880px) {
  .notice-inner { grid-template-columns: 1fr; }
  .notice ul { grid-template-columns: 1fr; }
}

/* Services: ruled list beside a photo */
.services-wrap { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.services-wrap > img { border-radius: var(--r-lg); position: sticky; top: calc(var(--header-h) + 2rem); }
.service { border-top: 1px solid var(--line); padding: 1.6rem 0 1.4rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0.5rem 2rem; }
.service:last-child { border-bottom: 1px solid var(--line); }
.service h3 { margin: 0; }
.service h3 a { color: var(--ink); text-decoration: none; }
.service h3 a:hover { color: var(--blue-deep); text-decoration: underline; }
.service p { color: var(--muted); margin: 0; }
@media (max-width: 880px) {
  .services-wrap { grid-template-columns: 1fr; }
  .services-wrap > img { position: static; }
  .service { grid-template-columns: 1fr; }
}

/* Reasons */
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); list-style: none; padding: 0; margin: 0; }
.reasons li { background: var(--paper); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem); }
.reasons li::before { content: ""; display: block; width: 2.5rem; height: 4px; border-radius: 4px; background: var(--blue); margin-bottom: 1.4rem; }
.reasons h3 { font-size: var(--s1); }
.reasons p { margin: 0; color: var(--muted); }
@media (max-width: 880px) { .reasons { grid-template-columns: 1fr; } }

/* Statement with photo and quote */
.statement { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.statement img { border-radius: var(--r-lg); }
.statement blockquote { margin: 2rem 0 0; padding-left: 1.25rem; border-left: 3px solid var(--blue); font-size: var(--s1); line-height: 1.4; }
.statement blockquote p { margin: 0 0 0.5rem; }
.statement cite { font-style: normal; font-size: var(--s0); color: var(--muted); }
@media (max-width: 880px) { .statement { grid-template-columns: 1fr; } }

/* Contact panel */
.contact-band { padding-block: 0 var(--space); }
.contact-panel { background: var(--blue-night); color: var(--paper); border-radius: var(--r-lg); padding: clamp(2.25rem, 6vw, 4.5rem); }
.contact-panel.motif::before { right: -10%; top: -28%; opacity: 0.09; filter: brightness(0) invert(1); }
.contact-panel a { color: var(--paper); }
.contact-panel h2 { max-width: 22ch; color: var(--paper); }
.contact-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; list-style: none; padding: 0; margin: 2.5rem 0 0; }
.contact-methods li { border-top: 1px solid rgba(255, 255, 255, 0.3); padding-top: 1rem; }
.contact-methods span { display: block; color: #b8cde0; font-size: var(--s-1); }
.contact-methods a { font-size: var(--s1); font-weight: 600; font-stretch: 105%; text-decoration: none; word-break: break-word; }
.contact-methods a:hover { text-decoration: underline; }
@media (max-width: 880px) { .contact-methods { grid-template-columns: 1fr; } }

/* Inner page header */
.page-head { padding-block: clamp(2rem, 5vw, 3.75rem) clamp(2.5rem, 6vw, 4.5rem); }
.page-head h1 { max-width: 22ch; }
.page-head .lead { max-width: 52ch; }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.page-head-grid img { border-radius: var(--r-lg); }
.page-head.motif::before { right: -18%; top: -10%; }
.page-head + .section { border-top: 1px solid var(--line); }
@media (max-width: 880px) { .page-head-grid { grid-template-columns: 1fr; } }

/* Two-column page body */
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.split aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.split-gap { margin-top: clamp(3rem, 7vw, 5rem); }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split aside { position: static; } }

.prose h2 { font-size: var(--s3); margin-top: 3rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--blue); }

/* Fact card */
.factcard { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); overflow: hidden; box-shadow: 0 24px 48px -36px rgba(1, 51, 90, 0.3); }
.factcard h2 { font-size: var(--s1); font-weight: 600; font-stretch: 105%; margin: 0; padding: 1.15rem 1.5rem; background: var(--blue-mist); }
.factcard dl { margin: 0; }
.factcard dl div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.75rem; padding: 0.7rem 1.5rem; border-top: 1px solid var(--line); font-size: var(--s-1); }
.factcard dt { color: var(--muted); }
.factcard dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.factcard .factcard-cta { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--line); }
.factcard .btn { width: 100%; }
.factcard .btn + .btn { margin-top: 0.6rem; }
.flag { display: inline-block; background: var(--notice); padding: 0.05rem 0.55rem; border-radius: 999px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); margin: 1.75rem 0 2rem; background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: var(--s-1); font-variant-numeric: tabular-nums; }
caption { text-align: left; font-weight: 600; font-stretch: 105%; padding: 1rem 1.25rem; font-size: var(--s0); background: var(--blue-mist); }
th, td { text-align: left; padding: 0.85rem 1.25rem; border-top: 1px solid var(--line); vertical-align: top; }
thead th { font-weight: 600; color: var(--muted); white-space: nowrap; }
tbody th { font-weight: 500; }
td.num, th.num { text-align: right; white-space: nowrap; }

/* Benefit maths */
.sum { border-radius: var(--r-lg); padding: 1.5rem 1.75rem; margin: 1.75rem 0; background: var(--blue-mist); }
.sum dl { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 2rem; margin: 0; font-variant-numeric: tabular-nums; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; font-weight: 600; text-align: right; }
.sum .total { border-top: 1px solid var(--line-strong); padding-top: 0.75rem; margin-top: 0.25rem; font-size: var(--s1); color: var(--ink); font-weight: 700; }
.small { font-size: var(--s-1); color: var(--muted); }

/* FAQ */
.faq { margin-top: 3.5rem; }
.faq h2 { font-size: var(--s2); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 3rem 1.15rem 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%;
  width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--blue-mist); color: var(--blue-deep); font-size: 1.25rem; font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 1.3rem; max-width: var(--measure); color: var(--muted); }

/* Forms */
.form { display: grid; gap: 1.25rem; max-width: 42rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: var(--s-1); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: var(--s0); padding: 0.8rem 1rem;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--paper); color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 9.5rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #93a9ba; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(1, 103, 177, 0.18); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choices label { display: flex; align-items: center; gap: 0.55rem; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 0.6rem 1.1rem; font-weight: 500; margin: 0; cursor: pointer; }
.choices label:has(input:checked) { border-color: var(--blue); background: var(--blue-mist); }
.choices input { width: auto; accent-color: var(--blue); }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--s-1); color: var(--muted); }
.consent input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--blue); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: var(--r); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.alert-error { background: var(--notice-soft); border: 1px solid #e8c800; }
.alert p { margin: 0; }

/* Footer */
.site-footer { background: var(--surface); padding-top: clamp(3.5rem, 7vw, 5rem); font-size: var(--s-1); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand img { width: 180px; height: 120px; }
.footer-tagline { color: var(--blue); font-size: var(--s1); margin: 1.25rem 0 1rem; }
.footer-quote { margin: 0; color: var(--muted); max-width: 32ch; }
.footer-quote p { margin: 0 0 0.25rem; }
.footer-quote cite { font-style: normal; }
.footer-h { font-size: var(--s0); font-stretch: 100%; font-weight: 650; margin: 0 0 0.6rem; }
.footer-h:not(:first-child) { margin-top: 1.75rem; }
.footer-list { list-style: none; padding: 0; }
.footer-list li { margin-bottom: 0.4rem; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; border-top: 1px solid var(--line); padding-block: 1.5rem 6rem; color: var(--muted); }
.footer-base p { margin: 0; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr; } }

/* WhatsApp */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #1f8f4e; color: #fff; text-decoration: none; font-weight: 600;
  padding: 0.75rem 1.15rem 0.75rem 0.95rem; border-radius: 999px;
  box-shadow: 0 10px 24px -8px rgba(0, 40, 20, 0.45);
}
.wa-float:hover { background: #16703c; }
@media (max-width: 480px) { .wa-float span { display: none; } .wa-float { padding: 0.85rem; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-header, .wa-float, .nav-toggle, .contact-band { display: none; } }
