/* Site Builder widgets — neutral styles for blocks inserted from the editor.
   Everything is scoped under .sb-w so it sits politely inside any cloned theme
   while inheriting the site's fonts and colours. */

.sb-w, .sb-w * { box-sizing: border-box; }
.sb-w { --sb-accent: #1a1612; --sb-muted: #6b665e; --sb-radius: 10px; --sb-max: 1140px; }

.sb-section { position: relative; padding: clamp(40px, 6vw, 88px) 24px; width: 100%; }
.sb-section > .sb-container { max-width: var(--sb-max); margin: 0 auto; }
.sb-section--tight { padding-top: 32px; padding-bottom: 32px; }
.sb-section--dark { background: #1a1612; color: #f4efe4; --sb-accent: #f4efe4; --sb-muted: #cfc8bb; }
.sb-section--light { background: #f4f4f2; }

.sb-columns { display: grid; gap: 32px; align-items: start; }
.sb-columns--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sb-columns--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sb-columns--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sb-col { min-width: 0; }
@media (max-width: 1024px) {
  .sb-columns--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sb-columns--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .sb-columns--2, .sb-columns--3, .sb-columns--4 { grid-template-columns: minmax(0, 1fr); }
}

.sb-heading { margin: 0 0 .6em; line-height: 1.15; font-weight: 700; }
.sb-heading.sb-heading--center { text-align: center; }
.sb-eyebrow { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sb-muted); margin-bottom: .6em; font-weight: 600; }
.sb-text { margin: 0 0 1em; line-height: 1.65; }
.sb-text:last-child { margin-bottom: 0; }
.sb-text--lead { font-size: 1.15rem; color: var(--sb-muted); }
.sb-text--center { text-align: center; }

.sb-image { margin: 0; }
.sb-image img { display: block; width: 100%; height: auto; border-radius: var(--sb-radius); }
.sb-image figcaption { font-size: .85rem; color: var(--sb-muted); margin-top: .5em; text-align: center; }

.sb-button { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.6em; border-radius: 999px; background: var(--sb-accent); color: #fff; font-weight: 600; text-decoration: none; border: 2px solid var(--sb-accent); line-height: 1.1; transition: transform .15s ease, opacity .15s ease; cursor: pointer; }
.sb-section--dark .sb-button { color: #1a1612; }
.sb-button:hover { transform: translateY(-1px); opacity: .92; }
.sb-button--outline { background: transparent; color: var(--sb-accent); }
.sb-button-row { display: flex; gap: 12px; flex-wrap: wrap; }
.sb-button-row--center { justify-content: center; }

.sb-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--sb-radius); overflow: hidden; background: #000; }
.sb-video iframe, .sb-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.sb-spacer { display: block; height: var(--sb-space, 48px); width: 100%; }
.sb-divider { border: 0; border-top: 1px solid currentColor; opacity: .18; margin: 24px 0; width: 100%; }
.sb-divider--short { width: 72px; margin-left: 0; opacity: .6; border-top-width: 3px; }
.sb-divider--center { margin-left: auto; margin-right: auto; }

.sb-icon-box { display: grid; gap: 14px; }
.sb-icon-box .sb-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(0, 0, 0, .06); font-size: 24px; line-height: 1; }
.sb-section--dark .sb-icon-box .sb-icon { background: rgba(255, 255, 255, .12); }
.sb-icon-box .sb-heading { font-size: 1.2rem; margin-bottom: .35em; }
.sb-icon-box .sb-text { color: var(--sb-muted); }

.sb-embed { width: 100%; }

/* ---- section templates ---- */
.sb-hero .sb-container { display: grid; gap: 48px; align-items: center; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.sb-hero .sb-heading { font-size: clamp(2rem, 4.5vw, 3.6rem); }
@media (max-width: 900px) { .sb-hero .sb-container { grid-template-columns: minmax(0, 1fr); } }

.sb-cta .sb-container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.sb-cta .sb-heading { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); }

.sb-testimonial { padding: 28px; border-radius: var(--sb-radius); background: rgba(0, 0, 0, .04); display: grid; gap: 16px; }
.sb-section--dark .sb-testimonial { background: rgba(255, 255, 255, .08); }
.sb-testimonial blockquote { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.sb-testimonial .sb-person { display: flex; align-items: center; gap: 12px; }
.sb-testimonial .sb-person img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.sb-testimonial .sb-person strong { display: block; }
.sb-testimonial .sb-person span { font-size: .85rem; color: var(--sb-muted); }

.sb-contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sb-contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.sb-contact-list a { color: inherit; }

.sb-gallery { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sb-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--sb-radius); display: block; }
@media (max-width: 767px) { .sb-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.sb-stats { display: grid; gap: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: center; }
.sb-stats strong { display: block; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; }
.sb-stats span { color: var(--sb-muted); }
@media (max-width: 767px) { .sb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
