/* ================================================================
   IMPACTUS LEARNING — Design System
   Warm • Light • People-Centric
   ================================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* ── Brand ── */
  --color-brand:       #5B3516;
  --color-brand-hover: #7A4A28;
  --color-brand-light: #A06B3E;
  --color-brand-subtle: rgba(91,53,22,0.08);

  /* ── Accent (warm amber for CTAs) ── */
  --color-accent:      #B8732A;
  --color-accent-hover:#D08535;
  --color-accent-subtle: rgba(184,115,42,0.10);

  /* ── Surfaces ── */
  --color-bg:          #FFFDF8;
  --color-surface:     #F7F3EE;
  --color-surface-2:   #EFEBE4;
  --color-surface-3:   #E7E1D9;

  /* ── Text ── */
  --color-text:        #2B1D10;
  --color-text-muted:  #8A7968;
  --color-text-subtle: #B5A898;

  /* ── Borders ── */
  --color-divider:     #E5DDD4;
  --color-divider-strong: #D5CBBD;

  /* ── Status ── */
  --color-success:     #3A8A5C;
  --color-error:       #C4483D;

  /* ── Type Scale ── */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-hero: clamp(2.5rem, 5.5vw, 4rem);

  /* ── Spacing ── */
  --space-1:  0.25rem;  --space-2:  0.5rem;   --space-3:  0.75rem;
  --space-4:  1rem;     --space-5:  1.25rem;   --space-6:  1.5rem;
  --space-8:  2rem;     --space-10: 2.5rem;    --space-12: 3rem;
  --space-14: 3.5rem;   --space-16: 4rem;      --space-20: 5rem;
  --space-24: 6rem;     --space-32: 8rem;

  /* ── Radii ── */
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px; --radius-xl: 20px; --radius-full: 100px;

  /* ── Shadows ── */
  --shadow-xs:  0 1px 2px rgba(43,29,16,0.04);
  --shadow-sm:  0 2px 8px rgba(43,29,16,0.06);
  --shadow-md:  0 4px 16px rgba(43,29,16,0.08);
  --shadow-lg:  0 8px 32px rgba(43,29,16,0.10);
  --shadow-xl:  0 16px 48px rgba(43,29,16,0.12);

  /* ── Font ── */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'Work Sans', system-ui, sans-serif;

  /* ── Layout ── */
  --container-max: 1200px;
}

/* ---------- DARK MODE ---------- */
[data-theme="dark"] {
  --color-bg:          #26201A;
  --color-surface:     #302820;
  --color-surface-2:   #3A3028;
  --color-surface-3:   #453830;
  --color-text:        #E8E2DA;
  --color-text-muted:  #A69A8C;
  --color-text-subtle: #7A6E60;
  --color-divider:     #3E3228;
  /* Lift brand colour so it's visible on dark surfaces */
  --color-brand:       #C4894A;
  --color-brand-hover: #D49A5A;
  --color-brand-light: #D4A06A;
  --color-brand-subtle: rgba(196,137,74,0.12);
  --color-divider-strong: #4A4135;
  --color-accent-subtle: rgba(184,115,42,0.15);
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.2);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.25);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.35);
  --shadow-xl:  0 16px 48px rgba(0,0,0,0.4);
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; }

/* ---------- LAYOUT ---------- */
.container { max-width: var(--container-max); margin: 0 auto; padding-inline: var(--space-6); }
@media (min-width: 1024px) { .container { padding-inline: var(--space-8); } }

/* ---------- HEADER ---------- */
.header {
  position: sticky; top: 0; z-index: 400;
  background: rgba(255,253,248,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
  transition: background-color 0.3s, box-shadow 0.3s;
}
[data-theme="dark"] .header { background: rgba(38,32,26,0.92); }

/* Dark mode: keep primary button espresso, override amber brand back */
[data-theme="dark"] .btn--primary {
  background: #5B3516;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
[data-theme="dark"] .btn--primary:hover { background: #7A4A28; }

/* Dark mode: about stats strip stays dark, white text */
[data-theme="dark"] .about-stats {
  background: #1A1510;
}
[data-theme="dark"] .about-stat__number { color: #fff; }
[data-theme="dark"] .about-stat__label { color: rgba(255,255,255,0.65); }
.header--scrolled { box-shadow: var(--shadow-sm); }

.nav { display: flex; align-items: center; justify-content: space-between; padding-block: var(--space-4); }
.nav__logo { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--color-text); }
.nav__logo-img { height: 40px; width: auto; object-fit: contain; display: block; mix-blend-mode: multiply; }
[data-theme="dark"] .nav__logo-img { content: url('../images/logo-dark.jpg'); mix-blend-mode: normal; filter: brightness(1.1); }

.nav__links { display: flex; align-items: center; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block; padding: 8px 14px; font-size: var(--text-sm);
  font-weight: 500; color: var(--color-text-muted);
  border-radius: var(--radius-md); transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--color-text); background: var(--color-brand-subtle); }
.nav__links a.active { color: var(--color-brand); font-weight: 600; }

.nav__actions { display: flex; align-items: center; gap: var(--space-3); }

/* Theme Toggle */
.theme-toggle { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); color: var(--color-text-muted); transition: color 0.2s, background 0.2s; }
.theme-toggle:hover { color: var(--color-text); background: var(--color-surface); }

/* Nav Toggle (hamburger) */
.nav__toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--radius-md); color: var(--color-text); }

/* ── Mobile Nav Drawer ── */
.nav__drawer-header { display: none; }
.nav__close { display: none; }
@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; top: 0; right: 0;
    width: 80vw; max-width: 300px; height: 100vh;
    flex-direction: column; align-items: stretch;
    padding: 0; margin: 0;
    background-color: #FFFDF8 !important; color-scheme: light;
    border-left: 1px solid var(--color-divider);
    box-shadow: -4px 0 30px rgba(43,29,16,0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000; gap: 0; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav__links.dragging { transition: none; }
  [data-theme="dark"] .nav__links { background-color: #26201A !important; color-scheme: dark; border-left-color: #45382E; }
  .nav__links.open { transform: translateX(0); }

  .nav__drawer-header {
    display: flex !important; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid var(--color-divider);
    flex-shrink: 0; background-color: inherit !important;
  }
  .nav__drawer-header span {
    font-family: var(--font-body); font-weight: 700; font-size: 14px;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--color-brand) !important;
  }
  [data-theme="dark"] .nav__drawer-header span { color: var(--color-brand-light) !important; }
  .nav__close {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background-color: var(--color-surface) !important;
    border: none; border-radius: 50%;
    cursor: pointer; color: var(--color-text) !important;
  }

  .nav__links li { list-style: none; border-bottom: 1px solid var(--color-divider); background-color: inherit !important; }
  .nav__links a {
    display: block; padding: 18px 24px;
    font-size: 17px; font-weight: 600; line-height: 1.3;
    color: var(--color-text) !important; text-decoration: none;
    background-color: transparent !important; border-radius: 0;
  }
  [data-theme="dark"] .nav__links a { color: var(--color-text) !important; }
  .nav__links a:active { background-color: var(--color-surface) !important; }
  .nav__links a.active { color: var(--color-brand) !important; }
  [data-theme="dark"] .nav__links a.active { color: var(--color-brand-light) !important; }

  .nav__overlay {
    position: fixed; inset: 0; background: rgba(43,29,16,0.45);
    z-index: 999; opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .nav__overlay.dragging { transition: none; }
  .nav__overlay.open { opacity: 1; visibility: visible; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-weight: 600; border-radius: var(--radius-full);
  padding: 12px 28px; font-size: var(--text-sm);
  transition: all 0.2s ease; text-decoration: none; line-height: 1.4;
}
.btn--primary {
  background: var(--color-brand); color: #fff;
  box-shadow: 0 2px 8px rgba(91,53,22,0.2);
}
.btn--primary:hover {
  background: var(--color-brand-hover); transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(91,53,22,0.25);
}
.btn--accent {
  background: var(--color-accent); color: #fff;
  box-shadow: 0 2px 8px rgba(184,115,42,0.2);
}
.btn--accent:hover {
  background: var(--color-accent-hover); transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(184,115,42,0.3);
}
.btn--outline {
  border: 1.5px solid var(--color-divider-strong); color: var(--color-text);
  background: transparent;
}
.btn--outline:hover { background: var(--color-surface); border-color: var(--color-brand); }
.btn--lg { padding: 16px 36px; font-size: var(--text-base); }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: var(--space-32) 0 var(--space-24);
  background: var(--color-bg);
}
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(184,115,42,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 90%, rgba(91,53,22,0.05) 0%, transparent 60%);
}

/* Hero photo — right half */
.hero__photo-wrap {
  position: absolute;
  top: 0; right: 0;
  width: 52%;
  height: 100%;
  z-index: 0;
}
.hero__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
/* Gradient fades: left edge blends into bg, bottom softens */
.hero__photo-fade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--color-bg) 0%, rgba(255,253,248,0.6) 35%, transparent 65%),
    linear-gradient(to top, var(--color-bg) 0%, transparent 30%);
}
[data-theme="dark"] .hero__photo-fade {
  background:
    linear-gradient(to right, var(--color-bg) 0%, rgba(18,14,10,0.7) 35%, transparent 65%),
    linear-gradient(to top, var(--color-bg) 0%, transparent 30%);
}

.hero__inner {
  position: relative; z-index: 1;
  max-width: 600px;
}

@media (max-width: 768px) {
  .hero__photo-wrap {
    width: 100%;
    height: 42%;
    top: auto;
    bottom: 0;
  }
  .hero__photo {
    object-fit: cover;
    object-position: center top;
  }
  .hero__photo-fade {
    background:
      linear-gradient(to bottom, var(--color-bg) 0%, var(--color-bg) 8%, rgba(255,253,248,0) 55%);
  }
  [data-theme="dark"] .hero__photo-fade {
    background:
      linear-gradient(to bottom, var(--color-bg) 0%, var(--color-bg) 8%, rgba(18,14,10,0) 55%);
  }
  .hero { padding-bottom: 77vw; }
  .hero__actions {
    position: relative; z-index: 2;
    flex-direction: column;
    align-items: flex-start;
  }
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-brand);
  background: var(--color-brand-subtle);
  border: 1px solid rgba(91,53,22,0.12);
  padding: 6px 16px; border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}
.hero__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-hero);
  line-height: 1.08;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}
.hero__title span { color: var(--color-brand); }
.hero__sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: var(--space-8);
}
.hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* ---------- STATS BAR ---------- */
.stats {
  display: flex;
  border: 1px solid var(--color-divider); border-radius: var(--radius-xl);
  overflow: hidden; background: var(--color-surface);
}
.stat {
  flex: 1 1 0;
  width: 0;
  padding: var(--space-8) var(--space-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--color-divider);
}
.stat:last-child { border-right: none; }
.stat__number {
  font-family: var(--font-display); font-style: italic;
  font-size: var(--text-3xl); color: var(--color-brand);
  line-height: 1; margin-bottom: var(--space-2);
}
.stat__label {
  font-size: var(--text-xs); font-weight: 500;
  color: var(--color-text-muted); letter-spacing: 0.02em;
}
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--color-divider); }
}

/* ---------- SECTIONS ---------- */
.section { padding: var(--space-24) 0; }
.section--surface { background: var(--color-surface); }
.section--bordered { border-top: 1px solid var(--color-divider); }

.section__tag {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.section__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}
.section__sub {
  font-size: var(--text-base); color: var(--color-text-muted);
  line-height: 1.75; max-width: 600px;
}

/* ---------- CARD GRID ---------- */
/* ══════════════════════════════════════
   CASE STUDIES TEASER
══════════════════════════════════════ */

.cs-teaser {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-6) 0 var(--space-2);
  padding: 0.6rem 1rem 0.6rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  text-decoration: none;
  background: var(--color-surface);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  max-width: 100%;
}

.cs-teaser:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 16px rgba(184,115,42,0.12);
  background: var(--color-bg);
}

.cs-teaser__thumb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.cs-teaser__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.cs-teaser__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-teaser__label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.cs-teaser__text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.cs-teaser__arrow {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-left: var(--space-1);
  transition: transform 0.2s;
}

.cs-teaser:hover .cs-teaser__arrow {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .cs-teaser__text {
    white-space: normal;
    font-size: 0.8rem;
  }
}

/* ══════════════════════════════════════
   CARD GRID
══════════════════════════════════════ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-10);
}
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card__icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--color-brand-subtle);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-brand); margin-bottom: var(--space-5);
}
.card__title {
  font-weight: 700; font-size: var(--text-base);
  color: var(--color-text); margin-bottom: var(--space-2);
}
.card__desc {
  font-size: var(--text-sm); color: var(--color-text-muted);
  line-height: 1.7;
}

/* ---------- LOGO STRIP ---------- */
.logo-strip {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-10); flex-wrap: wrap;
  padding: var(--space-10) 0;
}
.logo-strip__item {
  font-family: var(--font-body); font-weight: 700;
  font-size: var(--text-sm); color: var(--color-text-subtle);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* ---------- TWO-COL LAYOUT ---------- */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-16); align-items: center;
}
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; gap: var(--space-10); } }

/* ---------- CTA SECTION ---------- */
.cta-section {
  padding: var(--space-24) 0;
  text-align: center;
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
}
.cta-section__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.cta-section__sub {
  font-size: var(--text-base); color: var(--color-text-muted);
  max-width: 500px; margin: 0 auto var(--space-8);
  line-height: 1.7;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--color-text);
  color: rgba(255,253,248,0.7);
  padding: var(--space-16) 0 var(--space-10);
}
[data-theme="dark"] .footer { background: #1A1510; }
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12); margin-bottom: var(--space-12);
}
@media (max-width: 640px) { .footer__grid { grid-template-columns: 1fr; gap: var(--space-8); } }
.footer__brand p { font-size: var(--text-sm); line-height: 1.7; margin-top: var(--space-3); }
.footer__brand img { height: 40px; width: auto; border-radius: var(--radius-sm); }
.footer h4 {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,253,248,0.4); margin-bottom: var(--space-4);
}
.footer__links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__links a { font-size: var(--text-sm); color: rgba(255,253,248,0.65); transition: color 0.2s; }
.footer__links a:hover { color: #fff; }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,253,248,0.1);
  font-size: var(--text-xs); color: rgba(255,253,248,0.35);
}
.footer__socials { display: flex; gap: var(--space-4); }
.footer__socials a { color: rgba(255,253,248,0.4); transition: color 0.2s; }
.footer__socials a:hover { color: #fff; }

/* ---------- PAGE HERO (subpages) ---------- */
.page-hero {
  padding: var(--space-24) 0 var(--space-16);
  border-bottom: 1px solid var(--color-divider);
}
.page-hero__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: var(--space-5);
}
.page-hero__sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 600px;
}

/* ---------- CREDENTIAL GRID (about) ---------- */
.credential-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 480px) { .credential-grid { grid-template-columns: 1fr; } }
.credential-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
}
.credential-card__icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--color-brand-subtle);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-brand); margin: 0 auto var(--space-4);
}
.credential-card__label {
  font-weight: 700; font-size: var(--text-sm);
  color: var(--color-text); margin-bottom: 2px;
}
.credential-card__detail {
  font-size: var(--text-xs); color: var(--color-text-muted);
}

/* ---------- FORMAT CARDS (training) ---------- */
.format-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 768px) { .format-grid { grid-template-columns: 1fr; } }
.format-card {
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.format-card:hover {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.format-card--featured {
  border-color: var(--color-brand);
  background: var(--color-brand-subtle);
  box-shadow: var(--shadow-sm);
}
.format-card__badge {
  display: inline-block;
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--color-accent); background: var(--color-accent-subtle);
  padding: 4px 12px; border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}
.format-card__title {
  font-family: var(--font-display); font-style: italic;
  font-size: var(--text-xl); color: var(--color-text);
  margin-bottom: var(--space-3);
}
.format-card__desc {
  font-size: var(--text-sm); color: var(--color-text-muted);
  line-height: 1.7;
}

/* ---------- SKILL LIST (training) ---------- */
.skill-list {
  display: flex; flex-direction: column;
  gap: var(--space-5); margin-top: var(--space-10);
  max-width: 720px;
}
.skill-item {
  display: flex; gap: var(--space-5); align-items: flex-start;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s;
}
.skill-item:hover { border-color: var(--color-brand); }
.skill-item__number {
  font-family: var(--font-display); font-style: italic;
  font-size: var(--text-2xl); color: var(--color-brand);
  line-height: 1; flex-shrink: 0; min-width: 40px;
}
.skill-item__title {
  font-weight: 700; font-size: var(--text-base);
  color: var(--color-text); margin-bottom: 4px;
}
.skill-item__desc {
  font-size: var(--text-sm); color: var(--color-text-muted);
  line-height: 1.7;
}

/* ---------- SCHEDULE TABLE ---------- */
.course-header {
  margin-bottom: var(--space-6);
}
.course-header__badge {
  display: inline-block;
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #fff; background: var(--color-brand);
  padding: 5px 14px; border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}
.course-header__badge--accent { background: var(--color-accent); }
.course-meta {
  display: flex; flex-wrap: wrap; gap: var(--space-5);
  margin-bottom: var(--space-8);
}
.course-meta__item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-sm); color: var(--color-text-muted);
}
.schedule-table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
}
.schedule-table {
  width: 100%; border-collapse: collapse;
  font-size: var(--text-sm);
}
.schedule-table thead { background: var(--color-surface); }
.schedule-table th {
  text-align: left; padding: 14px 18px;
  font-weight: 700; font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-divider);
}
.schedule-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-text);
  white-space: nowrap;
}
.schedule-table tbody tr:last-child td { border-bottom: none; }
.schedule-table tbody tr:hover { background: var(--color-brand-subtle); }
.schedule-table code {
  font-family: var(--font-body);
  font-size: var(--text-xs); color: var(--color-text-muted);
  background: var(--color-surface-2);
  padding: 2px 8px; border-radius: 4px;
}
.venue-badge {
  display: inline-block;
  font-size: var(--text-xs); font-weight: 600;
  padding: 3px 10px; border-radius: var(--radius-full);
}
.venue-badge--online {
  background: rgba(58,138,92,0.1); color: var(--color-success);
}
@media (max-width: 640px) {
  .schedule-table td, .schedule-table th { padding: 10px 12px; font-size: var(--text-xs); }
}

/* ---------- TESTIMONIAL GRID ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-5);
}
@media (max-width: 480px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.testimonial-card:hover {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-sm);
}
.testimonial-card--featured {
  grid-column: 1 / -1;
  background: var(--color-brand-subtle);
  border-color: rgba(91,53,22,0.15);
}
.testimonial-card__quote {
  position: absolute; top: var(--space-5); right: var(--space-5);
  color: var(--color-brand);
}
.testimonial-card__text {
  font-family: var(--font-display); font-style: italic;
  font-size: var(--text-lg); line-height: 1.6;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}
.testimonial-card--featured .testimonial-card__text {
  font-size: var(--text-xl);
}
.testimonial-card__attr {
  font-size: var(--text-sm); font-weight: 600;
  color: var(--color-text-muted);
}

/* ---------- PROSE (rebrand) ---------- */
.prose {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.85;
  margin-bottom: var(--space-5);
}
.prose:last-child { margin-bottom: 0; }

/* ---------- ANIMATIONS ---------- */
[data-animate] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-animate].is-visible { opacity: 1; transform: translateY(0); }

/* ── DP World Featured Story ── */
.dpworld-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(91,53,22,0.08);
  border: 1px solid var(--color-border);
}

.dpworld-feature__image-wrap {
  position: relative;
  height: 100%;
  min-height: 340px;
}

.dpworld-feature__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dpworld-feature__badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: var(--color-brand);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.dpworld-feature__body {
  padding: var(--space-10) var(--space-10) var(--space-10) 0;
}

.dpworld-feature__eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.dpworld-feature__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  font-style: italic;
  color: var(--color-brand);
  line-height: 1.25;
  margin-bottom: var(--space-5);
}

.dpworld-feature__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-4);
}

.dpworld-feature__meta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-brand);
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .dpworld-feature {
    grid-template-columns: 1fr;
  }
  .dpworld-feature__image-wrap {
    min-height: 240px;
  }
  .dpworld-feature__body {
    padding: var(--space-6);
  }
}

/* ══════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════ */

/* — Profile Hero — */
.about-hero {
  padding: var(--space-24) 0 var(--space-16);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-divider);
}
.about-hero__inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-16);
  align-items: center;
}
.about-hero__name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--color-brand);
  line-height: 1.05;
  margin-bottom: var(--space-3);
}
.about-hero__tagline {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-accent);
  font-style: italic;
  margin-bottom: var(--space-6);
  letter-spacing: 0.01em;
}
.about-hero__bio {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 580px;
  margin-bottom: var(--space-4);
}
.about-hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-8);
}
.about-hero__photo-wrap {
  position: relative;
  width: 320px;
  height: 400px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-brand-subtle);
  flex-shrink: 0;
  box-shadow: 0 16px 56px rgba(91,53,22,0.18);
  justify-self: end;
}
.about-hero__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 15%;
}
.about-hero__photo-placeholder {
  display: none;
}

/* — Stats Strip — */
.about-stats {
  background: var(--color-brand);
  padding: var(--space-10) 0;
}
.about-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  text-align: center;
}
.about-stat__number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-3xl);
  color: #fff;
  line-height: 1.1;
  margin-bottom: var(--space-2);
}
.about-stat__label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* — Split: Skills + Credentials — */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}
.about-skills {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.about-skills li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.about-skills li svg {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Credentials column */
.about-split__credentials {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding: var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}
.cred-group__title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
}
.cred-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.cred-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cred-degree {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.cred-inst {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* — Client Results — */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-top: var(--space-10);
}
.result-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}
.result-card__client {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}
.result-card__metrics {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.result-metric {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}
.result-metric__value {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xl);
  color: var(--color-brand);
  white-space: nowrap;
  flex-shrink: 0;
}
.result-metric__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}
.result-card__quote {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.7;
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-4);
  margin-bottom: var(--space-3);
}

/* — About Testimonials — */
.about-testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.about-testi--wide {
  grid-column: 1 / -1;
}
.about-testi {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin: 0;
  position: relative;
}
.about-testi::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.2;
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  pointer-events: none;
}
.about-testi__quote {
  font-size: var(--text-base);
  color: var(--color-text);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: var(--space-5);
  position: relative;
  z-index: 1;
}
.about-testi__attr {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-brand);
}

/* — Responsive — */
@media (max-width: 900px) {
  .about-hero__inner { grid-template-columns: 1fr; }
  .about-hero__photo-wrap { width: 200px; height: 240px; justify-self: start; }
  .about-stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
  .about-split { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .about-testimonials { grid-template-columns: 1fr; }
  .about-testi--wide { grid-column: 1; }
}
@media (max-width: 600px) {
  .about-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .about-hero__photo-wrap { width: 140px; height: 165px; }
}

/* ══════════════════════════════════════
   NESPRESSO DIPTYCH IMAGE
══════════════════════════════════════ */

/* DP World stacked diptych — stretches to fill parent height like Nespresso */
.dpw-diptych {
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr;
  position: relative;
  height: 100%;
}

.dpw-diptych__img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}

.dpw-diptych__img--top {
  object-position: center 35%;
}

.dpw-diptych__img--bottom {
  object-position: center 30%;
}

/* Soft gradient divider between the two photos */
.dpw-diptych::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 32px;
  background: linear-gradient(
    to bottom,
    rgba(255,253,248,0) 0%,
    rgba(255,253,248,0.6) 40%,
    rgba(255,253,248,0.6) 60%,
    rgba(255,253,248,0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

[data-theme="dark"] .dpw-diptych::after {
  background: linear-gradient(
    to bottom,
    rgba(18,14,10,0) 0%,
    rgba(18,14,10,0.6) 40%,
    rgba(18,14,10,0.6) 60%,
    rgba(18,14,10,0) 100%
  );
}

.dpw-diptych:hover .dpw-diptych__img {
  opacity: 0.94;
}

/* Desktop only: stretch DP World diptych card so images are taller (4:3 each) */
@media (min-width: 769px) {
  .dpworld-feature:has(.dpw-diptych) {
    align-items: stretch;
    min-height: 680px;
  }
  .dpworld-feature:has(.dpw-diptych) .dpworld-feature__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-10);
  }
}

.nesp-diptych {
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr;
  position: relative;
}

.nesp-diptych__img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: opacity 0.3s;
}

.nesp-diptych__img--right {
  object-position: center 20%;
}

/* Soft dividing line — gradient fade between the two images */
.nesp-diptych::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 28px;
  background: linear-gradient(
    to bottom,
    rgba(255,253,248,0) 0%,
    rgba(255,253,248,0.55) 40%,
    rgba(255,253,248,0.55) 60%,
    rgba(255,253,248,0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

[data-theme="dark"] .nesp-diptych::after {
  background: linear-gradient(
    to bottom,
    rgba(18,14,10,0) 0%,
    rgba(18,14,10,0.55) 40%,
    rgba(18,14,10,0.55) 60%,
    rgba(18,14,10,0) 100%
  );
}

.nesp-diptych:hover .nesp-diptych__img {
  opacity: 0.94;
}

/* ══════════════════════════════════════
   TESTIMONIALS HERO
══════════════════════════════════════ */

.testi-hero {
  position: relative;
  overflow: hidden;
}

.testi-hero__photo-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.testi-hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  opacity: 0.8;
  filter: saturate(0.2) sepia(0.3) brightness(1.05);
}

[data-theme="dark"] .testi-hero__photo {
  opacity: 0.7;
  filter: saturate(0) brightness(0.9);
}

.testi-hero__fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  var(--color-bg) 0%, rgba(255,253,248,0.85) 28%, rgba(255,253,248,0.35) 60%, var(--color-bg) 100%),
    linear-gradient(to top,    var(--color-bg) 0%, transparent 35%),
    linear-gradient(to bottom, var(--color-bg) 0%, transparent 25%);
}

/* Warm luminous glow behind text for contrast over the photo */
.testi-hero .page-hero__title {
  text-shadow:
    0 0 8px  rgba(255, 253, 248, 1),
    0 0 20px rgba(255, 253, 248, 1),
    0 0 50px rgba(255, 253, 248, 1),
    0 0 100px rgba(255, 253, 248, 0.9),
    0 2px 4px rgba(255, 253, 248, 1);
}

.testi-hero .page-hero__sub {
  text-shadow:
    0 0 6px  rgba(255, 253, 248, 1),
    0 0 16px rgba(255, 253, 248, 1),
    0 0 40px rgba(255, 253, 248, 1),
    0 0 80px rgba(255, 253, 248, 0.9),
    0 1px 4px rgba(255, 253, 248, 1);
}

.testi-hero .page-hero__eyebrow {
  text-shadow:
    0 0 6px  rgba(255, 253, 248, 1),
    0 0 20px rgba(255, 253, 248, 1),
    0 0 40px rgba(255, 253, 248, 0.9);
}

[data-theme="dark"] .testi-hero .page-hero__title {
  text-shadow:
    0 0 40px rgba(18, 14, 10, 0.9),
    0 0 80px rgba(18, 14, 10, 0.7),
    0 2px 12px rgba(18, 14, 10, 0.85);
}

[data-theme="dark"] .testi-hero .page-hero__sub {
  text-shadow:
    0 0 24px rgba(18, 14, 10, 0.95),
    0 0 48px rgba(18, 14, 10, 0.8);
}

[data-theme="dark"] .testi-hero__fade {
  background:
    linear-gradient(to right,  var(--color-bg) 0%, rgba(18,14,10,0.92) 30%, rgba(18,14,10,0.5) 65%, var(--color-bg) 100%),
    linear-gradient(to top,    var(--color-bg) 0%, transparent 35%),
    linear-gradient(to bottom, var(--color-bg) 0%, transparent 25%);
}

@media (max-width: 768px) {
  .testi-hero__photo {
    opacity: 0.8;
    filter: saturate(0.3) sepia(0.3) brightness(1.05);
  }
  .testi-hero__fade {
    background:
      linear-gradient(to bottom, var(--color-bg) 0%, rgba(255,253,248,0.6) 35%, rgba(255,253,248,0.4) 65%, var(--color-bg) 100%),
      linear-gradient(to right, var(--color-bg) 0%, transparent 40%);
  }
  [data-theme="dark"] .testi-hero__fade {
    background:
      linear-gradient(to bottom, var(--color-bg) 0%, rgba(18,14,10,0.6) 35%, rgba(18,14,10,0.4) 65%, var(--color-bg) 100%),
      linear-gradient(to right, var(--color-bg) 0%, transparent 40%);
  }
}
