/* Be Safe Training - Shared Stylesheet */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@500;600;700&family=Source+Sans+3:wght@400;600&display=swap');

/* ============================================
   Design Tokens
   ============================================ */

:root {
  /* Colours - Deep navy + amber palette */
  --color-primary: #1a2744;
  --color-primary-dark: #0f1b2d;
  --color-primary-light: #e3e8ef;
  --color-accent: #f59e0b;
  --color-accent-dark: #d97706;
  --color-accent-light: #fef3c7;
  --color-dark: #0f172a;
  --color-body: #334155;
  --color-muted: #64748b;
  --color-light: #f1f5f9;
  --color-white: #ffffff;
  --color-border: #e2e8f0;

  /* Typography */
  --font-heading: 'DM Sans', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;

  --text-xs: 0.875rem;
  --text-sm: 1rem;
  --text-base: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3.25rem;

  /* Spacing */
  --section-padding-desktop: 96px;
  --section-padding-mobile: 56px;
  --content-max-width: 1200px;
  --text-max-width: 72ch;

  /* Header */
  --header-height: 72px;
  --header-height-mobile: 60px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10), 0 4px 8px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 20px 48px rgba(15, 23, 42, 0.12), 0 8px 16px rgba(15, 23, 42, 0.06);
}


/* ============================================
   Reset & Base
   ============================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-body);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent);
}


/* ============================================
   Skip to Content (Accessibility)
   ============================================ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  border-radius: 0 0 6px 6px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: var(--color-white);
}


/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-dark);
}

h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
}

h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
}

h3 {
  font-size: var(--text-xl);
  font-weight: 600;
}

h4 {
  font-size: var(--text-lg);
  font-weight: 600;
}

p + p {
  margin-top: 1em;
}


/* ============================================
   Layout
   ============================================ */

.container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-container {
  max-width: var(--text-max-width);
}


/* ============================================
   Section Rhythm
   ============================================ */

.section {
  padding: var(--section-padding-desktop) 0;
}

.section--white {
  background-color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.section--light {
  background-color: var(--color-light);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative shapes to fill empty space beside left-aligned text */
.section--white::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -2%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 39, 68, 0.025) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.section--white::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 8%;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(26, 39, 68, 0.03);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.section--light::before {
  content: '';
  position: absolute;
  bottom: -10%;
  right: 3%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.035) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.section--light::after {
  content: '';
  position: absolute;
  top: 15%;
  right: 5%;
  width: 160px;
  height: 160px;
  border: 2px solid rgba(245, 158, 11, 0.04);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Ensure content sits above decorative elements */
.section--white > .container,
.section--light > .container {
  position: relative;
  z-index: 1;
}


/* ============================================
   Section Backdrop Images
   Subtle faded photography on the right side
   of text-heavy sections. The image fades in
   from transparent (left) to visible (right)
   so text remains fully readable.
   ============================================ */

.section__backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.section__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.50;
  filter: grayscale(40%) brightness(1.1);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,1) 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,1) 100%);
}

/* Slightly warmer tint for the light-background variant */
.section--light .section__backdrop img {
  opacity: 0.50;
  filter: grayscale(30%) brightness(1.05) sepia(10%);
}

/* Hide backdrop images on mobile (text goes full width) */
@media (max-width: 768px) {
  .section__backdrop {
    display: none;
  }
}

.section--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  position: relative;
}

.section--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

.section--primary h2,
.section--primary h3 {
  color: var(--color-white);
}

.section--dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.section__label {
  display: inline-block;
  float: right;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 12px;
  margin-left: 24px;
  margin-top: 8px;
  padding: 4px 12px;
  background: var(--color-accent-light);
  border-radius: 4px;
}

.section--primary .section__label {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-accent);
}

.section--light .section__label {
  background: var(--color-accent-light);
}

.section__heading {
  margin-bottom: 24px;
}

.section__body {
  max-width: var(--text-max-width);
}

.section__body p + p {
  margin-top: 1em;
}

/* Sub-headings within body text need breathing room */
.section__body h3,
.content-section__body h3 {
  margin-top: 2em;
  margin-bottom: 0.75em;
}

/* Lead paragraph - first p in a section body gets emphasis */
.section__body > p:first-child,
.content-section__body > p:first-child {
  font-size: var(--text-lg);
  color: var(--color-dark);
  line-height: 1.75;
}


/* ============================================
   Header
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  transition: box-shadow 0.3s ease;
}

.site-header--shadow {
  box-shadow: var(--shadow-md);
  border-bottom-color: transparent;
}

.site-header__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header__logo img {
  max-height: 38px;
  width: auto;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-header__nav-link {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-dark);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-header__nav-link:hover {
  color: var(--color-primary);
}

.site-header__nav-link--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 12px 24px;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.site-header__cta:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Hamburger */
.site-header__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.site-header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header__hamburger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header__hamburger--open span:nth-child(2) {
  opacity: 0;
}

.site-header__hamburger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.site-header__overlay {
  display: none;
  position: fixed;
  top: var(--header-height-mobile);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  z-index: 99;
  flex-direction: column;
  padding: 32px 24px;
}

.site-header__overlay--open {
  display: flex;
}

.site-header__overlay-link {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-dark);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  min-height: 48px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.site-header__overlay-link:hover {
  color: var(--color-primary);
}

.site-header__overlay-link--active {
  color: var(--color-primary);
}

.site-header__overlay-cta {
  margin-top: 24px;
  text-align: center;
}


/* ============================================
   Hero Section (Homepage)
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(145deg, var(--color-primary) 0%, #0d1a30 50%, var(--color-primary-dark) 100%);
  padding: var(--section-padding-desktop) 24px;
  padding-top: calc(var(--header-height) + var(--section-padding-desktop));
  overflow: hidden;
}

/* Geometric pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 45%, rgba(245, 158, 11, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(255, 255, 255, 0.05) 0%, transparent 35%),
    radial-gradient(circle at 60% 80%, rgba(245, 158, 11, 0.04) 0%, transparent 30%);
  pointer-events: none;
}

/* Diagonal decorative lines */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 80px,
      rgba(255, 255, 255, 0.015) 80px,
      rgba(255, 255, 255, 0.015) 81px
    );
  pointer-events: none;
}

.hero__content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero__headline {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero__subheading {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.80);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.5rem;
  animation: bounce 2.5s ease-in-out infinite;
  z-index: 1;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}


/* ============================================
   Page Header (Detail Pages)
   ============================================ */

.page-header {
  background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  text-align: center;
  padding: var(--section-padding-desktop) 24px;
  padding-top: calc(var(--header-height) + var(--section-padding-desktop));
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Pattern overlay for sub-page headers */
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 80px,
      rgba(255, 255, 255, 0.015) 80px,
      rgba(255, 255, 255, 0.015) 81px
    );
  pointer-events: none;
}

.page-header__content {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.page-header__title {
  font-size: var(--text-3xl);
  color: var(--color-white);
  margin-bottom: 16px;
}

.page-header__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.7;
}


/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn--primary {
  padding: 16px 32px;
  font-size: var(--text-sm);
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.btn--secondary {
  padding: 12px 24px;
  font-size: var(--text-sm);
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn--secondary:hover {
  border-color: var(--color-white);
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
}

.btn--outline {
  padding: 12px 24px;
  font-size: var(--text-sm);
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.link-text {
  font-family: var(--font-heading);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.80);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: var(--text-sm);
  transition: color 0.2s ease;
}

.link-text:hover {
  color: var(--color-white);
}


/* ============================================
   Cards (Who We Work With)
   ============================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.card {
  background: var(--color-white);
  border-radius: 10px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-accent);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__title {
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: 16px;
}

.card__body {
  flex: 1;
  margin-bottom: 24px;
  color: var(--color-body);
  font-size: var(--text-base);
  line-height: 1.7;
}

.card__link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-accent-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.card__link:hover {
  color: var(--color-accent);
}


/* ============================================
   Programme Cards (Other Programmes)
   ============================================ */

.programme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.programme-card {
  background: var(--color-white);
  border-radius: 10px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-primary-light);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.programme-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--color-accent);
}

.programme-card__title {
  font-size: var(--text-xl);
  color: var(--color-dark);
  margin-bottom: 16px;
}

.programme-card__body {
  flex: 1;
  color: var(--color-body);
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: 24px;
}

.programme-card__tag {
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: 600;
  background: var(--color-primary-light);
  padding: 6px 12px;
  border-radius: 4px;
  display: inline-block;
}


/* ============================================
   Approach Columns
   ============================================ */

.approach-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.approach-column {
  position: relative;
  padding-top: 16px;
}

.approach-column::before {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-bottom: 20px;
}

.approach-column__title {
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: 12px;
}

.approach-column__text {
  color: var(--color-body);
  font-size: var(--text-base);
  line-height: 1.7;
}


/* ============================================
   Endorsement / Blockquote
   ============================================ */

.endorsement {
  max-width: none;
  padding: 40px;
  background: var(--color-light);
  border-radius: 12px;
  border-left: 4px solid var(--color-accent);
  position: relative;
}

.endorsement__quote {
  position: relative;
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-dark);
  line-height: 1.8;
  margin-bottom: 24px;
  padding-left: 0;
}

.endorsement__quote::before {
  content: '\201C';
  position: absolute;
  top: -16px;
  left: -8px;
  font-size: 4rem;
  font-style: normal;
  color: var(--color-accent);
  opacity: 0.25;
  line-height: 1;
  font-family: Georgia, serif;
}

.endorsement__attribution {
  font-size: var(--text-sm);
  color: var(--color-muted);
  font-style: normal;
}

.endorsement__note {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: 16px;
  font-style: italic;
}


/* ============================================
   Credentials Row
   ============================================ */

.credentials-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
}

.credential-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 10px 18px;
  border-radius: 8px;
}

.credential-item::before {
  content: '\2713';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 0.7rem;
  flex-shrink: 0;
}


/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-section__heading {
  margin-bottom: 16px;
}

.cta-section__body {
  max-width: var(--text-max-width);
  margin: 0 auto 32px;
  font-size: var(--text-base);
  line-height: 1.7;
}

.section--primary .cta-section__body {
  color: rgba(255, 255, 255, 0.80);
}

.cta-section__email {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 16px 32px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.cta-section__email:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}


/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 56px 0;
}

.site-footer__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: start;
}

.site-footer__brand-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
}

.site-footer__brand-tagline {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.site-footer__nav-link {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__nav-link:hover {
  color: var(--color-white);
}

.site-footer__contact {
  text-align: right;
}

.site-footer__contact-link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__contact-link:hover {
  color: var(--color-white);
}

.site-footer__logo {
  max-height: 32px;
  width: auto;
  margin-bottom: 12px;
}

.site-footer__bottom {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 24px 24px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
}


/* ============================================
   Back-to-Top Button
   ============================================ */

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 50;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease, transform 0.2s ease;
}

.back-to-top--visible {
  opacity: 0.85;
  visibility: visible;
}

.back-to-top:hover {
  opacity: 1;
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}


/* ============================================
   FAQ Accordion
   ============================================ */

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-dark);
  padding: 20px 40px 20px 0;
  cursor: pointer;
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-muted);
  transition: transform 0.3s ease, color 0.2s ease;
}

.faq-item--open .faq-question::after {
  content: '\2212';
  color: var(--color-accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer__inner {
  padding: 0 0 20px;
  color: var(--color-body);
  line-height: 1.7;
}


/* ============================================
   Detail Page Content Sections
   ============================================ */

.content-section__heading {
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 16px;
}

.content-section__heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.content-section__body {
  max-width: var(--text-max-width);
}

.content-section__body p + p {
  margin-top: 1em;
}

.content-section__body ul {
  list-style: none;
  padding: 0;
  margin-top: 1em;
}

.content-section__body ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  line-height: 1.7;
}

.content-section__body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Book callout (register interest) */
.book-callout {
  margin-top: 40px;
  padding: 32px 36px;
  background: rgba(241, 245, 249, 0.75);
  border-radius: 10px;
  border-top: 4px solid var(--color-accent);
}

.book-callout .section__label {
  float: none;
  margin-left: 0;
  margin-top: 0;
}

.book-callout__text {
  margin: 16px 0 24px;
  max-width: var(--text-max-width);
  color: var(--color-body);
  line-height: 1.7;
}

/* Programme listing on detail pages */
.programme-listing {
  margin-top: 48px;
}

.programme-listing__item {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-border);
}

.programme-listing__item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.programme-listing__title {
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: 12px;
}

.programme-listing__body {
  max-width: var(--text-max-width);
  color: var(--color-body);
  line-height: 1.7;
}

.programme-listing__body p + p {
  margin-top: 1em;
}


/* ============================================
   Homepage Lists
   ============================================ */

.section__body ul {
  list-style: none;
  padding: 0;
  margin-top: 1em;
}

.section__body ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  line-height: 1.7;
}

.section__body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}


/* ============================================
   Contact Form
   ============================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}

.contact-info__heading {
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: 16px;
}

.contact-info__text {
  color: var(--color-body);
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-info__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: var(--text-sm);
  color: var(--color-dark);
}

.contact-info__detail svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

.contact-info__detail a {
  color: var(--color-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-info__detail a:hover {
  color: var(--color-accent-dark);
}

.contact-form {
  background: var(--color-white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--color-accent);
}

.contact-form__group {
  margin-bottom: 20px;
}

.contact-form__label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-dark);
  background: var(--color-light);
  border: 2px solid var(--color-border);
  border-radius: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: var(--color-muted);
}

.contact-form__textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 16px 40px;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  width: 100%;
}

.contact-form__submit:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.contact-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.contact-form__feedback {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 8px;
  font-size: var(--text-sm);
  line-height: 1.6;
  display: none;
}

.contact-form__feedback--success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.contact-form__feedback--error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.contact-form__success {
  background: var(--color-white);
  border-radius: 12px;
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--color-accent);
  text-align: center;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-form__success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.contact-form__success-heading {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.contact-form__success-text {
  font-size: var(--text-base);
  color: var(--color-body);
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto 32px;
}

.contact-form__success-detail {
  font-size: var(--text-sm);
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.contact-form__success-detail svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form {
    padding: 28px 24px;
  }
}


/* ============================================
   Focus Styles
   ============================================ */

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}


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

@media (max-width: 1024px) {
  .card-grid,
  .programme-grid,
  .approach-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: var(--header-height-mobile);
  }

  html {
    scroll-padding-top: var(--header-height-mobile);
  }

  .section {
    padding: var(--section-padding-mobile) 0;
  }

  .hero {
    min-height: 90vh;
    padding: var(--section-padding-mobile) 24px;
    padding-top: calc(var(--header-height-mobile) + var(--section-padding-mobile));
  }

  .hero__headline {
    font-size: var(--text-3xl);
  }

  .page-header {
    padding: var(--section-padding-mobile) 24px;
    padding-top: calc(var(--header-height-mobile) + var(--section-padding-mobile));
    min-height: 260px;
  }

  .page-header__title {
    font-size: var(--text-2xl);
  }

  h2 {
    font-size: 1.75rem;
  }

  .card-grid,
  .programme-grid,
  .approach-columns {
    grid-template-columns: 1fr;
  }

  /* Hide decorative shapes on mobile (no text gap to fill) */
  .section--white::before,
  .section--white::after,
  .section--light::before,
  .section--light::after {
    display: none;
  }

  /* Unfloat label on mobile */
  .section__label {
    float: none;
    margin-left: 0;
    margin-top: 0;
  }

  /* Header mobile */
  .site-header {
    height: var(--header-height-mobile);
  }

  .site-header__nav {
    display: none;
  }

  .site-header__cta--desktop {
    display: none;
  }

  .site-header__hamburger {
    display: flex;
  }

  /* Footer mobile */
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .site-footer__nav {
    align-items: center;
  }

  .site-footer__contact {
    text-align: center;
  }

  /* Credentials */
  .credentials-row {
    justify-content: center;
  }

  /* Endorsement */
  .endorsement {
    padding: 28px 24px;
  }

  .endorsement__quote::before {
    position: static;
    display: block;
    margin-bottom: 8px;
  }

  /* Lead paragraph */
  .section__body > p:first-child,
  .content-section__body > p:first-child {
    font-size: var(--text-base);
  }
}

@media (max-width: 640px) {
  .hero__headline {
    font-size: 2rem;
  }

  .hero__subheading {
    font-size: var(--text-base);
  }

  .container {
    padding: 0 16px;
  }

  .credential-item {
    width: 100%;
    justify-content: center;
  }
}
