/*
Theme Name: Blue Skies GeneratePress Child
Theme URI: https://callblueskies.com
Description: GeneratePress child theme for Blue Skies Plumbing Spokane.
Author: nEveresting / Lawrence Jay Long
Template: generatepress
Version: 0.7.12
Text Domain: bsp-gp-child
*/

/* ===========================================================================
   GeneratePress site fixes
   =========================================================================== */

.wp-block-categories .wp-block-categories__label {
  width: initial;
}

/* ===========================================================================
   BSP theme tokens
   Keep typography controlled by GeneratePress Customizer.
   =========================================================================== */

:root {
  --bsp-font-main: "Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bsp-header-bg: var(--base-2);

  /* Shadow color maps to BSP contrast (#1A1A1A) with explicit alpha. */
  --bsp-header-shadow: 0 2px 14px rgba(26, 26, 26, 0.08);
}

/* ===========================================================================
   BSP reusable content component layer
   Version: 0.7.9 component patch
   Purpose:
   - Keep GeneratePress responsible for global color and typography settings.
   - Keep GenerateBlocks Global Styles responsible for editor-friendly style selection.
   - Give BSP pages shared section, container, card, grid, button, step, and CTA classes.
   - Avoid per-page CSS like .bsp-wte__hero unless the page is truly unique.
   Placement:
   - Add after the "BSP theme tokens" section, or append near the end of style.css.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   01. BSP design tokens
   These extend the existing GP global colors:
   --contrast, --contrast-2, --base, --base-2, --accent, --accent-2, --accent-3
   --------------------------------------------------------------------------- */

:root {
  --bsp-section-y: clamp(3.5rem, 7vw, 6rem);
  --bsp-section-y-tight: clamp(2.5rem, 5vw, 4rem);
  --bsp-section-y-xl: clamp(4.5rem, 9vw, 7.5rem);
  --bsp-section-x: 1.5rem;

  --bsp-container-sm: 760px;
  --bsp-container-md: 980px;
  --bsp-container-lg: 1180px;
  --bsp-container-xl: 1280px;

  --bsp-gap-xs: 0.5rem;
  --bsp-gap-sm: 0.75rem;
  --bsp-gap-md: 1rem;
  --bsp-gap-lg: 1.5rem;
  --bsp-gap-xl: clamp(2rem, 5vw, 4rem);

  --bsp-radius-sm: 0.7rem;
  --bsp-radius-md: 1rem;
  --bsp-radius-lg: 1.35rem;
  --bsp-radius-pill: 999px;

  --bsp-shadow-sm: 0 10px 28px rgba(26, 26, 26, 0.06);
  --bsp-shadow-md: 0 14px 36px rgba(26, 26, 26, 0.10);
  --bsp-shadow-lg: 0 24px 70px rgba(26, 26, 26, 0.16);

  --bsp-border-soft: 1px solid var(--accent-3);
  --bsp-border-on-blue: 1px solid rgba(255, 255, 255, 0.22);

  --bsp-blue-deep: #053d67;
  --bsp-blue-darker: #082033;
  --bsp-blue-gradient: linear-gradient(135deg, var(--accent) 0%, var(--bsp-blue-deep) 100%);

  --bsp-boundary: var(--boundary, #B54735);
  --bsp-boundary-soft: var(--boundary-soft, #FFF2EE);

  --bsp-text-on-blue: rgba(255, 255, 255, 0.86);
  --bsp-text-on-blue-muted: rgba(255, 255, 255, 0.68);

  --bsp-transition-fast: 160ms ease;
  --bsp-transition-standard: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------------------------
   02. GenerateBlocks / GeneratePress alignment
   Use existing GB Global Style class names where possible.
   The :where() wrapper keeps specificity low so GenerateBlocks editor styles
   can still override intentionally.
   --------------------------------------------------------------------------- */

:where(.gbp-section, .bsp-section) {
  padding: var(--bsp-section-y) var(--bsp-section-x);
}

:where(.bsp-section--tight) {
  padding-block: var(--bsp-section-y-tight);
}

:where(.bsp-section--xl) {
  padding-block: var(--bsp-section-y-xl);
}

:where(.bsp-section--base) {
  background: var(--base);
}

:where(.bsp-section--white) {
  background: var(--base-2);
}

:where(.bsp-section--soft-blue) {
  background: var(--accent-3);
}

:where(.bsp-section--blue) {
  background: var(--bsp-blue-gradient);
  color: var(--base-2);
}

:where(.bsp-section--dark) {
  background: var(--contrast);
  color: var(--base-2);
}

:where(.bsp-section--flush-x) {
  padding-inline: 0;
}

:where(.gbp-section__inner, .bsp-container) {
  width: min(100%, var(--bsp-container-md));
  margin-inline: auto;
}

:where(.bsp-container--sm) {
  width: min(100%, var(--bsp-container-sm));
}

:where(.bsp-container--lg) {
  width: min(100%, var(--bsp-container-lg));
}

:where(.bsp-container--xl) {
  width: min(100%, var(--bsp-container-xl));
}

/* ---------------------------------------------------------------------------
   03. Shared type helpers
   GP Customizer owns the actual font family and base heading scale.
   These helpers control hierarchy, spacing, color, and scanner-friendly rhythm.
   --------------------------------------------------------------------------- */

:where(.gbp-section__tagline, .bsp-eyebrow) {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

:where(.bsp-section--blue, .bsp-section--dark) :where(.gbp-section__tagline, .bsp-eyebrow) {
  color: var(--accent-2);
}

:where(.gbp-section__headline, .bsp-display) {
  margin: 0;
  color: inherit;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

:where(.bsp-display--sm) {
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

:where(.gbp-section__text, .bsp-lede) {
  max-width: 700px;
  margin: 1rem 0 0;
  color: var(--contrast-2);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.65;
}

:where(.bsp-section--blue, .bsp-section--dark) :where(.gbp-section__text, .bsp-lede) {
  color: var(--bsp-text-on-blue);
}

:where(.bsp-kicker-line) {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

:where(.bsp-kicker-line)::before {
  content: "";
  width: 32px;
  height: 4px;
  border-radius: var(--bsp-radius-pill);
  background: currentColor;
  display: inline-block;
}

/* ---------------------------------------------------------------------------
   04. Shared grids and layout utilities
   Apply these in GenerateBlocks via Global Style or Additional CSS Classes.
   --------------------------------------------------------------------------- */

:where(.bsp-grid) {
  display: grid;
  gap: var(--bsp-gap-md);
}

:where(.bsp-grid--2) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

:where(.bsp-grid--3) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

:where(.bsp-grid--4) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

:where(.bsp-grid--sidebar) {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: var(--bsp-gap-xl);
  align-items: start;
}

:where(.bsp-stack) {
  display: grid;
  gap: var(--bsp-gap-md);
}

:where(.bsp-stack--sm) {
  gap: var(--bsp-gap-sm);
}

:where(.bsp-stack--lg) {
  gap: var(--bsp-gap-lg);
}

:where(.bsp-split) {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: var(--bsp-gap-xl);
  align-items: center;
}

/* ---------------------------------------------------------------------------
   05. Cards
   Use .bsp-card as the durable base. Add modifiers for context.
   Keep card content normal: h2/h3/p/ul are styled by GP unless helper classes apply.
   --------------------------------------------------------------------------- */

:where(.bsp-card) {
  background: var(--base-2);
  border: var(--bsp-border-soft);
  border-radius: var(--bsp-radius-md);
  box-shadow: var(--bsp-shadow-sm);
  color: var(--contrast);
  padding: clamp(1.25rem, 2.5vw, 1.65rem);
}

:where(.bsp-card--base) {
  background: var(--base);
}

:where(.bsp-card--soft) {
  background: var(--accent-3);
}

:where(.bsp-card--blue) {
  background: rgba(255, 255, 255, 0.10);
  border: var(--bsp-border-on-blue);
  box-shadow: var(--bsp-shadow-md);
  color: var(--base-2);
}

:where(.bsp-card--accent-left) {
  border-left: 6px solid var(--accent-2);
}

:where(.bsp-card--no-shadow) {
  box-shadow: none;
}

:where(.bsp-card > :first-child) {
  margin-top: 0;
}

:where(.bsp-card > :last-child) {
  margin-bottom: 0;
}

:where(.gbp-card__meta-text, .bsp-card__meta) {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

:where(.bsp-card--blue) :where(.gbp-card__meta-text, .bsp-card__meta) {
  color: var(--accent-2);
}

:where(.gbp-card__title, .bsp-card__title) {
  margin: 0 0 0.65rem;
  color: inherit;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

:where(.bsp-card__text) {
  margin: 0;
  color: var(--contrast-2);
  font-size: 1rem;
  line-height: 1.65;
}

:where(.bsp-card--blue) :where(.bsp-card__text) {
  color: var(--bsp-text-on-blue);
}

/* ---------------------------------------------------------------------------
   06. Buttons and action rows
   Reuses existing GenerateBlocks global classes where they exist.
   For GB editor: select .gbp-button--primary or .gbp-button--secondary.
   For custom HTML/text anchors: use .bsp-button plus modifier.
   --------------------------------------------------------------------------- */

:where(.bsp-button-row) {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bsp-gap-sm);
  margin-top: 1.5rem;
}

:where(.bsp-button-row--stack) {
  flex-direction: column;
  align-items: stretch;
}

:where(.bsp-button, .gbp-button--primary, .gbp-button--secondary) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.68rem 1.2rem;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  border-radius: var(--bsp-radius-pill);
  transition:
    color var(--bsp-transition-fast),
    background-color var(--bsp-transition-fast),
    border-color var(--bsp-transition-fast),
    box-shadow var(--bsp-transition-standard),
    transform var(--bsp-transition-standard);
}

:where(.bsp-button--primary, .gbp-button--primary) {
  background: var(--accent-2);
  border: 1px solid var(--accent-2);
  color: var(--contrast);
}

:where(.bsp-button--primary, .gbp-button--primary):is(:hover, :focus-visible) {
  background: var(--base-2);
  border-color: var(--base-2);
  color: var(--contrast);
  transform: translateY(-2px);
  box-shadow: var(--bsp-shadow-sm);
}

:where(.bsp-button--secondary, .gbp-button--secondary) {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
}

:where(.bsp-button--secondary, .gbp-button--secondary):is(:hover, :focus-visible) {
  background: var(--accent-3);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--bsp-shadow-sm);
}

:where(.bsp-section--blue, .bsp-section--dark) :where(.bsp-button--secondary, .gbp-button--secondary):is(:hover, :focus-visible) {
  background: var(--base-2);
  border-color: var(--base-2);
  color: var(--accent);
}

/* ---------------------------------------------------------------------------
   07. Link cards and service lists
   Use for service links, sidebar links, /start-style grouped links, and page nav.
   --------------------------------------------------------------------------- */

:where(.bsp-link-list) {
  display: grid;
  gap: var(--bsp-gap-sm);
}

:where(.bsp-link-card) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bsp-gap-md);
  padding: 0.85rem 1rem;
  background: var(--accent-3);
  color: var(--contrast);
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    color var(--bsp-transition-fast),
    background-color var(--bsp-transition-fast),
    border-color var(--bsp-transition-fast),
    transform var(--bsp-transition-standard);
}

:where(.bsp-link-card)::after {
  content: "\2192";
  font-weight: 800;
  opacity: 0.65;
}

:where(.bsp-link-card):is(:hover, :focus-visible) {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--base-2);
  transform: translateY(-1px);
}

/* ---------------------------------------------------------------------------
   08. Steps and process sections
   Use for "What to expect", service processes, maintenance checklists, and SOP-like pages.
   --------------------------------------------------------------------------- */

:where(.bsp-step-list) {
  display: grid;
  gap: var(--bsp-gap-md);
}

:where(.bsp-step) {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
  background: var(--base);
  border: var(--bsp-border-soft);
  border-radius: var(--bsp-radius-md);
  box-shadow: var(--bsp-shadow-sm);
  padding: clamp(1.25rem, 2.5vw, 1.65rem);
}

:where(.bsp-step__num) {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--bsp-radius-pill);
  background: var(--accent);
  color: var(--base-2);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.1em;
}

:where(.bsp-step h2, .bsp-step h3) {
  margin: 0 0 0.55rem;
  color: var(--contrast);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

:where(.bsp-step p) {
  margin: 0;
  color: var(--contrast-2);
  font-size: 1rem;
  line-height: 1.7;
}

/* ---------------------------------------------------------------------------
   09. Highlight / final CTA blocks
   Use at bottom of destination pages and service pages.
   --------------------------------------------------------------------------- */

:where(.bsp-final-cta) {
  background: var(--accent);
  color: var(--base-2);
  padding: var(--bsp-section-y-tight) var(--bsp-section-x);
}

:where(.bsp-final-cta__inner) {
  width: min(100%, var(--bsp-container-md));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--bsp-gap-lg);
  align-items: center;
}

:where(.bsp-final-cta h2) {
  margin: 0;
  color: var(--base-2);
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

:where(.bsp-final-cta p) {
  max-width: 680px;
  margin: 0.85rem 0 0;
  color: var(--bsp-text-on-blue);
  font-size: 1.04rem;
  line-height: 1.65;
}

/* ---------------------------------------------------------------------------
   10. Utility helpers
   Keep these few and boring. Do not recreate Tailwind.
   --------------------------------------------------------------------------- */

:where(.bsp-text-muted) {
  color: var(--contrast-2);
}

:where(.bsp-text-on-blue) {
  color: var(--bsp-text-on-blue);
}

:where(.bsp-no-margin) {
  margin: 0;
}

:where(.bsp-mt-sm) {
  margin-top: var(--bsp-gap-sm);
}

:where(.bsp-mt-md) {
  margin-top: var(--bsp-gap-md);
}

:where(.bsp-mt-lg) {
  margin-top: var(--bsp-gap-lg);
}

:where(.bsp-mt-xl) {
  margin-top: var(--bsp-gap-xl);
}

/* ---------------------------------------------------------------------------
   11. Responsive behavior
   Centralized once so individual pages do not need custom breakpoints.
   --------------------------------------------------------------------------- */

@media (max-width: 1000px) {
  :where(.bsp-grid--4) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :where(.bsp-grid--sidebar, .bsp-split, .bsp-final-cta__inner) {
    grid-template-columns: 1fr;
  }

  :where(.bsp-final-cta__inner) {
    align-items: start;
  }
}

@media (max-width: 767px) {
  :root {
    --bsp-section-x: 1.25rem;
  }

  :where(.bsp-grid--2, .bsp-grid--3, .bsp-grid--4) {
    grid-template-columns: 1fr;
  }

  :where(.bsp-step) {
    grid-template-columns: 1fr;
  }

  :where(.bsp-step__num) {
    width: 52px;
    height: 52px;
  }

  :where(.bsp-button-row) {
    display: grid;
  }

  :where(.bsp-button-row a, .bsp-button-row .gb-button, .bsp-button-row .gb-text[href]) {
    width: 100%;
  }
}

/* ---------------------------------------------------------------------------
   12. Motion safety for shared components
   Existing global prefers-reduced-motion remains the main control.
   This keeps component-specific hover effects safe if this patch is moved.
   --------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  :where(.bsp-button, .gbp-button--primary, .gbp-button--secondary, .bsp-link-card) {
    transition: none !important;
  }

  :where(.bsp-button, .gbp-button--primary, .gbp-button--secondary, .bsp-link-card):is(:hover, :focus-visible) {
    transform: none !important;
  }
}
/* ==========================================================================
   BSP component cascade correction
   Version: 0.7.9.1
   Purpose:
   - Restore intended BSP component colors when GenerateBlocks Global Styles
     output more specific color/background rules than the low-specificity
     :where() component layer.
   - Keep the component layer editor-friendly without using !important.
   Placement:
   - Append after the BSP reusable content component layer in style.css.
   - Safe to place near the end of style.css, before accessibility/reduced-motion.
   ========================================================================== */

/* Section color contexts */
.bsp-section--blue,
.gbp-section.bsp-section--blue {
  background: var(--bsp-blue-gradient);
  color: var(--base-2);
}

.bsp-section--dark,
.gbp-section.bsp-section--dark {
  background: var(--contrast);
  color: var(--base-2);
}

.bsp-section--base,
.gbp-section.bsp-section--base {
  background: var(--base);
}

.bsp-section--white,
.gbp-section.bsp-section--white {
  background: var(--base-2);
}

.bsp-section--soft-blue,
.gbp-section.bsp-section--soft-blue {
  background: var(--accent-3);
}

/* Typography inside blue/dark sections */
.bsp-section--blue .gbp-section__headline,
.bsp-section--blue .bsp-display,
.bsp-section--blue .bsp-display--sm,
.bsp-section--blue h1,
.bsp-section--blue h2,
.bsp-section--blue h3,
.bsp-section--dark .gbp-section__headline,
.bsp-section--dark .bsp-display,
.bsp-section--dark .bsp-display--sm,
.bsp-section--dark h1,
.bsp-section--dark h2,
.bsp-section--dark h3 {
  color: var(--base-2);
}

.bsp-section--blue .gbp-section__tagline,
.bsp-section--blue .bsp-eyebrow,
.bsp-section--dark .gbp-section__tagline,
.bsp-section--dark .bsp-eyebrow {
  color: var(--accent-2);
}

.bsp-section--blue .gbp-section__text,
.bsp-section--blue .bsp-lede,
.bsp-section--blue p,
.bsp-section--dark .gbp-section__text,
.bsp-section--dark .bsp-lede,
.bsp-section--dark p {
  color: var(--bsp-text-on-blue);
}

/* Cards */
.bsp-card {
  background: var(--base-2);
  border: var(--bsp-border-soft);
  border-radius: var(--bsp-radius-md);
  box-shadow: var(--bsp-shadow-sm);
  color: var(--contrast);
  padding: clamp(1.25rem, 2.5vw, 1.65rem);
}

.bsp-card--base {
  background: var(--base);
}

.bsp-card--soft {
  background: var(--accent-3);
}

.bsp-card--blue,
.bsp-section--blue .bsp-card.bsp-card--blue,
.bsp-section--dark .bsp-card.bsp-card--blue {
  background: rgba(255, 255, 255, 0.10);
  border: var(--bsp-border-on-blue);
  box-shadow: var(--bsp-shadow-md);
  color: var(--base-2);
}

.bsp-card--blue .bsp-card__meta,
.bsp-section--blue .bsp-card.bsp-card--blue .bsp-card__meta,
.bsp-section--dark .bsp-card.bsp-card--blue .bsp-card__meta {
  color: var(--accent-2);
}

.bsp-card--blue .bsp-card__title,
.bsp-card--blue h2,
.bsp-card--blue h3,
.bsp-section--blue .bsp-card.bsp-card--blue .bsp-card__title,
.bsp-section--blue .bsp-card.bsp-card--blue h2,
.bsp-section--blue .bsp-card.bsp-card--blue h3,
.bsp-section--dark .bsp-card.bsp-card--blue .bsp-card__title,
.bsp-section--dark .bsp-card.bsp-card--blue h2,
.bsp-section--dark .bsp-card.bsp-card--blue h3 {
  color: var(--base-2);
}

.bsp-card--blue .bsp-card__text,
.bsp-card--blue p,
.bsp-section--blue .bsp-card.bsp-card--blue .bsp-card__text,
.bsp-section--blue .bsp-card.bsp-card--blue p,
.bsp-section--dark .bsp-card.bsp-card--blue .bsp-card__text,
.bsp-section--dark .bsp-card.bsp-card--blue p {
  color: var(--bsp-text-on-blue);
}

.bsp-card:not(.bsp-card--blue) .bsp-card__meta {
  color: var(--accent);
}

.bsp-card:not(.bsp-card--blue) .bsp-card__title,
.bsp-card:not(.bsp-card--blue) h2,
.bsp-card:not(.bsp-card--blue) h3 {
  color: var(--contrast);
}

.bsp-card:not(.bsp-card--blue) .bsp-card__text,
.bsp-card:not(.bsp-card--blue) p {
  color: var(--contrast-2);
}

/* Card modifiers */
.bsp-card--accent-left {
  border-left: 6px solid var(--accent-2);
}

.bsp-card--no-shadow {
  box-shadow: none;
}

/* Buttons in blue sections */
.bsp-section--blue .gbp-button--primary,
.bsp-section--dark .gbp-button--primary {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: var(--contrast);
}

.bsp-section--blue .gbp-button--secondary,
.bsp-section--dark .gbp-button--secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--base-2);
}

.bsp-section--blue .gbp-button--secondary:is(:hover, :focus-visible),
.bsp-section--dark .gbp-button--secondary:is(:hover, :focus-visible) {
  background: var(--base-2);
  border-color: var(--base-2);
  color: var(--accent);
}

/* Optional page-level cleanup for this destination page.
   Better long-term: use GeneratePress Disable Elements > Content Title
   and full-width/content-container settings on the page.
*/
.bsp-page--what-to-expect {
  background: var(--base);
}

.bsp-page--what-to-expect .bsp-section--blue {
  margin-top: 0;
}

/* End BSP component cascade correction */
/* ==========================================================================
   BSP nested promise cards
   Used inside blue trust/standard cards.
   Converts flat nested cards into compact promise chips.
   ========================================================================== */

.bsp-card--blue .bsp-stack > .bsp-card--blue.bsp-card--no-shadow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: auto;
  padding: 0.95rem 1rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--bsp-radius-sm);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 8px 20px rgba(0, 0, 0, 0.08);
}

.bsp-card--blue .bsp-stack > .bsp-card--blue.bsp-card--no-shadow::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  flex: 0 0 0.7rem;
  border-radius: var(--bsp-radius-pill);
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(255, 188, 35, 0.15);
}

.bsp-card--blue .bsp-stack > .bsp-card--blue.bsp-card--no-shadow .bsp-card__text {
  margin: 0;
  color: var(--base-2);
  font-weight: 700;
  line-height: 1.35;
}
/* ==========================================================================
   BSP trust pair cards
   Used for paired expectation / boundary sections.
   Goal: one calm trust promise split into two readable halves.
   No generated pill labels. Color is carried by rails, markers, and subtle surfaces.
   ========================================================================== */

.bsp-card--positive,
.bsp-card--boundary {
  position: relative;
  overflow: hidden;
  background: var(--base-2);
  border: 1px solid rgba(5, 89, 153, 0.24);
  border-radius: var(--bsp-radius-md);
  box-shadow: var(--bsp-shadow-sm);
}

/* Top rails keep the pairing obvious without turning either card into a warning panel. */
.bsp-card--positive::before,
.bsp-card--boundary::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
}

.bsp-card--positive::before {
  background: var(--accent);
}

.bsp-card--boundary::before {
  background: var(--bsp-boundary);
}

/* Remove old pseudo-label pills if this CSS is loaded after an earlier patch. */
.bsp-card--positive::after,
.bsp-card--boundary::after {
  content: none;
  display: none;
}

/* Positive card: clean promise surface. */
.bsp-card--positive {
  background:
    linear-gradient(180deg, var(--base-2) 0%, #f8fbff 100%);
}

/* Boundary card: soft caution surface, not a dark danger block. */
.bsp-card--boundary {
  background:
    linear-gradient(180deg, var(--bsp-boundary-soft) 0%, var(--base-2) 100%);
  border-color: color-mix(in srgb, var(--bsp-boundary) 34%, transparent);
}

@supports not (border-color: color-mix(in srgb, red 50%, transparent)) {
  .bsp-card--boundary {
    border-color: rgba(181, 71, 53, 0.34);
  }
}

.bsp-card--positive .bsp-card__title,
.bsp-card--positive h2,
.bsp-card--positive h3,
.bsp-card--boundary .bsp-card__title,
.bsp-card--boundary h2,
.bsp-card--boundary h3 {
  color: var(--contrast);
}

.bsp-card--positive li,
.bsp-card--boundary li {
  color: var(--contrast-2);
}

.bsp-card--positive li::marker {
  color: var(--accent);
}

.bsp-card--boundary li::marker {
  color: var(--bsp-boundary);
}

.bsp-card--positive ul,
.bsp-card--boundary ul {
  margin-bottom: 0;
}

.bsp-card--positive li + li,
.bsp-card--boundary li + li {
  margin-top: 0.55rem;
}

/* End BSP reusable content component layer */

/* ===========================================================================
   Header brand image reset
   GP custom logo remains the small icon.
   The title output is replaced by the BSP wordmark image in functions.php.
   Scope to .site-header so footer/off-canvas contexts are not affected.
   =========================================================================== */

.site-header .site-logo img,
.site-header .custom-logo {
  display: block;
  height: auto;
  margin: 0;
  padding: 0;
}

/* Text fallback only. Preferred brand treatment is .bsp-wordmark-image. */
.site-header .site-branding .main-title,
.site-header .site-branding .main-title a,
.site-header .main-title,
.site-header .main-title a,
.bsp-brand-mark,
.gb-text-bspft004 {
  font-family: var(--bsp-font-main);
  font-weight: 800;
  font-style: normal;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1;
}

/* Keep text-title fallback from getting oversized on mobile. */
@media (max-width: 768px) {
  .site-header .site-branding .main-title,
  .site-header .site-branding .main-title a,
  .site-header .main-title,
  .site-header .main-title a {
    font-size: 2rem;
  }
}

/* ===========================================================================
   BSP scroll-direction header
   Sticky without GeneratePress sticky JS / jQuery.
   Requires body class from BSP Performance Cleanup MU plugin:
   bsp-scroll-header-enabled
   =========================================================================== */

body.bsp-scroll-header-enabled .site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  isolation: isolate;
  background: transparent;
  transform: translateY(0);
  transition: transform 220ms ease;
  will-change: transform;
}

/* Full-viewport header background while header content remains contained by GP. */
body.bsp-scroll-header-enabled .site-header::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--bsp-header-bg);
  box-shadow: var(--bsp-header-shadow);
  z-index: -1;
  pointer-events: none;
}

/* Keep the header stack above the full-width background.
   Scope to .site-header so off-canvas navigation is not affected.
*/
body.bsp-scroll-header-enabled .site-header .inside-header,
body.bsp-scroll-header-enabled .site-header .main-navigation {
  position: relative;
  z-index: 1;
}

/* Respect the WP admin bar when logged in. */
body.admin-bar.bsp-scroll-header-enabled .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar.bsp-scroll-header-enabled .site-header {
    top: 46px;
  }
}

/* Hide only while scrolling down. */
body.bsp-scroll-header-enabled.bsp-header-hidden .site-header {
  transform: translateY(calc(-100% - 12px));
}

/* Always reveal if keyboard focus enters the header. */
body.bsp-scroll-header-enabled.bsp-header-hidden .site-header:focus-within {
  transform: translateY(0);
}

/* Prevent anchor jumps from hiding headings behind the sticky header.
   Matches BSP sticky header height controlled by the MU plugin.
   Update this if the header dimensions change.
*/
html {
  scroll-padding-top: 96px;
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 86px;
  }
}

/* ===========================================================================
   BSP header lockup
   Compact icon + wordmark/tagline. Scoped only to the visible site header.
   Let GeneratePress own the mobile/off-canvas menu behavior.
   =========================================================================== */

.site-header .inside-header {
  padding-top: 4px;
  padding-bottom: 4px;
}

.site-header .site-branding-container {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  column-gap: 0.12rem;
  margin: 0;
  padding: 0;
}

.site-header .site-logo,
.site-header .site-logo a {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
  margin: 0;
  padding: 0;
}

.site-header .header-image {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin: 0;
  padding: 0;
}

.site-header .site-branding {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 306px;
  max-width: 306px;
  min-width: 0;
  margin: 0;
  padding: 0;
  gap: 0;
  line-height: 1;
}

.site-header .bsp-wordmark,
.site-header .bsp-wordmark a {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.site-header .bsp-wordmark-image {
  display: block;
  width: 306px;
  max-width: 306px;
  height: auto;
  margin: 0;
  padding: 0;
}

.site-header .site-description {
  display: block;
  width: 306px;
  max-width: 306px;
  margin: 0;
  padding: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
}

.site-header .site-description::after {
  content: none !important;
  display: none !important;
}

/* ==========================================================================
   Blue Skies Plumbing start page / link hub
   Page: /start/
   Page ID: 1851
   Scope: .bsp-start and page-id-1851 layout overrides
   Purpose: standalone social/QR landing page with BSP-branded quick links
   ========================================================================== */

/* Page shell: hide normal site chrome on this landing page only */
body.page-id-1851 .site-header,
body.page-id-1851 .main-navigation,
body.page-id-1851 .site-footer,
body.page-id-1851 .entry-header {
  display: none !important;
}

body.page-id-1851 .site-content,
body.page-id-1851 .content-area,
body.page-id-1851 .site-main,
body.page-id-1851 .inside-article,
body.page-id-1851 .entry-content {
  margin: 0 !important;
  padding: 0 !important;
}

body.page-id-1851 .container.grid-container {
  max-width: none !important;
}

body.page-id-1851,
body.page-id-1851 #page,
body.page-id-1851 .site,
body.page-id-1851 .inside-article {
  background: transparent !important;
}

/* Start page background and wrapper */
.bsp-start {
  min-height: 100vh;
  padding: clamp(2rem, 6vw, 5rem) 1.25rem;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 212, 92, 0.22), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(160deg, #0f3554 0%, #092235 52%, #071927 100%);
  color: #ffffff;
}

.bsp-start__wrap {
  width: min(100%, 520px);
  margin-inline: auto;
}

/* Header */
.bsp-start__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.bsp-start__mark-wrap {
  margin: 0 0 1rem;
  text-align: center;
}

.bsp-start__mark {
  width: 108px;
  height: 108px;
  margin: 0 auto;
  border-radius: 999px;
  display: block;
  background-color: rgba(255, 255, 255, 0.94);
  background-image: url("https://callblueskies.com/wp-content/uploads/2026/06/web-icon-96.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 96px 96px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.bsp-start__mark:hover,
.bsp-start__mark:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34);
}

.bsp-start__eyebrow {
  margin: 0 0 0.45rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bsp-start__title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.15rem, 9vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.bsp-start__tagline {
  max-width: 24rem;
  margin: 0.85rem auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.45;
}

/* Layout groups */
.bsp-start__primary,
.bsp-start__sections {
  display: grid;
  gap: 0.75rem;
}

.bsp-start__primary {
  margin-bottom: 1.5rem;
}

.bsp-start__section {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.bsp-start__section h2,
.bsp-start__section-title {
  margin: 0.45rem 0 0.1rem;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Editor-stable cards and CTAs
   Each card is a GenerateBlocks Text block containing one normal <a>.
   The href lives only once in the saved markup, so link edits are much less likely
   to trigger Gutenberg block recovery.
*/
.bsp-start__button,
.bsp-start__link {
  margin: 0;
}

.bsp-start__button > a,
.bsp-start__link > a {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.bsp-start__button > a:hover,
.bsp-start__button > a:focus-visible,
.bsp-start__link > a:hover,
.bsp-start__link > a:focus-visible {
  color: #ffffff;
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.bsp-start__button--primary > a {
  background: #ffd45c;
  border-color: rgba(255, 212, 92, 0.85);
  color: #082033;
}

.bsp-start__button--primary > a:hover,
.bsp-start__button--primary > a:focus-visible {
  color: #082033;
  background: #ffe08a;
  border-color: #ffe08a;
}

.bsp-start__button strong,
.bsp-start__link strong {
  display: block;
  color: currentColor;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.bsp-start__button small,
.bsp-start__link small {
  display: block;
  color: currentColor;
  opacity: 0.72;
  font-size: 0.86rem;
  line-height: 1.35;
}

/* Footer */
.bsp-start__footer {
  margin-top: 1.7rem;
  text-align: center;
}

.bsp-start__footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
  .bsp-start__mark,
  .bsp-start__button > a,
  .bsp-start__link > a {
    transition: none;
  }

  .bsp-start__mark:hover,
  .bsp-start__mark:focus-visible,
  .bsp-start__button > a:hover,
  .bsp-start__button > a:focus-visible,
  .bsp-start__link > a:hover,
  .bsp-start__link > a:focus-visible {
    transform: none;
  }
}

/* End Blue Skies Plumbing start page / link hub */

/* GeneratePress mobile breakpoint is 1000px in the current settings.
   This compacts only the visible header row.
   It does not move, resize, or restack the actual off-canvas menu.
*/
@media (max-width: 1000px) {
  body.has-inline-mobile-toggle .site-header .inside-header,
  .site-header .inside-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    padding: 5px 8px !important;
    text-align: left !important;
  }

  .site-header .site-branding-container {
    display: inline-flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 56px);
    column-gap: 0.08rem !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .site-header .site-logo,
  .site-header .site-logo a {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
  }

  .site-header .header-image {
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .site-header .site-branding,
  .site-header .bsp-wordmark-image,
  .site-header .site-description {
    width: 252px !important;
    max-width: 252px !important;
    min-width: 0 !important;
  }

  .site-header .site-description {
    font-size: 0.82rem !important;
    line-height: 1 !important;
  }

  .site-header .mobile-menu-control-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    line-height: 1 !important;
  }

  .site-header .mobile-menu-control-wrapper .menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  /* GP leaves #site-navigation as an empty flex item in inline mobile mode.
     Remove only that empty header shell so it cannot create a second row.
     The actual mobile menu remains #generate-slideout-menu and is left untouched.
  */
  .site-header #site-navigation {
    display: none !important;
  }
}

@media (max-width: 374px) {
  .site-header .inside-header {
    padding-left: 8px !important;
    padding-right: 8px !important;
    gap: 6px !important;
  }

  .site-header .header-image {
    width: 38px !important;
    height: 38px !important;
  }

  .site-header .site-branding,
  .site-header .bsp-wordmark-image,
  .site-header .site-description {
    width: 224px !important;
    max-width: 224px !important;
  }

  .site-header .site-description {
    font-size: 0.72rem !important;
  }

  .site-header .mobile-menu-control-wrapper {
    flex-basis: 38px !important;
    width: 38px !important;
  }

  .site-header .mobile-menu-control-wrapper .menu-toggle {
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
  }
}

/* ===========================================================================
   BSP hero tuning
   =========================================================================== */

.bsp-hero.bsp-cloud-section {
  padding-bottom: clamp(13rem, 20vw, 18rem) !important;
}

.bsp-hero .gb-media-bsp015 {
  height: clamp(360px, 38vh, 520px) !important;
}

@media (max-width: 767px) {
  .bsp-hero.bsp-cloud-section {
    padding-bottom: clamp(10.5rem, 42vw, 14rem) !important;
  }

  .bsp-hero .gb-media-bsp015 {
    height: 320px !important;
  }

  .gb-element-bsp016 {
    position: relative;
    z-index: 3;
    clear: both;
    margin-top: 0 !important;
    padding-top: 2.5rem !important;
  }

  .gb-element-bsp016 > *,
  .gb-element-bsp016 .gbp-section,
  .gb-element-bsp016 .gbp-section__inner,
  .gb-element-bsp016 .gb-element-1c57f637,
  .gb-element-bsp016 .gb-element-6b35cf45 {
    margin-top: 0 !important;
    transform: none !important;
    translate: none !important;
    top: auto !important;
  }
}

/* ===========================================================================
   BSP cloud section utility + motion variables
   External cached SVG asset.
   Full-width background band. No inline SVG. No visible hard edges.
   =========================================================================== */

.bsp-cloud-section {
  --bsp-cloud-asset: url("/wp-content/uploads/2026/06/cloud-points-2048.svg?v=20260604a");
  --bsp-cloud-x: 0px;
  --bsp-cloud-y: 0px;

  --bsp-cloud-width: 155vw;
  --bsp-cloud-height: clamp(330px, 30vw, 460px);
  --bsp-cloud-bottom-bleed: 56px;
  --bsp-cloud-top-fade: 38%;
  --bsp-cloud-side-fade: 8%;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
}

.bsp-cloud-section > * {
  position: relative;
  z-index: 2;
}

/* Bottom cloud layer.
   This consumes JS variables from bsp-cloud-motion.
   Y is clamped as a CSS safety layer:
   -2px max upward movement, 8px max downward movement.
*/
.bsp-cloud-section::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(-1px - var(--bsp-cloud-bottom-bleed));
  width: var(--bsp-cloud-width);
  height: calc(var(--bsp-cloud-height) + var(--bsp-cloud-bottom-bleed));

  transform:
    translateX(calc(-50% + var(--bsp-cloud-x, 0px)))
    translateY(clamp(-2px, var(--bsp-cloud-y, 0px), 8px));
  will-change: transform;

  background-image: var(--bsp-cloud-asset);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;

  pointer-events: none;
  z-index: 1;
  opacity: 1;

  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 var(--bsp-cloud-top-fade)),
    linear-gradient(
      90deg,
      transparent 0%,
      #000 var(--bsp-cloud-side-fade),
      #000 calc(100% - var(--bsp-cloud-side-fade)),
      transparent 100%
    );
  -webkit-mask-composite: source-in;

  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 var(--bsp-cloud-top-fade)),
    linear-gradient(
      90deg,
      transparent 0%,
      #000 var(--bsp-cloud-side-fade),
      #000 calc(100% - var(--bsp-cloud-side-fade)),
      transparent 100%
    );
  mask-composite: intersect;
}

.bsp-cloud-section.bsp-cloud-soft::after {
  opacity: 0.72;
}

/* Top-cloud variant: horizontal drift only unless intentionally changed later. */
.bsp-cloud-section.bsp-cloud-top::after {
  top: -1px;
  bottom: auto;
  height: var(--bsp-cloud-height);

  transform:
    translateX(calc(-50% + var(--bsp-cloud-x, 0px)))
    translateY(0);

  background-position: center top;

  -webkit-mask-image:
    linear-gradient(to top, transparent 0%, #000 var(--bsp-cloud-top-fade)),
    linear-gradient(
      90deg,
      transparent 0%,
      #000 var(--bsp-cloud-side-fade),
      #000 calc(100% - var(--bsp-cloud-side-fade)),
      transparent 100%
    );
  -webkit-mask-composite: source-in;

  mask-image:
    linear-gradient(to top, transparent 0%, #000 var(--bsp-cloud-top-fade)),
    linear-gradient(
      90deg,
      transparent 0%,
      #000 var(--bsp-cloud-side-fade),
      #000 calc(100% - var(--bsp-cloud-side-fade)),
      transparent 100%
    );
  mask-composite: intersect;
}

/* ===========================================================================
   BSP hero cloud proximity tuning
   Keeps cloud tops closer to the nearest hero content across screen sizes.
   =========================================================================== */

/* Hero clouds need a taller field so the top edge rises toward the truck/card. */
.bsp-hero.bsp-cloud-section {
  --bsp-cloud-width: 165vw;
  --bsp-cloud-height: clamp(370px, 34vw, 520px);
  --bsp-cloud-top-fade: 26%;
  --bsp-cloud-side-fade: 8%;
}

/* Mid-size screens: bridge cleanly between desktop and mobile. */
@media (min-width: 768px) and (max-width: 1100px) {
  .bsp-hero.bsp-cloud-section {
    --bsp-cloud-width: 190vw;
    --bsp-cloud-height: clamp(390px, 46vw, 520px);
    --bsp-cloud-top-fade: 22%;
    --bsp-cloud-side-fade: 7%;

    padding-bottom: clamp(11.5rem, 18vw, 15.5rem) !important;
  }
}

/* General mobile cloud behavior for non-hero cloud sections. */
@media (max-width: 767px) {
  .bsp-cloud-section {
    --bsp-cloud-width: 220vw;
    --bsp-cloud-height: clamp(220px, 46vw, 300px);
    --bsp-cloud-bottom-bleed: 44px;
    --bsp-cloud-top-fade: 32%;
    --bsp-cloud-side-fade: 7%;
  }
}

/* Hero mobile override comes last so generic mobile cloud sizing cannot shrink it. */
@media (max-width: 767px) {
  .bsp-hero.bsp-cloud-section {
    --bsp-cloud-width: 265vw;
    --bsp-cloud-height: clamp(360px, 86vw, 470px);
    --bsp-cloud-bottom-bleed: 50px;
    --bsp-cloud-top-fade: 12%;
    --bsp-cloud-side-fade: 5%;

    padding-bottom: clamp(9.75rem, 38vw, 13rem) !important;
  }
}

/* ===========================================================================
   Page transitions: Blue Skies / GeneratePress
   View Transitions API. No JS required.
   =========================================================================== */

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: bsp-page-out 180ms cubic-bezier(0.4, 0, 1, 1) both;
}

::view-transition-new(root) {
  animation: bsp-page-in 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes bsp-page-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(6px) scale(0.995);
  }
}

@keyframes bsp-page-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.998);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Fallback only for browsers without View Transitions support. */
@supports not (view-transition-name: none) {
  body:not(.wp-admin) .site-main,
  body:not(.wp-admin) .inside-article,
  body:not(.wp-admin) .entry-content {
    animation: bsp-content-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes bsp-content-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================================================================
   Interactive polish
   =========================================================================== */

.main-navigation a,
a:not(.gb-button):not(.gb-text) {
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

button,
.gb-button,
.bsp-button,
.gbp-button--primary,
.gbp-button--secondary,
.gb-text[href].bsp-button,
.gb-text[href].gbp-button--primary,
.gb-text[href].gbp-button--secondary {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 200ms ease,
    transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 180ms ease;
}

button:hover,
.gb-button:hover,
.bsp-button:hover,
.gbp-button--primary:hover,
.gbp-button--secondary:hover,
.gb-text[href].bsp-button:hover,
.gb-text[href].gbp-button--primary:hover,
.gb-text[href].gbp-button--secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
}

.gb-media {
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease,
    opacity 220ms ease;
}

/* GB Text anchors can carry BSP button classes. Keep them aligned with the global button system. */
.gb-text[href].bsp-button {
  text-decoration: none;
}

.gb-text[href].bsp-button:is(:hover, :focus, :focus-visible) {
  text-decoration: none;
}


/* ==========================================================================
   BSP button color lock
   Prevent GeneratePress/link-color styles from turning yellow CTA text blue.
   Applies to GenerateBlocks Text anchors carrying BSP button classes.
   ========================================================================== */

a.bsp-button--primary,
.gb-text[href].bsp-button--primary,
.gb-button.bsp-button--primary {
  color: var(--contrast);
  text-decoration: none;
}

a.bsp-button--primary:is(:hover, :focus, :focus-visible),
.gb-text[href].bsp-button--primary:is(:hover, :focus, :focus-visible),
.gb-button.bsp-button--primary:is(:hover, :focus, :focus-visible) {
  color: var(--contrast);
  text-decoration: none;
}

a.bsp-button--secondary,
.gb-text[href].bsp-button--secondary,
.gb-button.bsp-button--secondary {
  color: var(--accent);
  text-decoration: none;
}

a.bsp-button--secondary:is(:hover, :focus, :focus-visible),
.gb-text[href].bsp-button--secondary:is(:hover, :focus, :focus-visible),
.gb-button.bsp-button--secondary:is(:hover, :focus, :focus-visible) {
  color: var(--accent);
  text-decoration: none;
}

.bsp-section--blue a.bsp-button--secondary,
.bsp-section--blue .gb-text[href].bsp-button--secondary,
.bsp-section--dark a.bsp-button--secondary,
.bsp-section--dark .gb-text[href].bsp-button--secondary {
  color: var(--base-2);
}

.bsp-section--blue a.bsp-button--secondary:is(:hover, :focus, :focus-visible),
.bsp-section--blue .gb-text[href].bsp-button--secondary:is(:hover, :focus, :focus-visible),
.bsp-section--dark a.bsp-button--secondary:is(:hover, :focus, :focus-visible),
.bsp-section--dark .gb-text[href].bsp-button--secondary:is(:hover, :focus, :focus-visible) {
  color: var(--accent);
}

/* ===========================================================================
   Editor / admin stability
   =========================================================================== */

body.wp-admin .site-main,
body.block-editor-page .site-main,
body.block-editor-page .inside-article,
body.block-editor-page .entry-content,
body.customize-partial-edit-shortcuts-shown .site-main {
  animation: none !important;
}

/* ===========================================================================
   Accessibility contrast fixes
   Lighthouse 100 pass.
   =========================================================================== */

/* Yellow on BSP blue misses AA by a hair. Use white on dark-blue cards/sections. */
.gb-element-bsp027 a,
.gb-text-bspbf004 {
  color: #ffffff !important;
}

/* Footer/helper text on blue needs stronger contrast. */
.gb-text-bspbf013 {
  color: #ffffff !important;
}

/* ===========================================================================
   Accessibility: prefers-reduced-motion
   =========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }

  button:hover,
  .gb-button:hover,
  .bsp-button:hover,
  .gbp-button--primary:hover,
  .gbp-button--secondary:hover,
  .gb-text[href].bsp-button:hover,
  .gb-text[href].gbp-button--primary:hover,
  .gb-text[href].gbp-button--secondary:hover,
  body.bsp-scroll-header-enabled.bsp-header-hidden .site-header {
    transform: none !important;
    box-shadow: none !important;
  }

  .bsp-cloud-section {
    --bsp-cloud-x: 0px !important;
    --bsp-cloud-y: 0px !important;
  }

  .bsp-cloud-section::after,
  .bsp-cloud-section.bsp-cloud-top::after {
    transform: translateX(-50%) translateY(0) !important;
    will-change: auto;
  }
}