@font-face{font-family:'Montserrat';font-style:normal;font-weight:400 800;font-display:swap;src:url(assets/fonts/montserrat-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}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400 800;font-display:swap;src:url(assets/fonts/montserrat-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}
/* My Fire Safety: clean, professional. One main colour (flame orange), one neutral (charcoal). */
:root {
  --orange: #f05a2a;
  --orange-dark: #c2410c;
  --orange-btn: #c8461b;       /* orange behind white text, dark enough to read (4.8 to 1) */
  --orange-btn-hover: #a63a12;
  --orange-tint: #fdeee8;
  --charcoal: #58595b;
  --ink: #2b2c2e;
  --grey: #bcbec0;
  --line: #e4e5e7;
  --bg-soft: #f6f6f7;
  --white: #fff;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1160px;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 56px 0; }
.soft { background: var(--bg-soft); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: 12px; display: block; }
.lead { font-size: 1.15rem; color: var(--charcoal); max-width: 720px; }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 700; font-size: 1rem; padding: 14px 26px; border-radius: 8px; border: 2px solid var(--orange-btn); background: var(--orange-btn); color: #fff; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--orange-btn-hover); border-color: var(--orange-btn-hover); }
.btn-outline { background: transparent; color: var(--orange-dark); }
.btn-outline:hover { background: var(--orange-btn); color: #fff; }
.btn-full { width: 100%; }
.link-arrow { font-weight: 700; color: var(--orange-dark); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow::after { content: ' \2192'; }

/* Header */
.topbar { background: var(--ink); color: #fff; font-size: .88rem; }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 24px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar a.portal-link { color: #ff8a5c; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 6px; padding-bottom: 6px; }
.logo img { height: 68px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--charcoal); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--orange-dark); }
.main-nav .btn { color: #fff; padding: 10px 18px; font-size: .92rem; }
.main-nav .btn:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

/* Hero */
.hero { padding: 56px 0 48px; background: linear-gradient(180deg, var(--orange-tint) 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--orange); }
.hero .lead { margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius); padding: 28px; transform: perspective(1400px) rotateY(-9deg) rotateX(4deg) rotateZ(.4deg); transform-style: preserve-3d; transition: transform .5s ease, box-shadow .5s ease; box-shadow: -18px 28px 50px -22px rgba(0,0,0,.35), -6px 10px 0 -2px #fff, -6px 10px 0 -1px var(--line), -12px 20px 0 -4px #fff, -12px 20px 0 -3px var(--line); }
.hero-card:hover { transform: perspective(1400px) rotateY(0) rotateX(0) rotateZ(0); box-shadow: 0 18px 40px -20px rgba(0,0,0,.3); }
.hero-card h2 { font-size: 1.1rem; margin-bottom: 14px; transform: translateZ(30px); }
.hero-card .ticks li { transform: translateZ(18px); background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; padding: 10px 12px 10px 38px; box-shadow: -4px 6px 12px -6px rgba(0,0,0,.18); }
.hero-card .ticks li:last-child { border-bottom: 1px solid var(--line); margin-bottom: 0; }
.hero-card .ticks li::before { left: 12px; top: 14px; }
.hero-card .ticks li::after { left: 17px; top: 18px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--line); font-size: .97rem; }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 14px; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); }
.ticks li::after { content: ''; position: absolute; left: 5px; top: 18px; width: 5px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(.9); }

/* Trust strip */
.trust { padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust-row { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: center; }
.trust-label { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--charcoal); }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 110px; }
.badge strong { font-size: 1.2rem; color: var(--ink); font-weight: 800; }
.badge span { font-size: .78rem; color: var(--charcoal); }

/* Grids and cards */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--charcoal); flex: 1; }
.card .link-arrow { margin-top: 4px; }
.card .role { flex: none; font-weight: 700; margin-bottom: 10px; }
.person-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.person-head img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--line); }
.person-head h3 { margin-bottom: 2px; }
.person-head .role { margin-bottom: 0; }
.card.accent { border-top: 4px solid var(--orange); }
.card-featured { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; background: var(--orange-tint); border: 2px solid var(--orange); border-radius: var(--radius); padding: 32px; margin-bottom: 44px; }
.card-featured h2, .card-featured h3 { font-size: 1.4rem; margin-bottom: 8px; }
.card-featured p { color: var(--charcoal); margin-bottom: 0; max-width: 560px; }
.card-featured .btn { flex-shrink: 0; }
.stat { text-align: left; }
.stat .num { font-size: 2.6rem; font-weight: 800; color: var(--orange); line-height: 1; display: block; margin-bottom: 8px; }
.stat p { color: var(--charcoal); margin: 0; font-size: .95rem; }
.source { font-size: .82rem; color: var(--charcoal); margin-top: 24px; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding: 28px 24px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--orange-btn); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step p { color: var(--charcoal); margin: 0; font-size: .95rem; }

/* Split / callouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.callout { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 40px; }
.callout h2, .callout h3 { color: #fff; }
.callout p { color: #dcdde0; }
.quote-line { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 700; line-height: 1.35; }
.quote-line span { color: var(--orange); }
.band { background: var(--orange-btn); color: #fff; padding: 56px 0; }
.band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band h2 { color: #fff; margin: 0 0 4px; }
.band p { margin: 0; color: #fff; }
.band .btn { background: #fff; color: var(--orange-dark); border-color: #fff; }
.band .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Clients */
.clients { display: flex; flex-wrap: wrap; gap: 14px 36px; justify-content: center; align-items: center; margin: 0 0 40px; }
.clients span { font-weight: 700; color: var(--charcoal); font-size: 1.05rem; }

/* Placeholder marker (remove before launch) */
.placeholder { position: relative; }
.placeholder::after { content: 'Sample content: replace with real'; position: absolute; top: 10px; right: 10px; font-size: .68rem; font-weight: 700; background: #fff3cd; color: #7a5b00; padding: 2px 8px; border-radius: 20px; }
.quote { font-size: 1.02rem; color: var(--ink); margin-bottom: 16px !important; }
.who { font-size: .88rem; font-weight: 700; color: var(--charcoal); }
.case dl { margin: 0; }
.case dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--orange-dark); margin-top: 12px; }
.case dd { margin: 2px 0 0; color: var(--charcoal); font-size: .95rem; }

/* FAQ */
section[id] { scroll-margin-top: 81px; }
details { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; background: #fff; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--orange); }
details[open] summary::after { content: '\2212'; }
details p { margin: 12px 0 0; color: var(--charcoal); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-details a { font-weight: 800; font-size: 1.6rem; text-decoration: none; color: var(--orange-dark); }
.contact-details p { margin-bottom: 8px; }
form.quote-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.quote-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 16px; }
.quote-form input, .quote-form select, .quote-form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; border: 1px solid var(--grey); border-radius: 8px; background: #fff; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: 3px solid var(--orange-tint); border-color: var(--orange); }
.quote-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; margin: 0; }
.form-note { font-size: .88rem; margin: 12px 0 0; min-height: 1.3em; color: var(--charcoal); }

/* Inner pages */
.page-hero { padding: 44px 0 36px; background: linear-gradient(180deg, var(--orange-tint), #fff); border-bottom: 1px solid var(--line); }
.crumbs { font-size: .85rem; color: var(--charcoal); margin-bottom: 14px; }
.crumbs a { text-decoration: none; color: var(--orange-dark); font-weight: 600; }
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.table-wrap { overflow-x: auto; }
.table-cta { margin-top: 24px; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
th { background: var(--bg-soft); font-weight: 700; }

/* Footer */
.site-footer { background: var(--ink); color: #cfd0d3; padding: 64px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.site-footer img { height: 56px; width: auto; margin-bottom: 16px; }
.site-footer .foot-heading { font-weight: 700; line-height: 1.2; color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { display: block; text-decoration: none; padding: 4px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #45464a; padding: 20px 0; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Responsive */
@media (max-width: 960px) {
  .logo img { height: 56px; }
  section { padding: 40px 0; }
  .hero-grid, .split, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px rgba(0,0,0,.06); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: 12px; text-align: center; border-bottom: 2px solid var(--orange); }
  .logo img { height: 54px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .wrap { justify-content: center; }
  .callout { padding: 28px; }
  .placeholder::after { position: static; display: inline-block; margin-bottom: 10px; align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---- Additions: dropdown, logo rows, courses, quiz, misc ---- */
.has-sub { position: relative; }
.has-sub > a::after { content: ' \25BE'; font-size: .8em; }
.sub { display: none; position: absolute; top: 100%; left: -16px; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 30px rgba(0,0,0,.1); padding: 8px; z-index: 60; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub a { display: block; padding: 10px 14px; border-radius: 6px; }
.sub a:hover { background: var(--orange-tint); }
.trust-label { text-align: center; margin: 0 0 22px; }
.logo-row { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: center; }
.logo-row img { width: auto; max-width: 100%; object-fit: contain; }
.logo-row a { display: block; }
.trust-note { text-align: center; margin: 22px 0 0; font-weight: 700; color: var(--charcoal); font-size: .9rem; }
.clients { margin-bottom: 44px; }
.logo-row.clients { gap: 28px 22px; max-width: 720px; margin-left: auto; margin-right: auto; }
.tbl-logo { display: inline-block; width: auto; max-height: 56px; margin: 0 14px 0 0; vertical-align: middle; }
.note { background: #fff8e1; border-left: 4px solid #f0b400; padding: 10px 14px; border-radius: 6px; font-size: .9rem; }
.course { padding: 0; overflow: hidden; }
.course img { width: 100%; height: 190px; object-fit: cover; }
.course .card-body { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.course .card-body p { flex: 1; }
.quiz { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.quiz-progress { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 24px; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--orange); transition: width .3s; }
.quiz h2 { font-size: 1.3rem; }
.quiz-opts { display: grid; gap: 10px; margin-top: 16px; }
.quiz-opts button { font: inherit; text-align: left; padding: 14px 16px; border: 1px solid var(--grey); border-radius: 8px; background: #fff; cursor: pointer; }
.quiz-opts button:hover:not(:disabled) { border-color: var(--orange); background: var(--orange-tint); }
.quiz-opts button.correct { border-color: #1f9d55; background: #e8f7ee; }
.quiz-opts button.wrong { border-color: #c0392b; background: #fdecea; }
.quiz-score { font-size: 3.4rem; font-weight: 800; color: var(--orange); line-height: 1.1; }
@media (max-width: 820px) {
  .sub { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
  .has-sub > a::after { content: ''; }
  .sub a { padding: 10px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .logo-row { gap: 20px 28px; }
  .logo-row img { max-height: 64px; }
}
.post-meta { font-size: .9rem; color: var(--charcoal); margin: 0 0 6px; }
.post-image { display: block; max-width: 100%; height: auto; border-radius: var(--radius); margin-top: 26px; }
.prose ol { padding-left: 1.2em; }
.prose img { display: block; max-width: 100%; height: auto; border-radius: 8px; margin: 1.2em 0; }
.prose blockquote { margin: 1.2em 0; padding: .2em 1.2em; border-left: 4px solid var(--orange); color: var(--charcoal); }
.post-categories { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.post-categories a { padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--charcoal); background: #fff; }
.post-categories a:hover { border-color: var(--orange); color: var(--orange-dark); }
.post-categories a[aria-current="page"] { background: var(--orange-btn); border-color: var(--orange-btn); color: #fff; }
.post-card img { display: block; width: 100%; height: auto; border-radius: 8px; margin-bottom: 14px; }
.post-card h3 a { text-decoration: none; color: inherit; }
.post-card h3 a:hover { color: var(--orange-dark); }
.quote-form fieldset.more { border: 0; margin: 8px 0 0; padding: 0; min-width: 0; }
.quote-form fieldset.more legend { font-weight: 700; font-size: 1.05rem; padding: 0; margin: 0 0 4px; }
.quote-form fieldset.more .form-note { margin: 0 0 16px; min-height: 0; }
.quote-form [hidden] { display: none; }

/* Wide form: on first click into the form it slides over the text on the left and lays its fields out in two columns */
@media (min-width: 961px) {
  .contact-grid { transition: grid-template-columns .6s cubic-bezier(.4, 0, .2, 1), column-gap .6s cubic-bezier(.4, 0, .2, 1); }
  .contact-grid .contact-details { min-width: 0; overflow: hidden; transition: opacity .35s ease, transform .6s cubic-bezier(.4, 0, .2, 1); }
  .contact-grid.form-open { grid-template-columns: 0fr 1fr; column-gap: 0; }
  .contact-grid.form-open .contact-details { opacity: 0; transform: translateX(-40px); pointer-events: none; }
  .contact-grid.form-open form.quote-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; align-content: start; padding: 36px 40px; }
  .contact-grid.form-open .quote-form > * { grid-column: 1 / -1; }
  .contact-grid.form-open .quote-form > label:not(.hp):not(:nth-of-type(n+5)) { grid-column: auto; }
  .contact-grid.form-open .quote-form fieldset.more { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .contact-grid.form-open .quote-form fieldset.more > legend, .contact-grid.form-open .quote-form fieldset.more > .form-note, .contact-grid.form-open .quote-form fieldset.more > label:has(textarea) { grid-column: 1 / -1; }
  .contact-grid.form-open .quote-form fieldset.more > label[hidden] { display: none; }
  .quote-form .form-close { display: none; }
  .contact-grid.form-open .quote-form .form-close { display: inline-block; justify-self: start; background: none; border: 0; padding: 0; margin: 0 0 14px; font: inherit; font-weight: 600; font-size: .9rem; color: var(--orange); cursor: pointer; }
}

/* Five card grid: three on the first row, two wider on the second */
.g3.fill5 { grid-template-columns: repeat(6, 1fr); }
.g3.fill5 > * { grid-column: span 2; }
.g3.fill5 > :nth-child(n+4) { grid-column: span 3; }
@media (max-width: 960px) {
  .g3.fill5 { grid-template-columns: repeat(2, 1fr); }
  .g3.fill5 > *, .g3.fill5 > :nth-child(n+4) { grid-column: auto; }
  .g3.fill5 > :last-child { grid-column: span 2; }
}
@media (max-width: 620px) {
  .g3.fill5 { grid-template-columns: minmax(0, 1fr); }
  .g3.fill5 > :last-child { grid-column: auto; }
}
/* Call to action card that fills the last slot of a course grid */
.course-cta { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.course-cta p { flex: none; margin-bottom: 20px; }

/* Locations by region */
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.region h2, .region h3 { font-size: 1.1rem; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 2px solid var(--orange); }
.region ul { list-style: none; margin: 0; padding: 0; }
.region li { padding: 6px 0; color: var(--charcoal); }
@media (max-width: 960px) { .regions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .regions { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

@media (max-width: 960px) { .hero-card, .hero-card h2, .hero-card .ticks li { transform: none; } }

/* How it works steps: fanned across the row */
.steps .step { transition: transform .4s ease, box-shadow .4s ease; box-shadow: -8px 14px 24px -14px rgba(0,0,0,.3); }
.steps .step:nth-child(1) { transform: perspective(1000px) rotateY(14deg); }
.steps .step:nth-child(2) { transform: perspective(1000px) rotateY(5deg); }
.steps .step:nth-child(3) { transform: perspective(1000px) rotateY(-5deg); }
.steps .step:nth-child(4) { transform: perspective(1000px) rotateY(-14deg); }
.steps .step:hover { transform: perspective(1000px) rotateY(0) translateY(-6px); }
@media (max-width: 960px) { .steps .step, .steps .step:hover { transform: none; } }

/* Review cards: stars, large quote mark, initial badge, hover lift */
.card.review { position: relative; overflow: hidden; border-top: 4px solid var(--orange); padding: 30px 28px 26px; box-shadow: 0 14px 30px -20px rgba(0,0,0,.28); transition: transform .3s ease, box-shadow .3s ease; }
.card.review:hover { transform: translateY(-6px); box-shadow: 0 26px 44px -22px rgba(0,0,0,.35); }
.card.review::before { content: '\201C'; position: absolute; top: -6px; right: 18px; font-size: 7.5rem; line-height: 1; font-weight: 800; color: var(--orange-tint); pointer-events: none; }
.card.review > * { position: relative; }
.stars { color: var(--orange); font-size: 1.15rem; letter-spacing: 3px; line-height: 1; margin-bottom: 16px; }
.card.review .quote { font-size: 1rem; line-height: 1.65; margin-bottom: 22px !important; }
.card.review .who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.card.review .who .initial { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--orange-btn); color: #fff; display: grid; place-items: center; font-size: 1rem; font-weight: 700; }
.card.review .who .name { display: block; color: var(--ink); line-height: 1.3; }
.card.review .who .job { display: block; font-size: .8rem; font-weight: 500; color: var(--charcoal); line-height: 1.3; }
@media (prefers-reduced-motion: reduce) { .card.review { transition: none; } .card.review:hover { transform: none; } }

/* Stat cards: dark card with a progress ring that fills to the percentage */
.card.stat { flex-direction: row; align-items: center; gap: 22px; background: linear-gradient(145deg, #3d3e40, var(--ink)); border: 0; border-bottom: 4px solid var(--orange); padding: 28px 26px; box-shadow: 0 18px 34px -22px rgba(0,0,0,.55); transition: transform .3s ease, box-shadow .3s ease; }
.card.stat:hover { transform: translateY(-6px); box-shadow: 0 28px 44px -24px rgba(0,0,0,.6); }
.stat .ring { flex: none; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--orange) calc(var(--p) * 1%), rgba(255,255,255,.14) 0); position: relative; }
.stat .ring::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--ink); }
.stat .ring .num { position: relative; margin: 0; font-size: 1.6rem; color: #fff; }
.card.stat p { color: rgba(255,255,255,.88); font-size: .95rem; line-height: 1.55; flex: 1; }

/* Card treatments: each matched to what the content is */
.card.has-ico { position: relative; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.card.has-ico:hover { transform: translateY(-5px); box-shadow: 0 22px 38px -22px rgba(0,0,0,.35); border-color: var(--orange); }
.card.has-ico > :not(.ico) { position: relative; z-index: 1; }
/* Default: a large ghosted icon in the corner, no extra height */
.card .ico { position: absolute; right: -14px; bottom: -18px; width: 120px; height: 120px; color: var(--orange); opacity: .09; transition: opacity .3s ease, transform .4s ease; pointer-events: none; }
.card .ico svg { width: 100%; height: 100%; stroke-width: 1.2; }
.card.has-ico:hover .ico { opacity: .2; transform: rotate(-8deg) scale(1.08); }

/* Audience cards: compact row, icon beside the text */
.card.aud { display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; row-gap: 6px; align-items: center; padding: 18px 20px; background: linear-gradient(135deg, #fff 55%, var(--orange-tint)); }
.card.aud .ico { position: static; width: 26px; height: 26px; opacity: 1; transform: none; }
.card.aud .ico svg { stroke-width: 1.6; }
.card.aud h3 { margin: 0; font-size: 1rem; line-height: 1.25; }
.card.aud p { grid-column: 1 / -1; margin: 0; font-size: .92rem; }
.card.aud::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--orange); transform: scaleY(0); transform-origin: top; transition: transform .3s ease; }
.card.aud:hover::before { transform: scaleY(1); }
.card.aud:hover .ico { opacity: 1; transform: scale(1.12); }

/* Principles: dark cards with a ghosted icon, matching the stat cards */
.card.dark { background: linear-gradient(145deg, #3d3e40, var(--ink)); border: 0; border-bottom: 4px solid var(--orange); }
.card.dark h3 { color: #fff; }
.card.dark p { color: rgba(255,255,255,.85); }
.card.dark .ico { color: var(--orange); opacity: .35; }
.card.dark:hover .ico { opacity: .6; }

/* Layers of assurance: giant ghost numeral */
.card.layer .ico { display: none; }
.card.layer::before { content: attr(data-n); position: absolute; bottom: -26px; right: 14px; font-size: 7.5rem; line-height: 1; font-weight: 800; color: var(--orange); opacity: .1; transition: opacity .3s ease; pointer-events: none; }
.card.layer:hover::before { opacity: .22; }

/* Guides: document with a spine and folded corner */
.card.guide { border-left: 4px solid var(--orange); border-radius: 4px var(--radius) var(--radius) 4px; }
.card.guide .ico { display: none; }
.card.guide::after { content: ''; position: absolute; top: 0; right: 0; width: 36px; height: 36px; background: linear-gradient(225deg, #fff 50%, #f9c9b6 50%); border-bottom-left-radius: 6px; box-shadow: -2px 2px 4px -2px rgba(0,0,0,.2); }

@media (prefers-reduced-motion: reduce) { .card.has-ico, .card .ico, .card.aud::before { transition: none; } .card.has-ico:hover, .card.has-ico:hover .ico { transform: none; } }

/* Course and team cards: lift on hover, course photos zoom */
.course img { transition: transform .5s ease; }
.course { overflow: hidden; }
.course.has-ico:hover img { transform: scale(1.06); }
.person.has-ico:hover .person-head img { border-color: var(--orange); }
@media (prefers-reduced-motion: reduce) { .course img { transition: none; } .course.has-ico:hover img { transform: none; } }

/* About: wider story column so the text and callout end closer together */
.split.story { grid-template-columns: 1.55fr 1fr; }
@media (max-width: 960px) { .split.story { grid-template-columns: minmax(0, 1fr); } }
.prose > .eyebrow + h2 { margin-top: 0; }

/* Course pages: key facts strip */
section.facts-band { padding: 0; background: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.facts > div { padding: 22px 24px; border-left: 1px solid rgba(255,255,255,.14); }
.facts > div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.65); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 1.15rem; font-weight: 800; color: #fff; line-height: 1.3; }
.facts > div::before { content: ''; display: block; width: 28px; height: 3px; background: var(--orange); margin-bottom: 12px; }
@media (max-width: 960px) { .facts { grid-template-columns: repeat(2, 1fr); } .facts > div:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 520px) { .facts { grid-template-columns: minmax(0, 1fr); } .facts > div { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.14); } .facts > div:first-child { border-top: 0; } }
@media (max-width: 620px) { .card .ico { width: 88px; height: 88px; right: -10px; bottom: -14px; } }
.pdf-link { color: inherit; text-decoration: none; }
.pdf-link svg { width: 1.1em; height: 1.1em; margin-left: 8px; vertical-align: -.05em; color: var(--orange); }
.pdf-link:hover svg { transform: translateY(-1px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card:has(.pdf-link) { cursor: pointer; }
.card.has-ico > h3:has(.pdf-link) { position: static; z-index: auto; }
.pdf-link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.pdf-link:focus-visible { outline: none; }
.card:has(.pdf-link:focus-visible) { outline: 3px solid var(--orange-tint); outline-offset: 2px; }
.quiz-live { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.quiz-pips { display: flex; gap: 8px; }
.quiz-pips .pip { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .95rem; border: 2px solid var(--line); color: var(--charcoal); background: #fff; transition: background .25s, border-color .25s, color .25s, transform .25s; }
.quiz-pips .pip.ok { background: #1f9d55; border-color: #1f9d55; color: #fff; transform: scale(1.1); }
.quiz-pips .pip.no { background: #c0392b; border-color: #c0392b; color: #fff; transform: scale(1.1); }
.quiz-tally { font-size: 1.05rem; font-weight: 700; }
.quiz-tally b { color: var(--orange); font-size: 1.3rem; }
.quiz-count { margin: 0 0 6px; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-dark); }
.quiz-opts button { display: flex; align-items: center; gap: 12px; }
.quiz-opts button.correct::before, .quiz-opts button.wrong::before { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .95rem; }
.quiz-opts button.correct::before { content: "\2713"; background: #1f9d55; }
.quiz-opts button.wrong::before { content: "\2717"; background: #c0392b; }
.quiz-opts button:disabled:not(.correct):not(.wrong) { opacity: .55; cursor: default; }
.quiz-fb { margin-top: 18px; padding: 0; }
.quiz-fb.is-ok, .quiz-fb.is-no { padding: 14px 16px; border-radius: 8px; border-left: 5px solid; line-height: 1.5; }
.quiz-fb.is-ok { background: #e8f7ee; border-color: #1f9d55; }
.quiz-fb.is-no { background: #fdecea; border-color: #c0392b; }
.quiz-fb b { margin-right: 4px; }
.quiz-end { font-size: 1.05rem; max-width: 56ch; }
.quiz-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .quiz-fb.is-ok, .quiz-fb.is-no { animation: quizIn .25s ease; }
  @keyframes quizIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* Quiz card on the guidance page: playful, so it does not read as another guide */
.card.quiz-card { background: linear-gradient(145deg, var(--orange-btn), var(--orange-btn-hover)); border: 0; border-radius: 20px; color: #fff; }
.card.quiz-card h3, .card.quiz-card p { color: #fff; }
.card.quiz-card .ico { color: #fff; opacity: .22; width: 150px; height: 150px; right: -20px; bottom: -24px; }
.card.quiz-card:hover { border-color: transparent; }
.quiz-tag { display: inline-block; align-self: flex-start; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.22); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.btn-quiz { align-self: flex-start; display: inline-block; padding: 10px 20px; border-radius: 999px; background: #fff; color: var(--orange-dark); font-weight: 700; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.btn-quiz:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.2); }
.btn-quiz:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Guidance pages: readable text column plus a side panel (built by build.js, see guideLayout) */
.gl-grid { display: grid; grid-template-columns: minmax(0, 780px) 1fr; gap: 56px; align-items: start; }
.gl-side { position: sticky; top: 104px; display: grid; gap: 20px; }
.gl-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.gl-box h3 { font-size: 1rem; margin: 0 0 10px; }
.gl-box ul { list-style: none; margin: 0; padding: 0; }
.gl-box li { margin: 0 0 8px; }
.gl-box li a { color: var(--charcoal); text-decoration: none; font-weight: 600; font-size: .95rem; }
.gl-box li a:hover { color: var(--orange); }
.gl-box p { font-size: .95rem; }
.gl-cta { background: var(--orange-tint); border-color: transparent; }
.gl-cta .btn { display: block; text-align: center; }
.prose h2[id] { scroll-margin-top: 90px; }
@media (max-width: 960px) { .gl-grid { grid-template-columns: 1fr; gap: 32px; } .gl-side { position: static; } }

/* A team member whose profile is not ready yet: initials in place of a photo */
.avatar-soon { width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--orange-tint); color: var(--orange-dark); font-weight: 700; font-size: 1.35rem; letter-spacing: .04em; border: 2px dashed var(--orange); }
.card.person.soon { border-style: dashed; background: #fafafa; }
.card.person.soon > p { color: var(--charcoal); font-style: italic; }

/* Phones: tables marked class="stack" become a list, so no column is hidden off to the right */
@media (max-width: 700px) {
  .table-wrap:has(table.stack) { overflow: visible; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack { border: 0; background: transparent; }
  table.stack thead { display: none; }
  table.stack tr { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 12px; }
  table.stack td { border: 0; padding: 4px 0; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-dark); margin-top: 6px; }
}
/* Guidance pages: the contents list only helps next to the text, so phones and tablets leave it out */
@media (max-width: 960px) { .gl-side nav.gl-box { display: none; } }
/* Quiz: the options keep readable text once an answer is chosen */
.quiz-opts button:disabled { color: var(--ink); }
.quiz-opts button:disabled:not(.correct):not(.wrong) { color: var(--charcoal); }

/* Guide pages: let the text column shrink below the width of a wide table, so the table scrolls inside its own box */
.gl-grid > .prose { min-width: 0; }
@media (max-width: 960px) { .gl-grid { grid-template-columns: minmax(0, 1fr); } }

/* Document window: a PDF shown inside the page with our own Close button */
.doc-dialog { width: min(920px, 94vw); height: 92vh; max-height: 92vh; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.doc-dialog[open] { display: flex; flex-direction: column; }
.doc-dialog::backdrop { background: rgba(30, 30, 30, .6); }
.doc-bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid #e3e3e3; }
.doc-title { flex: 1; font-size: 1rem; }
.doc-newtab { font-size: .9rem; color: var(--charcoal); }
.doc-close { font: inherit; font-weight: 700; padding: 8px 18px; border-radius: 8px; border: 2px solid var(--orange-btn); background: var(--orange-btn); color: #fff; cursor: pointer; }
.doc-close:hover { background: #fff; color: var(--orange-btn); }
.doc-frame { flex: 1; width: 100%; border: 0; background: #f4f4f4; }

.work-logo { display: block; margin-top: 16px; }

/* A section that follows another plain section: the gap above it is the previous section's own padding */
section.follow { padding-top: 0; }

/* Quiz: keep the space the questions will fill, so the page does not jump when the script draws them */
#quizBody { min-height: 360px; }
.quiz-live { min-height: 40px; }
.quiz-opts .skel { padding: 14px 16px; border: 1px solid var(--grey); border-radius: 8px; background: #fff; }
