/*
Theme Name: BrickHouse Business Hub
Theme URI: https://brickhouseorg.com
Author: BrickHouseOrg
Author URI: https://brickhouseorg.com
Description: Full Site Editing membership resource hub theme for BrickHouseOrg.com with CPT resources, MemberPress gating, WooCommerce digital products, Hero Builder + Hero Ads integrations, and feed-driven education modules.
Requires at least: 6.5
Tested up to: 6.5
Requires PHP: 8.0
Version: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: brickhouse-business-hub
*/

:root{
  --bh-radius: 12px;
  --bh-shadow: 0 8px 24px rgba(0,0,0,.08);
  --bh-gap: 1.5rem;
}

*,
*::before,
*::after{ box-sizing:border-box; }

html, body{ max-width:100%; }

body{
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, iframe, svg{
  max-width:100%;
  height:auto;
}

.wp-site-blocks,
.wp-site-blocks > *{
  min-width: 0;
}

.bh-wrap{
  width:100%;
  max-width: var(--wp--style--global--content-size, 1200px);
  margin-left:auto;
  margin-right:auto;
  padding-left: clamp(1rem, 2.5vw, 1.5rem);
  padding-right: clamp(1rem, 2.5vw, 1.5rem);
}

.bh-card{
  border-radius: var(--bh-radius);
  box-shadow: var(--bh-shadow);
  border: 1px solid rgba(0,0,0,.06);
  background: var(--wp--preset--color--base, #ffffff);
  overflow: hidden;
}

.bh-card__inner{ padding: 1.25rem; }

.bh-grid{
  display:grid;
  gap: var(--bh-gap);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.bh-button,
.wp-block-button__link{
  padding: .75rem 1.25rem;
  border-radius: 999px;
}

.bh-muted{ opacity: .85; }

.bh-lock{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  font-size: .9em;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
}

.bh-upgrade{
  border-radius: var(--bh-radius);
  box-shadow: var(--bh-shadow);
  border: 1px solid rgba(0,0,0,.08);
  background: var(--wp--preset--color--base, #ffffff);
  padding: 1.25rem;
}

.bh-upgrade .bh-upgrade__actions{
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
  margin-top: 1rem;
}

.bh-feed-grid{ margin-top: 1rem; }

.bh-feed-grid .bh-card__inner h3{
  margin-top: 0;
  margin-bottom: .5rem;
}

.bh-feed-meta{
  font-size: .9em;
  opacity: .8;
  margin-top: .75rem;
}

.bh-badge{
  display:inline-flex;
  align-items:center;
  padding:.35rem .75rem;
  border-radius:999px;
  font-weight:600;
  background: rgba(0,0,0,.06);
}

.bh-badge[data-tier="free"]{ background: rgba(0, 122, 255, .12); }
.bh-badge[data-tier="pro"]{ background: rgba(88, 86, 214, .14); }
.bh-badge[data-tier="enterprise"]{ background: rgba(52, 199, 89, .14); }

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; }
}
