/* NetRegis Website Builder — site styles
   Every colour, font and radius comes from the theme variables the Renderer
   writes on :root, so a palette/font change restyles the whole site. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; line-height: 1.28; margin: 0 0 .5em; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--c-primary) 60%, transparent); outline-offset: 2px; }

.sb-container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.sb-section { position: relative; padding: clamp(64px, 8vw, 112px) 0; }
.sb-section.is-tight { padding-top: 0; }
.sb-empty { text-align: center; color: var(--c-muted); }

/* ---------- Section backgrounds ---------- */
.sb-bg-default { background: var(--c-bg); }
.sb-bg-alt { background: var(--c-alt); }
.sb-bg-primary { background: var(--c-primary); color: var(--c-on-primary); }
.sb-bg-dark { background: var(--c-dark); color: var(--c-on-dark); }
.sb-bg-primary .sb-sub, .sb-bg-dark .sb-sub,
.sb-bg-primary p, .sb-bg-dark p { color: inherit; }
.sb-bg-primary .sb-sub, .sb-bg-dark .sb-sub { opacity: .82; }
.sb-bg-primary .sb-eyebrow { color: inherit; opacity: .9; }
.sb-bg-dark .sb-eyebrow { color: var(--c-accent); }

/* ---------- Headings ---------- */
.sb-head { max-width: 760px; margin: 0 auto clamp(32px, 4.5vw, 56px); text-align: center; }
.sb-head--left { margin-left: 0; text-align: left; }
.sb-eyebrow {
    display: inline-block;
    margin-bottom: .7rem;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--c-primary);
}
.sb-title { font-size: clamp(1.75rem, 3.4vw, 2.75rem); margin-bottom: .45em; }
.sb-sub { font-size: 1.08rem; color: var(--c-muted); margin: 0; }
.sb-note { margin: 28px 0 0; text-align: center; font-size: .92rem; color: var(--c-muted); }
.sb-prose p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.sb-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sb-btns--center { justify-content: center; }
.sb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    padding: .9em 1.7em;
    border: 2px solid transparent;
    border-radius: var(--r-btn);
    font-family: var(--f-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.sb-btn--sm { padding: .6em 1.2em; font-size: .92rem; }
.sb-btn--lg { padding: 1em 2em; font-size: 1.05rem; }
.sb-btn--block { width: 100%; }
.sb-btn--primary {
    background: var(--c-primary);
    color: var(--c-on-primary);
    box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--c-primary) 75%, transparent);
}
.sb-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--c-primary) 80%, transparent); }
.sb-btn--ghost { border-color: color-mix(in srgb, currentColor 45%, transparent); color: inherit; background: transparent; }
.sb-btn--ghost:hover { border-color: currentColor; background: color-mix(in srgb, currentColor 8%, transparent); }
.sb-bg-primary .sb-btn--primary { background: var(--c-on-primary); color: var(--c-primary); box-shadow: none; }

/* ---------- Grid ---------- */
.sb-grid { display: grid; gap: clamp(18px, 2.4vw, 30px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sb-cols-1 { grid-template-columns: minmax(0, 1fr); }
.sb-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sb-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sb-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) {
    .sb-cols-3, .sb-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .sb-cols-2, .sb-cols-3, .sb-cols-4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Cards / chips ---------- */
.sb-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.sb-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -24px rgba(0, 0, 0, .35); }
.sb-bg-primary .sb-card, .sb-bg-dark .sb-card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: inherit; }
.sb-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-alt); }
.sb-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.sb-card:hover .sb-card-media img { transform: scale(1.06); }
.sb-card-body { padding: 20px 22px 24px; }
.sb-chip {
    display: inline-block;
    padding: .18em .7em;
    border-radius: 999px;
    background: var(--c-primary);
    color: var(--c-on-primary);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .02em;
    vertical-align: middle;
}
.sb-chip--float { position: absolute; top: 14px; left: 14px; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); }
.sb-price { font-family: var(--f-head); font-weight: 700; color: var(--c-primary); white-space: nowrap; }
.sb-bg-primary .sb-price { color: inherit; }
.sb-scheme-dark .sb-price { color: var(--c-accent); }

/* ---------- Header ---------- */
.sb-header { position: relative; z-index: 60; background: var(--c-bg); border-bottom: 1px solid var(--c-border); }
.sb-header.is-sticky { position: sticky; top: 0; }
.sb-header.is-transparent { position: fixed; left: 0; right: 0; top: 0; background: transparent; border-color: transparent; color: #fff; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.sb-header.is-transparent.is-scrolled { background: color-mix(in srgb, var(--c-bg) 94%, transparent); color: var(--c-text); border-color: var(--c-border); backdrop-filter: blur(12px); }
.sb-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.sb-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex-shrink: 0; }
.sb-logo img { height: var(--logo-h); width: auto; max-width: 240px; object-fit: contain; }
.sb-logo-text { font-family: var(--f-head); font-size: 1.35rem; font-weight: 700; letter-spacing: .01em; }
.sb-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.sb-nav-link { position: relative; text-decoration: none; font-weight: 500; font-size: .98rem; opacity: .86; transition: opacity .15s, color .15s; }
.sb-nav-link:hover { opacity: 1; color: var(--c-primary); }
.sb-nav-link.is-active { opacity: 1; }
.sb-nav-link.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--c-primary); }
.sb-header.is-transparent:not(.is-scrolled) .sb-nav-link:hover { color: #fff; }
.sb-burger { display: none; width: 44px; height: 44px; margin-right: -8px; border: 0; background: none; color: inherit; cursor: pointer; padding: 10px; }
.sb-burger span { display: block; height: 2px; margin: 5px 0; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.sb-header.is-open .sb-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sb-header.is-open .sb-burger span:nth-child(2) { opacity: 0; }
.sb-header.is-open .sb-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sb-header--centered .sb-header-inner { flex-direction: column; gap: 10px; padding: 16px 0 12px; }
.sb-header--minimal .sb-nav { display: none; }
.sb-header--minimal .sb-burger { display: block; }

@media (max-width: 900px) {
    .sb-header .sb-nav { display: none; }
    .sb-header .sb-burger { display: block; }
    .sb-header--centered .sb-header-inner { flex-direction: row; padding: 0; }
}
.sb-header.is-open .sb-nav {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--c-bg);
    color: var(--c-text);
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .35);
}
.sb-header.is-open .sb-nav-link { padding: 14px 4px; border-bottom: 1px solid var(--c-border); opacity: 1; }
.sb-header.is-open .sb-nav-link.is-active::after { display: none; }
.sb-header.is-open .sb-nav-cta { padding-top: 16px; }
.sb-header.is-open .sb-nav-cta .sb-btn { width: 100%; }

/* ---------- Hero ---------- */
.sb-hero { position: relative; overflow: hidden; padding: 0; background: var(--c-bg); }
.sb-hero--h-md { --hero-h: min(600px, 78vh); }
.sb-hero--h-lg { --hero-h: min(760px, 90vh); }
.sb-hero--h-full { --hero-h: 100svh; }
.sb-hero-title { font-size: clamp(2.4rem, 5.8vw, 4.6rem); font-weight: 700; line-height: 1.12; margin-bottom: .35em; letter-spacing: -.01em; }
.sb-hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--c-muted); max-width: 36em; margin: 0; }
.sb-hero-price { display: flex; align-items: baseline; gap: .45em; margin: 22px 0 0; font-size: 1.2rem; }
.sb-hero-price strong { font-family: var(--f-head); font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; color: var(--c-text); }
.sb-hero .sb-btns { margin-top: 32px; }
.sb-hero .sb-eyebrow { color: var(--c-accent); }

/* split */
.sb-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(28px, 5vw, 72px); min-height: var(--hero-h); padding: 56px 0; position: relative; z-index: 1; }
.sb-hero--split-reverse .sb-hero-text { order: 2; }
.sb-hero-media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: calc(var(--r) * 1.6); box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .55); }
.sb-img-circle .sb-hero-media img { aspect-ratio: 1; border-radius: 50%; }
.sb-hero.no-image .sb-hero-grid { grid-template-columns: minmax(0, 760px); }
.sb-hero-bleed { position: absolute; inset: 0 0 0 42%; z-index: 0; }
.sb-hero-bleed img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%); mask-image: linear-gradient(to right, transparent 0%, #000 38%); }
.sb-hero--split-reverse .sb-hero-bleed { inset: 0 42% 0 0; }
.sb-hero--split-reverse .sb-hero-bleed img { -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 38%); mask-image: linear-gradient(to left, transparent 0%, #000 38%); }
.sb-img-bleed .sb-hero-grid { grid-template-columns: minmax(0, 560px); }
.sb-hero--split-reverse.sb-img-bleed .sb-hero-grid { justify-content: end; }
.sb-hero--split-reverse.sb-img-bleed .sb-hero-text { order: 0; }

/* overlay (full background image) */
.sb-hero--overlay { color: #fff; min-height: var(--hero-h); display: flex; align-items: center; background: var(--c-dark); }
.sb-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: sbHeroZoom 14s ease-out forwards; }
.sb-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, var(--shade, .55)) 0%, rgba(0, 0, 0, calc(var(--shade, .55) * .55)) 100%); }
.sb-hero--overlay.sb-align-center .sb-hero-shade { background: rgba(0, 0, 0, var(--shade, .55)); }
.sb-hero-inner { position: relative; z-index: 1; padding: 120px 0 88px; }
.sb-hero--overlay .sb-hero-text { max-width: 720px; }
.sb-hero--overlay .sb-hero-sub, .sb-hero--overlay .sb-hero-price strong { color: #fff; }
.sb-hero--overlay .sb-hero-sub { opacity: .88; }
.sb-align-center .sb-hero-text { margin-inline: auto; text-align: center; }
.sb-align-center .sb-hero-sub { margin-inline: auto; }
.sb-align-center .sb-btns, .sb-align-center .sb-hero-price { justify-content: center; }
@keyframes sbHeroZoom { to { transform: scale(1); } }

/* centered */
.sb-hero--centered .sb-hero-inner { padding: clamp(80px, 10vw, 130px) 0 clamp(64px, 8vw, 100px); text-align: center; }
.sb-hero--centered .sb-hero-text { max-width: 820px; margin-inline: auto; }
.sb-hero--centered .sb-hero-sub { margin-inline: auto; }
.sb-hero--centered .sb-btns, .sb-hero--centered .sb-hero-price { justify-content: center; }
.sb-hero--centered .sb-hero-media { margin-top: clamp(40px, 6vw, 64px); }
.sb-hero--centered .sb-hero-media img { aspect-ratio: 21 / 9; }

@media (max-width: 900px) {
    .sb-hero-grid, .sb-img-bleed .sb-hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 48px 0 56px; }
    .sb-hero--split-reverse .sb-hero-text { order: 0; }
    .sb-hero-bleed, .sb-hero--split-reverse .sb-hero-bleed { position: relative; inset: auto; height: 300px; margin-top: 0; }
    .sb-hero-bleed img, .sb-hero--split-reverse .sb-hero-bleed img { -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); }
    .sb-img-bleed { display: flex; flex-direction: column-reverse; }
    .sb-hero-inner { padding: 110px 0 64px; }
}

/* ---------- Features ---------- */
.sb-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: var(--r);
    background: color-mix(in srgb, var(--c-primary) 13%, transparent);
    color: var(--c-primary);
    font-size: 1.55rem;
}
.sb-bg-primary .sb-feature-icon { background: rgba(255, 255, 255, .16); color: inherit; }
.sb-bg-dark .sb-feature-icon { background: color-mix(in srgb, var(--c-accent) 16%, transparent); color: var(--c-accent); }
.sb-feature h3 { font-size: 1.15rem; margin: 18px 0 8px; }
.sb-feature p { margin: 0; color: var(--c-muted); }
.sb-bg-primary .sb-feature p, .sb-bg-dark .sb-feature p { color: inherit; opacity: .8; }
.sb-features--cards .sb-feature { padding: 30px 28px; border: 1px solid var(--c-border); border-radius: var(--r); background: var(--c-surface); transition: transform .25s, box-shadow .25s; }
.sb-features--cards .sb-feature:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .35); }
.sb-bg-primary.sb-features--cards .sb-feature, .sb-bg-dark.sb-features--cards .sb-feature { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.sb-features--icons .sb-feature { text-align: center; }
.sb-features--icons .sb-feature-icon { width: 72px; height: 72px; border-radius: 50%; font-size: 1.9rem; }
.sb-features--list .sb-feature { display: flex; gap: 18px; align-items: flex-start; }
.sb-features--list .sb-feature h3 { margin-top: 4px; }

/* ---------- About ---------- */
.sb-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.sb-about--image-right .sb-about-media { order: 2; }
.sb-about.no-image .sb-about-grid { grid-template-columns: minmax(0, 780px); justify-content: center; }
.sb-about-media { position: relative; }
.sb-about-img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: calc(var(--r) * 1.4); }
.sb-about-img2 { position: absolute; right: -18px; bottom: -26px; width: 42%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); border: 6px solid var(--c-bg); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .45); }
.sb-about--image-left .sb-about-img2 { right: auto; left: -18px; }
.sb-bg-alt .sb-about-img2 { border-color: var(--c-alt); }
.sb-about-text .sb-prose { color: var(--c-muted); font-size: 1.05rem; }
.sb-bg-dark .sb-about-text .sb-prose, .sb-bg-primary .sb-about-text .sb-prose { color: inherit; opacity: .85; }
.sb-checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.sb-checks li { display: flex; gap: 10px; align-items: flex-start; }
.sb-checks i { color: var(--c-primary); font-size: 1.15rem; line-height: 1.6; }
.sb-scheme-dark .sb-checks i, .sb-bg-dark .sb-checks i { color: var(--c-accent); }
.sb-about--stacked .sb-about-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
.sb-about--stacked .sb-about-img { aspect-ratio: 21 / 9; }
.sb-about--stacked .sb-about-text { max-width: 760px; margin-inline: auto; text-align: center; }
.sb-about--stacked .sb-checks { justify-content: center; }
.sb-about--stacked .sb-btns { justify-content: center; }
@media (max-width: 900px) {
    .sb-about-grid { grid-template-columns: minmax(0, 1fr); }
    .sb-about--image-right .sb-about-media { order: 0; }
    .sb-about-img2 { right: 12px; bottom: -22px; width: 38%; }
}

/* ---------- Menu ---------- */
.sb-menu-group + .sb-menu-group { margin-top: clamp(40px, 5vw, 64px); }
.sb-menu-cat { display: flex; align-items: center; gap: 18px; margin: 0 0 24px; font-size: 1.35rem; }
.sb-menu-cat::before, .sb-menu-cat::after { content: ''; flex: 1; height: 1px; background: var(--c-border); }
.sb-menu-cat span { color: var(--c-primary); }
.sb-scheme-dark .sb-menu-cat span { color: var(--c-accent); }
.sb-menu-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sb-menu-card h4 { font-size: 1.12rem; margin: 0; }
.sb-menu-card p { margin: 8px 0 0; color: var(--c-muted); font-size: .95rem; }
.sb-menu-line { display: flex; align-items: baseline; gap: 10px; }
.sb-menu-line h4 { margin: 0; font-size: 1.08rem; }
.sb-menu-dots { flex: 1; min-width: 20px; border-bottom: 2px dotted var(--c-border); transform: translateY(-4px); }
.sb-menu-row { padding: 14px 0; }
.sb-menu-row p, .sb-menu-compact p { margin: 4px 0 0; color: var(--c-muted); font-size: .93rem; }
.sb-menu--list .sb-grid { column-gap: clamp(32px, 5vw, 72px); row-gap: 6px; }
.sb-menu-compact { display: flex; gap: 16px; align-items: center; }
.sb-menu-compact img { width: 84px; height: 84px; flex-shrink: 0; object-fit: cover; border-radius: var(--r-sm); }
.sb-menu-compact-body { flex: 1; min-width: 0; }
.sb-menu-ph { display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; flex-shrink: 0; border-radius: var(--r-sm); background: var(--c-alt); color: var(--c-muted); font-size: 1.4rem; }

/* ---------- Gallery ---------- */
.sb-gallery-grid { display: grid; gap: clamp(10px, 1.6vw, 18px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sb-gallery-grid.sb-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sb-gallery-grid.sb-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sb-gallery-item { position: relative; margin: 0; overflow: hidden; border-radius: var(--r); background: var(--c-alt); }
.sb-gallery-item a { display: block; height: 100%; }
.sb-gallery-item img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s ease, filter .3s; }
.sb-gallery-item:hover img { transform: scale(1.06); }
.sb-gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-size: .9rem; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); pointer-events: none; }
.sb-gallery--masonry .sb-gallery-grid { display: block; column-count: 3; column-gap: 16px; }
.sb-gallery--masonry .sb-gallery-grid.sb-cols-2 { column-count: 2; }
.sb-gallery--masonry .sb-gallery-grid.sb-cols-4 { column-count: 4; }
.sb-gallery--masonry .sb-gallery-item { break-inside: avoid; margin-bottom: 16px; }
.sb-gallery--masonry .sb-gallery-item img { aspect-ratio: auto; height: auto; }
.sb-gallery--feature .sb-gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sb-gallery--feature .sb-gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 900px) {
    .sb-gallery-grid, .sb-gallery-grid.sb-cols-4, .sb-gallery--feature .sb-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sb-gallery--masonry .sb-gallery-grid, .sb-gallery--masonry .sb-gallery-grid.sb-cols-4 { column-count: 2; }
}

/* lightbox (site.js) */
.sb-lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, .9); cursor: zoom-out; animation: sbFade .2s ease; }
.sb-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
@keyframes sbFade { from { opacity: 0; } }

/* ---------- Testimonials ---------- */
.sb-testimonial { margin: 0; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.sb-testimonial blockquote { margin: 0; flex: 1; font-size: 1.02rem; }
.sb-stars { color: #f5b301; letter-spacing: 2px; font-size: .95rem; }
.sb-person { display: flex; align-items: center; gap: 12px; }
.sb-person strong { display: block; font-size: .98rem; }
.sb-person small { display: block; color: var(--c-muted); font-size: .86rem; }
.sb-avatar { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c-primary) 18%, transparent); color: var(--c-primary); font-weight: 700; }
.sb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sb-quotes { position: relative; max-width: 860px; margin: 0 auto; text-align: center; }
.sb-quote { display: none; margin: 0; }
.sb-quote.is-active { display: block; animation: sbFade .5s ease; }
.sb-quote p { font-family: var(--f-head); font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.5; margin: 16px 0 26px; }
.sb-quote .sb-person { justify-content: center; text-align: left; }
.sb-dots { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.sb-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: var(--c-border); cursor: pointer; transition: width .2s, background .2s; }
.sb-dots button.is-active { width: 28px; background: var(--c-primary); }

/* ---------- Stats ---------- */
.sb-stat { text-align: center; }
.sb-stat strong { display: block; font-family: var(--f-head); font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.1; color: var(--c-primary); }
.sb-stat span { color: var(--c-muted); }
.sb-bg-primary .sb-stat strong, .sb-bg-primary .sb-stat span { color: inherit; }
.sb-bg-dark .sb-stat strong { color: var(--c-accent); }
.sb-bg-dark .sb-stat span { color: inherit; opacity: .75; }
.sb-stats--cards .sb-stat { padding: 30px 20px; border: 1px solid var(--c-border); border-radius: var(--r); background: var(--c-surface); }
.sb-bg-primary.sb-stats--cards .sb-stat, .sb-bg-dark.sb-stats--cards .sb-stat { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
@media (max-width: 640px) { .sb-stats .sb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }

/* ---------- Team ---------- */
.sb-member { text-align: center; }
.sb-member-photo { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--c-alt); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 700; color: var(--c-primary); margin-bottom: 18px; }
.sb-member-photo img { width: 100%; height: 100%; object-fit: cover; }
.sb-team--round .sb-member-photo { width: 168px; height: 168px; aspect-ratio: 1; margin-inline: auto; border-radius: 50%; }
.sb-member h3 { font-size: 1.12rem; margin: 0 0 2px; }
.sb-member-role { color: var(--c-primary); font-weight: 500; font-size: .93rem; margin: 0 0 8px; }
.sb-member p:last-child { color: var(--c-muted); font-size: .93rem; }

/* ---------- Pricing ---------- */
.sb-pricing-grid { align-items: stretch; }
.sb-plan { position: relative; display: flex; flex-direction: column; padding: 34px 28px 30px; border: 1px solid var(--c-border); border-radius: var(--r); background: var(--c-surface); }
.sb-plan.is-highlight { border: 2px solid var(--c-primary); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--c-primary) 70%, transparent); transform: translateY(-6px); }
.sb-plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 999px; background: var(--c-primary); color: var(--c-on-primary); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.sb-plan h3 { font-size: 1.15rem; margin-bottom: 10px; }
.sb-plan-price { display: flex; align-items: baseline; gap: 6px; margin: 0 0 20px; }
.sb-plan-price strong { font-family: var(--f-head); font-size: 2.4rem; line-height: 1; }
.sb-plan-price span { color: var(--c-muted); }
.sb-plan .sb-checks { margin: 0 0 26px; flex: 1; }
.sb-plan .sb-checks li { font-size: .96rem; }

/* ---------- FAQ ---------- */
.sb-faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.sb-faq-item { border: 1px solid var(--c-border); border-radius: var(--r); background: var(--c-surface); overflow: hidden; }
.sb-faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.04rem; }
.sb-faq-item summary::-webkit-details-marker { display: none; }
.sb-faq-item summary i { color: var(--c-primary); transition: transform .2s; }
.sb-faq-item[open] summary i { transform: rotate(45deg); }
.sb-faq-item .sb-prose { padding: 0 22px 20px; color: var(--c-muted); }
.sb-faq-col h3 { font-size: 1.08rem; }
.sb-faq-col .sb-prose { color: var(--c-muted); }
.sb-bg-dark .sb-faq-item, .sb-bg-primary .sb-faq-item { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }

/* ---------- CTA ---------- */
.sb-cta-inner { max-width: 760px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.sb-cta-inner .sb-sub { margin-top: 4px; }
.sb-cta--band { background: var(--c-primary); color: var(--c-on-primary); }
.sb-cta--band .sb-sub { color: inherit; opacity: .86; }
.sb-cta--band .sb-btn--primary { background: var(--c-on-primary); color: var(--c-primary); box-shadow: none; }
.sb-cta--image { color: #fff; overflow: hidden; background: var(--c-dark); padding: clamp(90px, 11vw, 150px) 0; }
.sb-cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sb-cta-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .58); }
.sb-cta--image .sb-sub { color: #fff; opacity: .86; }
.sb-cta--card { background: var(--c-bg); }
.sb-cta-card { position: relative; overflow: hidden; padding: clamp(44px, 6vw, 76px) clamp(24px, 5vw, 64px); border-radius: calc(var(--r) * 1.6); background: var(--c-primary); color: var(--c-on-primary); }
.sb-cta-card::before, .sb-cta-card::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.sb-cta-card::before { width: 320px; height: 320px; right: -90px; top: -120px; }
.sb-cta-card::after { width: 220px; height: 220px; left: -70px; bottom: -110px; }
.sb-cta-card .sb-sub { color: inherit; opacity: .86; }
.sb-cta-card .sb-btn--primary { background: var(--c-on-primary); color: var(--c-primary); box-shadow: none; }

/* ---------- Contact ---------- */
.sb-contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.sb-contact-grid.no-map { grid-template-columns: minmax(0, 720px); justify-content: center; }
.sb-contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.sb-contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.sb-contact-list .sb-feature-icon { width: 46px; height: 46px; font-size: 1.2rem; }
.sb-contact-list small { display: block; color: var(--c-muted); font-size: .85rem; }
.sb-contact-list a, .sb-contact-list span { font-weight: 500; text-decoration: none; word-break: break-word; }
.sb-contact-list a:hover { color: var(--c-primary); }
.sb-hours-box { margin-top: 28px; padding: 22px 24px; border: 1px solid var(--c-border); border-radius: var(--r); background: var(--c-surface); }
.sb-hours-box h3, .sb-hours-card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.sb-hours-box i, .sb-hours-card h3 i { color: var(--c-primary); }
.sb-hours { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sb-hours li { display: flex; justify-content: space-between; gap: 16px; }
.sb-hours li span { color: var(--c-muted); }
.sb-map { position: relative; min-height: 380px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--c-border); background: var(--c-alt); }
.sb-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sb-scheme-dark .sb-map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.8) brightness(.95); }
.sb-map--ph { display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--c-muted); background: var(--c-alt) repeating-linear-gradient(45deg, transparent 0 22px, color-mix(in srgb, var(--c-border) 55%, transparent) 22px 23px); }
.sb-map--ph span { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 600; }
.sb-map--ph i { font-size: 2rem; color: var(--c-primary); }
.sb-map--ph small { font-weight: 400; font-size: .85rem; max-width: 28em; }
.sb-contact-cards { margin-bottom: 24px; }
.sb-contact-card { padding: 28px 24px; text-align: center; }
.sb-contact-card h3 { font-size: 1.05rem; margin: 14px 0 6px; }
.sb-contact-card a { color: var(--c-primary); font-weight: 600; text-decoration: none; word-break: break-word; }
.sb-hours-card { padding: 24px; margin-bottom: 24px; }
.sb-contact--cards .sb-map { min-height: 340px; }
.sb-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.sb-social a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--c-border); color: inherit; font-size: 1.1rem; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.sb-social a:hover { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
@media (max-width: 900px) {
    .sb-contact-grid { grid-template-columns: minmax(0, 1fr); }
    .sb-map { min-height: 300px; }
}

/* ---------- Text / video ---------- */
.sb-text-body { max-width: 760px; }
.sb-text--narrow .sb-text-body { margin-inline: auto; }
.sb-text--wide .sb-text-body { max-width: none; }
.sb-text--center .sb-text-body { margin-inline: auto; text-align: center; }
.sb-text-body .sb-prose { font-size: 1.06rem; }
.sb-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); max-width: 1000px; margin-inline: auto; }
.sb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sb-video--empty { display: flex; align-items: center; justify-content: center; color: #aaa; background: var(--c-alt); box-shadow: none; }
.sb-video--ph img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.sb-video--ph span { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 76px; height: 54px; margin: -27px 0 0 -38px; border-radius: 16px; background: #ff0033; color: #fff; font-size: 2.2rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.sb-video-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.sb-video-split .sb-head { margin-bottom: 0; }
@media (max-width: 900px) { .sb-video-split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.sb-footer { background: var(--c-dark); color: var(--c-on-dark); padding: clamp(56px, 7vw, 84px) 0 28px; font-size: .96rem; }
.sb-scheme-dark .sb-footer { border-top: 1px solid var(--c-border); }
.sb-footer a { text-decoration: none; opacity: .82; transition: opacity .15s, color .15s; }
.sb-footer a:hover { opacity: 1; color: var(--c-accent); }
.sb-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.1fr; gap: clamp(28px, 4vw, 56px); }
.sb-footer-col h4 { font-size: 1rem; margin-bottom: 16px; letter-spacing: .02em; }
.sb-footer-brand p { opacity: .72; margin-top: 16px; }
.sb-footer-logo { opacity: 1 !important; }
.sb-footer-links { display: grid; gap: 10px; }
.sb-footer .sb-contact-list { gap: 12px; }
.sb-footer .sb-contact-list li { gap: 10px; }
.sb-footer .sb-contact-list i { color: var(--c-accent); margin-top: 3px; }
.sb-footer .sb-hours li span { color: inherit; opacity: .72; }
.sb-footer .sb-social a { border-color: rgba(255, 255, 255, .2); opacity: 1; }
.sb-footer .sb-social a:hover { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent); }
.sb-copy { margin: clamp(40px, 5vw, 56px) 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; opacity: .6; text-align: center; }
.sb-footer--simple { text-align: center; }
.sb-footer--simple .sb-footer-logo { justify-content: center; }
.sb-footer--simple .sb-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 22px; }
.sb-footer--simple .sb-social { justify-content: center; }
@media (max-width: 900px) { .sb-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
    .sb-footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 20px; }
    .sb-footer-brand, .sb-footer-contact { grid-column: 1 / -1; }
    .sb-footer-hours { order: 2; }
    .sb-footer-contact { order: 3; }
}

/* ---------- Floating contact ---------- */
.sb-float { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: flex; flex-direction: column; gap: 12px; }
.sb-float-btn { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; color: #fff; font-size: 1.45rem; text-decoration: none; box-shadow: 0 12px 26px -8px rgba(0, 0, 0, .45); transition: transform .18s; }
.sb-float-btn:hover { transform: scale(1.08); }
.sb-float-line { background: #06c755; }
.sb-float-phone { background: var(--c-primary); color: var(--c-on-primary); }

/* ---------- Template demo bar (preview pages only) ---------- */
.sb-demo {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 90;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 7px 7px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .94);
    color: #fff;
    box-shadow: 0 18px 44px -12px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
    font: 500 14px/1.3 system-ui, -apple-system, 'Segoe UI', 'Noto Sans Thai', sans-serif;
    white-space: nowrap;
}
.sb-demo a { text-decoration: none; color: #fff; }
.sb-demo-back { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.sb-demo-back:hover { background: rgba(255, 255, 255, .2); }
.sb-demo-text { display: flex; flex-direction: column; min-width: 0; padding: 0 8px 0 2px; }
.sb-demo-text small { font-size: 11px; opacity: .6; }
.sb-demo-text strong { overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.sb-demo-btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 999px; background: #2563eb; font-weight: 600; transition: background .15s; }
.sb-demo-btn:hover { background: #1d4ed8; }
.sb-demo-btn--ghost { background: rgba(255, 255, 255, .12); }
.sb-demo-btn--ghost:hover { background: rgba(255, 255, 255, .22); }
.sb-has-demo .sb-float { bottom: 88px; }
.sb-has-demo .sb-footer { padding-bottom: 96px; }
@media (max-width: 640px) {
    .sb-demo { left: 10px; right: 10px; bottom: 10px; transform: none; border-radius: 16px; }
    .sb-demo-text { flex: 1; }
    .sb-demo-btn { padding: 10px 14px; }
    .sb-demo-btn--ghost { display: none; }
    .sb-has-demo .sb-float { bottom: 80px; }
}

/* ---------- Reveal on scroll (site.js) ---------- */
.sb-js .sb-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.sb-js .sb-reveal.is-in { opacity: 1; transform: none; }
.sb-edit .sb-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .sb-js .sb-reveal { opacity: 1; transform: none; transition: none; }
    .sb-hero-bg { animation: none; transform: none; }
    .sb-card, .sb-card-media img, .sb-gallery-item img, .sb-btn { transition: none; }
}

/* ---------- Editor preview hooks ---------- */
.sb-edit [data-sb-section], .sb-edit [data-sb-header], .sb-edit .sb-footer { cursor: pointer; }
.sb-edit [data-sb-section]:hover, .sb-edit [data-sb-header]:hover, .sb-edit .sb-footer:hover { outline: 2px dashed #3b82f6; outline-offset: -4px; }
.sb-edit .is-sb-selected, .sb-edit .is-sb-selected:hover { outline: 3px solid #2563eb; outline-offset: -3px; }
.sb-edit [data-sb-label]::after {
    content: attr(data-sb-label);
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 30;
    padding: 3px 10px;
    border-radius: 6px;
    background: #2563eb;
    color: #fff;
    font: 600 12px/1.6 system-ui, -apple-system, 'Segoe UI', sans-serif;
    letter-spacing: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
}
.sb-edit [data-sb-label]:hover::after, .sb-edit [data-sb-label].is-sb-selected::after { opacity: 1; }
.sb-edit .sb-header.is-transparent { position: absolute; }
.sb-edit .sb-hero-bg { animation: none; transform: none; }
.sb-edit .sb-float { pointer-events: none; }

/* ---- Product / menu item detail window (site.js) ---- */
body:not(.sb-edit) .sb-product { cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
body:not(.sb-edit) .sb-product:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .35); }
body:not(.sb-edit) .sb-product:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 3px; }
body.sb-pm-open { overflow: hidden; }
.sb-pm { position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .62); animation: sbFade .2s ease; }
.sb-pm-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); width: min(980px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--c-surface); color: var(--c-text); border-radius: var(--r, 16px); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.sb-pm-media { background: var(--c-alt); min-height: 280px; }
.sb-pm-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sb-pm-ph { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 280px; font-size: 3rem; color: var(--c-muted); }
.sb-pm-info { padding: clamp(22px, 4vw, 40px); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.sb-pm-cat { font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--c-muted); }
.sb-pm-name { margin: 0; font-size: clamp(1.35rem, 2.6vw, 1.8rem); line-height: 1.3; }
.sb-pm-price { font-size: 1.5rem; }
.sb-pm-desc { margin: 0; font-size: 1.02rem; }
.sb-pm-detail { color: var(--c-muted); font-size: .97rem; line-height: 1.75; }
.sb-pm-detail p { margin: 0 0 .8em; }
.sb-pm-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 12px; width: 100%; }
.sb-pm-btns .sb-btn { flex: 1 1 200px; justify-content: center; }
.sb-pm-close { position: absolute; top: 10px; right: 12px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.sb-pm-close:hover { background: rgba(0, 0, 0, .75); }
@media (max-width: 720px) {
    .sb-pm { padding: 0; align-items: flex-end; }
    .sb-pm-panel { grid-template-columns: 1fr; max-height: 92vh; border-radius: 18px 18px 0 0; }
    .sb-pm-media { min-height: 0; aspect-ratio: 4 / 3; }
}
