/* ============================================================
   DfPMI — Delivery First Project Management Institute
   Design system: Purple + Gold + Warm Neutral
   Primary font: Lato
   Secondary font: Montserrat
   ============================================================ */

:root {
  /* ---------- DfPMI BRAND COLOURS ---------- */

  /* Apply Lato everywhere as Primary */
body,
h1, h2, h3, h4, h5, h6,
.hero h1,
.page-hero h1,
.section-head h2,
p,
a {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Apply Montserrat strictly as Secondary (labels, buttons, tags) */
.eyebrow,
.btn,
.case-tag,
.badge-purple,
.lbl,
nav a {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif !important;
  letter-spacing: 0.03em;
}

  /* Primary Purple */
  --purple: #362061;
  --purple-light: #E1C3FF;
  --purple-dark: #120A21;

  /* Secondary Gold */
  --gold: #F4CF43;
  --gold-light: #FFF1BD;
  --gold-dark: #9C832C;

  /* Blacks */
  --ink: #1D1D1D;
  --ink-dark: #0F0F0F;
  --ink-muted: #545252;

  /* Whites / Warm Neutrals */
  --paper: #FFFAF0;
  --paper-2: #E5E0D5;
  --white: #FFFFFF;

  /* Supporting colours */
  --card: #FFFFFF;
  --line: rgba(29, 29, 29, 0.12);
  --line-2: rgba(29, 29, 29, 0.07);
  --line-dark: rgba(255, 255, 255, 0.14);

  --muted: #545252;
  --muted-2: #8A8787;

  --purple-soft: #E1C3FF;
  --gold-soft: #FFF1BD;

  /* ---------- FONTS ---------- */

  --font-display: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ---------- TYPE SCALE ---------- */

  --text-hero: clamp(2.55rem, 1.2rem + 5vw, 5.4rem);
  --text-h2: clamp(2rem, 1.2rem + 3vw, 3.7rem);
  --text-h3: clamp(1.35rem, 1.05rem + 1.1vw, 1.85rem);
  --text-lead: clamp(1.05rem, 0.98rem + 0.4vw, 1.28rem);

  /* ---------- LAYOUT ---------- */

  --container: 1240px;
  --gutter: clamp(1.15rem, 0.6rem + 2.4vw, 2.75rem);
  --space-section: clamp(4.5rem, 3rem + 6vw, 9rem);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;

  /* ---------- MOTION ---------- */

  --dur: 320ms;
  --dur-fast: 160ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* ---------- SHADOWS ---------- */

  --shadow: 0 24px 60px -34px rgba(18, 10, 33, 0.45);
  --shadow-sm: 0 14px 34px -24px rgba(18, 10, 33, 0.35);
}


/* ============================================================
   RESET / BASE
   ============================================================ */

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

* {
  margin: 0;
}

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

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

::selection {
  background: var(--purple);
  color: var(--white);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--purple-dark);
  color: var(--white);
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 10px 0;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ============================================================
   HELPERS
   ============================================================ */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-section);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
}

.eyebrow.on-dark {
  color: var(--gold);
}

.eyebrow.on-dark::before {
  background: var(--gold);
}

.section-head {
  display: grid;
  gap: 1.1rem;
  max-width: 660px;
  margin-bottom: clamp(2.2rem, 1rem + 4vw, 3.6rem);
}

.section-head h2 {
  font-size: var(--text-h2);
}

.section-head p {
  color: var(--muted);
  font-size: var(--text-lead);
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.97rem;
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  transition:
    transform var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease),
    color var(--dur-fast),
    border-color var(--dur-fast);
  white-space: nowrap;
}

.btn svg {
  width: 17px;
  height: 17px;
  transition: transform var(--dur) var(--ease);
}

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

.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
}

.btn-primary:hover svg {
  transform: translate(3px, -3px);
}

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

.btn-dark:hover {
  background: var(--ink-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid var(--purple) !important;
  color: var(--purple) !important;
  background: transparent !important;
  transition: all 0.2s ease !important;
}

.btn-ghost:hover {
  background: var(--purple) !important;
  color: var(--white) !important;
  border-color: var(--purple) !important;
}

.btn-ghost.on-dark {
  border-color: var(--line-dark);
  color: var(--white);
}

.btn-ghost.on-dark:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-lg {
  padding: 1.05rem 1.8rem;
  font-size: 1.02rem;
}


/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}

.site-header.scrolled {
  border-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}


/* ============================================================
   DfPMI LOGO
   ============================================================ */

/*
   IMPORTANT:
   The logo image itself should ideally be a transparent PNG/SVG
   containing only the DfPMI logo artwork.

   If your HTML is:

   <a class="brand" href="index.html">
      <img src="assets/img/dfpmi-logo.png" alt="DfPMI">
   </a>

   these rules control its size.
*/

.site-header .brand {
  display: flex;
  align-items: center;
  height: 76px;
  width: auto;
  flex-shrink: 0;
  overflow: hidden;
}

.site-header .brand img {
  display: block;
  width: 88px;
  height: auto;
  max-width: 88px;
  max-height: 44px;
  object-fit: contain;
  object-position: left center;
}

/*
   Hide the old template icon if it still exists.
*/

.site-header .brand .mark {
  display: none;
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
  transition: color var(--dur-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--purple);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--gold);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 3px auto;
  transition: transform var(--dur);
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding-top: clamp(3rem, 2rem + 4vw, 6rem);
  padding-bottom: 0;
}

.hero-top {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: end;
}

.hero h1 {
  font-size: var(--text-hero);
  letter-spacing: -0.035em;
  margin-top: 1.5rem;
  font-weight: 800;
}

.hero h1 .accent {
  color: var(--purple);
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 0.4rem;
}

.hero-aside p {
  color: var(--muted);
  font-size: var(--text-lead);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}

.hero-metric .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.7rem);
  letter-spacing: -0.03em;
}

.hero-metric .lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

.hero-metric .num .u {
  color: var(--purple);
}


/* ============================================================
   HERO IMAGE BAND
   ============================================================ */

.hero-band {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  position: relative;
}

.hero-band-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 21 / 8;
  background: var(--paper-2);
}

.hero-band-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-band .cred {
  position: absolute;
  left: clamp(1rem, 0.5rem + 2vw, 2.4rem);
  bottom: -26px;
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 1rem 1.3rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.hero-band .cred .c-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--purple);
}

.hero-band .cred .c-txt {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 22ch;
}


/* ============================================================
   LOGO WALL
   ============================================================ */

.logos {
  border-block: 1px solid var(--line);
}

.logos-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-block: 2rem;
}

.logos .lead {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  flex: 0 0 auto;
}

.logos .row {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 0.5rem + 2.5vw, 3rem);
  flex-wrap: wrap;
}

.logos .row span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--muted-2);
  transition: color var(--dur-fast);
}

.logos .row span:hover {
  color: var(--purple);
}


/* ============================================================
   CAPABILITIES / SERVICES
   ============================================================ */

.idx {
  border-top: 1px solid var(--line);
}

.idx-row {
  display: grid;
  grid-template-columns: 68px 1.1fr 1.4fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.3rem) 0.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition:
    background var(--dur) var(--ease),
    padding-inline var(--dur) var(--ease);
}

.idx-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur) var(--ease);
}

.idx-row:hover {
  background: var(--white);
  padding-inline: 1.4rem;
}

.idx-row:hover::before {
  transform: scaleY(1);
}

.idx-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--purple);
}

.idx-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h3);
  letter-spacing: -0.02em;
}

.idx-desc {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 46ch;
}

.idx-go {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition:
    background var(--dur),
    color var(--dur),
    border-color var(--dur);
}

.idx-go svg {
  width: 18px;
  height: 18px;
  transition: transform var(--dur);
}

.idx-row:hover .idx-go {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--white);
}

.idx-row:hover .idx-go svg {
  transform: translate(2px, -2px);
}


/* ============================================================
   METHOD
   ============================================================ */

.method {
  background: var(--paper-2);
}

.method-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}

.method-head {
  position: sticky;
  top: 100px;
}

.method-head h2 {
  font-size: var(--text-h2);
  margin-top: 1rem;
}

.method-head p {
  color: var(--muted);
  margin-top: 1.1rem;
  font-size: var(--text-lead);
}

.method-list {
  display: grid;
  gap: 0;
}

.method-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
}

.method-item:last-child {
  border-bottom: 1px solid var(--line);
}

.method-item .mn {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--purple);
  padding-top: 0.35rem;
}

.method-item h3 {
  font-size: 1.4rem;
}

.method-item p {
  color: var(--muted);
  margin-top: 0.5rem;
  font-size: 0.98rem;
}


/* ============================================================
   CASE STUDIES / RESULTS
   ============================================================ */

.cases-grid {
  display: grid;
  gap: 1.3rem;
}

.case {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.case:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.case:nth-child(even) .case-media {
  order: 2;
}

.case-media {
  aspect-ratio: 5 / 4;
  overflow: hidden;
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-body {
  padding: clamp(1.6rem, 1rem + 2vw, 2.6rem);
}

.case-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.case-metric {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem);
  letter-spacing: -0.03em;
  color: var(--purple);
  margin: 0.7rem 0 0.2rem;
}

.case h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.case p {
  color: var(--muted);
  font-size: 0.98rem;
}

.case .who {
  margin-top: 1.3rem;
  font-size: 0.88rem;
  font-weight: 600;
}


/* ============================================================
   STAT BAND
   ============================================================ */

.stats {
  background: var(--purple-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 1.5rem + 3vw, 4rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-cell {
  border-left: 2px solid var(--gold);
  padding-left: 1.2rem;
}

.stat-cell .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 1.4rem + 3vw, 3.6rem);
  letter-spacing: -0.03em;
}

.stat-cell .lbl {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  margin-top: 0.3rem;
}


/* ============================================================
   FEATURED TESTIMONIAL
   ============================================================ */

.quote-feat {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: center;
}

.quote-feat .q-media img {
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}

.quote-feat blockquote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.quote-feat .q-mark {
  color: var(--purple);
  font-size: 3rem;
  font-family: var(--font-display);
  line-height: 0.5;
}

.quote-feat .q-who {
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.quote-feat .q-who .n {
  font-weight: 600;
}

.quote-feat .q-who .r {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}


/* ============================================================
   CTA BAND
   ============================================================ */

.cta-band {
  background: var(--purple);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2.6rem, 1.5rem + 4vw, 5rem);
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 88% -20%,
      rgba(225, 195, 255, 0.25),
      transparent 55%
    );
  pointer-events: none;
}

.cta-band h2 {
  font-size: var(--text-h2);
  max-width: 18ch;
  position: relative;
}

.cta-band p {
  max-width: 46ch;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lead);
  position: relative;
}

.cta-band .actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  position: relative;
}


/* ============================================================
   FOOTER
   ============================================================ */
   /* ============================================================
   Footer Logo Sizing Fix
   ============================================================ */
/* ============================================================
   Site Footer
   ============================================================ */
.site-footer {
  background: var(--purple-dark);
  padding-top: clamp(3.5rem, 2rem + 4vw, 5.5rem);
  color: var(--white);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-dark);
}

/* Brand & Logo */
.footer-brand .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-primary, 'Lato', sans-serif);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.1rem;
}

.footer-brand .brand img,
.footer-brand .brand-logo img {
  width: auto;
  max-width: 130px;
  height: 42px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.footer-brand p {
  max-width: 34ch;
  font-family: var(--font-primary, 'Lato', sans-serif);
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

/* Column Links & Headers */
.footer-col h4 {
  font-family: var(--font-secondary, 'Montserrat', sans-serif);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.footer-col a {
  display: block;
  padding: 0.35rem 0;
  font-family: var(--font-primary, 'Lato', sans-serif);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold);
}

/* Bottom Bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.8rem;
  font-family: var(--font-secondary, 'Montserrat', sans-serif);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.7);
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: 0.6rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line-dark);
  display: grid;
  place-items: center;
  color: var(--white);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
  background: var(--purple);
  border-color: var(--gold);
  color: var(--gold);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

/* Responsive breakpoint for smaller tablets & mobile */
@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 1.5rem;
  }
}

@media (max-width: 520px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   Balanced Section Spacing
   ============================================================ */

/* Standard vertical space for every section */
.section {
  padding-block: clamp(3.5rem, 5vw, 4.5rem) !important;
}

/* Remove the aggressive 0 padding rule */
.section + .section {
  padding-top: clamp(3.5rem, 5vw, 4.5rem) !important;
}

/* ONLY compact the stats strip so it hugs the hero nicely */
.section:has(.stats-container-clean) {
  padding-top: clamp(3.5rem, 5vw, 4.5rem) !important;
  padding-bottom: clamp(1.5rem, 2.5vw, 2rem) !important;
}

/* Give the section heading text comfortable room below it */
.section-head {
  margin-bottom: clamp(2rem, 3.5vw, 3rem) !important;
}

/* Ensure the method grid and split layouts have room at the top */
.method-grid,
.wrap.split {
  padding-top: 0.5rem;
}

/* ============================================================
   PAGE HERO
   ============================================================ */

.page-hero {
  padding-top: clamp(3rem, 2rem + 3vw, 5rem);
  padding-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
}

.page-hero .crumb {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.8rem);
  letter-spacing: -0.035em;
  max-width: 17ch;
  font-weight: 800;
}

.page-hero p {
  color: var(--muted);
  font-size: var(--text-lead);
  max-width: 54ch;
  margin-top: 1.3rem;
}


/* ============================================================
   VALUES / FEATURE CARDS
   ============================================================ */

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.feat {
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.feat .fi {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  background: var(--gold-light);
  color: var(--purple);
  display: grid;
  place-items: center;
  margin-bottom: 1.3rem;
}

.feat .fi svg {
  width: 24px;
  height: 24px;
}

.feat h3 {
  font-size: 1.2rem;
}

.feat p {
  color: var(--muted);
  margin-top: 0.5rem;
  font-size: 0.96rem;
}


/* ============================================================
   SPLIT SECTIONS
   ============================================================ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}

.split-media img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

.split h2 {
  font-size: var(--text-h2);
  margin-top: 1rem;
}

.split p {
  color: var(--muted);
  margin-top: 1rem;
  font-size: var(--text-lead);
}

.check-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
}

.check-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.check-list .ci {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--gold-light);
  color: var(--purple);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-top: 3px;
}

.check-list .ci svg {
  width: 14px;
  height: 14px;
}

.check-list strong {
  font-weight: 600;
}

.check-list span.t {
  color: var(--muted);
  font-size: 0.94rem;
}


/* ============================================================
   TEAM
   ============================================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.member img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  filter: grayscale(0.2);
}

.member h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-top: 1rem;
}

.member p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--purple);
  letter-spacing: 0.03em;
}


/* ============================================================
   CONTACT
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: start;
}

.contact-info .info-item {
  display: flex;
  gap: 1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-info .info-item:first-child {
  padding-top: 0;
}

.contact-info .ii-ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gold-light);
  color: var(--purple);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.contact-info .ii-ico svg {
  width: 21px;
  height: 21px;
}

.contact-info h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.contact-info p,
.contact-info a {
  color: var(--muted);
  font-size: 0.96rem;
}

.contact-info a:hover {
  color: var(--purple);
}

.form-card {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1rem + 2vw, 2.4rem);
  box-shadow: var(--shadow-sm);
}

.field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 0.96rem;
  padding: 0.82rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  transition:
    border-color var(--dur-fast),
    background var(--dur-fast);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple);
  background: var(--white);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.4rem;
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.9rem;
  text-align: center;
}


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

.faq {
  display: grid;
  gap: 1rem;
  max-width: 820px;
}

.faq details {
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.faq summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--purple);
  font-size: 1.4rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq p {
  color: var(--muted);
  margin-top: 0.7rem;
}


/* ============================================================
   REVEAL ANIMATION
   ============================================================ */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}


/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 1020px) {

  .hero-top {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-aside {
    padding-bottom: 0;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .method-head {
    position: static;
  }

  .case,
  .case:nth-child(even) .case-media {
    grid-template-columns: 1fr;
  }

  .case-media,
  .case:nth-child(even) .case-media {
    order: 0;
    aspect-ratio: 16 / 9;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split-media {
    max-width: 480px;
  }

  .quote-feat {
    grid-template-columns: 1fr;
  }

  .quote-feat .q-media {
    max-width: 260px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feat-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 760px) {

  .nav-links,
  .header-cta .btn-ghost {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
  }

  .hero-band-img {
    aspect-ratio: 16 / 11;
  }

  .idx-row {
    grid-template-columns: 44px 1fr;
    gap: 0.4rem 1rem;
  }

  .idx-desc {
    grid-column: 2;
  }

  .idx-go {
    display: none;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .logos-inner {
    justify-content: flex-start;
  }

  .nav-links.open {
    display: flex;
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.5rem;
    z-index: 99;
  }

  .nav-links.open a {
    display: inline-block;
    padding: 0.9rem 0;
    font-size: 1.05rem;
  }

  .nav-links.open li {
    width: 100%;
    border-bottom: 1px solid var(--line-2);
  }

  .nav-links.open a[aria-current="page"]::after {
    right: auto;
    bottom: 0.55rem;
    width: 100%;
  }

  /*
     Smaller DfPMI logo on mobile.
  */

  .site-header .brand img {
    width: 78px;
    max-width: 78px;
    max-height: 38px;
  }
}


/* ============================================================
   RESPONSIVE — SMALL MOBILE
   ============================================================ */

@media (max-width: 480px) {

  .hero-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .site-header .brand img {
    width: 72px;
    max-width: 72px;
    max-height: 34px;
  }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

  /* ============================================================
   UNIVERSAL MOBILE RESPONSIVENESS FIX (All DFPMI Pages)
   ============================================================ */

/* 1. Prevent sideways page scroll and image blowout */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
}

img, svg, video {
  max-width: 100% !important;
  height: auto;
}

.wrap {
  width: 100% !important;
  box-sizing: border-box !important;
  padding-inline: clamp(1rem, 4vw, 1.5rem) !important;
}

/* 2. Header and Navigation on Phones */
@media (max-width: 768px) {
  .header-inner {
    gap: 0.5rem !important;
    min-width: 0;
  }

  .site-header .brand {
    min-width: 0;
  }

  .site-header .nav-links:not(.open) {
    display: none !important;
  }

  .site-header .nav-links.open {
    display: flex !important;
    position: fixed !important;
    top: 76px !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  /* Hide the ghost CTA button on phones to prevent crowding */
  .header-cta .btn-ghost {
    display: none !important;
  }

  .header-cta {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  .header-cta .btn-primary {
    padding: 0.5rem 0.85rem !important;
    font-size: 0.82rem !important;
    max-width: min(170px, calc(100vw - 140px));
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* 3. Split-Screens, Grids, and Cards */
@media (max-width: 768px) {
  .split,
  .hero-top,
  .method-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  .split-media,
  .hero-band-img {
    width: 100% !important;
    order: -1;
  }

  .split-media img,
  .hero-band-img img {
    width: 100% !important;
    max-height: 280px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
  }

  /* Force 1-column layouts so cards don't get squashed */
  .feat-grid,
  .cases-grid,
  .contact-grid,
  .team-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .contact-grid,
  .contact-info,
  .info-card,
  .form-card {
    min-width: 0;
  }

  .contact-grid {
    width: 100%;
  }

  .info-card {
    padding: 1.25rem;
    gap: 0.9rem;
  }

  .info-card > div {
    min-width: 0;
  }

  .info-card a,
  .info-card p,
  .cohort-detail-value,
  .cohort-note {
    overflow-wrap: anywhere;
  }

  .form-card {
    width: 100%;
    padding: 1.25rem;
  }

  .contact-field-row {
    grid-template-columns: 1fr !important;
  }

  /* Fix featured Mentorship card on training.html */
  .card-full-bleed {
    flex-direction: column !important;
  }

  .card-full-bleed .case-media {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-height: 200px !important;
  }

  .card-full-bleed .case-body {
    flex: 1 1 auto !important;
    padding: 1.5rem !important;
  }

  /* Full-width touch-friendly buttons */
  .actions,
  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }

  .actions .btn,
  .hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* 4. Small Phones (Screen width 480px and below) */
@media (max-width: 480px) {
  h1, .page-hero h1 {
    font-size: 1.95rem !important;
    line-height: 1.2 !important;
  }

  h2, .section-head h2 {
    font-size: 1.5rem !important;
    line-height: 1.25 !important;
  }

  .stats-clean-grid,
  .hero-metrics {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.85rem !important;
  }

  .stat-clean-cell,
  .hero-metric {
    padding-left: 0.75rem !important;
  }

  .stat-clean-cell .num,
  .hero-metric .num {
    font-size: 1.65rem !important;
  }

  .cohort-detail {
    grid-template-columns: 1fr !important;
    gap: 0.2rem !important;
  }
}