/*
 * Section utilities for the block patterns.
 *
 * Patterns are built from core blocks; these classes give them the section
 * rhythm, the background options and the visibility switches described in the
 * component spec, without inventing a block library to maintain.
 */

/* ---------------------------------------------------------- sections --- */

.vpf-sec {
  padding-block: clamp(56px, 7vw, 96px);
}

.vpf-sec-tight {
  padding-block: clamp(36px, 4vw, 56px);
}

.vpf-bg-white {
  background: var(--vpf-surface, #fff);
}

.vpf-bg-soft {
  background: var(--vpf-cloud, #f5f8fb);
}

/* Dark section: everything inside inverts, including headings, which
   otherwise take the global ink colour and vanish. */
.vpf-bg-navy {
  background: var(--vpf-primary, #07152f);
  color: #fff;
}

.vpf-bg-navy h1,
.vpf-bg-navy h2,
.vpf-bg-navy h3,
.vpf-bg-navy h4,
.vpf-bg-navy p,
.vpf-bg-navy li {
  color: inherit;
}

.vpf-bg-navy p,
.vpf-bg-navy li {
  color: rgb(255 255 255 / .78);
}

.vpf-bg-navy .vpf-eyebrow {
  color: var(--vpf-accent, #12c7a4);
}

.vpf-bg-navy .wp-block-group.has-background {
  background: rgb(255 255 255 / .06) !important;
  border: 1px solid rgb(255 255 255 / .14);
}

/* ------------------------------------------------------------ bits ----- */

.vpf-eyebrow {
  color: var(--vpf-muted, #69778a);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: .75rem;
  text-transform: uppercase;
}

.vpf-display {
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.vpf-measure {
  max-width: 62ch;
}

/* Panel: the card surface patterns reuse for tiles, quotes and steps. */
.vpf-panel {
  background: var(--vpf-surface, #fff);
  border: 1px solid var(--vpf-line, #e5ebf1);
  border-radius: 20px;
  height: 100%;
  padding: 26px;
}

.vpf-panel h3 {
  font-size: 1.25rem;
  letter-spacing: -.02em;
  margin: 0 0 .5rem;
}

.vpf-panel p {
  margin: 0;
}

.vpf-step-number {
  color: var(--vpf-accent, #12c7a4);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: .75rem;
}

.vpf-stat {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1;
}

.vpf-logo-row {
  align-items: center;
  color: var(--vpf-muted, #69778a);
  display: flex;
  flex-wrap: wrap;
  font-weight: 700;
  gap: 18px 40px;
  justify-content: center;
}

.vpf-quote-lg p {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.45;
}

/* --------------------------------------------------------- visibility -- */

@media (max-width: 780px) {
  .vpf-hide-mobile {
    display: none !important;
  }
}

@media (min-width: 781px) {
  .vpf-hide-desktop {
    display: none !important;
  }
}

/* ---------------------------------------------------- FAQ (details) ---- */

.vpf-faq-item {
  border: 1px solid var(--vpf-line, #e5ebf1);
  border-radius: 16px;
  padding: 18px 22px;
}

.vpf-faq-item + .vpf-faq-item {
  margin-top: 12px;
}

.vpf-faq-item h3 {
  font-size: 1.0625rem;
  margin: 0 0 .5rem;
}

.vpf-faq-item p {
  color: var(--vpf-muted, #69778a);
  margin: 0;
}

/* ------------------------------------------------- font size presets --- */
/*
 * theme.json font sizes carry no line-height, so a paragraph bumped to a
 * larger preset kept the body's computed leading and the lines collided.
 */

.has-small-font-size { line-height: 1.62; }
.has-medium-font-size { line-height: 1.7; }
.has-large-font-size { line-height: 1.55; }
.has-x-large-font-size { line-height: 1.25; letter-spacing: -.02em; }
.has-xx-large-font-size { line-height: 1.08; letter-spacing: -.035em; }

/* Patterns place their own rhythm; keep block gap from doubling up on the
   first child of a section. */
.vpf-sec > :first-child,
.vpf-sec-tight > :first-child {
  margin-block-start: 0;
}
