/* ==========================================================================
   ACF page-builder block styles
   ==========================================================================
   Shared module CSS — enqueued on every page that uses the page builder.
   Page-template-specific CSS (coaching.css etc.) remains for legacy hardcoded
   markup; will be removed as each page is migrated to ACF.
   ========================================================================== */

/* --- Hero (in-builder) ---------------------------------------------------- */
.vfh-hero { position: relative; overflow: hidden; }
.vfh-hero--center { text-align: center; padding: 90px 0; }
.vfh-hero--center .vfh-hero__body { max-width: 760px; margin: 0 auto; }
.vfh-hero--split { padding: 70px 0; }
.vfh-hero--split .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: center; }
.vfh-hero--split .grid > :first-child { padding-right: 48px; }
.vfh-hero__media { aspect-ratio: 4/5; overflow: hidden; border-radius: 18px; box-shadow: 0 30px 70px -30px rgba(14,35,64,.35); }
.vfh-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vfh-hero h1 { font-family: var(--ff); font-weight: 300; font-size: clamp(40px, 6vw, 72px); line-height: 1.05; letter-spacing: -.02em; color: var(--vfh-ink); margin-bottom: 22px; }
.vfh-hero h1 em { font-style: italic; font-weight: 400; }
.vfh-hero p.sub,
.vfh-hero__body > p { font-size: 18px; color: var(--vfh-body); margin-bottom: 30px; max-width: 560px; }
.vfh-hero--center .vfh-hero__body > p { margin-left: auto; margin-right: auto; }
.vfh-hero .eyebrow { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--vfh-purple-deep, #6B5B96); margin-bottom: 22px; font-weight: 600; display: inline-block; }
@media (max-width: 880px) {
  .vfh-hero--split .grid { grid-template-columns: 1fr; gap: 40px; }
  .vfh-hero--split .grid > :first-child { padding-right: 0; }
  .vfh-hero__media { aspect-ratio: 16/10; }
}

/* --- Card section --------------------------------------------------------- */
.vfh-card-section__head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.vfh-card-section__head .eyebrow { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--vfh-muted); font-weight: 600; margin-bottom: 14px; display: inline-block; }
.vfh-card-section__head h2 { font-family: var(--ff); font-weight: 300; font-size: clamp(32px, 4.6vw, 48px); letter-spacing: -.02em; color: var(--vfh-ink); margin-bottom: 14px; line-height: 1.1; }
.vfh-card-section__head p.lead { font-size: 17px; color: var(--vfh-muted); }

.vfh-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--vfh-rule);
  border-radius: 16px;
  padding: var(--pad-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background-color .35s ease;
  overflow: hidden;
  isolation: isolate;
}

/* Stretched-link pattern — when the card has a CTA link, the whole card
   becomes the click target via an absolutely-positioned ::after on the
   inner link. Inner content stays selectable because text elements don't
   capture clicks. */
.vfh-card.is-linked { cursor: pointer; }
.vfh-card.is-linked .btn::after,
.vfh-card.is-linked a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: auto;
}

/* Brand-eye watermark — opt-in via the "Brand-eye watermark behind cards"
   toggle on the Services / Card section block. Container gets data-eye="1".
   Resting state = pale brand tint with eye showing softly;
   Hover = soft brand colour with eye slightly brighter + zoomed. */
.vfh-cards[data-eye="1"] .vfh-card {
  overflow: hidden;
  isolation: isolate;
}
.vfh-cards[data-eye="1"] .vfh-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('eye-watermark.png');
  background-repeat: no-repeat;
  background-position: 55% 45%;
  background-size: 130% auto;
  opacity: .9;
  pointer-events: none;
  z-index: -1;
  transition: opacity .35s ease, transform .6s ease;
}
.vfh-cards[data-eye="1"] .vfh-card:hover::before { opacity: 1; }
.vfh-cards[data-eye="1"] .vfh-card > * { position: relative; }

/* Resting + hover bg tints, scoped to the eye-enabled containers only */
.vfh-cards[data-eye="1"] .vfh-card.gold         { background: #F8E9C1; }
.vfh-cards[data-eye="1"] .vfh-card.gold:hover   { background: var(--vfh-gold-soft);   }
.vfh-cards[data-eye="1"] .vfh-card.cyan         { background: #D5E8EE; }
.vfh-cards[data-eye="1"] .vfh-card.cyan:hover   { background: var(--vfh-cyan-soft);   }
.vfh-cards[data-eye="1"] .vfh-card.teal         { background: #D6E5DF; }
.vfh-cards[data-eye="1"] .vfh-card.teal:hover   { background: var(--vfh-teal-soft);   }
.vfh-cards[data-eye="1"] .vfh-card.purple       { background: #E5DFEE; }
.vfh-cards[data-eye="1"] .vfh-card.purple:hover { background: var(--vfh-purple-soft); }
.vfh-card h3 { font-family: var(--ff); font-weight: 400; font-size: 22px; color: var(--vfh-ink); letter-spacing: -.005em; line-height: 1.25; }
.vfh-card p { font-size: 15px; color: var(--vfh-body); flex: 1; }
.vfh-card .btn { margin-top: 6px; }
/* Button alignment follows section alignment */
.vfh-card-section[data-align="left"]   .vfh-card .btn { align-self: flex-start; }
.vfh-card-section[data-align="center"] .vfh-card .btn { align-self: center; }

/* Card CTA — text-link style (not a pill button). Text sits in charcoal
   with an arrow that slides on hover. Colour shifts to the page accent. */
.vfh-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 0;
  background: transparent;
  color: var(--charcoal, #3D4644);
  font-family: var(--ff-b);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  text-decoration: none;
  border: 0;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
  align-self: flex-start;
  cursor: pointer;
}
.vfh-card .card-link svg {
  width: 14px;
  height: 14px;
  transition: transform .2s ease;
}
.vfh-card .card-link:hover {
  color: var(--vfh-page-accent);
  border-bottom-color: currentColor;
}
.vfh-card .card-link:hover svg { transform: translateX(3px); }
.vfh-card-section[data-align="center"] .vfh-card .card-link { align-self: center; }

/* Shared badge background palette — both pill (left) and circle (centre)
   use the soft brand-colour fill + deep brand-colour text. */
.vfh-card.gold   .vfh-card__badge { background: var(--vfh-gold-soft);   color: #8A6B12; }
.vfh-card.cyan   .vfh-card__badge { background: var(--vfh-cyan-soft);   color: #0E6A82; }
.vfh-card.teal   .vfh-card__badge { background: var(--vfh-teal-soft);   color: #1F6356; }
.vfh-card.purple .vfh-card__badge { background: var(--vfh-purple-soft); color: var(--vfh-purple-deep, #6B5B96); }

/* card_alignment = center → circle badge, centred content */
.vfh-card-section[data-align="center"] .vfh-card { text-align: center; align-items: center; }
.vfh-card-section[data-align="center"] .vfh-card__badge {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  font-weight: 700; font-size: 16px;
  margin: 0 0 6px;
  letter-spacing: .02em;
}

/* card_alignment = left → pill badge, left-aligned content */
.vfh-card-section[data-align="left"] .vfh-card { text-align: left; align-items: flex-start; }
.vfh-card-section[data-align="left"] .vfh-card__badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* --- Purpose ladder ------------------------------------------------------- */
.vfh-ladder__head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.vfh-ladder__head .eyebrow { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--vfh-muted); font-weight: 600; margin-bottom: 14px; display: inline-block; }
.vfh-ladder__head h2 { font-family: var(--ff); font-weight: 300; font-size: clamp(34px, 5vw, 54px); letter-spacing: -.02em; color: var(--vfh-ink); margin-bottom: 18px; line-height: 1.05; }
.vfh-ladder__head p.lead { color: var(--vfh-muted); font-size: 17px; }

.vfh-ladder__wrap { display: grid; grid-template-columns: 140px 1fr 140px; gap: 24px; max-width: 1080px; margin: 0 auto; align-items: stretch; }
.vfh-rail { background: #fff; border: 1px solid var(--vfh-rule); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 32px 14px; }
.vfh-rail__label { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 700; letter-spacing: .32em; text-transform: uppercase; font-size: 28px; flex: 1; display: flex; align-items: center; justify-content: center; }
.vfh-rail__arrow { font-size: 24px; line-height: 1; opacity: .85; }
.vfh-rail--left  { color: var(--vfh-purple); }
.vfh-rail--right { color: var(--vfh-teal); }
.vfh-rail--left  .vfh-rail__label, .vfh-rail--left  .vfh-rail__arrow { color: var(--vfh-purple); }
.vfh-rail--right .vfh-rail__label, .vfh-rail--right .vfh-rail__arrow { color: var(--vfh-teal); }

.vfh-ladder__steps { display: flex; flex-direction: column; gap: var(--gap-tight); }
.vfh-step { background: #fff; border: 1px solid var(--vfh-rule); padding: var(--pad-card); display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start; border-left: 5px solid; }
.vfh-step__num { width: 48px; height: 48px; display: grid; place-items: center; font-weight: 700; font-size: 16px; color: #fff; }
.vfh-step__kicker { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; }
.vfh-step h3 { font-family: var(--ff); font-weight: 400; font-size: 24px; color: var(--vfh-ink); margin-bottom: 8px; letter-spacing: -.005em; line-height: 1.2; }
.vfh-step p { font-size: 15px; color: var(--vfh-body); }
/* Paler shade everywhere — matches the card badge palette (soft bg + deep text). */
.vfh-step.teal   { border-left-color: var(--vfh-teal-soft);   } .vfh-step.teal   .vfh-step__num { background: var(--vfh-teal-soft);   color: #1F6356; } .vfh-step.teal   .vfh-step__kicker { color: var(--vfh-teal);   }
.vfh-step.cyan   { border-left-color: var(--vfh-cyan-soft);   } .vfh-step.cyan   .vfh-step__num { background: var(--vfh-cyan-soft);   color: #0E6A82; } .vfh-step.cyan   .vfh-step__kicker { color: var(--vfh-cyan);   }
.vfh-step.gold   { border-left-color: var(--vfh-gold-soft);   } .vfh-step.gold   .vfh-step__num { background: var(--vfh-gold-soft);   color: #8A6B12; } .vfh-step.gold   .vfh-step__kicker { color: var(--vfh-gold);   }
.vfh-step.purple { border-left-color: var(--vfh-purple-soft); } .vfh-step.purple .vfh-step__num { background: var(--vfh-purple-soft); color: var(--vfh-purple-deep,#6B5B96); } .vfh-step.purple .vfh-step__kicker { color: var(--vfh-purple); }

@media (max-width: 880px) {
  .vfh-ladder__wrap { grid-template-columns: 54px 1fr 54px; gap: 12px; }
  .vfh-rail { padding: 18px 6px; }
  .vfh-rail__label { font-size: 20px; letter-spacing: .28em; }
  .vfh-step { grid-template-columns: 42px 1fr; gap: 14px; }
  .vfh-step__num { width: 36px; height: 36px; font-size: 14px; }
  .vfh-step h3 { font-size: 20px; }
}

/* --- CTA band ------------------------------------------------------------- */
.vfh-cta { color: #fff; text-align: center; position: relative; overflow: hidden; }
.vfh-cta:not(.bg-navy-gradient) { color: var(--vfh-ink); }
.vfh-cta.bg-navy-gradient::before { content: ''; position: absolute; top: 50%; left: 50%; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(139,124,182,.22), transparent 60%); transform: translate(-50%,-50%); }
.vfh-cta .inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.vfh-cta h2 { font-family: var(--ff); font-weight: 300; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 14px; }
.vfh-cta h2 em { font-style: italic; font-weight: 400; }
/* Bare <em> only — classed em (em.purple, em.gold, em.blue etc.) keeps
   its explicit colour. Bare em picks up the page's accent-on-dark. */
.vfh-cta.bg-navy-gradient h2 em:not([class]) { color: var(--vfh-page-accent-on-dark); }
.vfh-cta p { font-size: 17px; margin-bottom: 32px; }
.vfh-cta.bg-navy-gradient p { color: rgba(255,255,255,.78); }
.vfh-cta.bg-navy-gradient .btn { background: #fff; color: var(--vfh-charcoal); border-color: #fff; }
.vfh-cta.bg-navy-gradient .btn:hover { background: transparent; color: #fff; }

/* --- Blog grid (shared by homepage block, /resources/, archive pages) ----- */
/* Scoped to section.blog so the rule never matches body.blog (the WP blog-index body class). */
section.blog { padding: 100px 0; }
.blog-head { text-align: center; margin-bottom: 50px; }
.blog-head .eyebrow { color: var(--vfh-purple); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; font-weight: 600; display: inline-block; margin-bottom: 14px; }
.blog-head h2 { font-family: var(--ff); font-weight: 400; font-size: clamp(32px, 4.4vw, 42px); color: var(--vfh-ink); letter-spacing: -.015em; line-height: 1.1; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 880px) { .blog-grid { grid-template-columns: 1fr; } }

.post { background: #fff; border: 1px solid var(--vfh-rule); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
/* No lift-on-hover on posts. */
.post .thumb { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--vfh-cream); }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post .body { padding: 24px 26px 28px; }
.post .meta { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--vfh-muted); margin-bottom: 12px; }
.post h3 { font-family: var(--ff); font-weight: 600; font-size: 20px; color: var(--vfh-ink); line-height: 1.3; margin-bottom: 10px; letter-spacing: -.005em; }
.post h3 a { color: inherit; }
.post h3 a:hover { color: var(--vfh-purple); }
.post p { font-size: 14px; color: var(--vfh-body); }

/* WP pagination — matches the design system (rounded pills, purple active) */
.blog .pagination,
.blog nav.pagination,
.vfh-archive-pagination { margin-top: 60px; display: flex; justify-content: center; }
.blog .nav-links,
.vfh-archive-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.blog .page-numbers,
.vfh-archive-pagination .page-numbers {
  display: inline-grid; place-items: center;
  min-width: 40px; height: 40px; padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--vfh-rule);
  background: #fff;
  color: var(--vfh-ink);
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.blog .page-numbers:hover,
.vfh-archive-pagination .page-numbers:hover { background: var(--vfh-purple-soft); border-color: var(--vfh-purple-soft); color: var(--vfh-purple-deep, #6B5B96); }
.blog .page-numbers.current,
.vfh-archive-pagination .page-numbers.current { background: var(--vfh-purple); border-color: var(--vfh-purple); color: #fff; }
.blog .page-numbers.dots,
.vfh-archive-pagination .page-numbers.dots { border: 0; background: transparent; color: var(--vfh-muted); }

/* --- Split text — centred variant --------------------------------------- */
.vfh-split-text--center { text-align: center; }
.vfh-split-text--center h2 {
  font-family: var(--ff);
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--vfh-ink);
  margin: 0 auto 18px;
}
.vfh-split-text--center h2 em { font-style: italic; font-weight: 400; color: var(--vfh-purple); }
.vfh-split-text--center .section-body {
  max-width: var(--w-prose);
  margin: 0 auto 28px;
}
.vfh-split-text--center .section-body p {
  font-size: var(--fs-body);
  color: var(--vfh-body);
  line-height: 1.65;
}
.vfh-split-text--center .section-body p.lead {
  font-size: var(--fs-lead);
  color: var(--vfh-ink);
  font-weight: 400;
}
.vfh-split-text--center .btn { display: inline-flex; }

/* --- Alt rows section header --------------------------------------------- */
.vfh-alt-rows__head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.vfh-alt-rows__head .eyebrow { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--vfh-muted); font-weight: 600; margin-bottom: 14px; display: inline-block; }
.vfh-alt-rows__head h2 { font-family: var(--ff); font-weight: 300; font-size: clamp(32px, 4.6vw, 48px); letter-spacing: -.02em; color: var(--vfh-ink); line-height: 1.1; }

/* --- 360 page: connector arrow between Step 7 (staggered cards) and the
       two delivery options below. Uses the same chevron style as the nav
       dropdown caret (border-right + border-bottom rotated 45°).
   ----------------------------------------------------------------------- */
body.page-id-1185 .vfh-card-section[data-style="staggered"] .vfh-cards::after {
  content: '';
  display: block;
  grid-column: 1 / -1;
  width: 22px;
  height: 22px;
  margin: 36px auto 0;
  border-right: 2.5px solid var(--vfh-gold);
  border-bottom: 2.5px solid var(--vfh-gold);
  transform: rotate(45deg);
  opacity: .85;
}

/* --- Coaching (id 1271) — brand teal page accents (colour spec) ---------- */
/* Coaching (1271) — brand teal eyebrow (bare-em accent set via
   --vfh-page-accent in vfh-system.css) */
body.page-id-1271 .eyebrow,
body.page-id-1271 .vfh-hero .eyebrow,
body.page-id-1271 .vfh-card-section__head .eyebrow,
body.page-id-1271 .vfh-ladder__head .eyebrow,
body.page-id-1271 .vfh-alt-rows__head .eyebrow { color: #3F8079; }

/* Facilitation (1278) — brand purple eyebrow */
body.page-id-1278 .eyebrow,
body.page-id-1278 .vfh-hero .eyebrow,
body.page-id-1278 .vfh-card-section__head .eyebrow,
body.page-id-1278 .vfh-ladder__head .eyebrow,
body.page-id-1278 .vfh-alt-rows__head .eyebrow { color: #5E4F70; }

/* --- HubSpot form block ------------------------------------------------- */
.vfh-hubspot__head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.vfh-hubspot__head .eyebrow { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--vfh-muted); font-weight: 600; margin-bottom: 14px; display: inline-block; }
.vfh-hubspot__head h2 { font-family: var(--ff); font-weight: 300; font-size: clamp(32px, 4.6vw, 48px); letter-spacing: -.02em; color: var(--vfh-ink); line-height: 1.1; margin-bottom: 14px; }
.vfh-hubspot__head p.lead { color: var(--vfh-muted); font-size: 17px; }

.vfh-hubspot__form { max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--vfh-rule); border-radius: 18px; padding: 40px; box-shadow: 0 20px 40px -24px rgba(14,35,64,.12); }
.vfh-hubspot__placeholder { text-align: center; color: var(--vfh-muted); padding: 20px; border: 1px dashed var(--vfh-rule); border-radius: 12px; }

/* Style the HubSpot form itself to match the site look. HS injects its own
   classes (.hs-form, .hs-input, .hs-button) — we skin them gently. */
.vfh-hubspot__form .hs-form fieldset { max-width: none !important; }
.vfh-hubspot__form .hs-form-field { margin-bottom: 18px; }
.vfh-hubspot__form .hs-form-field > label { display: block; font-size: 14px; font-weight: 600; color: var(--vfh-ink); margin-bottom: 6px; }
.vfh-hubspot__form .hs-input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]) { width: 100% !important; padding: 12px 14px; border: 1px solid var(--vfh-rule); border-radius: 8px; font-family: inherit; font-size: 15px; color: var(--vfh-ink); background: #fff; }
.vfh-hubspot__form .hs-input:focus { outline: 2px solid var(--vfh-purple-soft); border-color: var(--vfh-purple); }
.vfh-hubspot__form .hs-button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 999px;
  background: var(--charcoal, #3D4644); color: #fff;
  border: 1px solid var(--charcoal, #3D4644);
  font-family: inherit; font-weight: 600; font-size: 17px; letter-spacing: .02em;
  cursor: pointer; transition: .25s;
  box-shadow: 0 12px 30px -12px rgba(61,70,68,.5);
}
.vfh-hubspot__form .hs-button:hover { background: #fff; color: var(--charcoal, #3D4644); }
.vfh-hubspot__form .hs-error-msgs { list-style: none; padding: 0; margin: 6px 0 0; font-size: 13px; color: #b02a2a; }
.vfh-hubspot__form .submitted-message { text-align: center; font-size: 17px; color: var(--vfh-ink); padding: 20px 0; }
