/* =============================================================
   /business-mentoring/ - three-month mentoring programme
   Ported from the "Business Mentoring" Claude Design file.
   Tokens come from tokens.css, chrome from site.css. Everything here is
   prefixed bm- so it cannot leak into other pages.
   ============================================================= */

.bm { background: var(--warm-white); color: var(--navy); }
.bm-wrap { max-width: 1280px; margin: 0 auto; }

.bm-section { padding: clamp(72px, 9vw, 120px) clamp(20px, 4vw, 24px); }
.bm-section--muted { background: var(--muted-bg); }
.bm-section--white { background: var(--white); border-block: 1px solid var(--border); }

.bm h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.1; letter-spacing: -.015em; margin: 0; }
.bm h3 { margin: 0; }
.bm-lead-gap { margin-top: clamp(36px, 5vw, 56px); }

/* ---------------------------------------------------------- buttons */
.bm-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 12px;
  font-weight: 600; font-size: 16px; text-align: center;
  transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.bm-btn--primary { background: var(--amber); color: var(--navy); }
.bm-btn--primary:hover { background: var(--amber-light); color: var(--navy); }
.bm-btn--ghost { border: 1px solid rgba(248,246,242,.18); color: var(--warm-white); padding-inline: 22px; }
.bm-btn--ghost:hover { background: rgba(212,149,42,.05); border-color: rgba(212,149,42,.3); color: var(--warm-white); }
.bm-btn--outline { border: 1px solid var(--border); color: var(--navy); padding-inline: 22px; }
.bm-btn--outline:hover { background: rgba(212,149,42,.05); border-color: rgba(212,149,42,.3); color: var(--navy); }
.bm-btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ------------------------------------------------------------- hero */
.bm-hero {
  color: var(--warm-white);
  padding: clamp(64px, 9vw, 112px) clamp(20px, 4vw, 24px) clamp(72px, 10vw, 128px);
  background-image:
    linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.03) 1px, transparent 1px),
    var(--gradient-hero);
  background-size: 40px 40px, 40px 40px, auto;
}
.bm-hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 64px; align-items: center; }
.bm-eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--on-dark-muted); margin: 0 0 24px; line-height: 1.5; }
.bm-hero h1 { font-size: clamp(40px, 5vw, 60px); line-height: 1.05; letter-spacing: -.02em; margin: 0; color: var(--warm-white); text-wrap: balance; }
.bm-hero__copy { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; max-width: 580px; }
.bm-hero__copy p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--on-dark-muted); text-wrap: pretty; }
.bm-hero__copy .bm-hero__lede { font-size: 19px; color: #E4E4EA; }
.bm-portrait {
  justify-self: end; width: 100%; max-width: 460px; aspect-ratio: 4 / 5;
  border-radius: 16px; overflow: hidden; background: var(--navy-light);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.bm-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 899px) { .bm-portrait { justify-self: start; max-width: 360px; } }

/* -------------------------------------------------------- cards */
.bm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.bm-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 28px;
  display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-card);
  transition: border-color 200ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.bm-card:hover { border-color: rgba(212,149,42,.3); box-shadow: var(--shadow-elevated); }
.bm-card h3 { font-size: 20px; line-height: 1.2; }
.bm-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted-foreground); text-wrap: pretty; }
.bm-icon {
  flex: none; width: 40px; height: 40px; border-radius: 8px; background: var(--navy); color: var(--amber);
  display: flex; align-items: center; justify-content: center;
}
.bm-icon svg { width: 20px; height: 20px; }

/* ------------------------------------------------ starting points */
.bm-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.bm-path { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.bm-path h3 { font-size: 24px; line-height: 1.2; margin-top: 4px; }
.bm-path p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted-foreground); text-wrap: pretty; }
.bm-tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--navy); background: rgba(212,149,42,.12); border-radius: 9999px; padding: 5px 12px; }

.bm-merge { display: flex; flex-direction: column; align-items: center; }
.bm-merge__fork { display: grid; grid-template-columns: 1fr 1fr; width: calc(50% + 2px); height: 32px; }
.bm-merge__fork span:first-child { border-left: 2px dashed rgba(212,149,42,.6); border-bottom: 2px dashed rgba(212,149,42,.6); border-bottom-left-radius: 14px; }
.bm-merge__fork span:last-child { border-right: 2px dashed rgba(212,149,42,.6); border-bottom: 2px dashed rgba(212,149,42,.6); border-bottom-right-radius: 14px; }
.bm-merge__stem { width: 2px; height: 32px; background-image: linear-gradient(to bottom, var(--amber) 50%, transparent 50%); background-size: 2px 12px; animation: bm-flow-y 1.2s linear infinite; }
.bm-pill {
  display: flex; align-items: center; gap: 10px; background: var(--navy); color: var(--warm-white);
  border-radius: 9999px; padding: 12px 22px; font-weight: 600; font-size: 15px;
  animation: bm-pulse 2.4s ease-out infinite; transition: background-color 200ms var(--ease-out);
}
.bm-pill:hover { background: var(--navy-light); color: var(--warm-white); }
.bm-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.bm-fit { font-size: 17px; line-height: 1.6; margin: 40px auto 0; max-width: 720px; text-align: center; text-wrap: pretty; }
@media (max-width: 759px) { .bm-merge__fork { display: none; } .bm-merge__stem { margin-top: 20px; } }

/* --------------------------------------------------- how it works */
#how-it-works { scroll-margin-top: 80px; }
.bm-timeline { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 36px clamp(20px, 4vw, 48px) 28px; overflow-x: auto; }
.bm-timeline ol { display: flex; align-items: flex-start; min-width: 640px; margin: 0; padding: 0; list-style: none; }
.bm-step { flex: none; width: 96px; display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0; text-align: center; }
.bm-step__dot {
  width: 48px; height: 48px; border-radius: 50%; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 1.5px solid var(--amber); color: var(--navy);
}
.bm-step__dot svg { width: 20px; height: 20px; }
.bm-step--key .bm-step__dot { background: var(--navy); border: 0; color: var(--amber); }
.bm-step--first .bm-step__dot { animation: bm-pulse 2.4s ease-out infinite; }
.bm-step--next .bm-step__dot { background: var(--warm-white); border: 1.5px dashed var(--border-strong); color: var(--muted-foreground); }
.bm-step__name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.bm-step__where { font-size: 12px; color: var(--muted-foreground); }
.bm-gap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: -4px 0 0; }
.bm-gap span { height: 18px; white-space: nowrap; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-text); }
.bm-gap::after { content: ""; width: 100%; height: 2px; background-image: linear-gradient(to right, var(--amber) 50%, transparent 50%); background-size: 12px 2px; animation: bm-flow-x 1.2s linear infinite; }
.bm-gap--end { flex: .6; }
.bm-gap--end::after { background-image: linear-gradient(to right, var(--border-strong) 50%, transparent 50%); animation: none; }

.bm-phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 40px; border-top: 1px solid var(--border); }
.bm-phase { padding: 32px 32px 0 0; display: flex; flex-direction: column; gap: 14px; border-top: 2px solid var(--amber); margin-top: -1px; }
.bm-phase__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bm-phase__num { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--amber-text); }
.bm-phase__mode { font-size: 12px; font-weight: 600; border: 1px solid var(--border); border-radius: 9999px; padding: 4px 10px; }
.bm-phase h3 { font-size: 20px; line-height: 1.25; }
.bm-phase p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted-foreground); text-wrap: pretty; }
@media (max-width: 639px) { .bm-phase { padding-right: 0; padding-bottom: 8px; } }

.bm-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; margin-top: 64px; }
.bm-note { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.bm-note p { margin: 0; font-size: 15px; line-height: 1.6; color: #4A4A57; text-wrap: pretty; }

/* ------------------------------------------------------ experience */
.bm-exp { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 64px; align-items: start; }
.bm-exp h2 { max-width: 440px; }
.bm-exp__body { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.bm-exp__body p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--muted-foreground); text-wrap: pretty; }
.bm-exp__body .bm-exp__lede { font-size: 18px; color: var(--navy); }
.bm-exp__body .bm-exp__strong { color: var(--navy); font-weight: 600; }
.bm-exp__body .bm-btn { align-self: flex-start; margin-top: 8px; }

/* ------------------------------------------------------ commitment */
.bm-commit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; align-items: stretch; }
.bm-price-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow-card); }
.bm-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0; }
.bm-price strong { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1; letter-spacing: -.02em; }
.bm-price span { font-size: 16px; color: var(--muted-foreground); }
.bm-months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.bm-months li { background: var(--warm-white); border-radius: 8px; padding: 12px; text-align: center; margin: 0; font-size: 12px; color: var(--muted-foreground); }
.bm-months strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--navy); margin-top: 2px; }
.bm-price-card p { margin: 0; font-size: 15px; line-height: 1.6; color: #4A4A57; text-wrap: pretty; }
.bm-price-card .bm-btn { align-self: flex-start; margin-top: auto; }
.bm-terms { display: flex; flex-direction: column; }
.bm-term { padding: 24px 0; border-bottom: 1px solid var(--border); }
.bm-term:first-child { padding-top: 0; }
.bm-term:last-child { border-bottom: 0; padding-bottom: 0; }
.bm-term h3 { font-size: 18px; margin-bottom: 8px; }
.bm-term p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted-foreground); text-wrap: pretty; }
.bm-provider { margin: 32px 0 0; font-size: 13px; color: var(--muted-foreground); }

/* --------------------------------------------------------- closing */
.bm-close-section { padding-top: 0; scroll-margin-top: 80px; }
.bm-close {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: clamp(28px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.bm-close h2 { font-size: clamp(30px, 4vw, 44px); }
.bm-close > div > p { font-size: 18px; line-height: 1.6; color: var(--muted-foreground); margin: 20px 0 0; text-wrap: pretty; }

/* Enquiry form. Posts to subscribe.php like the contact page; form-guard.js
   adds the timestamp token and, where configured, Turnstile. */
.bm-form { display: flex; flex-direction: column; gap: 18px; }
.bm-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.bm-field { display: flex; flex-direction: column; gap: 6px; }
.bm-field label, .bm-choices legend { font-size: 13px; font-weight: 600; color: var(--navy); }
.bm-optional { font-weight: 400; color: var(--muted-foreground); }
.bm-input {
  font: inherit; font-size: 16px; line-height: 1.5; color: var(--navy); background: var(--white);
  width: 100%; box-sizing: border-box; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 12px; outline: 0;
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.bm-input:focus { border-color: var(--amber-glow); box-shadow: 0 0 0 3px rgba(224,160,32,.22); }
textarea.bm-input { resize: vertical; }
.bm-choices { border: 0; padding: 0; margin: 0; min-width: 0; }
.bm-choices legend { padding: 0; margin-bottom: 8px; }
.bm-choice {
  display: flex; gap: 10px; align-items: center; cursor: pointer; font-size: 15px;
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
  transition: border-color 200ms var(--ease-out);
}
.bm-choice:hover, .bm-choice:has(input:checked) { border-color: rgba(212,149,42,.5); }
.bm-choice input, .bm-consent input { accent-color: var(--amber); width: 18px; height: 18px; margin: 0; flex: none; }
.bm-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: #4A4A57; cursor: pointer; }
.bm-consent input { margin-top: 2px; }
.bm-consent a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }
.bm-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.bm-submit { border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 16px; padding: 14px 26px; }
.bm-submit:active { background: var(--amber-glow); }
/* Honeypot: display:none, not visually hidden, so browser and password-manager
   autofill cannot reach it. Bots read the markup and still fill it. */
.bm-hp { display: none !important; }

/* ------------------------------------------------------- animation */
@keyframes bm-flow-x { to { background-position: 24px 0; } }
@keyframes bm-flow-y { to { background-position: 0 24px; } }
@keyframes bm-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(212,149,42,.45); }
  70%  { box-shadow: 0 0 0 12px rgba(212,149,42,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,149,42,0); }
}
@media (prefers-reduced-motion: reduce) {
  .bm-merge__stem, .bm-pill, .bm-step--first .bm-step__dot, .bm-gap::after { animation: none; }
}
