/* SuperBiz base stylesheet — premium, Apple-grade foundation.
   Uses theme tokens (--primary, --accent, --bg, --surface, --text, --muted,
   --border) so scheme + skin swaps keep working. Every business template
   inherits this, so raising the bar here raises it everywhere. */

:root {
  --container: 1160px;
  --radius: 22px;          /* cards / media */
  --radius-sm: 14px;       /* inputs / small */
  --btn-radius: 980px;     /* Apple-style pill */
  --shadow: 0 8px 30px rgba(0,0,0,.06);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.12);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw-prose: 62ch;
}

/* dark mode (runtime toggle; class on <html> so it overrides the theme :root) */
html.sb-dark { --bg: #000000; --surface: #1c1c1e; --text: #f5f5f7; --muted: #98989d; --border: #2c2c2e; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* overflow-x: hidden here would force overflow-y to compute as auto on BOTH html and body (the
   CSS spec rule: a non-visible x-axis forces the y-axis off "visible" too) — that turns body into
   its own scroll container separate from the real viewport scroll, and position:sticky descendants
   (the header) stick relative to THAT non-scrolling box instead of the page, so they never visibly
   stick at all. overflow-x: clip is exempt from that forcing rule, so overflow-y stays genuinely
   visible and sticky works normally. Kept `hidden` first as a fallback for pre-2022 browsers that
   don't understand `clip` (it's simply ignored there; the max-width clamp still does most of the work). */
html, body { overflow-x: hidden; overflow-x: clip; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s var(--ease); }
h1, h2, h3 { line-height: 1.06; margin: 0 0 .4em; font-weight: 700; letter-spacing: -0.025em; }
p { margin: 0 0 1rem; }

.sb-wrap { width: min(var(--container), 92vw); margin-inline: auto; }
.sb-sec { padding: clamp(2rem, 3.4vw, 3.5rem) 0; }
.sb-sec__eyebrow { text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--primary); margin-bottom: .7rem; }
.sb-sec__eyebrow--left { text-align: left; }
.sb-sec__title { text-align: center; font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: clamp(1.25rem, 2.5vw, 2rem); letter-spacing: -0.03em; }
.sb-sec__eyebrow + .sb-sec__title { margin-top: 0; }

/* buttons — pill, refined */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .78em 1.5em; border-radius: var(--btn-radius);
  background: var(--surface); color: var(--text); font-weight: 600; font-size: .98rem;
  border: 1px solid var(--border); cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), opacity .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--primary); color: #fff; border-color: transparent; }
.btn--primary:hover { filter: saturate(1.08); box-shadow: 0 12px 30px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn--lg { padding: .95em 2em; font-size: 1.06rem; }
.btn--sm { padding: .55em 1.1em; font-size: .9rem; }

/* header — frosted, sticky (height raised ~30% for a more premium presence) */
.sb-header { position: static; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.sb-header--sticky { position: sticky; top: 0; z-index: 40; }
.sb-header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; }
.sb-logo { height: 50px; width: auto; }
.sb-logo--text { font-weight: 800; font-size: 1.2rem; color: var(--text); letter-spacing: -0.02em; }
.sb-logo--dark { display: none; }
html.sb-dark .sb-logo--light { display: none; }
html.sb-dark .sb-logo--dark { display: inline; }
.sb-brand { display: inline-flex; align-items: center; gap: .7rem; }
.sb-brand__name { display: inline-block; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.015em; white-space: nowrap; }
.sb-brand__hi { color: var(--primary); }
.sb-brand__lo { color: var(--accent); }
@media (max-width: 400px) { .sb-brand__name { display: none; } }
.sb-nav { display: flex; gap: 1.75rem; }
.sb-nav a { color: var(--text); font-weight: 500; font-size: .95rem; opacity: .85; }
.sb-nav a:hover { opacity: 1; color: var(--primary); }
.sb-nav__toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--text); cursor: pointer; }

/* hero — big, centered, cinematic */
.sb-hero { position: relative; min-height: min(76vh, 640px); display: grid; place-items: center; text-align: center; color: #fff; background: var(--primary) center/cover no-repeat; overflow: hidden; }
.sb-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.55)); }
/* Root-cause fix: several design skins (vibrant, techno, ...) set a fallback `background:
   linear-gradient(...)` SHORTHAND on .sb-hero/.sb-slide for when there's no photo — but a shorthand
   silently resets every sub-property it doesn't mention (size/position/repeat -> their initial
   auto/0%,0%/repeat) for ANY element it matches, image or not. Combined with those skin selectors
   having higher specificity (2 classes) than the base rules above, this was overriding the actual
   PHOTO's size/position/repeat too — showing only its native-size top-left corner, or tiling it
   sideways, instead of a clean centered fit. Chained classes here (3x = higher specificity than any
   2-class `.design-X .sb-hero` skin override, present or future) pin the real behaviour back. */
.sb-hero.sb-hero.sb-hero, .sb-slide.sb-slide.sb-slide { background-position: center; background-repeat: no-repeat; }
.sb-hero.sb-hero.sb-hero { background-size: cover; }
.sb-hero__in { position: relative; z-index: 1; width: min(860px, 90vw); padding: 2rem; }
.sb-hero h1 { font-size: clamp(2.4rem, 7vw, 4.75rem); text-shadow: 0 4px 40px rgba(0,0,0,.25); }
.sb-hero__sub { font-size: clamp(1.1rem, 2.6vw, 1.5rem); font-weight: 400; opacity: .96; margin: 0 auto 1.75rem; max-width: 40ch; letter-spacing: -0.01em; }

/* grids / cards */
.sb-grid { display: grid; gap: 1.5rem; }
.sb-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.sb-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; text-align: center; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.sb-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.sb-card--service { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-align: left; }
.sb-card--service .sb-card__img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.sb-card--service h3, .sb-card--service p, .sb-card--service .sb-price { margin: .85rem 1.25rem; }
.sb-card--service h3 { margin-top: 1.25rem; }
/* Button + "details" link sit together, centered, pinned to the bottom of the card — every card in a
   row lines up regardless of how long its description text is. */
.sb-card__actions { margin-top: auto; padding: .4rem 1.25rem 1.35rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; }
.sb-card--service .sb-card__actions .btn, .sb-card--service .sb-card__actions .sb-card__link { margin: 0; }
.sb-card__icon { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 18%, transparent), color-mix(in srgb, var(--accent) 18%, transparent)); color: var(--primary); margin: 0 auto 1.1rem; }
.sb-card__icon svg { width: 28px; height: 28px; }
.sb-card__icon-img { width: 76px; height: 76px; object-fit: contain; margin: 0 auto 1.1rem; border-radius: 12px; }
.sb-price { font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.sb-card__link { display: inline-block; margin-top: .7rem; font-weight: 650; font-size: .92rem; color: var(--primary); letter-spacing: -0.01em; }
.sb-card__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.sb-card__link span { transition: transform .2s var(--ease); display: inline-block; }
.sb-card__link:hover span { transform: translateX(3px); }

/* about */
.sb-about__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.sb-about.has-img .sb-about__grid { grid-template-columns: 1fr 1fr; }
.sb-about__text h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.sb-about__text p { color: var(--muted); font-size: 1.08rem; max-width: var(--maxw-prose); }
.sb-about__media img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* gallery */
.sb-gallery__grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.sb-gallery--masonry { columns: 3 220px; display: block; }
.sb-gallery--masonry .sb-gallery__item { break-inside: avoid; margin-bottom: .75rem; }
.sb-gallery__item { margin: 0; overflow: hidden; border-radius: var(--radius-sm); }
.sb-gallery__img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .5s var(--ease); }
.sb-gallery__img:hover { transform: scale(1.06); }
.sb-gallery--justified .sb-gallery__item { aspect-ratio: 1/1; }

/* testimonials */
.sb-quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; margin: 0; }
.sb-quote p { font-size: 1.12rem; letter-spacing: -0.015em; }
.sb-quote p::before { content: "\201C"; color: var(--primary); font-weight: 800; font-size: 1.4em; line-height: 0; margin-right: .1em; }
.sb-stars { color: var(--accent); letter-spacing: 2px; margin-bottom: .75rem; font-size: 1.05rem; }
.sb-quote__by { display: flex; align-items: center; gap: .75rem; margin-top: 1.25rem; }
.sb-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-weight: 700; flex: none; }
.sb-quote__by > span { font-weight: 700; }
.sb-quote__by small { display: block; color: var(--muted); font-weight: 500; font-size: .85rem; }

/* testimonial carousel */
.sb-tcar { position: relative; }
.sb-tcar__track { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: .25rem 2px .75rem; -ms-overflow-style: none; scrollbar-width: none; }
.sb-tcar__track::-webkit-scrollbar { display: none; }
.sb-tcar .sb-quote { flex: 0 0 min(480px, 90%); scroll-snap-align: center; }
.sb-tcar__nav { position: absolute; top: 42%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 1.5rem; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; transition: background .2s var(--ease), color .2s var(--ease); }
.sb-tcar__nav:hover { background: var(--primary); color: #fff; border-color: transparent; }
.sb-tcar__prev { left: -10px; } .sb-tcar__next { right: -10px; }
.sb-tcar__dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
.sb-tcar__dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--border); cursor: pointer; transition: background .2s var(--ease), transform .2s var(--ease); }
.sb-tcar__dot.is-active { background: var(--primary); transform: scale(1.3); }
@media (max-width: 760px) { .sb-tcar__nav { display: none; } } /* mobile: swipe + dots */

/* section rhythm */
.sb-testimonials, .sb-stats { background: var(--surface); }

/* stats band */
.sb-stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.75rem; text-align: center; }
.sb-stat__value { font-size: clamp(2.3rem, 5.5vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; color: var(--primary); line-height: 1; }
.sb-stat__label { color: var(--muted); font-weight: 600; margin-top: .5rem; }

/* cta — always a solid/gradient colour band, so the button needs guaranteed-readable text
   regardless of which design skin wins the background colour war (see .btn.btn--primary below,
   3-class specificity beats any single-skin `.design-X .btn--primary` override). */
.sb-cta { background: var(--primary); color: #fff; }
.sb-cta__in { text-align: center; max-width: 760px; margin-inline: auto; }
.sb-cta h2 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3rem); }
.sb-cta .btn.btn--primary { background: rgba(255,255,255,.16); color: #fff; border: 2px solid rgba(255,255,255,.85); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
/* hover deliberately NOT overridden here — the sitewide metallic/gold hover (.btn.btn--primary:hover
   below) already gives strong contrast on its own light gradient and should stay consistent everywhere. */

/* map */
.sb-map iframe { width: 100%; height: 460px; border: 0; display: block; border-radius: var(--radius); }

/* team */
.sb-member__photo { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; box-shadow: var(--shadow); }
.sb-member__role { color: var(--primary); font-weight: 600; margin-bottom: .5rem; }

/* catalogue */
.sb-cat__filter { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.sb-cat__filter button { border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: .5em 1.2em; border-radius: 999px; cursor: pointer; font-weight: 600; transition: all .2s var(--ease); }
.sb-cat__filter button.is-active { background: var(--text); color: var(--bg); border-color: transparent; }

/* contact form */
.sb-contact__form { max-width: 640px; margin: 2rem auto 0; display: grid; gap: .75rem; }
.sb-contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.sb-contact__form input, .sb-contact__form textarea { padding: .85em 1.05em; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; width: 100%; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.sb-contact__form textarea { min-height: 130px; resize: vertical; }
@media (max-width: 560px) { .sb-contact__row { grid-template-columns: 1fr; } }

/* inline AJAX "thank you" card that replaces a submitted form in place (no page navigation).
   Explicit color:var(--text) since this can land inside .sb-formsec's white-on-gradient section —
   .sb-card itself sets no color, it'd otherwise inherit that white and go invisible on its own
   light --surface background. */
.sb-form__thanks { max-width: 640px; margin: 2rem auto 0; color: var(--text); animation: sbThanksIn .35s var(--ease); }
.sb-form__thanks-icon { width: 56px; height: 56px; margin: 0 auto .75rem; border-radius: 50%; background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary); display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; }
.sb-form__thanks h3 { margin: 0 0 .5rem; }
.sb-form__thanks p { margin: 0 0 1.25rem; color: var(--muted); }
@keyframes sbThanksIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* form builder forms — brand gradient backdrop (same treatment as the slider's letterbox fix)
   with a faint blurred brand-mark watermark; inputs keep their own light --surface background
   so they read as clean cards floating on the gradient, only headings/labels need a colour flip. */
.sb-formsec { position: relative; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; overflow: hidden; }
.sb-formsec::before { content: ""; position: absolute; inset: 0; z-index: 0; background-image: var(--brand-logo-bg, none); background-position: center; background-repeat: no-repeat; background-size: 30% auto; opacity: .14; filter: blur(18px); pointer-events: none; }
.sb-formsec .sb-wrap { position: relative; z-index: 1; }
.sb-formsec .sb-sec__eyebrow { color: rgba(255,255,255,.85); }
/* .sb-sec__title.sb-sec__title beats .design-vibrant .sb-sec__title's gradient-clip-text effect
   (equal 2-class specificity otherwise, and that skin rule loads after base.css so it would win
   the tie) — without resetting background/-webkit-background-clip too, "color: #fff" alone is a
   no-op because the title's fill still comes from its own clipped gradient, which on this same
   gradient backdrop made part of every heading nearly disappear into it. */
.sb-formsec .sb-sec__title.sb-sec__title { background: none; -webkit-background-clip: initial; background-clip: initial; color: #fff; }
.sb-formsec .sb-form__intro { color: rgba(255,255,255,.88); }
.sb-formsec .sb-field > label { color: #fff; }
.sb-formsec .btn.btn--primary { background: rgba(255,255,255,.16); color: #fff; border: 2px solid rgba(255,255,255,.85); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sb-formsec__in { max-width: 680px; }
.sb-form { display: grid; gap: 1.15rem; max-width: 680px; margin-inline: auto; }
.sb-form__intro { color: var(--muted); margin: 0; font-size: 1.05rem; }
.sb-field { display: grid; gap: .4rem; }
.sb-field > label { font-weight: 600; font-size: .95rem; }
.sb-field input, .sb-field select, .sb-field textarea {
  padding: .85em 1.05em; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: inherit; width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.sb-field input:focus, .sb-field select:focus, .sb-field textarea:focus,
.sb-contact__form input:focus, .sb-contact__form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.sb-field textarea { min-height: 130px; resize: vertical; }
.sb-field.has-err input, .sb-field.has-err select, .sb-field.has-err textarea { border-color: #ff3b30; }
.sb-field__err { color: #ff3b30; font-size: .85rem; }
.sb-req { color: #ff3b30; }
.sb-choices { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.sb-choice, .sb-consent { display: inline-flex; align-items: center; gap: .45rem; font-weight: 400; }
.sb-choice input, .sb-consent input { width: auto; accent-color: var(--primary); }
.sb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* slider — responsive to the image's own ratio: container is 16:9 (matches every current slide
   photo exactly, e.g. 1600x900/1024x576), and the image uses "contain" so the full photo always
   shows at its native proportions — no cropping, no cut-off faces, never distorted. Any future
   photo with a different ratio still shows in full (letterboxed in the brand colour) rather than
   being cropped. */
.sb-slider { position: relative; width: 100%; overflow: hidden; }
.sb-slider__track { display: flex; width: 100%; transition: transform .6s var(--ease); }
.sb-slider[data-swipe="1"] .sb-slider__track { cursor: grab; }
.sb-slider[data-swipe="1"] .sb-slider__track.is-dragging { cursor: grabbing; }
.sb-slider[data-swipe="1"] .sb-slide { -webkit-user-select: none; user-select: none; }
/* No min/max-height clamp on purpose: with a plain aspect-ratio the slide's rendered box is
   ALWAYS exactly 16:9, so a 16:9 photo under background-size:contain fills it with zero gap at
   any viewport width. A px min/max-height clamp used to force the box off-ratio at very narrow
   or very wide viewports, which is what produced the grey letterbox bars either side. */
.sb-slide { position: relative; flex: 0 0 100%; width: 100%; min-width: 0; aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)) center/cover no-repeat; overflow: hidden; }
.sb-slide.sb-slide.sb-slide { background-size: contain; } /* see the .sb-hero fix note above — same shorthand-collision issue, same fix */
/* Soft brand-mark backdrop: sits behind the dark scrim (z-index 1) and text (z-index 2), above
   the slide's own photo/gradient background — shows through faintly everywhere, and is the only
   thing visible if a slide has no photo at all. Driven by --brand-logo-bg set once on <body>. */
.sb-slide::before { content: ""; position: absolute; inset: 0; z-index: 0; background-image: var(--brand-logo-bg, none); background-position: center; background-repeat: no-repeat; background-size: 42% auto; opacity: .16; filter: blur(16px); pointer-events: none; }
.sb-slide::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.5)); }
.sb-slide__video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.sb-slide__in { position: relative; z-index: 2; width: min(820px, 90vw); padding: 2rem; }
.sb-slide h2 { font-size: clamp(1.5rem, 6vw, 3.6rem); text-shadow: 0 4px 40px rgba(0,0,0,.25); }
.sb-slide p { font-size: clamp(1rem, 2.4vw, 1.35rem); opacity: .96; }
.sb-slider__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: color-mix(in srgb, #000 32%, transparent); backdrop-filter: blur(8px); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; transition: background .2s var(--ease); }
.sb-slider__nav:hover { background: color-mix(in srgb, #000 55%, transparent); }
.sb-slider__prev { left: 1.25rem; } .sb-slider__next { right: 1.25rem; }

/* footer */
.sb-footer { background: var(--surface); border-top: 1px solid var(--border); }
.sb-footer__in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 0; }
.sb-footer__brand { font-size: 1.2rem; letter-spacing: -0.02em; }
.sb-footer__tag { color: var(--muted); margin: .35rem 0 .6rem; }
.sb-footer__col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 .8rem; font-weight: 700; }
.sb-footer__col a, .sb-footer__col span { display: block; margin-bottom: .4rem; }
.sb-footer a { color: var(--text); opacity: .85; }
.sb-footer a:hover { opacity: 1; color: var(--primary); }
.sb-footer__bar { text-align: center; padding: 1.25rem; color: var(--muted); border-top: 1px solid var(--border); font-size: .88rem; }
@media (max-width: 700px) { .sb-footer__in { grid-template-columns: 1fr; gap: 1.75rem; } }

/* footer / contact social icons + "get directions" link */
.sb-footer__social { display: flex; gap: .6rem; margin-top: .9rem; }
.sb-footer__social a { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg); border: 1px solid var(--border); color: var(--text); opacity: 1; transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease); }
.sb-footer__social a:hover { transform: translateY(-2px); background: var(--primary); color: #fff; border-color: transparent; }
.sb-footer__social svg { width: 18px; height: 18px; }
.sb-directions { display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; color: var(--primary); opacity: 1; margin-top: .3rem; }
.sb-directions svg { width: 17px; height: 17px; }
.sb-directions:hover { text-decoration: underline; text-underline-offset: 3px; opacity: 1; }

/* Google-style reviews widget (admin-curated, no external API) */
.sb-reviews__summary { text-align: center; font-weight: 700; color: var(--muted); margin: -.5rem 0 1.75rem; letter-spacing: -0.01em; }
.sb-reviews__grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.sb-review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.sb-review__head { display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.sb-review__avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-weight: 700; flex: none; }
.sb-review__name { font-weight: 700; }
.sb-review__date { color: var(--muted); font-size: .82rem; }
.sb-review__stars { color: var(--accent); letter-spacing: 2px; margin-bottom: .5rem; }
.sb-review__text { color: var(--text); margin: 0; }
.sb-reviews__more, .sb-instagram__more { text-align: center; margin-top: 2rem; font-weight: 650; }

/* Instagram feed (official oEmbed widget, no API key). Instagram's own embed.js replaces the
   blockquote with an <iframe> sized by ITS OWN script logic, which ignores the grid cell's actual
   (narrower, after gap/padding) width and was overflowing the page horizontally by ~16px on
   narrow phones — hence needs a hard !important cap; it's a third-party widget we don't control
   the markup generation of, so CSS is the only lever available. */
.sb-instagram__grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); overflow: hidden; }
.sb-instagram__grid iframe.instagram-media,
.sb-instagram__grid .instagram-media { max-width: 100% !important; width: 100% !important; }

/* affiliated-to / accreditation logo row — boxed like its sibling sections (Why us cards, etc.) */
.sb-affiliates__grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: clamp(2rem, 6vw, 4.5rem); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 5vw, 3rem); }
.sb-affiliate { display: flex; flex-direction: column; align-items: center; gap: .8rem; text-align: center; max-width: 180px; }
.sb-affiliate__logo { width: 104px; height: 104px; object-fit: contain; }
.sb-affiliate__label { font-weight: 700; font-size: .95rem; color: var(--text); letter-spacing: -0.01em; }
@media (max-width: 560px) {
  .sb-affiliates__grid { gap: 1.5rem 1.25rem; padding: 1.5rem 1.25rem; }
  .sb-affiliate { max-width: 44%; }
  .sb-affiliate__logo { width: 76px; height: 76px; }
  .sb-affiliate__label { font-size: .85rem; }
}

/* premium metallic/gold hover shimmer for every primary button, in every skin & mode */
.btn.btn--primary:hover, .btn.btn--primary:focus-visible {
  background: linear-gradient(120deg, #8a6a1e 0%, #d9b95c 20%, #f6e6b0 40%, #d4af37 55%, #f6e6b0 70%, #b8860b 85%, #8a6a1e 100%);
  background-size: 220% auto;
  color: #3a2a06;
  border-color: transparent;
  box-shadow: 0 14px 32px rgba(180,140,40,.42);
  animation: sb-metal-sheen 2.4s linear infinite;
}
@keyframes sb-metal-sheen { to { background-position: -220% center; } }
@media (prefers-reduced-motion: reduce) { .btn.btn--primary:hover, .btn.btn--primary:focus-visible { animation: none; } }

/* floating WhatsApp button */
.sb-wa { position: fixed; bottom: calc(1.5rem + env(safe-area-inset-bottom)); z-index: 50; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37,211,102,.4); transition: transform .2s var(--ease); }
.sb-wa:hover { transform: scale(1.06); }
.sb-wa--right { right: 1.5rem; }
.sb-wa--left { left: 1.5rem; }
.sb-wa, .sb-cart__fab, .sb-darktoggle { cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; }
.sb-wa:active, .sb-cart__fab:active, .sb-darktoggle:active { cursor: grabbing; }

/* draggable dark-mode toggle */
.sb-darktoggle { position: fixed; z-index: 50; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .2s var(--ease); }
.sb-darktoggle:hover { transform: scale(1.06); }
.sb-darktoggle svg { width: 22px; height: 22px; }
.sb-darktoggle--right { right: 1.5rem; bottom: calc(1.5rem + 70px + env(safe-area-inset-bottom)); }
.sb-darktoggle--left { left: 1.5rem; bottom: calc(1.5rem + 70px + env(safe-area-inset-bottom)); }
.sb-darktoggle__sun { display: none; }
html.sb-dark .sb-darktoggle__moon { display: none; }
html.sb-dark .sb-darktoggle__sun { display: inline; }

/* keep all floating buttons ABOVE the mobile bottom tab bar by default */
@media (max-width: 820px) {
  .sb-wa, .sb-cart__fab { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .sb-darktoggle--right, .sb-darktoggle--left { bottom: calc(152px + env(safe-area-inset-bottom)); }
}

/* Web Push soft pre-prompt (shown before the real browser permission dialog) */
.sb-pushprompt { position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; display: flex; justify-content: center; padding: 1rem; opacity: 0; transform: translateY(20px); transition: opacity .35s var(--ease), transform .35s var(--ease); pointer-events: none; }
.sb-pushprompt.is-open { opacity: 1; transform: none; pointer-events: auto; }
.sb-pushprompt__panel { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; max-width: 560px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1rem 1.25rem; }
.sb-pushprompt__text { flex: 1; min-width: 200px; font-size: .92rem; font-weight: 600; }
.sb-pushprompt__actions { display: flex; gap: .5rem; flex: none; }
@media (max-width: 820px) { .sb-pushprompt { bottom: 78px; } }
@media (max-width: 560px) { .sb-pushprompt { padding: .75rem; } .sb-pushprompt__panel { padding: .85rem 1rem; } }

/* mobile tab bar */
.sb-tabbar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 45; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--border); padding: .4rem .5rem calc(.4rem + env(safe-area-inset-bottom)); }
.sb-tabbar a, .sb-tabbar__menubtn { flex: 1; display: grid; justify-items: center; gap: 3px; color: var(--muted); font-size: .68rem; padding: .35rem 0; transition: color .2s var(--ease); background: none; border: 0; font-family: inherit; cursor: pointer; }
.sb-tabbar a:hover, .sb-tabbar a.is-active, .sb-tabbar__menubtn:hover { color: var(--primary); }
/* .sb-menu-open is the same body class the header hamburger toggles — this tab lights up
   together with it instead of needing its own separate open/close state to track. */
body.sb-menu-open .sb-tabbar__menubtn { color: var(--primary); }
.sb-tabbar__icon { display: grid; place-items: center; }
.sb-tabbar__icon svg { width: 23px; height: 23px; }
.sb-tabbar--left { justify-content: flex-start; }
.sb-tabbar--right { justify-content: flex-end; }

/* cart */
.sb-cart__fab { position: fixed; left: 1.5rem; bottom: calc(1.5rem + env(safe-area-inset-bottom)); z-index: 50; background: var(--primary); color: #fff; border: 0; border-radius: 999px; padding: .8em 1.2em; font-size: 1rem; cursor: pointer; box-shadow: var(--shadow-lg); transition: transform .2s var(--ease); }
.sb-cart__fab:hover { transform: translateY(-2px); }
.sb-cart__badge { background: #fff; color: var(--primary); border-radius: 999px; padding: 0 .5em; font-weight: 800; margin-left: .3rem; }
.sb-cart { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.4); display: flex; justify-content: flex-end; backdrop-filter: blur(3px); }
.sb-cart[hidden] { display: none; } /* author display:flex would otherwise beat the [hidden] UA rule -> cart stuck open */
.sb-cart__panel { width: min(400px, 92vw); background: var(--bg); height: 100%; padding: 1.5rem; overflow: auto; display: flex; flex-direction: column; gap: .85rem; box-shadow: var(--shadow-lg); }
.sb-cart__panel header { display: flex; justify-content: space-between; align-items: center; }
.sb-cart__panel header button { background: none; border: 0; font-size: 1.7rem; cursor: pointer; color: var(--text); }
.sb-cart__row { display: grid; grid-template-columns: 1fr auto auto; gap: .5rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.sb-cart__qty button { width: 28px; height: 28px; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; cursor: pointer; margin: 0 .35rem; }
.sb-cart__total { font-weight: 800; text-align: right; font-size: 1.15rem; }
.sb-cart__empty { color: var(--muted); }
.sb-cart__form { display: grid; gap: .6rem; margin-top: auto; }
.sb-cart__form input, .sb-cart__form textarea { padding: .75em 1em; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; }
.sb-cart__form textarea { min-height: 68px; resize: vertical; }

/* lightbox */
.sb-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: grid; place-items: center; z-index: 60; backdrop-filter: blur(8px); }
.sb-lightbox img { max-width: 88vw; max-height: 88vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.sb-lightbox__close { position: absolute; top: 1.25rem; right: 1.25rem; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s var(--ease); }
.sb-lightbox__close:hover { background: rgba(255,255,255,.24); }
.sb-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; transition: background .2s var(--ease); }
.sb-lightbox__nav:hover { background: rgba(255,255,255,.26); }
.sb-lightbox__prev { left: 1.25rem; } .sb-lightbox__next { right: 1.25rem; }
.sb-lightbox__count { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); font-size: .9rem; font-weight: 600; background: rgba(255,255,255,.12); padding: .35em 1em; border-radius: 999px; }
@media (max-width: 560px) {
  .sb-lightbox__nav { width: 42px; height: 42px; font-size: 1.4rem; }
  .sb-lightbox__prev { left: .5rem; } .sb-lightbox__next { right: .5rem; }
  .sb-lightbox__close { top: .6rem; right: .6rem; width: 38px; height: 38px; }
}

/* scroll reveal (progressive enhancement; JS adds .sb-reveal then .in) */
.sb-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.sb-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .sb-reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* responsive */
@media (max-width: 820px) {
  /* --sb-header-h is measured live from the real header (app.js) — a hardcoded px here silently
     drifts out of sync the moment the header's own height changes (logo size, padding, a future
     banner above it) and the dropdown ends up overlapping the header instead of sitting below it.
     87px is only the no-JS/first-paint fallback, matched to the header's current real height. */
  .sb-nav { position: fixed; inset: var(--sb-header-h, 87px) 0 auto 0; flex-direction: column; gap: 1rem; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 1.5rem 6vw; transform: translateY(-130%); transition: transform .3s var(--ease); }
  .sb-menu-open .sb-nav { transform: translateY(0); }
  .sb-nav a { font-size: 1.05rem; }
  .sb-nav__toggle { display: block; }
  .sb-about.has-img .sb-about__grid { grid-template-columns: 1fr; }
  .sb-tabbar { display: flex; }
  body { padding-bottom: 68px; }
}

/* ============================================================
   Blog · FAQ · Image block — all built on theme tokens, so they
   inherit every colour scheme + design skin automatically.
   ============================================================ */

/* --- single image block --- */
.sb-imageblock__grid { display: grid; gap: 1rem; }
.sb-imageblock--multi .sb-imageblock__grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sb-imageblock__item { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.sb-imageblock__img { width: 100%; height: 100%; display: block; object-fit: cover; }
.sb-imageblock--wide .sb-wrap { width: min(1100px, 94vw); }
.sb-imageblock--full .sb-wrap { width: 100%; }
.sb-imageblock--full .sb-imageblock__item { border-radius: 0; }
.sb-imageblock__cap { text-align: center; color: var(--muted); font-size: .92rem; margin-top: .8rem; }

/* --- FAQ accordion --- */
.sb-faq__in { width: min(820px, 92vw); }
.sb-faq__list { display: grid; gap: .85rem; }
.sb-faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 1.35rem; transition: box-shadow .25s var(--ease), border-color .25s var(--ease); }
.sb-faq__item[open] { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.sb-faq__q { list-style: none; cursor: pointer; font-weight: 650; padding: 1.15rem 2rem 1.15rem 0; position: relative; display: block; letter-spacing: -0.01em; }
.sb-faq__q::-webkit-details-marker { display: none; }
.sb-faq__mark { position: absolute; right: 0; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); }
.sb-faq__mark::before, .sb-faq__mark::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--primary); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.sb-faq__mark::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.sb-faq__mark::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.sb-faq__item[open] .sb-faq__mark::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.sb-faq__a { color: var(--muted); padding: 0 0 1.2rem; line-height: 1.7; max-width: 68ch; }

/* --- blog index --- */
.sb-bloghero { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(1rem, 2vw, 1.5rem); }
.sb-bloghero__in { text-align: center; }
.sb-bloghero__title { font-size: clamp(2.2rem, 6vw, 3.8rem); letter-spacing: -0.035em; margin-bottom: .6rem; }
.sb-bloghero__sub { color: var(--muted); font-size: clamp(1.05rem, 2.4vw, 1.3rem); max-width: 60ch; margin: 0 auto; }
.sb-bloggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.sb-blogcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: inherit; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.sb-blogcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.sb-blogcard__media { position: relative; overflow: hidden; }
.sb-blogcard__img { display: block; width: 100%; aspect-ratio: 16 / 10; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 22%, var(--surface)), color-mix(in srgb, var(--accent) 22%, var(--surface))) center/cover no-repeat; transition: transform .5s var(--ease); }
.sb-blogcard:hover .sb-blogcard__img { transform: scale(1.06); }
.sb-blog__chip, .sb-post__cat { position: absolute; top: .9rem; left: .9rem; background: color-mix(in srgb, var(--bg) 88%, transparent); color: var(--primary); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .35em .75em; border-radius: 999px; backdrop-filter: blur(6px); }
.sb-blogcard__body { display: flex; flex-direction: column; gap: .55rem; padding: 1.35rem 1.4rem 1.5rem; flex: 1; }
.sb-blogcard__title { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sb-blogcard__excerpt { color: var(--muted); font-size: .96rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sb-blogcard__meta { margin-top: auto; color: var(--muted); font-size: .82rem; font-weight: 600; letter-spacing: .01em; }
.sb-blog__empty { text-align: center; color: var(--muted); padding: 3rem 0; }
.sb-blogpager { display: flex; justify-content: center; gap: .5rem; margin-top: clamp(1.75rem, 4vw, 3rem); }
.sb-blogpager__link { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 12px; font-weight: 700; color: var(--text); }
.sb-blogpager__link.is-active { background: var(--primary); color: #fff; border-color: transparent; }

/* --- blog post --- */
.sb-post__hero { position: relative; padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 16%, var(--bg)), color-mix(in srgb, var(--accent) 12%, var(--bg))); text-align: center; }
.sb-post__hero.has-cover { background-size: cover; background-position: center; color: #fff; }
.sb-post__hero.has-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.72)); }
.sb-post__heroin { position: relative; width: min(820px, 92vw); }
.sb-post__hero.has-cover .sb-post__cat { position: static; display: inline-block; margin-bottom: 1rem; background: rgba(255,255,255,.16); color: #fff; }
.sb-post__cat { position: static; display: inline-block; margin-bottom: 1rem; }
.sb-post__back { display: inline-block; margin-bottom: 1.25rem; font-weight: 600; font-size: .9rem; opacity: .85; color: inherit; }
.sb-post__back:hover { opacity: 1; }
.sb-post__title { font-size: clamp(2rem, 5.5vw, 3.5rem); letter-spacing: -0.035em; line-height: 1.08; margin-bottom: 1rem; }
.sb-post__lede { font-size: clamp(1.1rem, 2.4vw, 1.35rem); line-height: 1.55; opacity: .92; max-width: 60ch; margin: 0 auto 1.5rem; }
.sb-post__meta { display: inline-flex; align-items: center; gap: .7rem; font-weight: 600; font-size: .95rem; }
.sb-post__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-weight: 800; }
.sb-post__wrap { width: min(760px, 92vw); margin-inline: auto; padding-top: clamp(1.75rem, 4vw, 3rem); }
.sb-post__content .sb-sec { padding: clamp(.6rem, 1.6vw, 1.1rem) 0; }
.sb-post__content .sb-wrap { width: 100%; }
.sb-post__content .sb-sec__title, .sb-post__content .sb-sec__eyebrow { text-align: left; }
.sb-post__content .sb-prose { font-size: 1.12rem; line-height: 1.8; color: var(--text); }
.sb-post__content .sb-prose p { margin: 0 0 1.15em; }
.sb-post__content h2, .sb-post__content h3 { letter-spacing: -0.02em; line-height: 1.25; margin: 1.4em 0 .5em; }
.sb-post__content a { text-decoration: underline; text-underline-offset: 3px; }
.sb-post__content .sb-imageblock { margin-inline: calc((min(760px, 92vw) - min(920px, 96vw)) / 2); }
/* "Course at a glance" style stats embedded in a blog post: the post column is much narrower than
   the full site container, so keep 2 columns (not 4) and a smaller value size — long values like
   "10th / PUC / Degree" then wrap cleanly on one/two lines instead of colliding with their label. */
.sb-post__content .sb-stats { background: transparent; }
.sb-post__content .sb-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.25rem; }
.sb-post__content .sb-stat__value { font-size: clamp(1.35rem, 4.2vw, 2rem); line-height: 1.2; overflow-wrap: break-word; }
.sb-post__content .sb-stat__label { margin-top: .4rem; }
.sb-post__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.sb-post__tag { background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: .82rem; font-weight: 600; padding: .35em .8em; border-radius: 999px; }
.sb-share { display: flex; align-items: center; gap: .55rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.sb-share__label { font-weight: 700; color: var(--muted); margin-right: .3rem; }
.sb-share__btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: grid; place-items: center; font-weight: 800; cursor: pointer; transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease); }
.sb-share__btn svg { width: 20px; height: 20px; }
.sb-share__btn:hover { transform: translateY(-2px); background: var(--primary); color: #fff; border-color: transparent; }
.sb-share__btn.is-copied { background: #16a34a; color: #fff; border-color: transparent; }
.sb-related { background: color-mix(in srgb, var(--surface) 55%, var(--bg)); }
.sb-related .sb-sec__eyebrow, .sb-related .sb-sec__title { text-align: center; }

@media (max-width: 560px) {
  .sb-bloggrid { grid-template-columns: 1fr; }
}

/* ============================================================
   Popups / announcements — 10 positions x 6 surfaces = 27 presets,
   all built on theme tokens so every scheme + skin stays on-brand.
   ============================================================ */
.sb-popup { position: fixed; inset: 0; z-index: 80; display: flex; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s var(--ease); }
.sb-popup[hidden] { display: none; }
.sb-popup.is-open { opacity: 1; visibility: visible; }
.sb-popup__backdrop { position: absolute; inset: 0; background: rgba(15,15,20,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sb-popup__panel { position: relative; z-index: 1; width: min(460px, 92vw); max-height: 88vh; overflow-y: auto; border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.96); opacity: 0; transition: transform .4s var(--ease), opacity .4s var(--ease); margin: auto; }
.sb-popup.is-open .sb-popup__panel { transform: none; opacity: 1; }
.sb-popup__x { position: absolute; top: .6rem; right: .6rem; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--surface) 60%, transparent); color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.sb-popup__x:hover { background: color-mix(in srgb, var(--text) 14%, transparent); }
.sb-popup__media { margin: 0; }
.sb-popup__media img { display: block; width: 100%; max-height: 220px; object-fit: cover; }
.sb-popup__content { padding: 1.6rem 1.7rem 1.7rem; }
.sb-popup__title { font-size: 1.4rem; letter-spacing: -0.02em; margin-bottom: .5rem; }
.sb-popup__body { color: var(--muted); line-height: 1.6; }
.sb-popup__ack { display: flex; gap: .55rem; align-items: flex-start; margin-top: 1rem; font-size: .92rem; cursor: pointer; }
.sb-popup__ack input { margin-top: .2rem; flex: none; }
.sb-popup__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.sb-popup__dismiss { background: transparent; }
.sb-popup.is-locked .sb-popup__cta, .sb-popup.is-locked .sb-popup__x, .sb-popup.is-locked .sb-popup__dismiss, .sb-popup.is-locked .sb-popup__backdrop { opacity: .5; pointer-events: none; }
.sb-popup.is-locked .sb-popup__backdrop { opacity: 1; }

/* positions */
.sb-popup--center { align-items: center; justify-content: center; padding: 1rem; }
.sb-popup--sheet { align-items: flex-end; justify-content: center; }
.sb-popup--sheet .sb-popup__panel { width: min(560px, 100vw); border-radius: 26px 26px 0 0; transform: translateY(100%); margin: 0 auto 0; max-height: 90vh; }
.sb-popup.is-open.sb-popup--sheet .sb-popup__panel { transform: none; }
.sb-popup--br, .sb-popup--bl, .sb-popup--tr, .sb-popup--tl, .sb-popup--bannertop, .sb-popup--bannerbottom { pointer-events: none; }
.sb-popup--br .sb-popup__backdrop, .sb-popup--bl .sb-popup__backdrop, .sb-popup--tr .sb-popup__backdrop, .sb-popup--tl .sb-popup__backdrop, .sb-popup--bannertop .sb-popup__backdrop, .sb-popup--bannerbottom .sb-popup__backdrop { display: none; }
.sb-popup--br .sb-popup__panel, .sb-popup--bl .sb-popup__panel, .sb-popup--tr .sb-popup__panel, .sb-popup--tl .sb-popup__panel { pointer-events: auto; position: absolute; width: min(360px, 92vw); margin: 0; max-height: 80vh; }
.sb-popup--br .sb-popup__panel { right: 1.25rem; bottom: 1.25rem; transform: translateY(24px); }
.sb-popup--bl .sb-popup__panel { left: 1.25rem; bottom: 1.25rem; transform: translateY(24px); }
.sb-popup--tr .sb-popup__panel { right: 1.25rem; top: 1.25rem; transform: translateY(-24px); }
.sb-popup--tl .sb-popup__panel { left: 1.25rem; top: 1.25rem; transform: translateY(-24px); }
.sb-popup.is-open.sb-popup--br .sb-popup__panel, .sb-popup.is-open.sb-popup--bl .sb-popup__panel, .sb-popup.is-open.sb-popup--tr .sb-popup__panel, .sb-popup.is-open.sb-popup--tl .sb-popup__panel { transform: none; }
.sb-popup--br .sb-popup__content, .sb-popup--bl .sb-popup__content, .sb-popup--tr .sb-popup__content, .sb-popup--tl .sb-popup__content { padding: 1.25rem 1.35rem; }
.sb-popup--br .sb-popup__title, .sb-popup--bl .sb-popup__title, .sb-popup--tr .sb-popup__title, .sb-popup--tl .sb-popup__title { font-size: 1.15rem; }
.sb-popup--br .sb-popup__media img, .sb-popup--bl .sb-popup__media img, .sb-popup--tr .sb-popup__media img, .sb-popup--tl .sb-popup__media img { max-height: 130px; }
.sb-popup--bannertop { align-items: flex-start; }
.sb-popup--bannerbottom { align-items: flex-end; }
.sb-popup--bannertop .sb-popup__panel, .sb-popup--bannerbottom .sb-popup__panel { pointer-events: auto; width: 100%; max-width: 100%; border-radius: 0; margin: 0; }
.sb-popup--bannertop .sb-popup__panel { transform: translateY(-100%); }
.sb-popup--bannerbottom .sb-popup__panel { transform: translateY(100%); }
.sb-popup.is-open.sb-popup--bannertop .sb-popup__panel, .sb-popup.is-open.sb-popup--bannerbottom .sb-popup__panel { transform: none; }
.sb-popup--bannertop .sb-popup__content, .sb-popup--bannerbottom .sb-popup__content { padding: .85rem 1.5rem; display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.sb-popup--bannertop .sb-popup__title, .sb-popup--bannerbottom .sb-popup__title { font-size: 1.05rem; margin: 0; }
.sb-popup--bannertop .sb-popup__body, .sb-popup--bannerbottom .sb-popup__body { margin: 0; }
.sb-popup--bannertop .sb-popup__actions, .sb-popup--bannerbottom .sb-popup__actions { margin: 0 2.5rem 0 auto; }
.sb-popup--bannertop .sb-popup__media, .sb-popup--bannerbottom .sb-popup__media { display: none; }
.sb-popup--slideright { align-items: stretch; justify-content: flex-end; }
.sb-popup--slideright .sb-popup__panel { width: min(400px, 92vw); height: 100%; max-height: 100vh; border-radius: 0; margin: 0; transform: translateX(100%); }
.sb-popup.is-open.sb-popup--slideright .sb-popup__panel { transform: none; }
.sb-popup--full .sb-popup__panel { width: 100%; height: 100%; max-height: 100vh; border-radius: 0; margin: 0; display: grid; place-content: center; text-align: center; transform: scale(1.04); }
.sb-popup--full .sb-popup__content { padding: 2rem; max-width: 620px; margin: 0 auto; }
.sb-popup--full .sb-popup__title { font-size: clamp(2rem, 5vw, 3rem); }
.sb-popup--full .sb-popup__actions { justify-content: center; }
.sb-popup--full .sb-popup__media img { max-height: 300px; border-radius: var(--radius); margin: 0 auto; }

/* surfaces */
.sb-popupfx--glass .sb-popup__panel { background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.sb-popupfx--solid .sb-popup__panel { background: var(--surface); border: 1px solid var(--border); }
.sb-popupfx--dark .sb-popup__panel { background: #16171b; color: #f5f5f7; border: 1px solid rgba(255,255,255,.1); }
.sb-popupfx--dark .sb-popup__body { color: rgba(255,255,255,.72); }
.sb-popupfx--dark .sb-popup__x { color: #fff; }
.sb-popupfx--gradient .sb-popup__panel { background: linear-gradient(140deg, var(--primary), var(--accent)); color: #fff; border: 0; }
.sb-popupfx--brand .sb-popup__panel { background: var(--primary); color: #fff; border: 0; }
.sb-popupfx--gradient .sb-popup__body, .sb-popupfx--brand .sb-popup__body { color: rgba(255,255,255,.9); }
.sb-popupfx--gradient .sb-popup__x, .sb-popupfx--brand .sb-popup__x { color: #fff; background: rgba(255,255,255,.18); }
.sb-popupfx--gradient .btn--primary, .sb-popupfx--brand .btn--primary { background: #fff; color: var(--primary); border-color: transparent; }
.sb-popupfx--gradient .sb-popup__dismiss, .sb-popupfx--brand .sb-popup__dismiss, .sb-popupfx--dark .sb-popup__dismiss { color: #fff; border-color: rgba(255,255,255,.35); }
.sb-popupfx--outline .sb-popup__panel { background: var(--surface); border: 2px solid var(--primary); }

@media (max-width: 560px) {
  .sb-popup--br .sb-popup__panel, .sb-popup--bl .sb-popup__panel { left: 1rem; right: 1rem; width: auto; bottom: 84px; }
  .sb-popup--tr .sb-popup__panel, .sb-popup--tl .sb-popup__panel { left: 1rem; right: 1rem; width: auto; }
  .sb-popup--sheet .sb-popup__content { padding-bottom: 84px; }
  .sb-popup--bannerbottom .sb-popup__panel { margin-bottom: 68px; }
  .sb-popup--bannertop .sb-popup__content, .sb-popup--bannerbottom .sb-popup__content { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .sb-popup--bannertop .sb-popup__actions, .sb-popup--bannerbottom .sb-popup__actions { margin: 0; }
}
