/* =============================================================================
   White Falcon Publishing — Design System
   Single source of truth for the site chrome (top app bar, drawer, footer)
   and the landing page components. No framework dependencies.
   -----------------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Layout primitives
   4.  Typography components
   5.  Buttons
   6.  Cards & surfaces
   7.  Top app bar + navigation drawer
   8.  Hero banner carousel + interior page header
   9.  Stats / trust strip
   10. Feature, step & service grids
   11. Split (media + copy) blocks
   12. Media carousels (book covers, marketing, authors)
   13. Logo wall
   14. Emphasis band & final CTA
   15. Footer
   16. Floating actions (WhatsApp, back to top)
   17. Motion & utilities
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* =============================================================================
   1. TOKENS
   ========================================================================== */

:root {
  /* --- Brand palette --------------------------------------------------- */
  --wfp-navy:            #1a3c5e;
  --wfp-navy-hover:      #24507b;
  --wfp-navy-deep:       #12293f;
  --wfp-gold:            #c8a962;
  --wfp-gold-light:      #e0c882;
  --wfp-gold-deep:       #a98a45;
  --wfp-teal:            #0f9aa8;

  /* --- Neutrals -------------------------------------------------------- */
  --wfp-ink:             #16202b;
  --wfp-body:            #4a5568;
  --wfp-muted:           #6b7280;
  --wfp-surface:         #ffffff;
  --wfp-surface-1:       #f8f9fc;
  --wfp-surface-2:       #eef1f6;
  --wfp-outline:         #e2e6ee;
  --wfp-outline-strong:  #cbd2de;
  --wfp-on-dark:         rgba(255, 255, 255, 0.92);
  --wfp-on-dark-muted:   rgba(255, 255, 255, 0.68);

  /* --- Typography ------------------------------------------------------ */
  --wfp-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --wfp-font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --wfp-text-xs:   0.75rem;    /* 12 */
  --wfp-text-sm:   0.8125rem;  /* 13 */
  --wfp-text-base: 0.9375rem;  /* 15 */
  --wfp-text-md:   1rem;       /* 16 */
  --wfp-text-lg:   1.125rem;   /* 18 */
  --wfp-text-xl:   1.375rem;   /* 22 */
  --wfp-text-2xl:  1.75rem;    /* 28 */
  --wfp-text-3xl:  2.25rem;    /* 36 */
  --wfp-text-4xl:  2.75rem;    /* 44 */

  /* --- Spacing (4px base) ---------------------------------------------- */
  --wfp-sp-1:  0.25rem;
  --wfp-sp-2:  0.5rem;
  --wfp-sp-3:  0.75rem;
  --wfp-sp-4:  1rem;
  --wfp-sp-5:  1.25rem;
  --wfp-sp-6:  1.5rem;
  --wfp-sp-8:  2rem;
  --wfp-sp-10: 2.5rem;
  --wfp-sp-12: 3rem;
  --wfp-sp-16: 4rem;
  --wfp-sp-20: 5rem;

  /* --- Shape ----------------------------------------------------------- */
  --wfp-radius-sm:   8px;
  --wfp-radius:      12px;
  --wfp-radius-lg:   20px;
  --wfp-radius-pill: 999px;

  /* --- Elevation ------------------------------------------------------- */
  --wfp-elev-1: 0 1px 2px rgba(22, 32, 43, 0.06), 0 1px 3px rgba(22, 32, 43, 0.05);
  --wfp-elev-2: 0 2px 6px rgba(22, 32, 43, 0.07), 0 4px 12px rgba(22, 32, 43, 0.06);
  --wfp-elev-3: 0 6px 16px rgba(22, 32, 43, 0.09), 0 12px 32px rgba(22, 32, 43, 0.08);
  --wfp-elev-4: 0 12px 28px rgba(22, 32, 43, 0.12), 0 24px 56px rgba(22, 32, 43, 0.10);

  /* --- Motion ---------------------------------------------------------- */
  --wfp-ease:      cubic-bezier(0.2, 0, 0, 1);
  --wfp-ease-emph: cubic-bezier(0.3, 0, 0, 1);
  --wfp-dur-fast:  140ms;
  --wfp-dur:       240ms;
  --wfp-dur-slow:  420ms;
  /* Crossfade length for the banner/image carousels. wfp-home.js reads this
     value, so keep it in ms. */
  --wfp-fade:      900ms;

  /* --- Layout ---------------------------------------------------------- */
  --wfp-container:      1200px;
  --wfp-container-wide: 1440px;
  --wfp-gutter:         24px;
  --wfp-appbar-h:       76px;
}

/* =============================================================================
   2. RESET & BASE
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--wfp-appbar-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--wfp-font-body);
  font-size: var(--wfp-text-md);
  line-height: 1.7;
  color: var(--wfp-body);
  background: var(--wfp-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--wfp-sp-3);
  font-family: var(--wfp-font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--wfp-ink);
  letter-spacing: -0.01em;
}

p { margin: 0 0 var(--wfp-sp-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--wfp-navy);
  text-decoration: none;
  transition: color var(--wfp-dur) var(--wfp-ease);
}
a:hover { color: var(--wfp-gold-deep); }

img,
svg { display: block; max-width: 100%; }
img { height: auto; border: 0; }

ul, ol { margin: 0; padding: 0; }

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

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

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}

.wfp-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wfp-skip-link {
  position: absolute;
  left: var(--wfp-sp-4);
  top: -100px;
  z-index: 1200;
  padding: var(--wfp-sp-3) var(--wfp-sp-5);
  border-radius: var(--wfp-radius-sm);
  background: var(--wfp-navy);
  color: #fff;
  font-weight: 600;
  transition: top var(--wfp-dur) var(--wfp-ease);
}
.wfp-skip-link:focus { top: var(--wfp-sp-4); color: #fff; }

/* =============================================================================
   3. LAYOUT PRIMITIVES
   ========================================================================== */

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

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

.wfp-section { padding-block: var(--wfp-sp-16); }
.wfp-section--tight { padding-block: var(--wfp-sp-12); }
.wfp-section--alt { background: var(--wfp-surface-1); }
.wfp-section--outlined { border-top: 1px solid var(--wfp-outline); }

.wfp-grid {
  display: grid;
  gap: var(--wfp-sp-6);
  grid-template-columns: repeat(var(--wfp-cols, 3), minmax(0, 1fr));
}
.wfp-grid--2 { --wfp-cols: 2; }
.wfp-grid--3 { --wfp-cols: 3; }
.wfp-grid--4 { --wfp-cols: 4; }

.wfp-stack > * + * { margin-top: var(--wfp-sp-4); }
.wfp-center { text-align: center; }
.wfp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wfp-sp-3);
  align-items: center;
}
.wfp-actions--center { justify-content: center; }
.wfp-section-actions { margin-top: var(--wfp-sp-10); }

/* =============================================================================
   4. TYPOGRAPHY COMPONENTS
   ========================================================================== */

.wfp-section-head {
  max-width: 760px;
  margin: 0 auto var(--wfp-sp-12);
  text-align: center;
}

.wfp-eyebrow {
  display: inline-block;
  margin-bottom: var(--wfp-sp-3);
  font-family: var(--wfp-font-body);
  font-size: var(--wfp-text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wfp-gold-deep);
}

.wfp-title {
  margin-bottom: var(--wfp-sp-4);
  font-size: var(--wfp-text-3xl);
}
.wfp-title--sm { font-size: var(--wfp-text-2xl); }

.wfp-section-head .wfp-title { position: relative; padding-bottom: var(--wfp-sp-5); }
.wfp-section-head .wfp-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--wfp-gold), var(--wfp-gold-light));
}

.wfp-lead {
  font-size: var(--wfp-text-lg);
  line-height: 1.7;
  color: var(--wfp-muted);
}

.wfp-prose p { color: var(--wfp-body); }
.wfp-prose p + p { margin-top: var(--wfp-sp-4); }
.wfp-prose strong { color: var(--wfp-ink); font-weight: 600; }
.wfp-prose a { font-weight: 500; }

/* Icon list ---------------------------------------------------------------- */
.wfp-list {
  list-style: none;
  display: grid;
  gap: var(--wfp-sp-2);
}

.wfp-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--wfp-sp-3);
  align-items: start;
  font-size: var(--wfp-text-base);
  line-height: 1.6;
  color: var(--wfp-body);
}

.wfp-list li .material-symbols-outlined {
  font-size: 20px;
  line-height: 1.45;
  color: var(--wfp-teal);
}
.wfp-list li strong { color: var(--wfp-ink); font-weight: 600; }

/* Checklist inside cards --------------------------------------------------- */
.wfp-checklist { list-style: none; }

.wfp-checklist li {
  position: relative;
  padding: var(--wfp-sp-2) 0 var(--wfp-sp-2) var(--wfp-sp-8);
  border-bottom: 1px solid var(--wfp-outline);
  font-size: var(--wfp-text-base);
  line-height: 1.5;
  color: var(--wfp-body);
}
.wfp-checklist li:last-child { border-bottom: 0; }

.wfp-checklist li::before {
  content: 'check';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  /* Material Symbols renders icon names as ligatures — these settings are
     required because the ::before pseudo-element cannot carry the icon class. */
  font-family: 'Material Symbols Outlined', sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  color: var(--wfp-teal);
}

/* =============================================================================
   5. BUTTONS
   ========================================================================== */

.wfp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--wfp-sp-2);
  padding: 0.75rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--wfp-radius-pill);
  font-family: var(--wfp-font-body);
  font-size: var(--wfp-text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--wfp-dur) var(--wfp-ease),
              color var(--wfp-dur) var(--wfp-ease),
              border-color var(--wfp-dur) var(--wfp-ease),
              box-shadow var(--wfp-dur) var(--wfp-ease),
              transform var(--wfp-dur) var(--wfp-ease);
}

.wfp-btn .material-symbols-outlined { font-size: 18px; }

/* Filled — primary action */
.wfp-btn--filled {
  background: linear-gradient(135deg, var(--wfp-gold), var(--wfp-gold-light));
  color: var(--wfp-navy-deep);
  box-shadow: 0 2px 10px rgba(169, 138, 69, 0.28);
}
.wfp-btn--filled:hover {
  color: var(--wfp-navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(169, 138, 69, 0.38);
}

/* Tonal — secondary action on light surfaces */
.wfp-btn--tonal {
  background: var(--wfp-navy);
  color: #fff;
  box-shadow: var(--wfp-elev-1);
}
.wfp-btn--tonal:hover {
  background: var(--wfp-navy-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--wfp-elev-2);
}

/* Outlined — tertiary action */
.wfp-btn--outlined {
  border-color: var(--wfp-outline-strong);
  background: var(--wfp-surface);
  color: var(--wfp-navy);
}
.wfp-btn--outlined:hover {
  border-color: var(--wfp-navy);
  color: var(--wfp-navy);
  background: var(--wfp-surface-1);
}

/* Outlined on dark backgrounds */
.wfp-btn--outlined-inverse {
  border-color: var(--wfp-gold);
  background: transparent;
  color: var(--wfp-gold);
}
.wfp-btn--outlined-inverse:hover {
  background: var(--wfp-gold);
  color: var(--wfp-navy-deep);
  transform: translateY(-2px);
}

/* Text button */
.wfp-btn--text {
  padding-inline: var(--wfp-sp-2);
  background: none;
  color: var(--wfp-navy);
}
.wfp-btn--text:hover { color: var(--wfp-gold-deep); }

.wfp-btn--lg { padding: 0.9375rem 2.5rem; font-size: var(--wfp-text-base); }
.wfp-btn--block { width: 100%; }

/* =============================================================================
   6. CARDS & SURFACES
   ========================================================================== */

.wfp-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--wfp-outline);
  border-radius: var(--wfp-radius);
  background: var(--wfp-surface);
  box-shadow: var(--wfp-elev-1);
  transition: box-shadow var(--wfp-dur) var(--wfp-ease),
              transform var(--wfp-dur) var(--wfp-ease),
              border-color var(--wfp-dur) var(--wfp-ease);
}

.wfp-card:hover {
  transform: translateY(-4px);
  border-color: var(--wfp-outline-strong);
  box-shadow: var(--wfp-elev-3);
}

.wfp-card__media {
  position: relative;
  overflow: hidden;
  background: var(--wfp-surface-2);
}
.wfp-card__media img { width: 100%; }

.wfp-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--wfp-sp-6);
}

.wfp-card__title {
  margin-bottom: var(--wfp-sp-2);
  font-size: var(--wfp-text-xl);
}
.wfp-card__title a { color: var(--wfp-ink); }
.wfp-card__title a:hover { color: var(--wfp-navy); }

.wfp-card__tag {
  display: block;
  margin-bottom: var(--wfp-sp-4);
  font-size: var(--wfp-text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wfp-gold-deep);
}

.wfp-card__text {
  flex: 1;
  font-size: var(--wfp-text-base);
  line-height: 1.75;
  color: var(--wfp-muted);
}

/* margin-top:auto pins the footer to the bottom of the card body, so buttons
   line up across a row whether or not a sibling carries flex:1 (the books card
   has no body text to absorb the slack). */
.wfp-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wfp-sp-3);
  margin-top: auto;
  padding-top: var(--wfp-sp-6);
}

/* ---------- Forms ---------------------------------------------------------
   Submission is handled by assets/js/wfp-forms.js (fetch, no jQuery).
   -------------------------------------------------------------------------- */

.wfp-form {
  display: grid;
  gap: var(--wfp-sp-5);
  padding: var(--wfp-sp-8);
  border: 1px solid var(--wfp-outline);
  border-radius: var(--wfp-radius);
  background: var(--wfp-surface);
  box-shadow: var(--wfp-elev-1);
}

.wfp-form__row {
  display: grid;
  gap: var(--wfp-sp-5);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* The form is a grid, so its gap owns the spacing — heading margins would
   otherwise stack on top of it. */
.wfp-form > h2,
.wfp-form > h3 { margin-bottom: 0; }

.wfp-field { display: grid; gap: var(--wfp-sp-2); }

.wfp-label {
  font-family: var(--wfp-font-body);
  font-size: var(--wfp-text-sm);
  font-weight: 600;
  color: var(--wfp-ink);
}
.wfp-label .wfp-required { color: #b3261e; }

.wfp-input,
.wfp-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--wfp-outline-strong);
  border-radius: var(--wfp-radius-sm);
  background: var(--wfp-surface);
  font-family: var(--wfp-font-body);
  font-size: var(--wfp-text-base);
  color: var(--wfp-ink);
  transition: border-color var(--wfp-dur) var(--wfp-ease),
              box-shadow var(--wfp-dur) var(--wfp-ease);
}

.wfp-textarea { resize: vertical; min-height: 132px; }

.wfp-select {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 1px solid var(--wfp-outline-strong);
  border-radius: var(--wfp-radius-sm);
  background-color: var(--wfp-surface);
  /* Chevron drawn inline so the control needs no icon font or extra markup. */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a3c5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 18px;
  font-family: var(--wfp-font-body);
  font-size: var(--wfp-text-base);
  color: var(--wfp-ink);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color var(--wfp-dur) var(--wfp-ease),
              box-shadow var(--wfp-dur) var(--wfp-ease);
}

.wfp-select:focus {
  outline: none;
  border-color: var(--wfp-navy);
  box-shadow: 0 0 0 3px rgba(26, 60, 94, 0.14);
}

.wfp-input[readonly] {
  background: var(--wfp-surface-1);
  border-color: var(--wfp-outline);
  color: var(--wfp-navy);
  cursor: default;
}

/* Column of stacked cards inside a single grid cell.
   .wfp-card sets height:100%, which is correct when the card *is* the grid
   cell but overflows badly when several share one stretched cell — each would
   claim the full column height. Own rows + height:auto keeps them content-sized. */
.wfp-card-column {
  display: grid;
  gap: var(--wfp-sp-6);
  align-content: start;
}
.wfp-card-column > .wfp-card { height: auto; }

/* Calculator readouts: label on the left, read-only figure on the right. */
.wfp-results { display: grid; }

.wfp-result {
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: var(--wfp-sp-4);
  align-items: center;
  padding: var(--wfp-sp-3) 0;
  border-bottom: 1px solid var(--wfp-outline);
}
.wfp-result:first-child { padding-top: 0; }
.wfp-result:last-child { padding-bottom: 0; border-bottom: 0; }

.wfp-result__label {
  font-family: var(--wfp-font-body);
  font-size: var(--wfp-text-base);
  line-height: 1.45;
  color: var(--wfp-body);
}

.wfp-result__value {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--wfp-outline);
  border-radius: var(--wfp-radius-sm);
  background: var(--wfp-surface-1);
  font-family: var(--wfp-font-body);
  font-size: var(--wfp-text-lg);
  font-weight: 700;
  text-align: right;
  color: var(--wfp-navy);
}
.wfp-result__value:focus { outline: none; }

@media (max-width: 480px) {
  .wfp-result { grid-template-columns: 1fr 108px; gap: var(--wfp-sp-3); }
  .wfp-result__value { font-size: var(--wfp-text-md); }
}

.wfp-input::placeholder,
.wfp-textarea::placeholder { color: #9aa3b0; }

.wfp-input:focus,
.wfp-textarea:focus {
  outline: none;
  border-color: var(--wfp-navy);
  box-shadow: 0 0 0 3px rgba(26, 60, 94, 0.14);
}

.wfp-input[aria-invalid='true'],
.wfp-textarea[aria-invalid='true'] { border-color: #b3261e; }
.wfp-input[aria-invalid='true']:focus,
.wfp-textarea[aria-invalid='true']:focus { box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.16); }

.wfp-field__error {
  min-height: 0;
  font-size: var(--wfp-text-xs);
  font-weight: 500;
  color: #b3261e;
}
.wfp-field__error:empty { display: none; }

/* Checkbox groups */
.wfp-fieldset {
  display: grid;
  gap: var(--wfp-sp-3);
  padding: 0;
  margin: 0;
  border: 0;
}

.wfp-fieldset__legend {
  padding: 0;
  font-family: var(--wfp-font-body);
  font-size: var(--wfp-text-sm);
  font-weight: 600;
  color: var(--wfp-ink);
}

.wfp-check-group {
  display: grid;
  gap: var(--wfp-sp-2);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.wfp-check {
  display: flex;
  align-items: flex-start;
  gap: var(--wfp-sp-3);
  padding: var(--wfp-sp-2) var(--wfp-sp-3);
  border: 1px solid var(--wfp-outline);
  border-radius: var(--wfp-radius-sm);
  font-size: var(--wfp-text-base);
  line-height: 1.45;
  color: var(--wfp-body);
  cursor: pointer;
  transition: border-color var(--wfp-dur) var(--wfp-ease),
              background var(--wfp-dur) var(--wfp-ease);
}
.wfp-check:hover { border-color: var(--wfp-outline-strong); background: var(--wfp-surface-1); }
.wfp-check:has(input:checked) { border-color: var(--wfp-gold); background: rgba(200, 169, 98, 0.08); }

.wfp-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--wfp-navy);
  flex-shrink: 0;
}

.wfp-form__note {
  margin: 0;
  font-size: var(--wfp-text-xs);
  color: var(--wfp-muted);
}

/* Status banner */
.wfp-form__status {
  padding: var(--wfp-sp-3) var(--wfp-sp-4);
  border-radius: var(--wfp-radius-sm);
  font-size: var(--wfp-text-base);
  font-weight: 500;
}
.wfp-form__status:empty { display: none; }
.wfp-form__status[data-state='error'] {
  background: rgba(179, 38, 30, 0.08);
  border: 1px solid rgba(179, 38, 30, 0.3);
  color: #8c1d18;
}
.wfp-form__status[data-state='success'] {
  background: rgba(15, 154, 168, 0.08);
  border: 1px solid rgba(15, 154, 168, 0.3);
  color: #0b6f78;
}

/* Button busy state */
.wfp-btn[aria-busy='true'] { opacity: 0.75; pointer-events: none; }
.wfp-btn[aria-busy='true'] .wfp-btn__spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: wfp-spin 0.7s linear infinite;
}
.wfp-btn__spinner { display: none; }

@keyframes wfp-spin { to { transform: rotate(360deg); } }

/* ---------- Dialog --------------------------------------------------------
   Native <dialog>, replacing the Bootstrap modal.
   -------------------------------------------------------------------------- */

.wfp-dialog {
  width: min(460px, calc(100vw - 2rem));
  padding: 0;
  border: 0;
  border-radius: var(--wfp-radius);
  background: var(--wfp-surface);
  box-shadow: var(--wfp-elev-4);
  color: var(--wfp-body);
}
.wfp-dialog::backdrop { background: rgba(10, 18, 28, 0.6); }

.wfp-dialog__body {
  padding: var(--wfp-sp-8);
  text-align: center;
}

.wfp-dialog__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto var(--wfp-sp-5);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wfp-gold), var(--wfp-gold-light));
  color: var(--wfp-navy-deep);
}
.wfp-dialog__icon .material-symbols-outlined { font-size: 32px; }

.wfp-dialog__body h2 { margin-bottom: var(--wfp-sp-3); font-size: var(--wfp-text-xl); }
.wfp-dialog__body p { margin-bottom: var(--wfp-sp-6); font-size: var(--wfp-text-base); }

@media (max-width: 680px) {
  .wfp-form { padding: var(--wfp-sp-5); }
  .wfp-form__row { grid-template-columns: minmax(0, 1fr); }
}

/* =============================================================================
   7. TOP APP BAR + NAVIGATION DRAWER   (markup emitted by menu.js)
   ========================================================================== */

.m3-top-app-bar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--wfp-outline);
}

.m3-top-app-bar__inner {
  display: flex;
  align-items: center;
  gap: var(--wfp-sp-4);
  width: 100%;
  max-width: var(--wfp-container);
  min-height: var(--wfp-appbar-h);
  margin-inline: auto;
  padding-inline: var(--wfp-gutter);
  transition: min-height var(--wfp-dur) var(--wfp-ease);
}

.m3-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--wfp-navy);
  transition: background var(--wfp-dur) var(--wfp-ease);
}
.m3-icon-btn:hover { background: var(--wfp-surface-2); }
.m3-icon-btn .material-symbols-outlined { font-size: 26px; }

.m3-top-app-bar__menu-btn { display: none; }

.m3-top-app-bar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
}
.m3-top-app-bar__logo-img {
  width: auto;
  height: 44px;
  object-fit: contain;
  transition: height var(--wfp-dur) var(--wfp-ease);
}
/* Default (solid bar): dark logo only. The light one is for the transparent
   overlay state and is switched on by .wfp-hero-page below. */
.m3-top-app-bar__logo-img--light { display: none; }

.m3-top-app-bar__nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.m3-top-app-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: var(--wfp-sp-2) 10px;
  border-radius: var(--wfp-radius-pill);
  font-family: var(--wfp-font-body);
  font-size: var(--wfp-text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--wfp-ink);
  transition: background var(--wfp-dur) var(--wfp-ease),
              color var(--wfp-dur) var(--wfp-ease);
}
.m3-top-app-bar__link:hover,
.m3-top-app-bar__link[aria-expanded='true'] {
  background: var(--wfp-surface-2);
  color: var(--wfp-navy);
}
.m3-top-app-bar__link.is-active { color: var(--wfp-navy); font-weight: 600; }
.m3-top-app-bar__link .material-symbols-outlined { font-size: 18px; }

/* Dropdown menus ----------------------------------------------------------- */
.m3-nav-item { position: relative; }

.m3-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 950;
  min-width: 248px;
  padding: var(--wfp-sp-2);
  list-style: none;
  border: 1px solid var(--wfp-outline);
  border-radius: var(--wfp-radius);
  background: var(--wfp-surface);
  box-shadow: var(--wfp-elev-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--wfp-dur) var(--wfp-ease),
              transform var(--wfp-dur) var(--wfp-ease),
              visibility var(--wfp-dur) var(--wfp-ease);
}

.m3-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.m3-menu a {
  display: block;
  padding: var(--wfp-sp-2) var(--wfp-sp-3);
  border-radius: var(--wfp-radius-sm);
  font-size: var(--wfp-text-sm);
  font-weight: 500;
  color: var(--wfp-body);
  transition: background var(--wfp-dur-fast) var(--wfp-ease),
              color var(--wfp-dur-fast) var(--wfp-ease);
}
.m3-menu a:hover { background: var(--wfp-surface-1); color: var(--wfp-navy); }

/* Scrim -------------------------------------------------------------------- */
.m3-scrim {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(22, 32, 43, 0.5);
  opacity: 0;
  transition: opacity var(--wfp-dur) var(--wfp-ease);
}
.m3-scrim.is-open { opacity: 1; }
.m3-scrim[hidden] { display: none; }

/* Drawer ------------------------------------------------------------------- */
.m3-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  width: min(320px, 88vw);
  display: flex;
  flex-direction: column;
  background: var(--wfp-surface);
  box-shadow: var(--wfp-elev-4);
  transform: translateX(-100%);
  transition: transform var(--wfp-dur-slow) var(--wfp-ease-emph);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.m3-drawer.is-open { transform: translateX(0); }

.m3-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wfp-sp-4);
  padding: var(--wfp-sp-4);
  border-bottom: 1px solid var(--wfp-outline);
}
.m3-drawer__header img { height: 34px; width: auto; }

.m3-drawer__nav {
  display: flex;
  flex-direction: column;
  padding: var(--wfp-sp-3) var(--wfp-sp-3) var(--wfp-sp-8);
}

.m3-drawer__link {
  display: flex;
  align-items: center;
  gap: var(--wfp-sp-3);
  padding: var(--wfp-sp-3) var(--wfp-sp-4);
  border-radius: var(--wfp-radius-pill);
  font-size: var(--wfp-text-base);
  font-weight: 500;
  color: var(--wfp-ink);
}
.m3-drawer__link:hover { background: var(--wfp-surface-2); color: var(--wfp-navy); }
.m3-drawer__link .material-symbols-outlined { font-size: 22px; color: var(--wfp-navy); }

.m3-drawer__group-title {
  margin: var(--wfp-sp-5) var(--wfp-sp-4) var(--wfp-sp-2);
  font-size: var(--wfp-text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wfp-muted);
}

.m3-drawer__sublink {
  padding: var(--wfp-sp-2) var(--wfp-sp-4);
  border-radius: var(--wfp-radius-sm);
  font-size: var(--wfp-text-base);
  color: var(--wfp-body);
}
.m3-drawer__sublink:hover { background: var(--wfp-surface-1); color: var(--wfp-navy); }

/* Uppercase nav needs more room than sentence case, so hand over to the
   drawer a little earlier. */
@media (max-width: 1240px) {
  .m3-top-app-bar__menu-btn { display: inline-flex; }
  .m3-top-app-bar__nav { display: none; }
  .m3-top-app-bar__logo { margin-inline: auto 0; }
}

/* --- Transparent-over-hero mode ------------------------------------------
   On pages that open with a full-bleed hero, the bar floats over the banner
   and only turns solid once the user scrolls (menu.js toggles .is-scrolled).
   ------------------------------------------------------------------------ */
.wfp-hero-page .m3-top-app-bar {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background var(--wfp-dur) var(--wfp-ease),
              border-color var(--wfp-dur) var(--wfp-ease),
              box-shadow var(--wfp-dur) var(--wfp-ease);
}

.wfp-hero-page .m3-top-app-bar__logo-img--light { display: block; }
.wfp-hero-page .m3-top-app-bar__logo-img--dark { display: none; }

/* Taller while floating over the banner, shrinking once the bar goes solid. */
.wfp-hero-page .m3-top-app-bar__inner { min-height: 96px; }
.wfp-hero-page .m3-top-app-bar__logo-img { height: 54px; }

.wfp-hero-page .m3-top-app-bar__link,
.wfp-hero-page .m3-icon-btn {
  color: #fff;
  /* Imperceptible on the dark banners, but keeps the nav readable over the
     light top edge of MapBanner1. */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.wfp-hero-page .m3-top-app-bar__link:hover,
.wfp-hero-page .m3-top-app-bar__link[aria-expanded='true'],
.wfp-hero-page .m3-icon-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Scrolled: back to the standard solid bar. */
.wfp-hero-page .m3-top-app-bar.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--wfp-outline);
  box-shadow: var(--wfp-elev-2);
}

.wfp-hero-page .m3-top-app-bar.is-scrolled .m3-top-app-bar__inner { min-height: var(--wfp-appbar-h); }
.wfp-hero-page .m3-top-app-bar.is-scrolled .m3-top-app-bar__logo-img { height: 44px; }

.wfp-hero-page .m3-top-app-bar.is-scrolled .m3-top-app-bar__logo-img--light { display: none; }
.wfp-hero-page .m3-top-app-bar.is-scrolled .m3-top-app-bar__logo-img--dark { display: block; }

.wfp-hero-page .m3-top-app-bar.is-scrolled .m3-top-app-bar__link,
.wfp-hero-page .m3-top-app-bar.is-scrolled .m3-icon-btn {
  color: var(--wfp-ink);
  text-shadow: none;
}

.wfp-hero-page .m3-top-app-bar.is-scrolled .m3-top-app-bar__link:hover,
.wfp-hero-page .m3-top-app-bar.is-scrolled .m3-top-app-bar__link[aria-expanded='true'],
.wfp-hero-page .m3-top-app-bar.is-scrolled .m3-icon-btn:hover {
  background: var(--wfp-surface-2);
  color: var(--wfp-navy);
}

/* Dropdown panels stay on a solid surface in both states. */
.wfp-hero-page .m3-menu a { text-shadow: none; }

/* =============================================================================
   8. HERO BANNER CAROUSEL
   ========================================================================== */

.wfp-hero {
  position: relative;
  background: var(--wfp-navy-deep);
}

.wfp-hero__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 2.6 / 1;
  overflow: hidden;
}

/* Crossfade model (shared with .wfp-fade-carousel__slide):
   - incoming slide sits on top and fades 0 -> 1
   - outgoing slide is marked .is-leaving and held fully opaque underneath, so
     the blend never dips through to the background mid-transition
   - visibility is delayed by the fade length instead of snapping, which is
     what made the old transition look like a cut                              */
.wfp-hero__slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--wfp-fade) ease-in-out,
              visibility 0s linear var(--wfp-fade);
}

.wfp-hero__slide.is-leaving {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: none;
}

.wfp-hero__slide.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transition: opacity var(--wfp-fade) ease-in-out,
              visibility 0s linear 0s;
}

.wfp-hero__slide img,
.wfp-hero__slide > a {
  display: block;
  width: 100%;
  height: 100%;
}
.wfp-hero__slide img { object-fit: cover; object-position: center; }

/* Arrows */
.wfp-hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  color: var(--wfp-navy);
  box-shadow: var(--wfp-elev-2);
  opacity: 0;
  transition: opacity var(--wfp-dur) var(--wfp-ease),
              background var(--wfp-dur) var(--wfp-ease),
              color var(--wfp-dur) var(--wfp-ease);
}
.wfp-hero:hover .wfp-hero__arrow,
.wfp-hero__arrow:focus-visible { opacity: 1; }
.wfp-hero__arrow:hover { background: var(--wfp-gold); color: var(--wfp-navy-deep); }
.wfp-hero__arrow--prev { left: var(--wfp-sp-4); }
.wfp-hero__arrow--next { right: var(--wfp-sp-4); }
.wfp-hero__arrow .material-symbols-outlined { font-size: 26px; }

/* Dots */
.wfp-hero__dots {
  position: absolute;
  left: 50%;
  bottom: var(--wfp-sp-5);
  z-index: 3;
  display: flex;
  gap: var(--wfp-sp-2);
  transform: translateX(-50%);
}

.wfp-hero__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  transition: background var(--wfp-dur) var(--wfp-ease),
              width var(--wfp-dur) var(--wfp-ease);
}
.wfp-hero__dot.is-active {
  width: 26px;
  border-radius: var(--wfp-radius-pill);
  background: var(--wfp-gold);
}

@media (max-width: 768px) {
  /* The viewport keeps the banners' native 2.6:1 ratio at every width. Forcing
     a taller box here (16/9 was tried) makes object-fit:cover discard about a
     third of the width, and these banners carry text to both edges. */
  .wfp-hero__arrow { display: none; }
  .wfp-hero__dots { bottom: var(--wfp-sp-2); }

  /* A 2.6:1 hero is short on a phone, so the floating bar has to shrink with
     it or it covers most of the banner. */
  .wfp-hero-page .m3-top-app-bar__inner { min-height: 60px; }
  .wfp-hero-page .m3-top-app-bar__logo-img { height: 36px; }
  .wfp-hero-page .m3-top-app-bar.is-scrolled .m3-top-app-bar__inner { min-height: 56px; }
  .wfp-hero-page .m3-top-app-bar.is-scrolled .m3-top-app-bar__logo-img { height: 32px; }
}

/* ---------- Interior page header -----------------------------------------
   Opening block for pages that have no full-bleed hero (about, plans, …).
   Sits directly under the solid app bar, so it does not need .wfp-hero-page.
   -------------------------------------------------------------------------- */

.wfp-page-header {
  padding-block: var(--wfp-sp-16);
  background: linear-gradient(135deg, var(--wfp-navy), var(--wfp-navy-hover));
  text-align: center;
}

.wfp-page-header__title {
  margin-bottom: var(--wfp-sp-4);
  font-size: var(--wfp-text-4xl);
  color: #fff;
}

.wfp-page-header__lead {
  max-width: 720px;
  margin: 0 auto;
  font-size: var(--wfp-text-lg);
  line-height: 1.7;
  color: var(--wfp-on-dark-muted);
}

.wfp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--wfp-sp-2);
  margin-bottom: var(--wfp-sp-4);
  list-style: none;
  font-family: var(--wfp-font-body);
  font-size: var(--wfp-text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wfp-breadcrumb li {
  display: flex;
  align-items: center;
  gap: var(--wfp-sp-2);
}

.wfp-breadcrumb li + li::before {
  content: '/';
  color: rgba(255, 255, 255, 0.4);
}

.wfp-breadcrumb a { color: var(--wfp-gold-light); }
.wfp-breadcrumb a:hover { color: #fff; }
.wfp-breadcrumb [aria-current='page'] { color: var(--wfp-on-dark-muted); }

@media (max-width: 680px) {
  .wfp-page-header { padding-block: var(--wfp-sp-12); }
  /* --wfp-text-4xl is not stepped down by the global mobile block. */
  .wfp-page-header__title { font-size: var(--wfp-text-2xl); }
}

/* =============================================================================
   9. STATS / TRUST STRIP
   ========================================================================== */

.wfp-stats {
  padding-block: var(--wfp-sp-10);
  background: linear-gradient(135deg, var(--wfp-navy), var(--wfp-navy-hover));
}

.wfp-stats__grid {
  display: grid;
  gap: var(--wfp-sp-6);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wfp-stat { text-align: center; }

.wfp-stat__value {
  font-family: var(--wfp-font-display);
  font-size: var(--wfp-text-3xl);
  font-weight: 700;
  line-height: 1.1;
  color: var(--wfp-gold);
}

.wfp-stat__label {
  margin-top: var(--wfp-sp-2);
  font-size: var(--wfp-text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wfp-on-dark-muted);
}

@media (max-width: 640px) {
  .wfp-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wfp-stat__value { font-size: var(--wfp-text-2xl); }
}

/* =============================================================================
   10. FEATURE, STEP & SERVICE GRIDS
   ========================================================================== */

.wfp-feature,
.wfp-step,
.wfp-service {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--wfp-sp-8) var(--wfp-sp-6);
  border: 1px solid var(--wfp-outline);
  border-radius: var(--wfp-radius);
  background: var(--wfp-surface);
  text-align: center;
  transition: transform var(--wfp-dur) var(--wfp-ease),
              box-shadow var(--wfp-dur) var(--wfp-ease),
              border-color var(--wfp-dur) var(--wfp-ease);
}
.wfp-section--alt .wfp-feature,
.wfp-section--alt .wfp-step,
.wfp-section--alt .wfp-service { background: var(--wfp-surface); }

.wfp-feature:hover,
.wfp-step:hover,
.wfp-service:hover {
  transform: translateY(-5px);
  border-color: var(--wfp-gold);
  box-shadow: var(--wfp-elev-3);
}

.wfp-feature__icon,
.wfp-service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  margin: 0 auto var(--wfp-sp-5);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wfp-navy), var(--wfp-navy-hover));
  color: var(--wfp-gold-light);
}
.wfp-feature__icon .material-symbols-outlined,
.wfp-service__icon .material-symbols-outlined { font-size: 28px; }

.wfp-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0 auto var(--wfp-sp-5);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wfp-navy), var(--wfp-navy-hover));
  font-family: var(--wfp-font-display);
  font-size: var(--wfp-text-lg);
  font-weight: 700;
  color: #fff;
}

.wfp-feature h3,
.wfp-step h3,
.wfp-service h3 {
  margin-bottom: var(--wfp-sp-3);
  font-size: var(--wfp-text-lg);
}

.wfp-feature p,
.wfp-step p,
.wfp-service p {
  flex: 1;
  font-size: var(--wfp-text-base);
  line-height: 1.7;
  color: var(--wfp-muted);
}

.wfp-feature a { font-weight: 600; }

/* =============================================================================
   11. SPLIT (MEDIA + COPY) BLOCKS
   ========================================================================== */

.wfp-split {
  display: grid;
  gap: var(--wfp-sp-12);
  align-items: center;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.wfp-split--reverse > :first-child { order: 2; }

.wfp-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--wfp-radius);
  box-shadow: var(--wfp-elev-3);
  background: var(--wfp-surface-2);
}

.wfp-media--video { aspect-ratio: 16 / 9; }
.wfp-media--video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .wfp-split { grid-template-columns: minmax(0, 1fr); gap: var(--wfp-sp-8); }
  .wfp-split--reverse > :first-child { order: 0; }
}

/* =============================================================================
   12. MEDIA CAROUSELS
   ========================================================================== */

/* --- Shared fade carousel (book covers, marketing) ------------------------ */
.wfp-fade-carousel { position: relative; }

.wfp-fade-carousel__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--wfp-radius);
  background: var(--wfp-surface-2);
}

.wfp-fade-carousel__slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--wfp-fade) ease-in-out,
              visibility 0s linear var(--wfp-fade);
}

.wfp-fade-carousel__slide.is-leaving {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: none;
}

.wfp-fade-carousel__slide.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transition: opacity var(--wfp-fade) ease-in-out,
              visibility 0s linear 0s;
}
.wfp-fade-carousel__slide img { width: 100%; height: 100%; object-fit: contain; }

.wfp-fade-carousel--covers .wfp-fade-carousel__viewport { aspect-ratio: 0.66 / 1; }
.wfp-fade-carousel--wide .wfp-fade-carousel__viewport {
  aspect-ratio: 16 / 9;
  box-shadow: var(--wfp-elev-2);
}
.wfp-fade-carousel--wide .wfp-fade-carousel__slide img { object-fit: cover; }

/* Carousel controls (shared by fade + scroller) */
.wfp-carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--wfp-navy);
  color: #fff;
  box-shadow: var(--wfp-elev-2);
  transition: background var(--wfp-dur) var(--wfp-ease),
              color var(--wfp-dur) var(--wfp-ease),
              transform var(--wfp-dur) var(--wfp-ease);
}
.wfp-carousel-btn:hover {
  background: var(--wfp-gold);
  color: var(--wfp-navy-deep);
  transform: scale(1.06);
}
.wfp-carousel-btn:disabled { opacity: 0.35; cursor: default; transform: none; }
.wfp-carousel-btn .material-symbols-outlined { font-size: 24px; }

.wfp-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--wfp-sp-4);
  margin-top: var(--wfp-sp-6);
}

.wfp-carousel-dots { display: flex; gap: var(--wfp-sp-2); }

.wfp-carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: var(--wfp-outline-strong);
  transition: background var(--wfp-dur) var(--wfp-ease),
              width var(--wfp-dur) var(--wfp-ease);
}
.wfp-carousel-dots button.is-active {
  width: 24px;
  border-radius: var(--wfp-radius-pill);
  background: var(--wfp-gold);
}

/* --- Author scroller ------------------------------------------------------ */
.wfp-scroller { position: relative; }

.wfp-scroller__track {
  display: flex;
  gap: var(--wfp-sp-6);
  padding-block: var(--wfp-sp-2) var(--wfp-sp-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.wfp-scroller__track::-webkit-scrollbar { display: none; }

.wfp-author {
  flex: 0 0 auto;
  width: 150px;
  scroll-snap-align: start;
  text-align: center;
}

.wfp-author img {
  width: 104px;
  height: 104px;
  margin: 0 auto var(--wfp-sp-3);
  border: 3px solid var(--wfp-surface);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--wfp-elev-2);
  transition: transform var(--wfp-dur) var(--wfp-ease),
              border-color var(--wfp-dur) var(--wfp-ease),
              box-shadow var(--wfp-dur) var(--wfp-ease);
}
.wfp-author:hover img {
  transform: scale(1.06);
  border-color: var(--wfp-gold);
  box-shadow: var(--wfp-elev-3);
}

.wfp-author__name {
  margin-bottom: 2px;
  font-family: var(--wfp-font-body);
  font-size: var(--wfp-text-sm);
  font-weight: 600;
  line-height: 1.35;
  color: var(--wfp-ink);
}
.wfp-author__name a { color: inherit; }
.wfp-author__name a:hover { color: var(--wfp-navy); }

.wfp-author__role {
  margin: 0;
  font-size: var(--wfp-text-xs);
  line-height: 1.45;
  color: var(--wfp-muted);
}

/* ---------- Person tile (team) -------------------------------------------
   Member photos are a uniform 2:3 portrait, so the tile uses that ratio
   natively and never crops.
   -------------------------------------------------------------------------- */

.wfp-person {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--wfp-outline);
  border-radius: var(--wfp-radius);
  background: var(--wfp-surface);
  box-shadow: var(--wfp-elev-1);
  transition: transform var(--wfp-dur) var(--wfp-ease),
              box-shadow var(--wfp-dur) var(--wfp-ease),
              border-color var(--wfp-dur) var(--wfp-ease);
}

.wfp-person:hover {
  transform: translateY(-4px);
  border-color: var(--wfp-gold);
  box-shadow: var(--wfp-elev-3);
}

.wfp-person__photo {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: top center;
  background: var(--wfp-surface-2);
}

.wfp-person__body {
  flex: 1;
  padding: var(--wfp-sp-5) var(--wfp-sp-4);
  text-align: center;
}

.wfp-person__name {
  margin-bottom: var(--wfp-sp-1);
  font-size: var(--wfp-text-md);
  line-height: 1.3;
}

.wfp-person__role {
  margin: 0;
  font-family: var(--wfp-font-body);
  font-size: var(--wfp-text-sm);
  line-height: 1.45;
  color: var(--wfp-muted);
}

/* People grid. Doubled class keeps the phone override above the global
   .wfp-grid collapse to one column — a single 2:3 portrait per row is huge. */
.wfp-grid--people { --wfp-cols: 4; }

@media (max-width: 1024px) {
  .wfp-grid.wfp-grid--people { --wfp-cols: 3; }
}

@media (max-width: 680px) {
  .wfp-grid.wfp-grid--people { --wfp-cols: 2; }
}

/* Grouped roster sections */
.wfp-team-group + .wfp-team-group { margin-top: var(--wfp-sp-12); }

.wfp-team-group__title {
  margin-bottom: var(--wfp-sp-6);
  padding-bottom: var(--wfp-sp-3);
  border-bottom: 1px solid var(--wfp-outline);
  font-size: var(--wfp-text-xl);
}

/* ---------- Accordion (native <details>) ---------------------------------
   Disclosure list used for long service catalogues. Built on <details>/<summary>
   so it needs no JavaScript and keeps keyboard and screen-reader behaviour.
   -------------------------------------------------------------------------- */

.wfp-accordion {
  display: grid;
  gap: var(--wfp-sp-3);
}

.wfp-accordion__item {
  overflow: hidden;
  border: 1px solid var(--wfp-outline);
  border-radius: var(--wfp-radius);
  background: var(--wfp-surface);
  box-shadow: var(--wfp-elev-1);
  transition: border-color var(--wfp-dur) var(--wfp-ease),
              box-shadow var(--wfp-dur) var(--wfp-ease);
}

.wfp-accordion__item[open] {
  border-color: var(--wfp-gold);
  box-shadow: var(--wfp-elev-2);
}

.wfp-accordion__summary {
  display: flex;
  align-items: center;
  gap: var(--wfp-sp-4);
  padding: var(--wfp-sp-4) var(--wfp-sp-6);
  cursor: pointer;
  list-style: none;
  font-family: var(--wfp-font-display);
  font-size: var(--wfp-text-lg);
  font-weight: 600;
  line-height: 1.35;
  color: var(--wfp-ink);
  transition: background var(--wfp-dur-fast) var(--wfp-ease);
}

/* Safari and Chrome each need their own opt-out of the default triangle. */
.wfp-accordion__summary::-webkit-details-marker { display: none; }
.wfp-accordion__summary::marker { content: ''; }
.wfp-accordion__summary:hover { background: var(--wfp-surface-1); }

.wfp-accordion__summary::after {
  content: 'expand_more';
  flex-shrink: 0;
  margin-left: auto;
  font-family: 'Material Symbols Outlined', sans-serif;
  font-weight: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  color: var(--wfp-navy);
  transition: transform var(--wfp-dur) var(--wfp-ease);
}

.wfp-accordion__item[open] .wfp-accordion__summary::after { transform: rotate(180deg); }

.wfp-accordion__panel {
  padding: var(--wfp-sp-5) var(--wfp-sp-6) var(--wfp-sp-6);
  border-top: 1px solid var(--wfp-outline);
}

.wfp-accordion__panel > p {
  font-size: var(--wfp-text-base);
  line-height: 1.75;
  color: var(--wfp-muted);
}

/* Multi-paragraph / list content (e.g. terms.html). The global reset zeroes
   list padding, so panels need their own disc list. */
.wfp-accordion__panel > p + p,
.wfp-accordion__panel > ul { margin-top: var(--wfp-sp-3); }
.wfp-accordion__panel ul {
  padding-left: 1.25em;
  list-style: disc;
  font-size: var(--wfp-text-base);
  line-height: 1.75;
  color: var(--wfp-muted);
}
.wfp-accordion__panel li + li { margin-top: var(--wfp-sp-2); }
.wfp-accordion__panel a { font-weight: 500; }

/* Simple data tables (FAQ comparison, etc.). */
.wfp-table-wrap {
  overflow-x: auto;
  margin-top: var(--wfp-sp-2);
  border: 1px solid var(--wfp-outline);
  border-radius: var(--wfp-radius-sm);
  background: var(--wfp-surface);
}
.wfp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--wfp-text-sm);
  line-height: 1.55;
  color: var(--wfp-body);
}
.wfp-table th,
.wfp-table td {
  padding: var(--wfp-sp-3) var(--wfp-sp-4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--wfp-outline);
}
.wfp-table th {
  font-family: var(--wfp-font-body);
  font-size: var(--wfp-text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wfp-ink);
  background: var(--wfp-surface-1);
}
.wfp-table tr:last-child td { border-bottom: 0; }
.wfp-table tbody tr:nth-child(even) td { background: var(--wfp-surface-1); }
@media (max-width: 680px) {
  .wfp-table th,
  .wfp-table td { padding: var(--wfp-sp-2) var(--wfp-sp-3); }
}

/* Tall third-party form embeds (e.g. Google Forms on event pages). */
.wfp-form-embed {
  display: block;
  width: 100%;
  max-width: 720px;
  min-height: 2600px;
  margin-inline: auto;
  border: 0;
  border-radius: var(--wfp-radius);
  background: var(--wfp-surface);
  box-shadow: var(--wfp-elev-1);
}

/* Full-width event / promo banner under the page header. */
.wfp-page-banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--wfp-radius);
  box-shadow: var(--wfp-elev-2);
}

/* ---------- Sample gallery ------------------------------------------------
   Thumbnails link to the full-size image. Source ratios run 1.0–2.0, so a
   fixed 4:3 tile with object-fit keeps the grid even.
   -------------------------------------------------------------------------- */

.wfp-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--wfp-sp-3);
  margin-top: var(--wfp-sp-5);
  list-style: none;
}

.wfp-gallery a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--wfp-outline);
  border-radius: var(--wfp-radius-sm);
  background: var(--wfp-surface-2);
  transition: border-color var(--wfp-dur) var(--wfp-ease),
              box-shadow var(--wfp-dur) var(--wfp-ease);
}

.wfp-gallery a:hover {
  border-color: var(--wfp-gold);
  box-shadow: var(--wfp-elev-2);
}

.wfp-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Lightbox ------------------------------------------------------
   Replaces the magnific-popup gallery. Built and injected by wfp-home.js; the
   thumbnails remain plain links, so with JS off they still open the full image.
   -------------------------------------------------------------------------- */

.wfp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--wfp-sp-16) var(--wfp-sp-6) var(--wfp-sp-12);
  background: rgba(10, 18, 28, 0.94);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--wfp-dur) var(--wfp-ease);
}
.wfp-lightbox.is-open { opacity: 1; }
.wfp-lightbox[hidden] { display: none; }

.wfp-lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--wfp-sp-4);
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}

.wfp-lightbox__img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 220px);
  border-radius: var(--wfp-radius-sm);
  box-shadow: var(--wfp-elev-4);
  transition: opacity var(--wfp-dur-fast) var(--wfp-ease);
}
.wfp-lightbox.is-loading .wfp-lightbox__img { opacity: 0.35; }

.wfp-lightbox__caption {
  max-width: 60ch;
  margin: 0;
  font-family: var(--wfp-font-body);
  font-size: var(--wfp-text-sm);
  line-height: 1.5;
  text-align: center;
  color: var(--wfp-on-dark-muted);
}

.wfp-lightbox__counter {
  font-family: var(--wfp-font-body);
  font-size: var(--wfp-text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--wfp-gold);
}

.wfp-lightbox__btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background var(--wfp-dur) var(--wfp-ease),
              color var(--wfp-dur) var(--wfp-ease),
              transform var(--wfp-dur) var(--wfp-ease);
}
.wfp-lightbox__btn:hover {
  background: var(--wfp-gold);
  color: var(--wfp-navy-deep);
  transform: scale(1.06);
}
.wfp-lightbox__btn .material-symbols-outlined { font-size: 28px; }

.wfp-lightbox__btn--prev { left: var(--wfp-sp-5); top: 50%; margin-top: -24px; }
.wfp-lightbox__btn--next { right: var(--wfp-sp-5); top: 50%; margin-top: -24px; }
.wfp-lightbox__btn--close { top: var(--wfp-sp-5); right: var(--wfp-sp-5); }
.wfp-lightbox[data-single] .wfp-lightbox__btn--prev,
.wfp-lightbox[data-single] .wfp-lightbox__btn--next { display: none; }

@media (max-width: 680px) {
  .wfp-lightbox { padding: var(--wfp-sp-16) var(--wfp-sp-3) var(--wfp-sp-10); }
  .wfp-lightbox__img { max-height: calc(100vh - 200px); }
  .wfp-lightbox__btn { width: 42px; height: 42px; }
  .wfp-lightbox__btn--prev { left: var(--wfp-sp-2); }
  .wfp-lightbox__btn--next { right: var(--wfp-sp-2); }
}

/* Larger tiles for a page whose galleries are the content, not a sample set. */
.wfp-gallery--lg { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* Document-style certificates (ISO, awards, trademarks): show the full page
   without cropping; letterboxing is preferable to losing seals and signatures. */
.wfp-gallery--docs {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--wfp-sp-5);
}
.wfp-gallery--docs img {
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: var(--wfp-surface);
  padding: var(--wfp-sp-2);
}

/* ---------- Video card grid ----------------------------------------------
   Thumbnail linking out to YouTube, with a play badge. Used where the source
   opened videos in a new tab rather than a lightbox.
   -------------------------------------------------------------------------- */

.wfp-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--wfp-sp-5);
  list-style: none;
}

.wfp-video-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--wfp-outline);
  border-radius: var(--wfp-radius);
  background: var(--wfp-surface-2);
  box-shadow: var(--wfp-elev-1);
  transition: border-color var(--wfp-dur) var(--wfp-ease),
              box-shadow var(--wfp-dur) var(--wfp-ease),
              transform var(--wfp-dur) var(--wfp-ease);
}

.wfp-video-card:hover {
  transform: translateY(-4px);
  border-color: var(--wfp-gold);
  box-shadow: var(--wfp-elev-3);
}

.wfp-video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.wfp-video-card::after {
  content: 'play_arrow';
  position: absolute;
  inset: 0;
  width: 56px;
  height: 56px;
  margin: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(18, 41, 63, 0.72);
  color: #fff;
  font-family: 'Material Symbols Outlined', sans-serif;
  font-weight: normal;
  font-size: 34px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  transition: background var(--wfp-dur) var(--wfp-ease),
              color var(--wfp-dur) var(--wfp-ease);
}

.wfp-video-card:hover::after {
  background: var(--wfp-gold);
  color: var(--wfp-navy-deep);
}

@media (max-width: 680px) {
  .wfp-gallery--lg { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .wfp-video-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .wfp-video-card::after { width: 46px; height: 46px; font-size: 28px; }
}

.wfp-gallery__label {
  margin: 0 0 var(--wfp-sp-2);
  font-family: var(--wfp-font-body);
  font-size: var(--wfp-text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wfp-gold-deep);
}

@media (max-width: 680px) {
  .wfp-accordion__summary {
    padding: var(--wfp-sp-4);
    font-size: var(--wfp-text-md);
  }
  .wfp-accordion__panel { padding: var(--wfp-sp-4); }
  .wfp-gallery { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* ---------- Timeline ------------------------------------------------------
   Numbered vertical journey. Replaces the "learning map" list on the process
   page: a connecting rail with a numbered marker per step, each carrying its
   own list of links and author actions.
   -------------------------------------------------------------------------- */

.wfp-timeline {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Connecting rail, stopping at the centre of the last marker. */
.wfp-timeline::before {
  content: '';
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 23px;
  width: 2px;
  background: linear-gradient(180deg, var(--wfp-navy), var(--wfp-gold));
}

.wfp-timeline__item {
  position: relative;
  padding-left: 72px;
  padding-bottom: var(--wfp-sp-10);
}
.wfp-timeline__item:last-child { padding-bottom: 0; }

.wfp-timeline__marker {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wfp-navy), var(--wfp-navy-hover));
  border: 3px solid var(--wfp-surface);
  box-shadow: var(--wfp-elev-1);
  font-family: var(--wfp-font-display);
  font-size: var(--wfp-text-md);
  font-weight: 700;
  color: #fff;
}
.wfp-section--alt .wfp-timeline__marker { border-color: var(--wfp-surface-1); }

.wfp-timeline__title {
  margin: 0 0 var(--wfp-sp-3);
  padding-top: var(--wfp-sp-2);
  font-size: var(--wfp-text-lg);
}

/* Chevron link list. Used standalone as .wfp-linklist and inside timeline
   steps; both names share one implementation. */
.wfp-linklist,
.wfp-timeline__list {
  list-style: none;
  display: grid;
  gap: var(--wfp-sp-2);
  padding: 0;
  margin: 0;
}

.wfp-linklist li,
.wfp-timeline__list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--wfp-sp-3);
  align-items: start;
  font-size: var(--wfp-text-base);
  line-height: 1.6;
  color: var(--wfp-muted);
}

.wfp-linklist li::before,
.wfp-timeline__list li::before {
  content: 'chevron_right';
  font-family: 'Material Symbols Outlined', sans-serif;
  font-weight: normal;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  color: var(--wfp-teal);
}

/* Author actions rather than links get a neutral marker. */
.wfp-linklist li.is-action::before,
.wfp-timeline__list li.is-action::before { content: 'radio_button_unchecked'; }

.wfp-linklist a,
.wfp-timeline__list a { font-weight: 500; }

/* Final step */
.wfp-timeline__item--final .wfp-timeline__marker {
  background: linear-gradient(135deg, var(--wfp-gold), var(--wfp-gold-light));
  color: var(--wfp-navy-deep);
}
.wfp-timeline__item--final .wfp-timeline__marker::after {
  content: 'check';
  font-family: 'Material Symbols Outlined', sans-serif;
  font-size: 26px;
  line-height: 1;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
}
.wfp-timeline__item--final .wfp-timeline__title {
  color: var(--wfp-navy);
  font-size: var(--wfp-text-2xl);
}

@media (max-width: 680px) {
  .wfp-timeline::before { left: 19px; }
  .wfp-timeline__item { padding-left: 56px; padding-bottom: var(--wfp-sp-8); }
  .wfp-timeline__marker { width: 40px; height: 40px; font-size: var(--wfp-text-sm); }
  .wfp-timeline__title { font-size: var(--wfp-text-md); }
}

/* =============================================================================
   13. LOGO WALL
   ========================================================================== */

.wfp-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--wfp-sp-8) var(--wfp-sp-10);
  list-style: none;
}

.wfp-logos a {
  display: inline-flex;
  align-items: center;
  opacity: 0.62;
  filter: grayscale(100%);
  transition: opacity var(--wfp-dur) var(--wfp-ease),
              filter var(--wfp-dur) var(--wfp-ease),
              transform var(--wfp-dur) var(--wfp-ease);
}
.wfp-logos a:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

.wfp-logos img {
  max-height: 42px;
  width: auto;
  object-fit: contain;
}

/* =============================================================================
   14. EMPHASIS BAND & FINAL CTA
   ========================================================================== */

.wfp-band {
  padding-block: var(--wfp-sp-16);
  background: linear-gradient(135deg, var(--wfp-navy), var(--wfp-navy-hover));
  text-align: center;
}

.wfp-band h2 {
  margin-bottom: var(--wfp-sp-5);
  font-size: var(--wfp-text-2xl);
  color: var(--wfp-gold);
}

.wfp-band p {
  max-width: 880px;
  margin-inline: auto;
  font-size: var(--wfp-text-md);
  line-height: 1.85;
  color: var(--wfp-on-dark-muted);
}

.wfp-cta {
  padding-block: var(--wfp-sp-16);
  background: linear-gradient(135deg, var(--wfp-ink), #26364a);
  text-align: center;
}

.wfp-cta h2 {
  margin-bottom: var(--wfp-sp-4);
  font-size: var(--wfp-text-3xl);
  color: #fff;
}

.wfp-cta p {
  max-width: 680px;
  margin: 0 auto var(--wfp-sp-8);
  font-size: var(--wfp-text-md);
  line-height: 1.8;
  color: var(--wfp-on-dark-muted);
}

/* App store badges --------------------------------------------------------- */
.wfp-store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wfp-sp-4);
  align-items: center;
  margin-top: var(--wfp-sp-5);
}
.wfp-store-badges img { height: 44px; width: auto; }

/* =============================================================================
   15. FOOTER   (markup emitted by footer.js)
   ========================================================================== */

.m3-footer {
  padding-top: var(--wfp-sp-16);
  background: var(--wfp-ink);
  color: var(--wfp-on-dark-muted);
  font-size: var(--wfp-text-base);
}

.m3-footer__grid {
  display: grid;
  gap: var(--wfp-sp-10);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  padding-bottom: var(--wfp-sp-12);
}

.m3-footer__title {
  margin-bottom: var(--wfp-sp-5);
  font-size: var(--wfp-text-lg);
  color: var(--wfp-gold);
}

.m3-footer__links {
  display: grid;
  gap: var(--wfp-sp-2);
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.m3-footer__links a {
  font-size: var(--wfp-text-sm);
  color: var(--wfp-on-dark-muted);
}
.m3-footer__links a:hover { color: var(--wfp-gold-light); }

.m3-footer__text {
  margin-bottom: var(--wfp-sp-4);
  font-size: var(--wfp-text-sm);
  line-height: 1.65;
  color: var(--wfp-on-dark-muted);
}
.m3-footer__text strong {
  display: block;
  margin-bottom: 2px;
  font-size: var(--wfp-text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wfp-on-dark);
}
.m3-footer__text a { color: var(--wfp-gold-light); }
.m3-footer__text a:hover { color: var(--wfp-gold); }

.m3-footer__apps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wfp-sp-3);
  align-items: center;
}
.m3-footer__apps img { height: 40px; width: auto; }

.m3-footer__brand { text-align: center; }
/* logo.png is 400x255; 200px renders 200x128, well inside native. */
.m3-footer__brand .logo {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto var(--wfp-sp-5);
}
.m3-footer__brand h3 {
  font-size: var(--wfp-text-md);
  color: var(--wfp-on-dark);
}
.m3-footer__brand p { font-size: var(--wfp-text-sm); }
.m3-footer__brand p a { color: var(--wfp-gold-light); }

.m3-footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wfp-sp-5);
  align-items: center;
  justify-content: center;
  margin-top: var(--wfp-sp-6);
}
/* Default = iso.png (400x125); 96px tall renders ~307px wide, under native. */
.m3-footer__badges img {
  max-height: 96px;
  max-width: 100%;
  width: auto;
  border-radius: var(--wfp-radius-sm);
  background: rgba(255, 255, 255, 0.06);
}

/* Square/portrait badges: BRCA (467x474) and coty (128x194) look undersized at
   a shared height, so give them more. Both stay within native resolution. */
.m3-footer__badge--lg img { max-height: 128px; }

/* Wide 3:1 banners: siproviders (269x93) and sistartupcity (300x105) dominated
   the row. 62px also stops siproviders being upscaled past its 93px height. */
.m3-footer__badge--sm img { max-height: 62px; }

.m3-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); }

.m3-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wfp-sp-5);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--wfp-sp-6);
}

.m3-footer__copy {
  margin: 0;
  font-size: var(--wfp-text-xs);
  line-height: 1.6;
  color: var(--wfp-on-dark-muted);
}

.m3-footer__social {
  display: flex;
  gap: var(--wfp-sp-2);
  list-style: none;
}
.m3-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--wfp-on-dark);
  transition: background var(--wfp-dur) var(--wfp-ease),
              color var(--wfp-dur) var(--wfp-ease);
}
.m3-footer__social a:hover { background: var(--wfp-gold); color: var(--wfp-ink); }
/* Same greyscale treatment as .wfp-logos on contact.html — desaturate only,
   never brightness(0)+invert (that turns opaque brand discs into white squares). */
.m3-footer__social-icon {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 50%;
  opacity: 0.62;
  filter: grayscale(100%);
  transition: opacity var(--wfp-dur) var(--wfp-ease),
              filter var(--wfp-dur) var(--wfp-ease);
}
.m3-footer__social a:hover .m3-footer__social-icon {
  opacity: 1;
  filter: grayscale(0%);
}

.m3-footer__terms { display: flex; gap: var(--wfp-sp-5); }
.m3-footer__terms a { font-size: var(--wfp-text-xs); color: var(--wfp-on-dark-muted); }
.m3-footer__terms a:hover { color: var(--wfp-gold-light); }

@media (max-width: 900px) {
  .m3-footer__grid { grid-template-columns: minmax(0, 1fr); gap: var(--wfp-sp-8); }
  .m3-footer__brand { text-align: left; }
  .m3-footer__brand .logo { margin-inline: 0; }
  .m3-footer__badges { justify-content: flex-start; }
  .m3-footer__bottom-inner { justify-content: flex-start; }
}

/* =============================================================================
   16. FLOATING ACTIONS
   ========================================================================== */

.m3-whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 880;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.42);
  transition: transform var(--wfp-dur) var(--wfp-ease),
              box-shadow var(--wfp-dur) var(--wfp-ease);
}
.m3-whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}
.m3-whatsapp-fab svg { width: 28px; height: 28px; fill: #fff; }

.m3-whatsapp-fab__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  padding: 6px 12px;
  border-radius: var(--wfp-radius-sm);
  transform: translateY(-50%);
  background: var(--wfp-ink);
  color: #fff;
  font-size: var(--wfp-text-xs);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--wfp-dur) var(--wfp-ease);
}
.m3-whatsapp-fab:hover .m3-whatsapp-fab__tooltip { opacity: 1; }

.wfp-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 20px;
  z-index: 880;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--wfp-navy);
  color: #fff;
  box-shadow: var(--wfp-elev-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--wfp-dur) var(--wfp-ease),
              visibility var(--wfp-dur) var(--wfp-ease),
              transform var(--wfp-dur) var(--wfp-ease),
              background var(--wfp-dur) var(--wfp-ease);
}
.wfp-back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.wfp-back-to-top:hover { background: var(--wfp-gold); color: var(--wfp-navy-deep); }

@media (max-width: 600px) {
  .m3-whatsapp-fab { width: 50px; height: 50px; bottom: 76px; }
  .m3-whatsapp-fab svg { width: 25px; height: 25px; }
  .m3-whatsapp-fab__tooltip { display: none; }
  .wfp-back-to-top { width: 42px; height: 42px; }
}

/* =============================================================================
   16b. BLOG LISTING
   ========================================================================== */

.wfp-blog-count {
  margin: 0 0 var(--wfp-sp-8);
  font-size: var(--wfp-text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wfp-muted);
}

.wfp-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--wfp-sp-8);
}

.wfp-blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--wfp-outline);
  border-radius: var(--wfp-radius);
  background: var(--wfp-surface);
  box-shadow: var(--wfp-elev-1);
  transition: border-color var(--wfp-dur) var(--wfp-ease),
              box-shadow var(--wfp-dur) var(--wfp-ease),
              transform var(--wfp-dur) var(--wfp-ease);
}
.wfp-blog-card:hover {
  border-color: var(--wfp-gold);
  box-shadow: var(--wfp-elev-3);
  transform: translateY(-4px);
}

.wfp-blog-card__media {
  display: block;
  overflow: hidden;
  background: var(--wfp-surface-2);
  aspect-ratio: 16 / 10;
}
.wfp-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--wfp-dur-slow) var(--wfp-ease);
}
.wfp-blog-card:hover .wfp-blog-card__media img {
  transform: scale(1.04);
}
.wfp-blog-card__media--placeholder {
  background:
    linear-gradient(135deg, var(--wfp-navy) 0%, var(--wfp-navy-hover) 55%, var(--wfp-gold) 100%);
}

.wfp-blog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--wfp-sp-3);
  padding: var(--wfp-sp-6);
}

.wfp-blog-card__title {
  margin: 0;
  font-size: var(--wfp-text-xl);
  line-height: 1.3;
}
.wfp-blog-card__title a {
  color: var(--wfp-ink);
  text-decoration: none;
}
.wfp-blog-card__title a:hover { color: var(--wfp-navy); }

.wfp-blog-card__excerpt {
  margin: 0;
  flex: 1;
  font-size: var(--wfp-text-base);
  line-height: 1.65;
  color: var(--wfp-body);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wfp-blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--wfp-sp-3);
  margin-top: auto;
  padding-top: var(--wfp-sp-2);
  border-top: 1px solid var(--wfp-outline);
}

.wfp-blog-card__date {
  font-size: var(--wfp-text-sm);
  color: var(--wfp-muted);
}

.wfp-blog-card__more {
  font-size: var(--wfp-text-sm);
  font-weight: 600;
  color: var(--wfp-navy);
  text-decoration: none;
}
.wfp-blog-card__more:hover { color: var(--wfp-gold-deep); }

@media (max-width: 800px) {
  .wfp-blog-grid { grid-template-columns: minmax(0, 1fr); gap: var(--wfp-sp-6); }
}

/* --- Publishing plans comparison table ---------------------------------- */

.wfp-plans-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--wfp-outline);
  border-radius: var(--wfp-radius);
  background: var(--wfp-surface);
  box-shadow: var(--wfp-elev-1);
}

.wfp-plans-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
  font-size: var(--wfp-text-sm);
  line-height: 1.45;
  color: var(--wfp-body);
}

.wfp-plans-table th,
.wfp-plans-table td {
  padding: var(--wfp-sp-3) var(--wfp-sp-3);
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid var(--wfp-outline);
  border-right: 1px solid var(--wfp-outline);
}

.wfp-plans-table th:last-child,
.wfp-plans-table td:last-child { border-right: 0; }

.wfp-plans-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--wfp-navy);
  color: #fff;
  font-family: var(--wfp-font-body);
  font-size: var(--wfp-text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-block: var(--wfp-sp-4);
}

.wfp-plans-table__feature {
  text-align: left !important;
  min-width: 180px;
  max-width: 220px;
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--wfp-navy);
}

.wfp-plans-table tbody th[scope='row'] {
  text-align: left;
  font-weight: 600;
  color: var(--wfp-ink);
  background: var(--wfp-surface);
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 180px;
  max-width: 220px;
  border-right: 1px solid var(--wfp-outline-strong);
}

.wfp-plans-table tbody tr:nth-child(even) td,
.wfp-plans-table tbody tr:nth-child(even) th[scope='row'] {
  background: var(--wfp-surface-1);
}

.wfp-plans-table__plan { min-width: 120px; }

.wfp-plans-table__price {
  display: block;
  margin-top: var(--wfp-sp-2);
  font-size: var(--wfp-text-md);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--wfp-gold-light);
}

.wfp-plans-table__badge {
  display: inline-block;
  margin-top: var(--wfp-sp-1);
  padding: 2px 8px;
  border-radius: var(--wfp-radius-pill);
  background: #c62828;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

.wfp-plans-table__yes {
  color: var(--wfp-navy);
  font-weight: 600;
}

.wfp-plans-table__no {
  color: var(--wfp-muted);
}

.wfp-plans-table__dash {
  opacity: 0.55;
}

.wfp-plans-table__cta-row td,
.wfp-plans-table__cta-row th {
  border-bottom: 0;
  padding-block: var(--wfp-sp-4);
  background: var(--wfp-surface) !important;
}

.wfp-plans-hint {
  margin: var(--wfp-sp-4) 0 0;
  font-size: var(--wfp-text-sm);
  color: var(--wfp-muted);
  text-align: center;
}

.wfp-plans-addons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--wfp-sp-3) var(--wfp-sp-8);
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 900px;
  margin-inline: auto;
}

.wfp-plans-addons li {
  position: relative;
  padding-left: var(--wfp-sp-6);
  font-size: var(--wfp-text-base);
  line-height: 1.5;
  color: var(--wfp-body);
}

.wfp-plans-addons li::before {
  content: 'check';
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'Material Symbols Outlined', sans-serif;
  font-size: 18px;
  color: var(--wfp-teal);
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
}

.wfp-btn--sm {
  padding: 0.45rem 0.9rem;
  font-size: var(--wfp-text-sm);
}

@media (max-width: 800px) {
  .wfp-plans-addons { grid-template-columns: minmax(0, 1fr); }
}

/* --- Blog post layout (article + timeline sidebar) ----------------------- */

.wfp-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: var(--wfp-sp-10);
  align-items: start;
}

.wfp-blog-layout__main {
  min-width: 0;
}

/* Preserve floated cover images from legacy Word HTML (.image-wrap). */
.wfp-blog-layout__main .image-wrap {
  float: left;
  margin: 0 var(--wfp-sp-6) var(--wfp-sp-4) 0;
  max-width: min(280px, 42%);
}
.wfp-blog-layout__main .image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--wfp-radius-sm);
  box-shadow: var(--wfp-elev-2);
}
.wfp-blog-layout__main .clearfix::after {
  content: '';
  clear: both;
  display: table;
}

/* Article body: keep legacy class names, restyle inside design system. */
.wfp-blog-layout__main .blog-grid {
  background: var(--wfp-surface);
  border: 1px solid var(--wfp-outline);
  border-radius: var(--wfp-radius);
  box-shadow: var(--wfp-elev-1);
  overflow: hidden;
}
.wfp-blog-layout__main .blog-grid-content {
  padding: var(--wfp-sp-8);
  color: var(--wfp-body);
  font-size: var(--wfp-text-base);
  line-height: 1.75;
}
.wfp-blog-layout__main .blog-grid-title-lg {
  margin: 0 0 var(--wfp-sp-3);
  font-size: var(--wfp-text-2xl);
  line-height: 1.25;
  color: var(--wfp-ink);
}
.wfp-blog-layout__main .breadcrumbs-v5-subtitle {
  display: inline-block;
  margin-bottom: var(--wfp-sp-6);
  font-size: var(--wfp-text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wfp-muted);
}
.wfp-blog-layout__main .blog-grid-content p,
.wfp-blog-layout__main .blog-grid-content .MsoNormal {
  margin: 0 0 var(--wfp-sp-4);
  color: var(--wfp-body);
  font-family: var(--wfp-font-body) !important;
  font-size: var(--wfp-text-base) !important;
  line-height: 1.75 !important;
}
.wfp-blog-layout__main .blog-grid-content a {
  color: var(--wfp-navy);
  font-weight: 500;
}
.wfp-blog-layout__main .blog-grid-content a:hover { color: var(--wfp-gold-deep); }
.wfp-blog-layout__main .blog-grid-content span[style] {
  font-family: var(--wfp-font-body) !important;
  font-size: inherit !important;
  color: inherit !important;
}

/* Sidebar */
.wfp-blog-sidebar {
  position: sticky;
  top: calc(var(--wfp-appbar-h) + var(--wfp-sp-4));
  border: 1px solid var(--wfp-outline);
  border-radius: var(--wfp-radius);
  background: var(--wfp-surface);
  box-shadow: var(--wfp-elev-1);
  overflow: hidden;
}
.wfp-blog-sidebar__home {
  display: flex;
  align-items: center;
  gap: var(--wfp-sp-2);
  padding: var(--wfp-sp-4) var(--wfp-sp-5);
  border-bottom: 1px solid var(--wfp-outline);
  font-size: var(--wfp-text-sm);
  font-weight: 600;
  color: var(--wfp-navy);
  text-decoration: none;
}
.wfp-blog-sidebar__home:hover { color: var(--wfp-gold-deep); background: var(--wfp-surface-1); }
.wfp-blog-sidebar__home .material-symbols-outlined { font-size: 20px; }
.wfp-blog-sidebar__title {
  margin: 0;
  padding: var(--wfp-sp-4) var(--wfp-sp-5) var(--wfp-sp-2);
  font-family: var(--wfp-font-body);
  font-size: var(--wfp-text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wfp-muted);
}
.wfp-blog-sidebar__timeline {
  max-height: min(70vh, 560px);
  overflow-y: auto;
  padding: 0 var(--wfp-sp-4) var(--wfp-sp-4);
  scrollbar-width: thin;
}

/* timeline.js markup (.timeline-v2) restyled without Font Awesome. */
.wfp-blog-sidebar__timeline .timeline-v2 {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--wfp-sp-5);
}
.wfp-blog-sidebar__timeline .timeline-v2::before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 5px;
  width: 2px;
  background: var(--wfp-outline-strong);
}
.wfp-blog-sidebar__timeline .timeline-v2-list-item {
  position: relative;
  margin: 0 0 var(--wfp-sp-4);
  padding: 0;
}
.wfp-blog-sidebar__timeline .timeline-v2-list-item:last-child { margin-bottom: 0; }
.wfp-blog-sidebar__timeline .timeline-v2-badge-icon {
  position: absolute;
  top: 4px;
  left: calc(-1 * var(--wfp-sp-5) + 1px);
  width: 10px;
  height: 10px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--wfp-gold);
  border: 2px solid var(--wfp-surface);
  box-shadow: 0 0 0 1px var(--wfp-outline-strong);
  font-size: 0 !important;
  line-height: 0;
  color: transparent;
  overflow: hidden;
}
.wfp-blog-sidebar__timeline .timeline-v2-news-date {
  display: block;
  margin: 0 0 2px;
  font-size: var(--wfp-text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wfp-muted);
}
.wfp-blog-sidebar__timeline .timeline-v2-news-title {
  margin: 0;
  font-family: var(--wfp-font-body);
  font-size: var(--wfp-text-sm);
  font-weight: 500;
  line-height: 1.4;
}
.wfp-blog-sidebar__timeline .timeline-v2-news-title a {
  color: var(--wfp-ink);
  text-decoration: none;
}
.wfp-blog-sidebar__timeline .timeline-v2-news-title a:hover {
  color: var(--wfp-navy);
}

@media (max-width: 960px) {
  .wfp-blog-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .wfp-blog-sidebar { position: static; }
  .wfp-blog-sidebar__timeline { max-height: 360px; }
  .wfp-blog-layout__main .image-wrap {
    float: none;
    max-width: 240px;
    margin: 0 auto var(--wfp-sp-5);
  }
}

/* =============================================================================
   17. MOTION & UTILITIES
   ========================================================================== */

.wfp-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--wfp-dur-slow) var(--wfp-ease),
              transform var(--wfp-dur-slow) var(--wfp-ease);
}
.wfp-reveal.is-visible { opacity: 1; transform: none; }

.wfp-seo-text { display: none; }

.wfp-measure-lg { max-width: 900px; margin-inline: auto; }
.wfp-mt-6 { margin-top: var(--wfp-sp-6); }
.wfp-mt-8 { margin-top: var(--wfp-sp-8); }
.wfp-rounded { border-radius: var(--wfp-radius); }

/* --- Responsive grid collapse -------------------------------------------- */
@media (max-width: 1024px) {
  :root { --wfp-gutter: 20px; }
  .wfp-grid--3,
  .wfp-grid--4 { --wfp-cols: 2; }
}

@media (max-width: 680px) {
  :root {
    --wfp-text-3xl: 1.75rem;
    --wfp-text-2xl: 1.5rem;
    --wfp-gutter: 16px;
  }
  .wfp-section { padding-block: var(--wfp-sp-12); }
  .wfp-section--tight { padding-block: var(--wfp-sp-10); }
  .wfp-section-head { margin-bottom: var(--wfp-sp-8); }
  .wfp-grid { --wfp-cols: 1; }
  .wfp-card__body { padding: var(--wfp-sp-5); }
  .wfp-actions--center { flex-direction: column; align-items: stretch; }
  .wfp-actions--center .wfp-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .wfp-reveal { opacity: 1; transform: none; }
}
