/* Shared public CTA palette. Secondary white CTAs on dark photographs stay legible. */
body.bb-public-site{--bb-cta-green:#31660a;--bb-cta-hover:#274f0b;--c-primary:var(--bb-cta-green);--color-primary:var(--bb-cta-green);--color-primary-hover:var(--bb-cta-hover)}
body.bb-public-site :is(a.btn-primary,button.btn-primary,input.btn-primary,.c-btn--primary,.bb-wood-search__submit,.home-services__panel-link,.side-cart-footer .btn-checkout,.bb-wood-card__add,.site-footer__order,.local-page__button,.local-page__hero-link,.local-page__product-link,.bb-thankyou-button,.bb-kindling-upsell__button,.single_add_to_cart_button,.woocommerce .button.alt,.woocommerce .checkout-button,.woocommerce .add_to_cart_button,.woocommerce-form-login__submit,.woocommerce-form-register__submit,.wpforms-form .wpforms-submit),
body.bb-public-site .site-header .nav .menu-cta>a,
body.bb-public-site .wp-block-button.btn-primary .wp-block-button__link{
  background:var(--bb-cta-green)!important;border-color:var(--bb-cta-green)!important;color:#fff!important;
}
body.bb-public-site :is(a.btn-primary,button.btn-primary,input.btn-primary,.c-btn--primary,.bb-wood-search__submit,.home-services__panel-link,.side-cart-footer .btn-checkout,.bb-wood-card__add,.site-footer__order,.local-page__button,.local-page__hero-link,.local-page__product-link,.bb-thankyou-button,.bb-kindling-upsell__button,.single_add_to_cart_button,.woocommerce .button.alt,.woocommerce .checkout-button,.woocommerce .add_to_cart_button,.woocommerce-form-login__submit,.woocommerce-form-register__submit,.wpforms-form .wpforms-submit):is(:hover,:focus-visible),
body.bb-public-site .site-header .nav .menu-cta>a:is(:hover,:focus-visible),
body.bb-public-site .wp-block-button.btn-primary .wp-block-button__link:is(:hover,:focus-visible){
  background:var(--bb-cta-hover)!important;border-color:var(--bb-cta-hover)!important;color:#fff!important;
}
body.bb-public-site :is(.bb-reviews__actions,.home-supply__actions,.bb-contact__cta-row) .btn-ghost{color:var(--bb-cta-green);border-color:var(--bb-cta-green)}

/* White secondary CTAs on photographs: translucent glass with a softly lit rim. */
body.bb-public-site :is(.bb-home-hero__actions .btn-ghost,.title-swiper .lp-cta .btn-ghost,.c-btn--ghost-white){
  background-color:rgba(24,31,27,.24);
  background-image:radial-gradient(140% 180% at 0% 0%,rgba(255,255,255,.06),transparent 55%),linear-gradient(125deg,rgba(255,255,255,.025),transparent 48%,rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.28);color:#fff;
  -webkit-backdrop-filter:blur(10px) saturate(115%);backdrop-filter:blur(10px) saturate(115%);
  box-shadow:0 8px 28px -14px rgba(0,0,0,.3),inset 0 1px 0 rgba(255,255,255,.12),inset 0 -1px 0 rgba(0,0,0,.12);
  text-shadow:0 1px 3px rgba(0,0,0,.35);
  transition:background-color .24s ease,border-color .24s ease,box-shadow .24s ease,transform .24s ease;
}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  body.bb-public-site :is(.bb-home-hero__actions .btn-ghost,.title-swiper .lp-cta .btn-ghost,.c-btn--ghost-white){background-color:rgba(37,45,40,.16)}
}
body.bb-public-site :is(.bb-home-hero__actions .btn-ghost,.title-swiper .lp-cta .btn-ghost,.c-btn--ghost-white):focus-visible{
  outline:2px solid #fff;outline-offset:4px;border-color:#fff;
}
@media(hover:hover) and (pointer:fine){
  body.bb-public-site :is(.bb-home-hero__actions .btn-ghost,.title-swiper .lp-cta .btn-ghost,.c-btn--ghost-white):hover{
    background-color:rgba(255,255,255,.06);border-color:rgba(255,255,255,.45);
    box-shadow:0 12px 32px -14px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(255,255,255,.04);
    transform:translateY(-1px);color:#fff;
  }
}
body.bb-public-site :is(.bb-home-hero__actions .btn-ghost,.title-swiper .lp-cta .btn-ghost,.c-btn--ghost-white):active{background-color:rgba(255,255,255,.08);transform:none;color:#fff}
/* A lighter mobile hero surface: restrained blur, no glossy gradients or inset highlights. */
@media(max-width:900px){
  body.home.bb-public-site .bb-home-hero__actions .btn-ghost{
    background-color:rgba(16,41,30,.14);background-image:none;border-color:rgba(255,255,255,.28);
    -webkit-backdrop-filter:blur(4px) saturate(100%);backdrop-filter:blur(4px) saturate(100%);
    box-shadow:0 2px 10px -6px rgba(0,0,0,.18);text-shadow:none;
  }
  body.home.bb-public-site .bb-home-hero__actions .btn-ghost:is(:hover,:active){
    background-color:rgba(16,41,30,.2);border-color:rgba(255,255,255,.42);
    box-shadow:0 2px 10px -6px rgba(0,0,0,.18);transform:none;
  }
  @supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
    body.home.bb-public-site .bb-home-hero__actions .btn-ghost{background-color:rgba(16,41,30,.32)}
  }
}
@media(prefers-reduced-motion:reduce){
  body.bb-public-site :is(.bb-home-hero__actions .btn-ghost,.title-swiper .lp-cta .btn-ghost,.c-btn--ghost-white){transition:none;transform:none}
  body.bb-public-site :is(.bb-home-hero__actions .btn-ghost,.title-swiper .lp-cta .btn-ghost,.c-btn--ghost-white):is(:hover,:active){transform:none}
}
@media(prefers-contrast:more){
  body.bb-public-site :is(.bb-home-hero__actions .btn-ghost,.title-swiper .lp-cta .btn-ghost,.c-btn--ghost-white),
  body.bb-public-site :is(.bb-home-hero__actions .btn-ghost,.title-swiper .lp-cta .btn-ghost,.c-btn--ghost-white):is(:hover,:focus-visible,:active){background:#0b251c;border-color:#fff;-webkit-backdrop-filter:none;backdrop-filter:none}
}

/* Desktop primary action; mobile shares the secondary CTA's glass treatment. */
@media(min-width:901px){
  body.home.bb-public-site .bb-home-hero__actions .bb-home-hero__order{
    background:var(--bb-cta-green);border-color:var(--bb-cta-green);color:#fff;
    -webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;text-shadow:none;transform:none;
  }
  body.home.bb-public-site .bb-home-hero__actions .bb-home-hero__order:is(:hover,:focus-visible,:active){
    background:var(--bb-cta-hover);border-color:var(--bb-cta-hover);color:#fff;box-shadow:none;transform:none;
  }
}
