/* BizOS website builder — block styles. Uses the storefront theme tokens
   (--primary, --text, --bg2, --border, --font-heading, --button…) so every block
   follows the tenant's own colours and fonts. */

.bz-page { --bz-gap: clamp(20px, 3vw, 32px); --bz-pad: clamp(44px, 7vw, 88px); color: var(--text); }
.bz-block { padding: var(--bz-pad) 0; }
.bz-block + .bz-block.bz-bg-default { padding-top: calc(var(--bz-pad) * .5); }
.bz-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.bz-w-narrow { max-width: 760px; }
.bz-al-center { text-align: center; }
.bz-al-center .bz-intro, .bz-al-center .bz-lead { margin-left: auto; margin-right: auto; }

.bz-bg-soft    { background: var(--bg2); }
.bz-bg-primary { background: var(--primary); color: var(--button-text, #fff); }
.bz-bg-dark    { background: #15171c; color: #f3f1ec; }
.bz-bg-primary .bz-h, .bz-bg-dark .bz-h { color: inherit; }
.bz-bg-primary .bz-btn { background: #fff; color: var(--primary); }
.bz-bg-dark .bz-feature, .bz-bg-dark .bz-quote, .bz-bg-dark .bz-faq details { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.bz-bg-primary .bz-feature, .bz-bg-primary .bz-quote, .bz-bg-primary .bz-faq details { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.bz-bg-dark .bz-note, .bz-bg-primary .bz-note, .bz-bg-dark .bz-stat span, .bz-bg-primary .bz-stat span { color: inherit; opacity: .75; }

.bz-h { font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.2; margin: 0 0 .6em; color: var(--text); letter-spacing: -.01em; }
.bz-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; max-width: 680px; opacity: .92; }
.bz-intro { max-width: 680px; margin: -.2em 0 1.6em; color: var(--text2); line-height: 1.7; }
.bz-bg-dark .bz-intro, .bz-bg-primary .bz-intro { color: inherit; opacity: .85; }
.bz-prose { line-height: 1.8; font-size: 1.02rem; }
.bz-prose p, .bz-feature p, .bz-quote p { margin: 0 0 1em; }
.bz-prose p:last-child { margin-bottom: 0; }
.bz-prose ul, .bz-feature ul { margin: 0 0 1em 1.3em; padding: 0; }
.bz-prose a, .bz-feature a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.bz-note { font-size: .88rem; color: var(--text3); margin: .9em 0 0; }

.bz-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 1.4em; padding: 13px 26px; border-radius: var(--radius, 10px); background: var(--button, var(--primary)); color: var(--button-text, #fff); font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; transition: transform .15s, background .15s; }
.bz-btn:hover { background: var(--button-hover, var(--primary-dark, var(--primary))); transform: translateY(-1px); }

/* Hero */
.bz-hero { padding: 0; }
.bz-hero-in { position: relative; display: flex; align-items: center; background: var(--bg2); color: var(--text); }
.bz-hero-in.has-img { background: linear-gradient(rgba(0,0,0,var(--bz-hero-ov,.45)), rgba(0,0,0,var(--bz-hero-ov,.45))), var(--bz-hero-img) center / cover no-repeat; color: #fff; }
.bz-hero-in.has-img .bz-h { color: #fff; }
.bz-hero-in .bz-h { font-size: clamp(2.1rem, 5vw, 3.6rem); margin-bottom: .35em; }
.bz-hero-in .bz-wrap { width: 100%; }
.bz-h-sm { min-height: 280px; } .bz-h-md { min-height: 440px; } .bz-h-lg { min-height: 620px; } .bz-h-full { min-height: calc(100vh - 80px); }
.bz-hero-in.bz-al-center { text-align: center; }
.bz-hero-in.bz-al-center .bz-lead { margin: 0 auto; }

/* Image + text */
.bz-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.bz-split.bz-img-right .bz-split-img { order: 2; }
.bz-split-img img { width: 100%; border-radius: calc(var(--radius, 10px) * 1.4); display: block; object-fit: cover; aspect-ratio: 4 / 3; }
.bz-ph { aspect-ratio: 4 / 3; border-radius: 14px; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 42px; color: var(--text3); }

/* Grids */
.bz-grid { display: grid; gap: var(--bz-gap); }
.bz-cols-2 { grid-template-columns: repeat(2, 1fr); }
.bz-cols-3 { grid-template-columns: repeat(3, 1fr); }
.bz-cols-4 { grid-template-columns: repeat(4, 1fr); }
.bz-gallery figure { margin: 0; }
.bz-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius, 10px); display: block; transition: transform .25s; }
.bz-gallery a:hover img { transform: scale(1.02); }
.bz-gallery figcaption { font-size: .88rem; color: var(--text2); margin-top: 8px; }
.bz-feature { background: var(--bg); border: 1px solid var(--border); border-radius: calc(var(--radius, 10px) * 1.2); padding: 26px; }
.bz-bg-default .bz-feature { background: var(--bg2); border-color: transparent; }
.bz-feature i { font-size: 28px; color: var(--primary); display: block; margin-bottom: 12px; }
.bz-bg-primary .bz-feature i { color: inherit; }
.bz-feature h3 { font-family: var(--font-heading); font-size: 1.15rem; margin: 0 0 .5em; }
.bz-feature p:last-child { margin: 0; }

/* Stats */
.bz-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(24px, 6vw, 72px); text-align: center; }
.bz-stat strong { display: block; font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; color: var(--primary); }
.bz-bg-primary .bz-stat strong, .bz-bg-dark .bz-stat strong { color: inherit; }
.bz-stat span { color: var(--text2); font-size: .95rem; }

/* Table */
.bz-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius, 10px); }
.bz-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.bz-table th, .bz-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.bz-table th { background: var(--bg2); font-weight: 600; }
.bz-table tbody tr:last-child td { border-bottom: 0; }
.bz-bg-dark .bz-table th { background: rgba(255,255,255,.08); }

/* FAQ */
.bz-faq details { border: 1px solid var(--border); border-radius: var(--radius, 10px); margin-bottom: 10px; background: var(--bg); }
.bz-faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.bz-faq summary::-webkit-details-marker { display: none; }
.bz-faq summary::after { content: '+'; font-size: 1.3em; line-height: 1; color: var(--primary); }
.bz-faq details[open] summary::after { content: '–'; }
.bz-faq .bz-prose { padding: 0 20px 18px; }

/* Testimonials */
.bz-quote { margin: 0; padding: 26px; border: 1px solid var(--border); border-radius: calc(var(--radius, 10px) * 1.2); background: var(--bg); font-size: 1.02rem; line-height: 1.7; }
.bz-quote cite { display: block; font-style: normal; font-weight: 600; margin-top: 10px; }
.bz-quote cite span { display: block; font-weight: 400; font-size: .88rem; color: var(--text2); }

/* Media */
.bz-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius, 10px); overflow: hidden; background: #000; }
.bz-video iframe, .bz-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bz-map { border-radius: var(--radius, 10px); overflow: hidden; border: 1px solid var(--border); }
.bz-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.bz-mh-sm { height: 280px; } .bz-mh-md { height: 420px; } .bz-mh-lg { height: 600px; }
.bz-model { width: 100%; display: block; background: var(--bg2); border-radius: var(--radius, 10px); }

/* Contact form */
.bz-form { display: grid; gap: 14px; margin-top: 8px; }
.bz-form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.bz-form input, .bz-form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius, 10px); background: var(--bg); color: var(--text); width: 100%; box-sizing: border-box; }
.bz-form input:focus, .bz-form textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.bz-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bz-form .bz-btn { justify-self: start; margin-top: 4px; }
.bz-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bz-alert { padding: 12px 16px; border-radius: var(--radius, 10px); font-size: .95rem; }
.bz-ok { background: #e7f6ec; color: #1e6b3a; }
.bz-err { background: #fdecea; color: #a1281b; }

/* Spacer */
.bz-spacer { padding: 0; }
.bz-space { display: flex; align-items: center; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.bz-s-sm { height: 24px; } .bz-s-md { height: 56px; } .bz-s-lg { height: 104px; }
.bz-space hr { width: 100%; border: 0; border-top: 1px solid var(--border); margin: 0; }

@media (max-width: 900px) {
  .bz-cols-3, .bz-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .bz-split { grid-template-columns: 1fr; }
  .bz-split.bz-img-right .bz-split-img { order: 0; }
}
@media (max-width: 600px) {
  .bz-cols-2, .bz-cols-3, .bz-cols-4, .bz-form-row { grid-template-columns: 1fr; }
  .bz-h-lg { min-height: 480px; }
}
