/* ============================================================
   Never Lose Anyone™ — Safety Leadership Masterclass
   Diligent Safety Training & Consultancy Ltd
   Design system: deep navy, paper light, amber accent.
   Type: Archivo (display + body), Newsreader (editorial italic).
   ============================================================ */

:root {
  /* Navy stack */
  --navy-900: #0a1119;
  --navy-800: #0f1b2d;
  --navy-700: #14233a;
  --navy-600: #1b2e49;
  --navy-500: #243a5c;

  /* Lines */
  --line: rgba(232, 234, 237, 0.10);
  --line-strong: rgba(232, 234, 237, 0.20);

  /* Light / ink */
  --paper: #f4f6f8;
  --ink-100: #e8eaed;
  --ink-300: #aab4c2;
  --ink-500: #75839a;

  /* Gold accent */
  --gold: #f0a500;
  --gold-600: #d99300;
  --gold-tint: rgba(240, 165, 0, 0.12);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  --r-sm: 4px;
  --r-md: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  background: var(--navy-800);
  color: var(--ink-100);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(72px, 10vw, 140px);
  position: relative;
}
.section--tight { padding-block: clamp(56px, 7vw, 96px); }

.bg-900 { background: var(--navy-900); }
.bg-800 { background: var(--navy-800); }
.bg-700 { background: var(--navy-700); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin: 0 0 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow--center { justify-content: center; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
  color: var(--paper);
  text-wrap: balance;
}

.display {
  font-weight: 900;
  font-size: clamp(3rem, 8.5vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }
.lede {
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink-300);
  font-weight: 400;
}
.muted { color: var(--ink-300); }
.faint { color: var(--ink-500); }
.gold { color: var(--gold); }
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.maxw-sm { max-width: 44ch; }
.maxw-md { max-width: 60ch; }
.maxw-lg { max-width: 72ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.005em;
  padding: 0.95em 1.6em;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn--gold { background: var(--gold); color: var(--navy-900); }
.btn--gold:hover { background: #ffc23d; transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--paper); background: rgba(255,255,255,0.04); }
.btn--dark { background: var(--navy-900); color: var(--paper); }
.btn--dark:hover { background: #000; transform: translateY(-2px); }
.btn--lg { padding: 1.1em 2em; font-size: 1.05rem; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-tint);
  padding-bottom: 2px;
  transition: border-color .18s ease, gap .18s ease;
}
.textlink:hover { border-color: var(--gold); gap: 0.75em; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 17, 25, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark {
  width: 40px; height: 40px;
  object-fit: contain;
  display: block;
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  color: var(--paper);
}
.brand__sub {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-300);
  transition: color .15s ease;
  position: relative;
}
.nav__links a:hover { color: var(--paper); }
.nav__links a.is-active { color: var(--paper); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px;
  height: 2px; background: var(--gold);
}
.nav__cta { display: flex; align-items: center; gap: 1rem; }
.nav__toggle {
  display: none;
  background: none; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  width: 42px; height: 42px;
  color: var(--paper);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__toggle svg { width: 22px; height: 22px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  border-top: 1px solid var(--line);
  padding-block: 64px 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 0.9fr 0.9fr;
  gap: 48px;
}
.footer__cols { display: flex; flex-direction: column; gap: 12px; }
.footer__cols h5 {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-500); margin: 0 0 6px;
}
.footer__cols a { color: var(--ink-300); font-size: 0.95rem; transition: color .15s ease; }
.footer__cols a:hover { color: var(--paper); }
.footer__contact { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.footer__contact a { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-300); font-size: 0.92rem; transition: color .15s ease; }
.footer__contact a:hover { color: var(--paper); }
.footer__contact svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--gold); }
.footer__bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: var(--ink-500);
}

/* Social icons */
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.socials a {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--ink-300);
  transition: color .15s ease, background .15s ease, border-color .15s ease, transform .15s ease;
}
.socials a:hover { color: var(--navy-900); background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

/* ---------- Image placeholders ---------- */
.ph {
  position: relative;
  background-color: var(--navy-700);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(232,234,237,0.045) 0 1px,
    transparent 1px 11px
  );
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.ph__label {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-500);
  text-transform: uppercase;
  text-align: center;
  padding: 1em;
  max-width: 90%;
}
.ph__label::before { content: "▦  "; color: var(--gold); opacity: .6; }

/* ---------- Cards ---------- */
.card {
  background: var(--navy-700);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(24px, 3vw, 40px);
}
.card--raised { background: var(--navy-600); }

.idx {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0;
}

/* ---------- Stats ---------- */
.stat__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--paper);
}
.stat__num .gold { color: var(--gold); }
.stat__label {
  font-size: 0.86rem;
  color: var(--ink-300);
  margin-top: 0.5em;
  letter-spacing: 0.01em;
}

/* ---------- Logo strip ---------- */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
}
.logo-chip {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--ink-300);
  opacity: 0.85;
  white-space: nowrap;
}
.logo-marquee-wrap { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); margin-top: 28px; }
.logo-marquee-label { flex: none; font-size: 0.82rem; }
.logo-marquee { position: relative; flex: 1 1 auto; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.logo-track { display: flex; align-items: center; width: max-content; animation: logo-scroll 46s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-tile { flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 134px; height: 64px; margin-right: clamp(14px, 1.6vw, 22px); padding: 10px 18px;
  background: #fff; border-radius: 10px; box-shadow: 0 8px 22px rgba(0,0,0,0.28); }
.logo-tile img { max-height: 42px; width: auto; max-width: 104px; object-fit: contain; display: block; }
@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
  .logo-marquee { overflow-x: auto; }
}

/* ---------- Generic grids ---------- */
.grid { display: grid; gap: clamp(20px, 2.5vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 17px; }
  .nav__links { display: none; }
  .nav__cta .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .brand__sub { display: none; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 1.02rem; }
  .brand { gap: 10px; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--navy-900);
  display: flex;
  flex-direction: column;
  padding: 24px var(--gutter);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .4s ease, opacity .4s ease;
}
.mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu__links {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu__links a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.03em;
  color: var(--paper);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__links a:hover { color: var(--gold); }
.mobile-menu .btn { margin-top: 32px; }

/* ---------- Scarcity / exclusivity badge ---------- */
.scarcity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--ink-100);
}
.scarcity::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
  animation: scarcityPulse 2.4s ease-out infinite;
}
@keyframes scarcityPulse {
  0% { box-shadow: 0 0 0 0 rgba(240, 165, 0, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(240, 165, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 165, 0, 0); }
}
.scarcity--on-gold { color: var(--navy-900); }
.scarcity--on-gold::before {
  background: var(--navy-900);
  animation: scarcityPulseDark 2.4s ease-out infinite;
}
@keyframes scarcityPulseDark {
  0% { box-shadow: 0 0 0 0 rgba(10, 17, 25, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(10, 17, 25, 0); }
  100% { box-shadow: 0 0 0 0 rgba(10, 17, 25, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .scarcity::before { animation: none; }
}

/* ---------- Risk-reversal microcopy under CTAs ---------- */
.reassure {
  display: inline-flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 10px 18px;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  color: var(--ink-300); letter-spacing: 0.01em;
}
.reassure span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.reassure svg { width: 15px; height: 15px; color: var(--gold); flex: none; }
.reassure--on-gold { color: rgba(10,17,25,0.78); }
.reassure--on-gold svg { color: var(--navy-900); }

/* ---------- Fit check: who this is for / not for ---------- */
.fitcheck { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 28px); }
@media (max-width: 720px) { .fitcheck { grid-template-columns: 1fr; } }
.fitcheck__col {
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(26px, 3vw, 40px); background: var(--navy-800);
}
.fitcheck__col--no { background: transparent; }
.fitcheck__col h3 { font-size: 1.15rem; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.fitcheck__col--yes h3 { color: var(--paper); }
.fitcheck__col--no h3 { color: var(--ink-300); }
.fitcheck__tag { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-500); font-weight: 700; margin: 0 0 22px; }
.fitcheck ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.fitcheck li { display: flex; gap: 13px; align-items: flex-start; line-height: 1.45; font-size: 1.02rem; }
.fitcheck li svg { width: 21px; height: 21px; flex: none; margin-top: 2px; }
.fitcheck__col--yes li { color: var(--ink-100); }
.fitcheck__col--yes li svg { color: var(--gold); }
.fitcheck__col--no li { color: var(--ink-500); }
.fitcheck__col--no li svg { color: var(--ink-500); }

/* ---------- Sticky mobile Book-a-call bar ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; flex-direction: column; gap: 2px; align-items: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 17, 25, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-strong);
}
.mobile-cta .btn { width: 100%; justify-content: center; }
.mobile-cta__sub { font-size: 0.72rem; color: var(--ink-300); font-weight: 600; letter-spacing: 0.02em; }
@media (max-width: 760px) {
  body.has-mobile-cta { padding-bottom: 92px; }
  .mobile-cta { display: flex; }
}

/* ---------- Booking FAQ (contact) ---------- */
.book-faq { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
@media (max-width: 720px) { .book-faq { grid-template-columns: 1fr; } }
.book-faq__item h3 { font-size: 1.02rem; margin: 0 0 8px; color: var(--paper); display: flex; gap: 10px; align-items: flex-start; }
.book-faq__item h3 svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 3px; }
.book-faq__item p { margin: 0; color: var(--ink-300); font-size: 0.96rem; line-height: 1.5; padding-left: 28px; }
