/* Your Maintenance Coach: site styles.
   One stylesheet, no framework. Sections follow the order of index.html. */

/* ---------- Font (Inter Tight, free under the SIL Open Font License, hosted with the site) ---------- */
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-tight-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Brand settings ---------- */
:root {
  --navy: #202d3d;        /* headings, dark buttons */
  --navy-dark: #151e29;   /* Simon panel */
  --footer: #17202b;      /* footer */
  --menu: #10171f;        /* full-screen menu */
  --yellow: #e3af19;      /* accent */
  --cream: #faf4e3;       /* whitepaper band */
  --grey-band: #f0f0f0;   /* client logos band */
  --text: #202d3d;
  --text-muted: #595959;
  --footer-text: #c5c5c5;
  --menu-link: #8a9099;
  --menu-line: #1e2c3b;

  --container: 1200px;
  --gutter: 20px;
  --header-h: 115px;
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.625;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.accent { color: var(--yellow); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 6px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.section-title {
  font-size: 42px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px;
  padding: 10px 32px;
  border: 1px solid currentColor;
  border-radius: 30px;
  background: transparent;
  font-size: 13px; font-weight: 600; line-height: 18px;
  letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn__icon { flex: none; }
.btn--dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.btn--outline-dark { color: var(--navy); }
.btn--outline-dark:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--outline-light { color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 20px 0;
  transition: background-color .3s, box-shadow .3s, padding .3s;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: block; }
.brand img { width: 175px; transition: width .3s; }
.brand__light { display: none; }
.site-header.is-scrolled { background: #fff; box-shadow: 0 4px 24px rgba(0, 0, 0, .08); padding: 10px 0; }
.site-header.is-scrolled .brand img { width: 140px; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 10px 0; border: 0; background: none; cursor: pointer;
  font-size: 14px; letter-spacing: -0.04em; text-transform: uppercase; color: #000;
}
.menu-toggle__icon { position: relative; width: 17px; height: 10px; }
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
  transition: transform .3s, top .3s;
}
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon::after { top: 8px; }

/* Header while the menu is open */
body.menu-open .site-header { background: transparent; box-shadow: none; }
body.menu-open .brand__dark { display: none; }
body.menu-open .brand__light { display: block; }
body.menu-open .menu-toggle { color: #fff; }
body.menu-open .menu-toggle__icon::before { top: 4px; transform: rotate(45deg); }
body.menu-open .menu-toggle__icon::after { top: 4px; transform: rotate(-45deg); }

/* ---------- Full-screen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 20px) 0 40px;
  background: var(--menu); color: #fff;
  overflow-y: auto;
  opacity: 0; transition: opacity .3s;
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu__inner { display: grid; grid-template-columns: 1fr 1fr; }
.menu__nav { display: flex; align-items: center; padding-right: 60px; }
.menu__nav li + li { margin-top: 18px; }
.menu__nav a {
  font-size: 22px; font-weight: 500; line-height: 1.3; text-transform: uppercase; text-decoration: none;
  color: var(--menu-link); transition: color .2s;
}
.menu__nav a:hover, .menu__nav a:focus-visible { color: #fff; }
.menu__nav a[aria-current="page"] { color: #fff; }
.menu__contact { padding: 0 0 0 90px; border-left: 1px solid var(--menu-line); }
.menu__heading { font-size: 28px; font-weight: 500; line-height: 1.25; margin-bottom: 28px; }
.menu__phone { display: block; margin-top: 60px; font-size: 24px; font-weight: 700; text-decoration: none; }
.menu__email { display: block; margin-top: 12px; text-decoration: none; }
.menu__email:hover, .menu__phone:hover { color: var(--yellow); }
.menu .social { margin-top: 28px; }

.social { display: inline-flex; color: inherit; }
.social:hover { color: var(--yellow); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(700px, 100vh);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 20px) 0 0;
  background: url("../img/hero-bg.webp") 25% 50% / cover no-repeat;
  overflow: hidden;
}
.hero__text { max-width: 484px; margin-left: 5px; }
.hero__title {
  font-size: 65px; line-height: 1; font-weight: 500; letter-spacing: -0.01em;
  color: var(--navy); margin-bottom: 36px;
}
.hero__title .accent { display: block; }
.hero__text p { color: var(--text-muted); }
.hero__text p + p { margin-top: 16px; }
.hero__text strong { font-weight: 700; }
.hero__diagram {
  position: absolute; right: 1.5%; top: 50%;
  width: 48.5%; max-width: 980px;
  transform: translateY(-32%);
  animation: slide-in-right 1.2s ease-out both;
}
@keyframes slide-in-right {
  from { opacity: 0; transform: translate(60px, -32%); }
  to { opacity: 1; transform: translate(0, -32%); }
}

/* ---------- Whitepaper band ---------- */
.whitepaper { background: var(--cream); }
.whitepaper__inner {
  display: grid; grid-template-columns: 228px minmax(0, 1fr) auto; align-items: center; gap: 80px;
  min-height: 248px; padding-block: 30px;
}
.whitepaper__title { font-size: 36px; line-height: 44px; font-weight: 500; max-width: 400px; letter-spacing: -0.01em; }
.whitepaper__actions { display: flex; gap: 15px; }

/* ---------- Simon ---------- */
.about { padding-top: 120px; }
.about__inner { display: grid; grid-template-columns: 1fr 1fr; }
.about__text { background: var(--navy-dark); color: #fff; padding: 96px; }
.about__title { font-size: 42px; line-height: 1.2; font-weight: 500; color: var(--yellow); margin-bottom: 36px; letter-spacing: -0.01em; }
.about__text p { margin-bottom: 15px; }
.about__text .btn { margin-top: 30px; }
.about__image { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* ---------- Program and course cards ---------- */
.cards-section { padding-top: 120px; }
.cards-section--courses { padding-bottom: 120px; }
.cards-section .section-title { margin-bottom: 40px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* Four cards (Workshops & Courses): two rows of two, so each card keeps room for its description. */
.cards--four { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; overflow: hidden;
  height: 435px;
  background: var(--navy);
  color: #fff;
  isolation: isolate;
}
.card__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10, 16, 24, .55) 0%, rgba(10, 16, 24, 0) 45%);
}
.card__title {
  position: absolute; inset: auto 0 0 0;
  padding: 50px 50px 60px;
  font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -0.01em;
  transition: opacity .3s;
}
.card__panel {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 30px;
  background: rgba(227, 175, 25, .9);
  color: var(--navy);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s, transform .4s;
}
.card__panel-title { font-size: 24px; line-height: 1.2; font-weight: 500; margin-bottom: 12px; letter-spacing: -0.01em; }
.card__panel p:not(.card__panel-title) { font-size: 14px; line-height: 24px; margin-bottom: 30px; }
.card:hover .card__panel,
.card:focus-within .card__panel,
.card.is-open .card__panel { opacity: 1; transform: none; }
.card:hover .card__title,
.card:focus-within .card__title,
.card.is-open .card__title { opacity: 0; }

/* ---------- Client logos ---------- */
.logos { background: var(--grey-band); padding: 80px 0; overflow: hidden; }
/* Gap between the Simon panel and the logo strip (the program cards used to sit here). */
.about + .logos { margin-top: 120px; }
.logos__viewport {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto; padding-inline: var(--gutter); overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.logos__track { display: flex; flex-wrap: wrap; justify-content: center; }
.logos__track.is-looping { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: logos-scroll 40s linear infinite; }
.logos__track li { flex: none; width: 205px; padding: 0 15px; }
.logos__track img { width: 175px; height: 100px; object-fit: contain; opacity: .3; filter: grayscale(1); }
.logos:hover .logos__track { animation-play-state: paused; }
@keyframes logos-scroll { to { transform: translateX(-50%); } }

/* ---------- Upcoming events (home page; was "Training dates") ---------- */
.training__inner { padding-block: 120px; }
.training__text { margin-top: 20px; max-width: 760px; font-size: 18px; line-height: 1.6; }
.training__text a { font-weight: 600; color: var(--navy); text-decoration-color: var(--yellow); text-underline-offset: 3px; }
.events { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 16px; }
.event {
  display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; align-items: center; column-gap: 36px;
  background: #fff; border: 1px solid #e6e6e6; border-radius: 16px; overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.event[hidden] { display: none; }
.event:hover { border-color: var(--yellow); box-shadow: 0 10px 28px rgba(32, 45, 61, .08); }
.event__date {
  align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  margin: 0; padding: 24px 12px; background: var(--navy); color: #fff; text-align: center;
}
.event__month { font-size: 30px; line-height: 1; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
.event__days { font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--yellow); }
.event__year { font-size: 13px; color: var(--footer-text); }
.event__body { padding-block: 24px; }
.event__meta { margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.event__title { font-size: 23px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; color: var(--navy); }
.event__title a { color: inherit; text-decoration: none; }
.event__title a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 4px; }
.event__info { margin-top: 6px; font-size: 15px; color: var(--text-muted); }
.event__action { margin: 0; padding-right: 32px; }
.event__action .btn { min-width: 230px; }

/* ---------- Call to action ---------- */
.cta {
  background: var(--yellow) url("../img/yellow-texture.webp") center / cover no-repeat;
  text-align: center;
}
.cta__inner { padding-block: 96px; }
.cta__title { font-size: 42px; line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 12px; }
.cta p { margin-bottom: 45px; }
.cta .page-hero__actions { justify-content: center; margin-top: 0; }

/* ---------- Inner pages (About, programs, courses, policies, page not found) ---------- */
.page-hero { background: var(--cream); padding: calc(var(--header-h) + 50px) 0 70px; }
.page-hero__kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.page-hero__title { font-size: 56px; line-height: 1.05; font-weight: 500; letter-spacing: -0.01em; color: var(--navy); max-width: 900px; }
.page-hero__lead { margin-top: 24px; max-width: 720px; font-size: 18px; line-height: 1.6; color: var(--text-muted); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 36px; }

.page-body { padding-block: 80px 100px; }
.prose { max-width: 820px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 56px; font-size: 32px; line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; color: var(--navy); }
.prose h3 { margin-top: 36px; font-size: 22px; line-height: 1.3; font-weight: 600; color: var(--navy); }
.prose h4 { margin-top: 28px; font-size: 18px; line-height: 1.35; font-weight: 600; color: var(--navy); }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 12px; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--yellow); }
.prose a { color: var(--navy); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: var(--yellow); }
.prose a.btn { text-decoration: none; }
.prose img { margin-block: 32px; }
.prose .btn { margin-top: 24px; }

.link-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px 40px; margin-top: 20px; }
.link-list a { display: block; padding: 14px 0; border-bottom: 1px solid #e4e4e4; font-weight: 500; text-decoration: none; color: var(--navy); }
.link-list a:hover { color: var(--yellow); }

/* ---------- Inner page sections (program, workshop and library pages) ---------- */
.section { padding-block: 96px; }
.section--cream { background: var(--cream); }
.section--grey { background: var(--grey-band); }
.section--navy { background: var(--navy-dark); color: #fff; }
.section--navy .section-title { color: #fff; }
.section-head { max-width: 780px; margin: 0 auto 50px; text-align: center; }
.section-head p { margin-top: 16px; color: var(--text-muted); }
.section--navy .section-head p { color: var(--footer-text); }
.section-foot { margin-top: 50px; text-align: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 96px; }
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; height: auto; }
.split__media--narrow img { max-width: 420px; margin-inline: auto; }
.split__media--blend img { mix-blend-mode: multiply; }
.split__kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.split__title { font-size: 36px; line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; color: var(--navy); margin-bottom: 20px; }
.section--navy .split__title { color: #fff; }
.split__text p + p, .split__text p + ul, .split__text ul + p { margin-top: 14px; }
.split__text .btn { margin-top: 30px; }
.roles { color: var(--yellow); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.split__text p + .split__title { margin-top: 28px; }
.split__text .roles + .split__title { margin-top: 12px; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin-inline: auto; }
.tiles--1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.tile {
  display: flex; flex-direction: column;
  background: #fff; color: var(--text);
  border: 2px solid var(--yellow); border-radius: 16px; padding: 36px 32px;
}
.tile .tile__num { font-size: 44px; line-height: 1; font-weight: 500; color: var(--yellow); margin-bottom: 18px; }
.tile__title { font-size: 22px; line-height: 1.3; font-weight: 500; color: var(--navy); margin-bottom: 12px; }
.tile p { font-size: 15px; line-height: 1.65; color: var(--text-muted); }
.tile p + p { margin-top: 10px; }
.tile .btn { margin-top: auto; align-self: flex-start; }
.tile p:last-of-type { margin-bottom: 26px; }
.tile--agenda { align-items: center; justify-content: center; text-align: center; gap: 18px; }
.tile--agenda .tile__title { font-size: 26px; margin: 0; }
.tile__image { margin: -36px -32px 28px; border-radius: 14px 14px 0 0; width: calc(100% + 64px); max-width: none; aspect-ratio: 16 / 9; object-fit: cover; }

/* Programs & Workshops page: one tile per program or workshop */
.tiles--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.offers { scroll-margin-top: 40px; }
.offer__meta { font-size: 13px !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }

/* Speaking & Conferences page: one .talk card per event (pages/speaking.html) */
#upcoming, #past, #invite { scroll-margin-top: 40px; }
.past { max-width: 1000px; margin: 0 auto; }
.past__year + .past__year { margin-top: 56px; }
.past__label { display: flex; align-items: center; gap: 24px; margin-bottom: 22px; font-size: 40px; line-height: 1; font-weight: 500; letter-spacing: -0.02em; color: var(--navy); }
.past__label::after { content: ""; flex: 1; height: 3px; border-radius: 2px; background: var(--yellow); }
.past__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.past__item { padding: 24px 26px; background: #fff; border: 1px solid #e8e1cc; border-left: 4px solid var(--yellow); border-radius: 0; }
.past__name { margin: 0; font-size: 19px; line-height: 1.35; font-weight: 500; color: var(--navy); }
.past__where { margin-top: 6px; font-size: 15px; color: var(--text-muted); }
.past__session { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--text); }
.past__tag { display: inline-block; padding: 1px 10px; border: 1px solid var(--yellow); border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); background: #fff; }
.talks { list-style: none; margin: 0 auto; padding: 0; max-width: 1000px; }
.talks > li + li { margin-top: 24px; }
.talk { display: grid; grid-template-columns: 210px minmax(0, 1fr); background: #fff; border: 2px solid var(--yellow); border-radius: 16px; overflow: hidden; }
.talk__date { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 32px 20px; background: var(--navy); color: #fff; text-align: center; }
.talk__month { font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.talk__days { font-size: 46px; line-height: 1.05; font-weight: 500; letter-spacing: -0.02em; }
.talk__year { font-size: 18px; color: var(--footer-text); }
.talk__body { padding: 36px 40px; }
.talk__meta { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.talk__title { font-size: 30px; line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; color: var(--navy); }
.talk__facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; margin: 22px 0 0; padding: 20px 0; border-block: 1px solid #ececec; font-size: 15px; }
.talk__facts dt { font-weight: 600; color: var(--navy); }
.talk__facts dd { margin: 0; color: var(--text-muted); }
.talk__about { margin-top: 20px; font-size: 15px; line-height: 1.65; color: var(--text-muted); }
.talk__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 767px) {
  .talk { grid-template-columns: 1fr; }
  .talk__date { flex-direction: row; gap: 10px; padding: 18px 24px; }
  .talk__days { font-size: 26px; }
  .talk__year { font-size: 26px; color: #fff; }
  .talk__body { padding: 28px 24px 32px; }
  .talk__title { font-size: 26px; }
  .talk__facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .talk__facts dd + dt { margin-top: 10px; }
  .talk__actions .btn { width: 100%; }
  .past__year + .past__year { margin-top: 40px; }
  .past__label { font-size: 32px; gap: 16px; }
  .past__list { grid-template-columns: minmax(0, 1fr); }
  .past__item { padding: 20px; }
}

/* Planning & Scheduling Bootcamp: number icons, 2027 dates, booking form, FAQ (form script: assets/js/ps-booking.js) */
.tile .tile__icon { width: 70px; height: auto; margin-bottom: 18px; }
#dates, #book, #terms { scroll-margin-top: 40px; }
.ps-dates { list-style: none; margin: 0; padding: 0; }
.ps-date .ps-date__when { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.ps-price { margin-top: 36px; text-align: center; }
.ps-price__amt { font-size: 44px; line-height: 1.1; font-weight: 500; color: var(--navy); }
.ps-price__amt small { font-size: 18px; color: var(--text-muted); }
.ps-price__inc { margin-top: 8px; color: var(--text-muted); }
.section-head--left { margin: 0 0 36px; text-align: left; }

.ps-book { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 60px; align-items: start; }
.ps-form fieldset { margin: 0 0 34px; padding: 0; border: 0; min-width: 0; }
.ps-form legend { margin-bottom: 16px; font-size: 20px; font-weight: 500; color: var(--navy); }
.ps-form .form__field label { color: var(--navy); }
.ps-form .form__field input, .ps-form .form__field textarea, .ps-form select {
  border: 1px solid #cfcfcf; background: #fff;
}
.ps-form select {
  width: 100%; height: 48px; padding: 0 22px; border-radius: 30px;
  font: inherit; font-size: 15px; color: var(--navy);
}
.ps-form select:focus { outline: none; border-color: var(--navy); }
.ps-form .invalid, .ps-form .form__field .invalid { border-color: #c02b0a; }
.ps-form__note { margin-top: 16px; font-size: 14px; color: var(--text-muted); }
.ps-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ps-choice { position: relative; display: block; cursor: pointer; }
.ps-choice input { position: absolute; opacity: 0; }
.ps-choice span { display: block; height: 100%; padding: 16px 20px; border: 2px solid #dcdcdc; border-radius: 14px; font-size: 14px; color: var(--text-muted); }
.ps-choice b { display: block; font-size: 16px; font-weight: 600; color: var(--navy); }
.ps-choice input:checked + span { border-color: var(--yellow); background: var(--cream); }
.ps-choice input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
#ps-invoice { margin-top: 22px; }
#ps-invoice .form__row + .form__field { margin-top: 22px; }
.ps-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; font-size: 15px; cursor: pointer; }
.ps-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--navy); flex: none; }
.ps-check.invalid span { color: #c02b0a; }
.ps-form .form__error { margin: 0 0 16px; }
.ps-form__submit { width: 100%; }
.ps-form__submit[disabled] { opacity: .6; cursor: wait; }
.ps-form__fine { margin-top: 12px; font-size: 14px; color: var(--text-muted); text-align: center; }

.ps-summary { position: sticky; top: calc(var(--header-h) + 20px); padding: 30px; border: 2px solid var(--yellow); border-radius: 16px; background: #fff; }
.ps-summary__head { margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.ps-summary dl { margin: 0; }
.ps-summary dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #ececec; font-size: 15px; }
.ps-summary dd { margin: 0; text-align: right; font-weight: 500; color: var(--navy); }
.ps-summary .ps-summary__total { border-bottom: 0; font-size: 18px; font-weight: 600; color: var(--navy); }
.ps-summary__note { margin-top: 14px; font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.ps-summary__contact { margin-top: 22px; padding-top: 20px; border-top: 1px solid #ececec; font-size: 14px; line-height: 1.6; }
.ps-summary__contact p + p { margin-top: 6px; }

.ps-faq { max-width: 820px; }
.ps-faq details { border-bottom: 1px solid #e2dccb; }
.ps-faq summary { position: relative; padding: 20px 40px 20px 0; font-size: 18px; font-weight: 500; color: var(--navy); cursor: pointer; list-style: none; }
.ps-faq summary::-webkit-details-marker { display: none; }
.ps-faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 26px; line-height: 1; color: var(--yellow); }
.ps-faq details[open] summary::after { content: "\2013"; }
.ps-faq details p { padding: 0 0 22px; color: var(--text-muted); line-height: 1.65; }

.quote { margin: 0; background: var(--cream); padding: 30px; border-left: 4px solid var(--yellow); font-size: 17px; line-height: 1.6; }
.quote + .quote { margin-top: 16px; }
.split__text blockquote + p { margin-top: 24px; }
.pullquote { margin: 0; font-size: 26px; line-height: 1.4; font-weight: 500; color: var(--navy); }
.pullquote cite { display: block; margin-top: 14px; font-size: 16px; font-style: italic; font-weight: 400; color: var(--text-muted); }

.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px 20px; align-items: center; }
.logo-grid img { width: 100%; max-width: 184px; margin-inline: auto; filter: grayscale(1); opacity: .55; }

.name-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.name-list li { padding: 8px 18px; border: 1px solid #dcdcdc; border-radius: 30px; background: #fff; font-weight: 500; color: var(--navy); }

.ticks li { position: relative; padding-left: 28px; }
.ticks li + li { margin-top: 10px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow); transform: rotate(-45deg); }

.schedule { width: 100%; border-collapse: collapse; }
.schedule th, .schedule td { padding: 14px 16px 14px 0; border-bottom: 1px solid #e4e4e4; text-align: left; vertical-align: top; }
.schedule th { font-weight: 600; color: var(--navy); white-space: nowrap; }
.schedule td:last-child { color: var(--text-muted); white-space: nowrap; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.split__text .steps { margin-top: 32px; }
.steps--from-4 { counter-reset: step 3; }
.steps--from-7 { counter-reset: step 6; }
.steps > li { position: relative; padding-left: 64px; }
.steps > li + li { margin-top: 28px; }
.steps > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--yellow); color: var(--navy); font-weight: 600;
}
.steps h3 { font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.steps p + p { margin-top: 10px; }
.result { margin-top: 40px; padding: 28px 32px; background: var(--cream); border-left: 4px solid var(--yellow); font-weight: 500; color: var(--navy); }
.result p + p { margin-top: 10px; }

.diagram { max-width: 520px; margin: 0 auto 50px; }

.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video { display: flex; flex-direction: column; background: #fff; border: 1px solid #e4e4e4; border-radius: 16px; padding: 30px; }
.video__date { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.video__title { margin-top: 10px; font-size: 20px; line-height: 1.35; font-weight: 500; color: var(--navy); }
.video .btn { margin-top: 26px; align-self: flex-start; }

@media (max-width: 991px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split__media { order: 0; }
  .tiles:not(.tiles--1), .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
  .ps-book { grid-template-columns: 1fr; gap: 40px; }
  .ps-summary { position: static; }
}
@media (max-width: 767px) {
  .section { padding-block: 64px; }
  .section-head { margin-bottom: 36px; }
  .split + .split { margin-top: 64px; }
  .split__title { font-size: 30px; }
  .tiles:not(.tiles--1), .videos { grid-template-columns: minmax(0, 1fr); }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .tile .btn, .video .btn, .split__text .btn, .section-foot .btn { width: 100%; }
  .pullquote { font-size: 22px; }
  .schedule th { white-space: normal; }
  .ps-choices { grid-template-columns: 1fr; }
  .ps-price__amt { font-size: 36px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #fff; padding: 60px 0 38px; }
.site-footer__top {
  display: grid; grid-template-columns: 1fr 256px 256px auto; gap: 40px 0;
  padding-bottom: 50px; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.site-footer__logo { align-self: start; }
.site-footer__logo img { width: 220px; }
.site-footer__heading { font-size: 20px; line-height: 1.2; font-weight: 500; margin-bottom: 30px; }
.site-footer__col li + li { margin-top: 11px; }
.site-footer__col ul a {
  font-size: 14px; line-height: 22px; text-transform: uppercase; text-decoration: none; color: var(--footer-text);
}
.site-footer__col ul a:hover { color: var(--yellow); }
.site-footer__phone { display: block; font-size: 24px; font-weight: 700; line-height: 1.2; text-decoration: none; }
.site-footer__email { display: block; margin: 10px 0 8px; color: var(--footer-text); text-decoration: none; }
.site-footer__phone:hover, .site-footer__email:hover { color: var(--yellow); }
.site-footer__bottom {
  display: flex; justify-content: space-between; gap: 20px; padding-top: 28px;
  font-size: 14px; line-height: 22px; color: var(--footer-text);
}
.site-footer__bottom a { text-decoration: none; }
.site-footer__bottom a:hover { color: var(--yellow); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--navy); color: #fff;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s, background-color .2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--yellow); color: var(--navy); }

/* ---------- Popups: whitepaper download (home page) and enquiry (every page) ---------- */
.dialog {
  width: min(650px, calc(100% - 40px));
  max-height: calc(100% - 40px);
  padding: 0; border: 0; overflow: visible;
  background: var(--yellow) url("../img/form-texture.webp") center / cover no-repeat;
  color: var(--navy);
}
.dialog::backdrop { background: rgba(0, 0, 0, .55); }
.dialog__body { padding: 60px; text-align: center; max-height: calc(100vh - 40px); overflow-y: auto; }
.dialog__title { font-size: 36px; line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 14px; }
.dialog__intro { margin-bottom: 40px; }
.dialog__close {
  position: absolute; top: -8px; right: -44px;
  padding: 8px; border: 0; background: none; color: #fff; cursor: pointer;
}
.form { text-align: left; }
.form__field + .form__field { margin-top: 26px; }
.form__field label { display: block; margin: 0 0 6px 4px; font-size: 13px; line-height: 18px; text-transform: uppercase; }
.form__required { color: #c02b0a; }
.form__field input {
  width: 100%; height: 48px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 30px; background: #fff;
  font: inherit; font-size: 15px; color: var(--navy);
}
.form__field input:focus { outline: none; border-color: var(--navy); }
.form__trap { position: absolute; left: -9999px; }
.form__error { margin-top: 20px; color: #7a1500; font-size: 14px; }
.form__submit { display: flex; margin: 46px auto 0; }
.form__submit[disabled] { opacity: .6; cursor: wait; }

/* Enquiry popup */
.dialog--enquiry .dialog__body { padding: 50px 60px; }
.dialog--enquiry .dialog__intro { margin-bottom: 28px; }
.dialog__topic {
  display: inline-block; margin: -12px 0 28px; padding: 6px 16px; border-radius: 30px;
  background: rgba(255, 255, 255, .65); font-size: 14px; font-weight: 600;
}
.dialog__topic[hidden] { display: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__row + .form__row, .form__row + .form__field, .form__field + .form__row { margin-top: 22px; }
.form__row .form__field + .form__field { margin-top: 0; }
.form__field textarea {
  display: block; width: 100%; min-height: 110px; padding: 14px 26px; resize: vertical;
  border: 1px solid transparent; border-radius: 24px; background: #fff;
  font: inherit; font-size: 15px; color: var(--navy);
}
.form__field textarea:focus { outline: none; border-color: var(--navy); }
.dialog--enquiry .form__submit { margin-top: 30px; }
.form__alt { margin-top: 16px; text-align: center; font-size: 14px; }
.form__alt a { font-weight: 600; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .hero__title { font-size: 56px; }
  .about__text { padding: 64px 48px; }
  .whitepaper__inner { grid-template-columns: 180px minmax(0, 1fr); gap: 30px 50px; }
  .whitepaper__actions { grid-column: 2; }
  .site-footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer__logo { grid-column: 1 / -1; }
}

@media (max-width: 991px) {
  :root { --header-h: 100px; }
  .event { grid-template-columns: 128px minmax(0, 1fr); }
  .event__date { grid-row: span 2; }
  .event__body { padding: 24px 24px 0 0; }
  .event__action { padding: 16px 24px 24px 0; }
  .hero { display: block; min-height: 0; padding-bottom: 60px; }
  .hero__text { max-width: 560px; margin-left: 0; }
  .hero__diagram {
    position: static; width: 100%; max-width: 640px; margin: 50px auto 0;
    transform: none; animation-name: fade-in;
  }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
  .about__inner { grid-template-columns: 1fr; }
  .about__image { order: -1; height: auto; aspect-ratio: 3 / 2; }
  .cards { grid-template-columns: 1fr 1fr; }
  .menu__inner { grid-template-columns: 1fr; }
  .menu__nav { padding: 0 0 40px; }
  .menu__contact { padding: 40px 0 0; border-left: 0; border-top: 1px solid var(--menu-line); }
  .menu__phone { margin-top: 40px; }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
  .cta__title { font-size: 38px; }
  .hero__title { font-size: 46px; margin-bottom: 28px; }
  .page-hero { padding: calc(var(--header-h) + 30px) 0 50px; }
  .page-hero__title { font-size: 40px; }
  .page-hero__actions .btn { width: 100%; }
  .page-body { padding-block: 56px 72px; }
  .prose h2 { font-size: 28px; margin-top: 44px; }
  .brand img { width: 175px; }
  .site-header.is-scrolled .brand img { width: 130px; }

  .whitepaper__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-block: 80px; gap: 24px; }
  .whitepaper__title { font-size: 34px; max-width: none; }
  .whitepaper__actions { grid-column: auto; flex-direction: column; width: 100%; }
  .whitepaper__actions .btn { width: 100%; }

  .about { padding-top: 80px; }
  .about + .logos { margin-top: 80px; }
  .about__text { padding: 40px 20px; }
  .about__text .btn { width: 100%; }

  .cards-section { padding-top: 80px; }
  .cards-section--courses { padding-bottom: 80px; }
  .cards { grid-template-columns: 1fr; }
  .card__title { padding: 35px; }

  .logos { padding: 40px 0; }
  .logos__track li { width: 190px; }
  .logos__track img { width: 160px; }

  .training__inner { padding-block: 80px; }
  .events { margin-top: 36px; }
  .event { grid-template-columns: minmax(0, 1fr); }
  .event__date { grid-row: auto; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 14px 20px; }
  .event__month { font-size: 22px; }
  .event__days { font-size: 15px; }
  .event__year { font-size: 15px; }
  .event__body { padding: 20px 20px 0; }
  .event__title { font-size: 21px; }
  .event__action { padding: 18px 20px 22px; }
  .event__action .btn { width: 100%; min-width: 0; }

  .cta__inner { padding-block: 60px; }
  .cta .btn { width: 100%; }

  .site-footer__top { grid-template-columns: 1fr; gap: 30px; }
  .site-footer__bottom { flex-direction: column-reverse; align-items: center; text-align: center; gap: 4px; }

  .dialog__body { padding: 56px 24px 36px; }
  .dialog__title { font-size: 28px; }
  .dialog__close { top: 6px; right: 6px; color: var(--navy); }
  .dialog--enquiry .dialog__body { padding: 56px 24px 32px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .form__row .form__field + .form__field { margin-top: 22px; }
}

/* ---------- Less motion for people who ask for it ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .logos__track.is-looping { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .logos__track li[aria-hidden="true"] { display: none; }
}
