/**
 * Static Builder - Frontend Block Styles
 * Pure semantic CSS for frozen output
 * Zero JavaScript dependencies
 */

/* Variables */
:root {
    --sb-primary: #6366f1;
    --sb-accent: var(--sb-primary);
    --sb-text: #1f2937;
    --sb-text-light: #6b7280;
    --sb-bg: #ffffff;
    --sb-bg-alt: #f8fafc;
    --sb-border: #e5e7eb;
    --sb-radius: 8px;
    --sb-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --sb-shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --sb-container: 1200px;
    --sb-gap: 32px;
}

/* Dark Mode */
.sb-dark {
    --sb-text: #ffffff;
    --sb-text-light: rgba(255,255,255,0.7);
    --sb-bg: #1a1a2e;
    --sb-border: rgba(255,255,255,0.1);
    color: #ffffff;
}

/* Global Style Overrides - inherit custom text color */
.sb-section[style*="--sb-text-color"] *:not(.sb-btn) {
    color: var(--sb-text-color);
}

.sb-section[style*="--sb-text-color"] .sb-btn {
    /* Buttons keep their own colors */
}

/* Reset */
.sb-page * {
    box-sizing: border-box;
}

.sb-page {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--sb-text);
    line-height: 1.6;
}

/* Hide stray empty p tags from wpautop that break flex/grid layouts */
.sb-section > p:empty,
.sb-section > p:not([class]),
.sb-container > p:empty,
.sb-columns__grid > p,
.sb-image-text__grid > p,
.sb-column > p:empty,
.sb-hero__inner > p:empty,
.sb-features__grid > p:empty,
.sb-team__grid > p:empty,
.sb-row > p:empty,
.sb-row__columns > p:empty,
.sb-col > p:empty {
    display: none !important;
}

/* Container */
.sb-container {
    width: 100%;
    max-width: var(--sb-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================
   HEADER BLOCK
   ===================== */

.sb-header {
    background: #fff;
    border-bottom: 1px solid var(--sb-border);
    z-index: 1000;
}

.sb-header--sticky {
    position: sticky;
    top: 0;
}

.sb-header--dark {
    background: #1a1a2e;
    border-bottom-color: rgba(255,255,255,0.1);
}

.sb-header--transparent {
    background: transparent;
    border-bottom: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.sb-header--glass {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sb-header__container {
    display: flex;
    align-items: center;
    gap: var(--menu-spacing, 32px);
    max-width: var(--sb-container);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-height, 72px);
}

/* Push actions (cart, hamburger) to the right */
.sb-header__actions {
    margin-left: auto;
}

/* Height now controlled by --header-height CSS variable */

.sb-header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--sb-text);
    font-weight: 700;
    font-size: 1.25rem;
}

.sb-header--dark .sb-header__logo,
.sb-header--transparent .sb-header__logo {
    color: #fff;
}

.sb-header__logo img {
    display: block;
    height: auto;
}

.sb-header__logo-text {
    font-weight: 700;
    font-size: 1.25rem;
}

.sb-header__nav {
    display: flex;
    align-items: center;
}

.sb-header__menu {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sb-header__menu-item {
    position: relative;
}

.sb-header__menu-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    color: var(--sb-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.sb-header--dark .sb-header__menu-link,
.sb-header--transparent .sb-header__menu-link {
    color: rgba(255,255,255,0.9);
}

.sb-header--dark .sb-header__cart,
.sb-header--transparent .sb-header__cart {
    color: rgba(255,255,255,0.9);
}

.sb-header__menu-link:hover {
    color: var(--sb-primary);
}

.sb-header__menu-chevron {
    transition: transform 0.2s;
}

.sb-header__menu-item:hover .sb-header__menu-chevron {
    transform: rotate(180deg);
}

.sb-header__cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--sb-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    margin-left: 24px;
    transition: background 0.2s, transform 0.2s;
}

.sb-header__cta:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

.sb-header__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.sb-header__toggle span,
.sb-header__toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--sb-text);
    transition: transform 0.3s, opacity 0.3s;
}

.sb-header--dark .sb-header__toggle span,
.sb-header--dark .sb-header__toggle-bar,
.sb-header--transparent .sb-header__toggle span,
.sb-header--transparent .sb-header__toggle-bar {
    background: #fff;
}

/* Hamburger to X animation when menu open */
.sb-mobile-menu-open .sb-header__toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.sb-mobile-menu-open .sb-header__toggle span:nth-child(2) {
    opacity: 0;
}

.sb-mobile-menu-open .sb-header__toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Centered Logo Layout */
.sb-header--logo-center .sb-header__container {
    justify-content: center;
    position: relative;
}

.sb-header--logo-center .sb-header__logo {
    position: relative;
    z-index: 2;
}

/* Split Menu - items on both sides of centered logo */
.sb-header--logo-center.sb-header--menu-split .sb-header__container {
    display: flex;
    justify-content: center;
    gap: var(--menu-spacing, 60px);
}

.sb-header--logo-center.sb-header--menu-split .sb-header__nav--left,
.sb-header--logo-center.sb-header--menu-split .sb-header__nav--right {
    flex: 0 0 auto;
}

.sb-header--logo-center.sb-header--menu-split .sb-header__nav--left {
    justify-content: flex-end;
}

.sb-header--logo-center.sb-header--menu-split .sb-header__nav--right {
    justify-content: flex-start;
}

/* Non-split centered logo - menu after logo */
.sb-header--logo-center:not(.sb-header--menu-split) .sb-header__nav--desktop {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    background: inherit;
    padding: 10px 20px;
    border-radius: 0 0 8px 8px;
    display: none; /* Hidden by default, show on hover or always based on preference */
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sb-header__nav {
        display: none;
    }
    
    .sb-header__cta {
        display: none;
    }
    
    .sb-header__toggle {
        display: flex;
    }
}

/* =====================
   MEGA MENU - Desktop Dropdown
   ===================== */

.sb-mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 24px;
    min-width: 400px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    transform: translateX(-50%) translateY(10px);
    z-index: 1000;
}

.sb-header__menu-item:hover .sb-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.sb-mega-menu__container {
    display: flex;
    gap: 24px;
}

/* Featured images grid in mega menu */
.sb-mega-menu__featured {
    display: grid;
    grid-template-columns: repeat(var(--featured-columns, 2), 1fr);
    gap: 16px;
    flex-shrink: 0;
}

.sb-mega-menu__featured-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--sb-text);
    transition: opacity 0.2s;
}

.sb-mega-menu__featured-item:hover {
    opacity: 0.8;
}

.sb-mega-menu__featured-image {
    width: 120px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.sb-mega-menu__featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sb-mega-menu__featured-item span {
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: center;
}

/* Links in mega menu */
.sb-mega-menu__links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}

.sb-mega-menu__link {
    display: block;
    padding: 8px 12px;
    color: var(--sb-text);
    text-decoration: none;
    font-size: 0.9375rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.sb-mega-menu__link:hover {
    background: var(--sb-bg-alt);
    color: var(--sb-primary);
}

/* =====================
   MOBILE MENU - GUCCI STYLE
   White background, multi-panel navigation
   ===================== */

.sb-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.4s, opacity 0.4s ease;
}

.sb-mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.sb-mobile-menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}

.sb-mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden; /* Changed from overflow-y: auto - stack handles scroll */
    -webkit-overflow-scrolling: touch;
}

.sb-mobile-menu.is-open .sb-mobile-menu__panel {
    transform: translateX(0);
}

/* Fullscreen mode - remove max-width constraint */
.sb-header--mobile-fullscreen .sb-mobile-menu__panel {
    max-width: none;
}

/* =====================
   MOBILE MENU STACK (Multi-level)
   Fixed: proper z-index and visibility
   ===================== */

.sb-mobile-menu__stack {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.sb-mobile-menu__level {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.4s;
    overflow-y: auto;
    /* CRITICAL: Hide inactive levels properly */
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
}

.sb-mobile-menu__level--active {
    transform: translateX(0);
    /* CRITICAL: Show active level */
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
}

.sb-mobile-menu__level--prev {
    transform: translateX(-30%);
    /* Still visible during transition, but not clickable */
    visibility: visible;
    pointer-events: none;
    z-index: 1;
}

.sb-mobile-menu__scroll {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 24px;
}

/* =====================
   MENU HEADER
   ===================== */

.sb-mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
    min-height: 72px;
}

.sb-mobile-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 10;
}

.sb-mobile-menu__close:hover {
    transform: scale(1.05);
}

.sb-mobile-menu__close svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    stroke-width: 2;
}

/* =====================
   BACK NAVIGATION
   ===================== */

.sb-mobile-menu__back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 24px;
    background: none;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    font-size: 0.875rem;
    font-weight: 500;
    color: #000;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-height: 60px;
    width: 100%;
    text-align: left;
}

.sb-mobile-menu__back:hover {
    background: #f8f8f8;
}

/* =====================
   SUBMENU TITLE
   ===================== */

.sb-mobile-menu__title {
    padding: 24px 24px 16px;
    font-size: 1.5rem;
    font-weight: 400;
    color: #000;
    letter-spacing: 0.02em;
    margin: 0;
}

/* =====================
   MAIN NAVIGATION LIST
   ===================== */

.sb-mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 24px;
}

.sb-mobile-menu__item {
    border-bottom: 1px solid #e5e5e5;
}

.sb-mobile-menu__item:last-child {
    border-bottom: none;
}

.sb-mobile-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    color: #000;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: opacity 0.2s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.sb-mobile-menu__link:hover {
    opacity: 0.6;
}

/* Chevron arrow for items with children */
.sb-mobile-menu__arrow {
    color: #000;
}

/* =====================
   FEATURED IMAGES IN MOBILE SUBMENU
   Configurable grid columns via CSS variable
   ===================== */

.sb-mobile-menu__featured {
    display: grid;
    grid-template-columns: repeat(var(--featured-columns, 2), 1fr);
    gap: 16px;
    padding: 0 24px 24px;
}

.sb-mobile-menu__featured-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #000;
}

.sb-mobile-menu__featured-image {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.sb-mobile-menu__featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sb-mobile-menu__featured-title {
    font-size: 0.8125rem;
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.02em;
}

/* =====================
   SECONDARY LINKS
   ===================== */

.sb-mobile-menu__secondary {
    padding: 24px;
    border-top: 1px solid #e5e5e5;
    margin-top: auto;
}

.sb-mobile-menu__secondary-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    color: #666;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.sb-mobile-menu__secondary-link:hover {
    color: #000;
}

/* =====================
   ANIMATION - Panel transitions
   ===================== */

/* Stagger animation for menu items - only on active level */
.sb-mobile-menu.is-open .sb-mobile-menu__level--active .sb-mobile-menu__item {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.3s ease forwards;
}

.sb-mobile-menu.is-open .sb-mobile-menu__level--active .sb-mobile-menu__item:nth-child(1) { animation-delay: 0.1s; }
.sb-mobile-menu.is-open .sb-mobile-menu__level--active .sb-mobile-menu__item:nth-child(2) { animation-delay: 0.15s; }
.sb-mobile-menu.is-open .sb-mobile-menu__level--active .sb-mobile-menu__item:nth-child(3) { animation-delay: 0.2s; }
.sb-mobile-menu.is-open .sb-mobile-menu__level--active .sb-mobile-menu__item:nth-child(4) { animation-delay: 0.25s; }
.sb-mobile-menu.is-open .sb-mobile-menu__level--active .sb-mobile-menu__item:nth-child(5) { animation-delay: 0.3s; }
.sb-mobile-menu.is-open .sb-mobile-menu__level--active .sb-mobile-menu__item:nth-child(6) { animation-delay: 0.35s; }
.sb-mobile-menu.is-open .sb-mobile-menu__level--active .sb-mobile-menu__item:nth-child(7) { animation-delay: 0.4s; }
.sb-mobile-menu.is-open .sb-mobile-menu__level--active .sb-mobile-menu__item:nth-child(8) { animation-delay: 0.45s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Body scroll lock when menu open */
.sb-mobile-menu-open {
    overflow: hidden;
}

/* =====================
   FOOTER BLOCK
   ===================== */

.sb-footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.7);
    padding: 48px 0;
}

.sb-footer__container {
    max-width: var(--sb-container);
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.sb-footer p {
    margin: 0;
}

/* =====================
   ROW/COLUMN SYSTEM (v2)
   ===================== */

.sb-row {
    position: relative;
}

.sb-row__columns {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sb-gap);
}

.sb-col {
    flex: 1 1 auto;
    min-width: 0;
}

/* Column width percentages */
.sb-col[style*="flex:0 0 25%"] { flex: 0 0 25%; max-width: 25%; }
.sb-col[style*="flex:0 0 33%"] { flex: 0 0 33%; max-width: 33%; }
.sb-col[style*="flex:0 0 50%"] { flex: 0 0 50%; max-width: 50%; }
.sb-col[style*="flex:0 0 66%"] { flex: 0 0 66%; max-width: 66%; }
.sb-col[style*="flex:0 0 75%"] { flex: 0 0 75%; max-width: 75%; }

/* Stack columns on mobile */
@media (max-width: 768px) {
    .sb-row__columns {
        flex-direction: column;
    }
    
    .sb-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Section Base */
.sb-section {
    position: relative;
    padding: 80px 0;
    color: var(--sb-text);
    background: var(--sb-bg);
}

/* Width Variations */
.sb-width--boxed .sb-container {
    max-width: var(--sb-container); /* 1200px default */
}

.sb-width--wide .sb-container {
    max-width: 1400px;
}

.sb-width--narrow .sb-container {
    max-width: 800px;
}

.sb-width--full {
    padding-left: 0;
    padding-right: 0;
}

.sb-width--full .sb-container {
    max-width: 100%;
    padding: 0 48px;
}

@media (max-width: 768px) {
    .sb-width--full .sb-container {
        padding: 0 24px;
    }
}

/* Site-level Layout Width (applied to body) */
body.sb-layout--full .sb-section:not(.sb-width--boxed):not(.sb-width--narrow):not(.sb-width--wide) .sb-container {
    max-width: 100%;
}

body.sb-layout--wide .sb-section:not(.sb-width--boxed):not(.sb-width--narrow):not(.sb-width--full) .sb-container {
    max-width: 1400px;
}

body.sb-layout--narrow .sb-section:not(.sb-width--boxed):not(.sb-width--wide):not(.sb-width--full) .sb-container {
    max-width: 800px;
}

/* Section Spacing Variations */
body.sb-spacing--compact .sb-section {
    padding-top: 40px;
    padding-bottom: 40px;
}

body.sb-spacing--spacious .sb-section {
    padding-top: 120px;
    padding-bottom: 120px;
}

@media (max-width: 768px) {
    body.sb-spacing--compact .sb-section {
        padding-top: 24px;
        padding-bottom: 24px;
    }
    body.sb-spacing--spacious .sb-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

/* Grid System */
.sb-grid {
    display: grid;
    gap: var(--sb-gap);
}

.sb-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sb-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sb-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .sb-grid--2,
    .sb-grid--3,
    .sb-grid--4 {
        grid-template-columns: 1fr;
    }
}

/* Section Spacing */
.sb-spacing--none { padding: 0; }
.sb-spacing--small { padding: 48px 0; }
.sb-spacing--medium { padding: 80px 0; }
.sb-spacing--large { padding: 120px 0; }

@media (max-width: 768px) {
    .sb-section { padding: 56px 0; }
    .sb-spacing--small { padding: 32px 0; }
    .sb-spacing--medium { padding: 56px 0; }
    .sb-spacing--large { padding: 80px 0; }
}

/* Section Background */
.sb-section__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.sb-section__bg-img,
.sb-section__bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sb-section__overlay {
    position: absolute;
    inset: 0;
    background: #000;
}

.sb-section > .sb-container {
    position: relative;
    z-index: 1;
}

/* Dark section text */
.sb-dark,
.sb-dark h1, .sb-dark h2, .sb-dark h3, .sb-dark h4,
.sb-dark p, .sb-dark span, .sb-dark li {
    color: #ffffff;
}

.sb-dark .sb-hero__subhead,
.sb-dark .sb-features__subhead,
.sb-dark .sb-feature__desc,
.sb-dark .sb-cta__text {
    color: rgba(255,255,255,0.8);
}

/* =====================
   HERO BLOCK
   ===================== */

.sb-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 60vh;
}

.sb-hero__inner {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.sb-hero--left .sb-hero__inner {
    text-align: left;
    margin: 0;
}

.sb-hero--split > .sb-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.sb-hero--split .sb-hero__inner {
    text-align: left;
    margin: 0;
}

.sb-hero__eyebrow {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--sb-primary);
    font-size: 14px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 24px;
}

.sb-dark .sb-hero__eyebrow {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.sb-hero__headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 24px;
    letter-spacing: -0.02em;
    color: var(--sb-text);
}

.sb-dark .sb-hero__headline {
    color: #ffffff;
}

.sb-hero__subhead {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--sb-text-light);
    line-height: 1.6;
    margin: 0 0 40px;
    max-width: 600px;
}

.sb-hero--centered .sb-hero__subhead {
    margin-left: auto;
    margin-right: auto;
}

.sb-hero__ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.sb-hero--centered .sb-hero__ctas {
    justify-content: center;
}

.sb-hero__media img {
    width: 100%;
    height: auto;
    border-radius: var(--sb-radius);
    box-shadow: var(--sb-shadow-lg);
}

/* Hero Background - defensive !important to override conflicts */
.sb-hero__bg {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0;
    overflow: hidden;
}

.sb-hero__bg-img,
.sb-hero__bg-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* Background size variants */
.sb-hero__bg--cover .sb-hero__bg-img,
.sb-hero__bg--cover .sb-hero__bg-video {
    object-fit: cover;
}

.sb-hero__bg--contain .sb-hero__bg-img,
.sb-hero__bg--contain .sb-hero__bg-video {
    object-fit: contain;
}

.sb-hero__bg--fill .sb-hero__bg-img,
.sb-hero__bg--fill .sb-hero__bg-video {
    object-fit: fill;
}

.sb-hero__bg--none .sb-hero__bg-img,
.sb-hero__bg--none .sb-hero__bg-video {
    object-fit: none;
}

.sb-hero__overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 1;
}

.sb-hero > .sb-container {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .sb-hero {
        min-height: auto;
    }
    
    .sb-hero--split > .sb-container {
        grid-template-columns: 1fr;
    }
    
    .sb-hero__ctas {
        flex-direction: column;
    }
}

/* =====================
   BUTTONS
   ===================== */

.sb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}

.sb-btn--primary {
    background: var(--sb-primary);
    color: #fff;
}

.sb-btn--primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.sb-btn--secondary {
    background: transparent;
    border-color: var(--sb-border);
    color: var(--sb-text);
}

.sb-dark .sb-btn--secondary {
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

.sb-btn--secondary:hover {
    border-color: var(--sb-primary);
    color: var(--sb-primary);
}

.sb-btn--large {
    padding: 18px 36px;
    font-size: 18px;
}

.sb-btn--white {
    background: #fff;
    color: var(--sb-primary);
}

.sb-btn--white:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.sb-btn--outline-white {
    background: transparent;
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

.sb-btn--outline-white:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

/* =====================
   FEATURES BLOCK
   ===================== */

.sb-features__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.sb-features__headline {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--sb-text);
}

.sb-dark .sb-features__headline {
    color: #ffffff;
}

.sb-features__subhead {
    font-size: 1.125rem;
    color: var(--sb-text-light);
    margin: 0;
    line-height: 1.6;
}

.sb-feature {
    text-align: center;
}

.sb-features--align-left .sb-feature {
    text-align: left;
}

.sb-feature__icon {
    margin-bottom: 20px;
}

.sb-feature--icon-plain .sb-feature__icon {
    font-size: 40px;
}

.sb-feature--icon-circle .sb-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    font-size: 28px;
}

.sb-feature--icon-rounded .sb-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    font-size: 28px;
}

.sb-feature__image {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin-bottom: 20px;
    border-radius: var(--sb-radius);
}

.sb-feature__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--sb-text);
}

.sb-dark .sb-feature__title {
    color: #ffffff;
}

.sb-feature__desc {
    font-size: 1rem;
    color: var(--sb-text-light);
    margin: 0;
    line-height: 1.6;
}

.sb-feature__link {
    display: inline-block;
    margin-top: 16px;
    color: var(--sb-primary);
    text-decoration: none;
    font-weight: 500;
}

.sb-feature__link:hover {
    text-decoration: underline;
}

/* =====================
   FAQ ACCORDION BLOCK
   ===================== */

.sb-faq__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.sb-faq__headline {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--sb-text);
}

.sb-faq__subhead {
    font-size: 1.125rem;
    color: var(--sb-text-light);
    margin: 0;
}

.sb-faq--narrow .sb-faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.sb-faq__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sb-faq__item {
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius);
    overflow: hidden;
    background: var(--sb-bg);
}

.sb-faq--simple .sb-faq__item {
    border: none;
    border-bottom: 1px solid var(--sb-border);
    border-radius: 0;
}

.sb-faq--cards .sb-faq__item {
    border: none;
    box-shadow: var(--sb-shadow);
}

.sb-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 20px 24px;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--sb-text);
    cursor: pointer;
    list-style: none;
    background: none;
    text-align: left;
}

.sb-faq__question::-webkit-details-marker {
    display: none;
}

.sb-faq__question::marker {
    display: none;
    content: '';
}

.sb-faq__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform 0.3s ease;
}

.sb-faq__icon::before,
.sb-faq__icon::after {
    content: '';
    position: absolute;
    background: var(--sb-text-light);
    transition: transform 0.3s ease;
}

.sb-faq__icon::before {
    width: 12px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.sb-faq__icon::after {
    width: 2px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.sb-faq__item[open] .sb-faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.sb-faq__answer {
    overflow: hidden;
}

.sb-faq__answer-inner {
    padding: 0 24px 24px;
    color: var(--sb-text-light);
    line-height: 1.7;
}

.sb-faq__answer-inner p {
    margin: 0 0 16px;
}

.sb-faq__answer-inner p:last-child {
    margin-bottom: 0;
}

/* =====================
   TESTIMONIALS BLOCK
   ===================== */

.sb-testimonials__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.sb-testimonials__headline {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--sb-text);
}

.sb-testimonials__subhead {
    font-size: 1.125rem;
    color: var(--sb-text-light);
    margin: 0;
}

.sb-testimonial__inner {
    height: 100%;
    padding: 32px;
}

.sb-testimonials--card .sb-testimonial__inner {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--sb-shadow);
}

.sb-testimonials--bordered .sb-testimonial__inner {
    border: 1px solid var(--sb-border);
    border-radius: 12px;
}

.sb-testimonial__rating {
    margin-bottom: 16px;
}

.sb-star {
    color: #fbbf24;
    font-size: 18px;
}

.sb-testimonial__quote {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--sb-text);
    margin: 0 0 24px;
    font-style: italic;
}

.sb-testimonial__author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sb-testimonial__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.sb-testimonial__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sb-primary);
    color: #fff;
    font-weight: 600;
    font-size: 18px;
}

.sb-testimonial__meta {
    display: flex;
    flex-direction: column;
}

.sb-testimonial__name {
    font-weight: 600;
    color: var(--sb-text);
}

.sb-testimonial__title {
    font-size: 14px;
    color: var(--sb-text-light);
}

/* =====================
   STATS BLOCK
   ===================== */

.sb-stats__headline {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin: 0 0 48px;
    color: var(--sb-text);
}

.sb-stats__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
}

.sb-stats--grid .sb-stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.sb-stats--dividers .sb-stat:not(:last-child) {
    border-right: 1px solid var(--sb-border);
    padding-right: 48px;
}

.sb-stat {
    text-align: center;
}

.sb-stats--align-left .sb-stat {
    text-align: left;
}

.sb-stats--boxed .sb-stat {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--sb-shadow);
}

.sb-stat__icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.sb-stat__number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--sb-text);
    line-height: 1;
    margin-bottom: 8px;
}

.sb-stat__prefix,
.sb-stat__suffix {
    font-size: 0.6em;
    color: var(--sb-primary);
}

.sb-stat__label {
    font-size: 1rem;
    color: var(--sb-text-light);
}

@media (max-width: 768px) {
    .sb-stats--dividers .sb-stat:not(:last-child) {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid var(--sb-border);
        padding-bottom: 24px;
    }
    
    .sb-stats__grid {
        flex-direction: column;
        gap: 24px;
    }
}

/* =====================
   CTA BLOCK
   ===================== */

.sb-cta {
    background: var(--sb-primary);
    color: #fff;
}

.sb-cta__inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.sb-cta--split .sb-cta__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: none;
    text-align: left;
}

.sb-cta__headline {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 16px;
    color: #fff;
}

.sb-cta__text {
    font-size: 1.125rem;
    opacity: 0.9;
    margin: 0 0 32px;
    color: rgba(255,255,255,0.9);
}

.sb-cta--split .sb-cta__text {
    margin-bottom: 0;
}

.sb-cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.sb-cta--split .sb-cta__actions {
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .sb-cta--split .sb-cta__inner {
        flex-direction: column;
        text-align: center;
    }
    
    .sb-cta--split .sb-cta__actions {
        justify-content: center;
        margin-top: 24px;
    }
}

/* =====================
   IMAGE + TEXT BLOCK
   ===================== */

.sb-image-text__grid {
    display: grid;
    grid-template-columns: var(--img-size, 50%) 1fr;
    gap: 64px;
    align-items: center;
}

.sb-image-text--img-right .sb-image-text__grid {
    grid-template-columns: 1fr var(--img-size, 50%);
}

.sb-image-text--img-right .sb-image-text__media {
    order: 2;
}

.sb-image-text--align-top .sb-image-text__grid { align-items: flex-start; }
.sb-image-text--align-bottom .sb-image-text__grid { align-items: flex-end; }

.sb-image-text__img {
    width: 100%;
    height: auto;
}

.sb-image-text--img-rounded .sb-image-text__img {
    border-radius: 12px;
}

.sb-image-text--img-shadow .sb-image-text__img {
    box-shadow: var(--sb-shadow-lg);
}

/* Browser frame mockup */
.sb-browser-frame {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--sb-shadow-lg);
    overflow: hidden;
}

.sb-browser-frame__header {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #f1f1f1;
}

.sb-browser-frame__header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.sb-browser-frame__header span:nth-child(1) { background: #ff5f56; }
.sb-browser-frame__header span:nth-child(2) { background: #ffbd2e; }
.sb-browser-frame__header span:nth-child(3) { background: #27ca40; }

.sb-image-text--img-browser .sb-image-text__img {
    border-radius: 0;
}

.sb-image-text__eyebrow {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--sb-primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sb-image-text__headline {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--sb-text);
}

.sb-image-text__text {
    margin-bottom: 24px;
}

.sb-image-text__features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.sb-image-text__features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--sb-text-light);
}

.sb-feature-icon {
    font-size: 20px;
}

@media (max-width: 768px) {
    .sb-image-text__grid,
    .sb-image-text--img-right .sb-image-text__grid {
        grid-template-columns: 1fr;
    }
    
    .sb-image-text--img-right .sb-image-text__media {
        order: 0;
    }
}

/* =====================
   COLUMNS BLOCK
   ===================== */

.sb-columns__grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sb-gap);
}

.sb-columns--gap-none .sb-columns__grid { gap: 0; }
.sb-columns--gap-small .sb-columns__grid { gap: 16px; }
.sb-columns--gap-medium .sb-columns__grid { gap: 32px; }
.sb-columns--gap-large .sb-columns__grid { gap: 48px; }

.sb-column {
    flex: 1 1 0;
    min-width: 0;
}

.sb-columns--align-top .sb-column { align-self: flex-start; }
.sb-columns--align-center .sb-column { align-self: center; }
.sb-columns--align-bottom .sb-column { align-self: flex-end; }

.sb-column__image {
    width: 100%;
    height: auto;
    border-radius: var(--sb-radius);
    margin-bottom: 16px;
}

.sb-column__content {
    color: var(--sb-text);
}

.sb-column__content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px;
}

.sb-column__content p {
    margin: 0 0 16px;
    color: var(--sb-text-light);
}

/* Stack columns on mobile */
@media (max-width: 768px) {
    .sb-columns--stack-mobile .sb-columns__grid {
        flex-direction: column;
    }
    
    .sb-columns--stack-mobile .sb-column {
        flex: 0 0 100%;
        max-width: 100% !important;
    }
}

/* =====================
   TEAM BLOCK
   ===================== */

.sb-team__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.sb-team__headline {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--sb-text);
}

.sb-team__subhead {
    font-size: 1.125rem;
    color: var(--sb-text-light);
    margin: 0;
}

.sb-team-member {
    text-align: center;
}

.sb-team-member__photo {
    margin-bottom: 20px;
}

.sb-team-member__photo img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin: 0 auto;
}

.sb-team--img-circle .sb-team-member__photo img,
.sb-team--img-circle .sb-team-member__placeholder {
    border-radius: 50%;
}

.sb-team--img-rounded .sb-team-member__photo img,
.sb-team--img-rounded .sb-team-member__placeholder {
    border-radius: 12px;
}

.sb-team-member__placeholder {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sb-primary);
    color: #fff;
    font-size: 48px;
    font-weight: 600;
    margin: 0 auto;
}

.sb-team-member__name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--sb-text);
}

.sb-team-member__title {
    font-size: 0.875rem;
    color: var(--sb-primary);
    margin: 0 0 12px;
}

.sb-team-member__bio {
    font-size: 0.9375rem;
    color: var(--sb-text-light);
    margin: 0 0 16px;
    line-height: 1.6;
}

.sb-team-member__social {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.sb-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sb-bg-alt);
    color: var(--sb-text);
    text-decoration: none;
    transition: all 0.2s;
}

.sb-social-link:hover {
    background: var(--sb-primary);
    color: #fff;
}

.sb-social-link span {
    font-size: 12px;
}

/* =====================
   PROSE (TEXT CONTENT)
   ===================== */

.sb-prose {
    color: var(--sb-text);
    line-height: 1.75;
}

.sb-prose h2 { font-size: 1.75rem; margin: 48px 0 16px; }
.sb-prose h3 { font-size: 1.375rem; margin: 32px 0 12px; }
.sb-prose p { margin: 0 0 24px; }
.sb-prose ul, .sb-prose ol { margin: 0 0 24px; padding-left: 24px; }
.sb-prose li { margin-bottom: 8px; }
.sb-prose a { color: var(--sb-primary); }

/* =====================
   VIDEO BLOCK
   ===================== */

.sb-video__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.sb-video__headline {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--sb-text);
}

.sb-video__subhead {
    font-size: 1.125rem;
    color: var(--sb-text-light);
    margin: 0;
}

.sb-video__wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.sb-video__wrapper--4-3 {
    padding-bottom: 75%; /* 4:3 */
}

.sb-video__wrapper--21-9 {
    padding-bottom: 42.857%; /* 21:9 */
}

.sb-video--rounded .sb-video__wrapper {
    border-radius: var(--sb-radius);
}

.sb-video--shadow .sb-video__wrapper {
    box-shadow: var(--sb-shadow-lg);
}

.sb-video__wrapper iframe,
.sb-video__wrapper video,
.sb-video__iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.sb-video__caption {
    text-align: center;
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--sb-text-light);
}

/* =====================
   GENERIC SECTION CONTENT
   ===================== */

.sb-section__headline {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--sb-text);
}

.sb-dark .sb-section__headline {
    color: #ffffff;
}

.sb-section__text {
    font-size: 1.125rem;
    color: var(--sb-text-light);
    line-height: 1.7;
}

.sb-dark .sb-section__text {
    color: rgba(255,255,255,0.8);
}

/* =====================
   ANIMATIONS - VISIBLE BY DEFAULT
   ===================== */

[data-animate] {
    opacity: 1;
    transform: none;
}

.sb-animate-enabled [data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.sb-animate-enabled [data-animate="fade-down"] { transform: translateY(-20px); }
.sb-animate-enabled [data-animate="fade-left"] { transform: translateX(20px); }
.sb-animate-enabled [data-animate="fade-right"] { transform: translateX(-20px); }
.sb-animate-enabled [data-animate="zoom-in"] { transform: scale(0.9); }
.sb-animate-enabled [data-animate="zoom-out"] { transform: scale(1.1); }

.sb-animate-enabled [data-animate].is-visible,
[data-animate].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =====================
   GALLERY BLOCK
   ===================== */

.sb-gallery__headline {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin: 0 0 48px;
    color: var(--sb-text);
}

.sb-gallery__grid {
    display: grid;
    gap: 16px;
}

/* Column variations */
.sb-gallery--cols-2 .sb-gallery__grid { grid-template-columns: repeat(2, 1fr); }
.sb-gallery--cols-3 .sb-gallery__grid { grid-template-columns: repeat(3, 1fr); }
.sb-gallery--cols-4 .sb-gallery__grid { grid-template-columns: repeat(4, 1fr); }
.sb-gallery--cols-5 .sb-gallery__grid { grid-template-columns: repeat(5, 1fr); }

/* Gap variations */
.sb-gallery--gap-none .sb-gallery__grid { gap: 0; }
.sb-gallery--gap-small .sb-gallery__grid { gap: 8px; }
.sb-gallery--gap-medium .sb-gallery__grid { gap: 16px; }

/* Grid layout (default) */
.sb-gallery--grid .sb-gallery__item {
    margin: 0;
}

/* Masonry layout */
.sb-gallery--masonry .sb-gallery__grid {
    display: block;
    column-gap: 16px;
}

.sb-gallery--masonry.sb-gallery--cols-2 .sb-gallery__grid { column-count: 2; }
.sb-gallery--masonry.sb-gallery--cols-3 .sb-gallery__grid { column-count: 3; }
.sb-gallery--masonry.sb-gallery--cols-4 .sb-gallery__grid { column-count: 4; }
.sb-gallery--masonry.sb-gallery--cols-5 .sb-gallery__grid { column-count: 5; }

.sb-gallery--masonry .sb-gallery__item {
    break-inside: avoid;
    margin-bottom: 16px;
}

.sb-gallery--masonry.sb-gallery--gap-none .sb-gallery__grid { column-gap: 0; }
.sb-gallery--masonry.sb-gallery--gap-none .sb-gallery__item { margin-bottom: 0; }
.sb-gallery--masonry.sb-gallery--gap-small .sb-gallery__grid { column-gap: 8px; }
.sb-gallery--masonry.sb-gallery--gap-small .sb-gallery__item { margin-bottom: 8px; }

/* Carousel layout */
.sb-gallery__carousel {
    position: relative;
    overflow: hidden;
}

.sb-gallery__track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.sb-gallery__slide {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
}

.sb-gallery__slide .sb-gallery__item {
    height: 100%;
}

.sb-gallery__slide .sb-gallery__img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

/* Navigation Arrows */
.sb-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, background 0.2s, transform 0.2s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sb-gallery__carousel:hover .sb-gallery__arrow {
    opacity: 1;
}

.sb-gallery__arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.sb-gallery__arrow svg {
    width: 24px;
    height: 24px;
    stroke: var(--sb-gray-800, #1f2937);
}

.sb-gallery__arrow--prev {
    left: 16px;
}

.sb-gallery__arrow--next {
    right: 16px;
}

/* Dots */
.sb-gallery__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.sb-gallery__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--sb-gray-300, #d1d5db);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}

.sb-gallery__dot:hover {
    background: var(--sb-gray-400, #9ca3af);
}

.sb-gallery__dot.is-active {
    background: var(--sb-primary, #6366f1);
    transform: scale(1.2);
}

/* Mobile: always show arrows */
@media (max-width: 768px) {
    .sb-gallery__arrow {
        opacity: 1;
        width: 40px;
        height: 40px;
    }

    .sb-gallery__arrow--prev { left: 8px; }
    .sb-gallery__arrow--next { right: 8px; }

    .sb-gallery__arrow svg {
        width: 20px;
        height: 20px;
    }
}

/* Dark mode carousel arrows */
.sb-dark .sb-gallery__arrow {
    background: rgba(0, 0, 0, 0.7);
}

.sb-dark .sb-gallery__arrow:hover {
    background: rgba(0, 0, 0, 0.9);
}

.sb-dark .sb-gallery__arrow svg {
    stroke: #fff;
}

.sb-dark .sb-gallery__dot {
    background: rgba(255, 255, 255, 0.3);
}

.sb-dark .sb-gallery__dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.sb-dark .sb-gallery__dot.is-active {
    background: #fff;
}

/* Gallery item */
.sb-gallery__item {
    position: relative;
    overflow: hidden;
    margin: 0;
}

.sb-gallery__link {
    display: block;
    cursor: zoom-in;
}

.sb-gallery__img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.sb-gallery__link:hover .sb-gallery__img {
    transform: scale(1.05);
}

/* Rounded corners */
.sb-gallery--rounded .sb-gallery__item {
    border-radius: var(--sb-radius);
}

.sb-gallery--rounded .sb-gallery__img {
    border-radius: var(--sb-radius);
}

/* Aspect ratios */
.sb-gallery--aspect-square .sb-gallery__item {
    aspect-ratio: 1/1;
}

.sb-gallery--aspect-landscape .sb-gallery__item {
    aspect-ratio: 16/9;
}

.sb-gallery--aspect-portrait .sb-gallery__item {
    aspect-ratio: 3/4;
}

.sb-gallery--aspect-square .sb-gallery__img,
.sb-gallery--aspect-landscape .sb-gallery__img,
.sb-gallery--aspect-portrait .sb-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Caption */
.sb-gallery__caption {
    padding: 12px 0 0;
    font-size: 0.875rem;
    color: var(--sb-text-light);
    text-align: center;
}

/* CSS-only Lightbox */
/* Body scroll lock when lightbox open */
body.sb-lightbox-open {
    overflow: hidden;
}

.sb-lightbox,
.sb-lightbox * {
    pointer-events: none;
}

.sb-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.sb-lightbox:target,
.sb-lightbox:target *,
.sb-lightbox.is-open,
.sb-lightbox.is-open * {
    pointer-events: auto;
}

.sb-lightbox:target,
.sb-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.sb-lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: background 0.2s;
}

.sb-lightbox__close:hover {
    background: rgba(255,255,255,0.2);
}

.sb-lightbox__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    z-index: 1000000;
}

.sb-lightbox__nav:hover {
    background: rgba(0,0,0,0.7);
    border-color: rgba(255,255,255,0.6);
}

.sb-lightbox__nav svg {
    width: 28px;
    height: 28px;
    stroke: #fff;
    stroke-width: 2.5;
    fill: none;
}

.sb-lightbox__prev {
    left: 32px;
}

.sb-lightbox__next {
    right: 32px;
}

@media (max-width: 768px) {
    .sb-lightbox__nav {
        width: 44px;
        height: 44px;
    }
    .sb-lightbox__nav svg {
        width: 22px;
        height: 22px;
    }
    .sb-lightbox__prev {
        left: 16px;
    }
    .sb-lightbox__next {
        right: 16px;
    }
}

.sb-lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 96px);
    object-fit: contain;
    border-radius: var(--sb-radius);
}

.sb-lightbox__caption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.8);
    font-size: 0.9375rem;
    text-align: center;
    max-width: 600px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sb-gallery--cols-3 .sb-gallery__grid,
    .sb-gallery--cols-4 .sb-gallery__grid,
    .sb-gallery--cols-5 .sb-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sb-gallery--masonry.sb-gallery--cols-3 .sb-gallery__grid,
    .sb-gallery--masonry.sb-gallery--cols-4 .sb-gallery__grid,
    .sb-gallery--masonry.sb-gallery--cols-5 .sb-gallery__grid {
        column-count: 2;
    }

    .sb-gallery--carousel.sb-gallery--cols-3 .sb-gallery__item,
    .sb-gallery--carousel.sb-gallery--cols-4 .sb-gallery__item,
    .sb-gallery--carousel.sb-gallery--cols-5 .sb-gallery__item {
        width: calc(80% - 8px);
    }

    .sb-lightbox {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .sb-gallery--cols-2 .sb-gallery__grid,
    .sb-gallery--cols-3 .sb-gallery__grid,
    .sb-gallery--cols-4 .sb-gallery__grid,
    .sb-gallery--cols-5 .sb-gallery__grid {
        grid-template-columns: 1fr;
    }

    .sb-gallery--masonry .sb-gallery__grid {
        column-count: 1 !important;
    }
}

/* =====================
   SCROLL REVEAL LINES
   Decorative SVG line art that draws on scroll
   ===================== */

.sb-decor-lines {
    position: relative;
    overflow: hidden;
}

.sb-decor-line {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100px;
    pointer-events: none;
    z-index: 1;
}

.sb-decor-line--left {
    left: 20px;
}

.sb-decor-line--right {
    right: 20px;
    transform: scaleX(-1);
}

.sb-decor-line svg {
    width: 100%;
    height: 100%;
}

/* All decorative paths */
.sb-decor-line path,
.sb-decor-line line,
.sb-decor-line circle,
.sb-decor-line polyline {
    fill: none;
    stroke: currentColor;
    opacity: 0.15;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: var(--path-length, 1000);
    stroke-dashoffset: var(--path-length, 1000);
    transition: stroke-dashoffset 0.02s linear;
}

/* Accent strokes - bolder */
.sb-decor-line .accent {
    opacity: 0.25;
    stroke-width: 2.5;
}

/* Thin detail lines */
.sb-decor-line .detail {
    opacity: 0.1;
    stroke-width: 1;
}

/* Dark mode adjustments */
.sb-dark .sb-decor-line path,
.sb-dark .sb-decor-line line,
.sb-dark .sb-decor-line circle {
    stroke: #fff;
}

/* Pattern variations */

/* Flowing - elegant curves */
.sb-decor-line--flowing svg {
    /* Default pattern */
}

/* Geometric - angular lines */
.sb-decor-line--geometric path {
    stroke-linejoin: miter;
}

/* Minimal - just a few lines */
.sb-decor-line--minimal path.detail,
.sb-decor-line--minimal circle {
    display: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .sb-decor-line {
        width: 60px;
    }
    .sb-decor-line--left {
        left: 10px;
    }
    .sb-decor-line--right {
        right: 10px;
    }
    .sb-decor-line path,
    .sb-decor-line line,
    .sb-decor-line circle {
        stroke-width: 1;
    }
    .sb-decor-line .accent {
        stroke-width: 1.5;
    }
}

@media (max-width: 480px) {
    .sb-decor-line {
        width: 40px;
    }
}

/* =====================
   RESPONSIVE UTILITIES
   ===================== */

/* Hide on mobile (show on desktop/tablet) */
.sb-hide-mobile {
    display: block;
}

/* Show on mobile only (hidden by default) */
.sb-show-mobile {
    display: none;
}

@media (max-width: 767px) {
    .sb-hide-mobile {
        display: none !important;
    }

    .sb-show-mobile {
        display: block !important;
    }
}
