/* Revolutionary Blocks, frontend base styles.
 * Generic structural rules. Per-post visual overrides live in
 * uploads/revblocks-css/{post-id}-{hash}.css. */

.rb-document {
    width: 100%;
}

.rb-section {
    width: 100%;
    box-sizing: border-box;
}

.rb-section__inner {
    /* Page gutter. Without it a section is only safe from the viewport edge
     * while the screen is wider than the max-width: below that the content
     * ran straight into both edges and the text sat against the glass.
     *
     * The max-width adds the gutter back so a wide screen still gets the same
     * 1140px of content it always did. Narrow the max-width instead and every
     * existing desktop layout would quietly lose 64px. */
    --rb-gutter: 32px;
    max-width: calc(1140px + var(--rb-gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--rb-gutter);
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
}
@media (max-width: 1024px) { .rb-section__inner { --rb-gutter: 24px; } }
@media (max-width: 640px)  { .rb-section__inner { --rb-gutter: 20px; } }

.rb-column {
    flex: 1 1 0;
    min-width: 0;
    padding: 0;
    box-sizing: border-box;
}

.rb-widget {
    margin: 0;
    max-width: 100%;
}

.rb-widget:last-child {
    margin-bottom: 0;
}

/* Embedded media should never bust out of its widget container, even when
 * a shortcode plugin emits a fixed-width iframe or oversized video. */
.rb-widget iframe,
.rb-widget video,
.rb-widget embed,
.rb-widget object {
    max-width: 100%;
}

/* Shortcode output (third-party sliders, videos, embeds) gets a positioning
 * context and overflow clip so absolutely-positioned children stay inside. */
.rb-widget--shortcode {
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.rb-widget--heading h1,
.rb-widget--heading h2,
.rb-widget--heading h3,
.rb-widget--heading h4,
.rb-widget--heading h5,
.rb-widget--heading h6 {
    margin: 0;
}

.rb-widget--text p {
    margin: 0 0 1em;
}

.rb-widget--button {
    display: block;
}

/* Button defaults sit inside :where() so they carry zero specificity, any
 * theme rule targeting .wp-element-button / .btn-primary / .button (which
 * the render emits alongside .rb-button) overrides them, and per-widget
 * compiled CSS overrides them too. Bg / color use --rb-brand-primary so the
 * fallback still follows the active theme's palette (set in the head by
 * Brand_Colors), not a hardcoded blue. */
:where(.rb-button) {
    position: relative;
    overflow: hidden;
    display: inline-block;
    padding: var(--rev-btn-padding, 12px 24px);
    border-radius: var(--rev-btn-radius, 6px);
    background: var(--rev-btn-bg, var(--rb-brand-primary, #0a66c2));
    color: var(--rev-btn-color, #fff);
    text-decoration: none;
    font-weight: var(--rev-btn-font-weight, 600);
    font-size: var(--rev-btn-font-size, inherit);
    box-shadow: var(--rev-btn-shadow, none);
    transition: var(--rev-btn-transition, background 0.15s ease);
    /* Letter-case + font from the --rev-btn-* contract. Without consuming the
     * text-transform token the theme's button letter-case (uppercase) never
     * reaches plugin buttons, so a button font's short lowercase glyphs show
     * through, e.g. "Free" keeps its small lowercase "r" instead of a full
     * capital "R". Fallbacks preserve standalone (no-theme) behaviour. */
    text-transform: var(--rev-btn-text-transform, none);
    font-family: var(--rev-btn-font-family, inherit);
    /* Pulse loop, on only when the theme sets --rev-btn-pulse to the keyframe
     * name; the default none costs nothing and leaves hover transforms free. */
    animation: var(--rev-btn-pulse, none) 2.4s ease-in-out infinite;
}

:where(.rb-button:hover) {
    background: var(--rev-btn-bg-hover, var(--rb-brand-primary-dark, #0052a3));
    color: var(--rev-btn-color-hover, var(--rev-btn-color, #fff));
    box-shadow: var(--rev-btn-shadow-hover, var(--rev-btn-shadow, none));
    transform: var(--rev-btn-hover-transform, translateY(var(--rev-btn-lift, 0)));
    font-family: var(--rev-btn-font-family-hover, var(--rev-btn-font-family, inherit));
}

/* Shine sweep from the CTA contract: the ::after is always present but
 * invisible until the theme turns it on with --rev-btn-shine:1. Mirrors the
 * reference consumer (backups admin.css). */
:where(.rb-button)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
    pointer-events: none;
    opacity: var(--rev-btn-shine, 0);
}

:where(.rb-button:hover)::after {
    transform: translateX(120%);
}

@keyframes theme-default-btn-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.035); }
}

.rb-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.rb-spacer { width: 100%; }

.rb-divider {
    width: 100%;
    height: 0;
    border-top: 1px solid #e5e7eb;
}

.rb-hero {
    position: relative;
    padding: 80px 24px;
    text-align: center;
    background: #0f172a;
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.rb-hero h1 { font-size: 2.5rem; margin: 0 0 12px; }
.rb-hero p  { font-size: 1.125rem; margin: 0 0 24px; opacity: 0.9; }

.rb-pricing {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    background: #fff;
}
.rb-pricing__price { font-size: 2.5rem; font-weight: 700; margin: 16px 0; }
.rb-pricing__features { list-style: none; padding: 0; margin: 16px 0; }
.rb-pricing__features li { padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.rb-pricing__features li:last-child { border-bottom: 0; }

.rb-testimonial {
    padding: 24px;
    border-left: 4px solid #2563eb;
    background: #f8fafc;
    border-radius: 4px;
}
.rb-testimonial__quote { font-style: italic; margin: 0 0 16px; }
.rb-testimonial__author { display: flex; align-items: center; gap: 12px; }
.rb-testimonial__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.rb-testimonial__name { font-weight: 600; }
.rb-testimonial__role { color: #6b7280; font-size: 0.9rem; }

.rb-accordion__item { border: 1px solid #e5e7eb; border-radius: 6px; margin-bottom: 8px; overflow: hidden; }
.rb-accordion__header {
    width: 100%;
    text-align: left;
    background: #fff;
    border: 0;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.rb-accordion__header::after { content: "+"; font-size: 1.25rem; }
.rb-accordion__item.is-open .rb-accordion__header::after { content: "−"; }
.rb-accordion__panel { padding: 16px 20px; display: none; }
.rb-accordion__item.is-open .rb-accordion__panel { display: block; }
.rb-accordion__answer + .rb-accordion__answer { margin-top: 10px; }
.rb-accordion__answer > :first-child { margin-top: 0; }
.rb-accordion__answer > :last-child { margin-bottom: 0; }

/* CTA box uses :where() so its bg/color carry zero specificity, themes that
 * style a CTA band naturally win, and the user's per-widget bg/color override
 * easily. The fallback follows the active theme's primary via Brand_Colors. */
:where(.rb-cta) {
    text-align: center;
    padding: 48px 24px;
    background: var(--rb-brand-primary, #0a66c2);
    color: #fff;
    border-radius: 8px;
}
/* Bound to the stable classes (not h2/p) because the heading and subheading
 * tags are user-selectable (h1–h6, plus paragraph for the subheading). The
 * subheading rule also normalises font-size/weight so a heading-tag subheading
 * doesn't inherit the theme's larger heading defaults. */
/* width:100% keeps the heading/subheading spanning the whole box so their
 * text-align (inherited center, or the per-element Alignment control) actually
 * positions the text, a flex-column parent would otherwise shrink-wrap them
 * to their text and pin everything to the left. */
:where(.rb-cta .rb-cta-heading)    { width: 100%; margin: 0 0 12px; font-size: 2rem; }
:where(.rb-cta .rb-cta-subheading) { width: 100%; margin: 0 0 24px; opacity: 0.9; font-size: 1rem; font-weight: 400; }
/* No `.rb-cta .rb-button` override here, the button inherits the standard
 * .rb-button defaults above and, more importantly, is styled by the active
 * theme via `.wp-element-button` / `.btn-primary` (added in the render). */

.rb-counter {
    text-align: center;
}
.rb-counter__number {
    /* size / weight / color come from the widget's per-instance CSS
     * (which always emits them, defaults included). Anything declared
     * here would just fight the user's Style-tab settings on specificity. */
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}
.rb-counter__label {
    margin-top: 8px;
    line-height: 1.4;
}

/* ============================================================
 * Entrance animations, opt-in per widget via the Style tab.
 * Widgets get .rb-anim + .rb-anim--<name>; widgets.js adds
 * .rb-anim--in once the element scrolls into view, which kicks
 * off the keyframe.
 * ============================================================ */
.rb-anim {
    opacity: 0;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform, opacity;
}
.rb-anim--in.rb-anim--fade-in     { animation-name: rb-anim-fade-in; }
.rb-anim--in.rb-anim--slide-up    { animation-name: rb-anim-slide-up; }
.rb-anim--in.rb-anim--slide-down  { animation-name: rb-anim-slide-down; }
.rb-anim--in.rb-anim--slide-left  { animation-name: rb-anim-slide-left; }
.rb-anim--in.rb-anim--slide-right { animation-name: rb-anim-slide-right; }
.rb-anim--in.rb-anim--zoom-in     { animation-name: rb-anim-zoom-in; }
.rb-anim--in.rb-anim--flip-up     { animation-name: rb-anim-flip-up; }
.rb-anim--in.rb-anim--scale-up    { animation-name: rb-anim-scale-up; }
.rb-anim--in.rb-anim--blur-in     { animation-name: rb-anim-blur-in; }
.rb-anim--in.rb-anim--rotate-in   { animation-name: rb-anim-rotate-in; }
.rb-anim--in.rb-anim--tilt-in     { animation-name: rb-anim-tilt-in; }
.rb-anim--in.rb-anim--reveal-up   { animation-name: rb-anim-reveal-up; }
.rb-anim--in.rb-anim--swing-in    { animation-name: rb-anim-swing-in; }
.rb-anim--in.rb-anim--bounce-in   { animation-name: rb-anim-bounce-in; animation-timing-function: cubic-bezier(0.34,1.56,0.64,1); }
.rb-anim--in.rb-anim--flip-y      { animation-name: rb-anim-flip-y; }

@keyframes rb-anim-fade-in     { from { opacity: 0; }                         to { opacity: 1; } }
@keyframes rb-anim-slide-up    { from { opacity: 0; transform: translateY(40px); }  to { opacity: 1; transform: none; } }
@keyframes rb-anim-slide-down  { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
@keyframes rb-anim-slide-left  { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes rb-anim-slide-right { from { opacity: 0; transform: translateX(40px); }  to { opacity: 1; transform: none; } }
@keyframes rb-anim-zoom-in     { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }
@keyframes rb-anim-flip-up     { from { opacity: 0; transform: perspective(800px) rotateX(-25deg) translateY(20px); } to { opacity: 1; transform: none; } }
/* The "starts small, scales up to fill the box on scroll" effect. */
@keyframes rb-anim-scale-up    { from { opacity: 0; transform: scale(0.3); }  to { opacity: 1; transform: scale(1); } }
@keyframes rb-anim-blur-in     { from { opacity: 0; filter: blur(16px); transform: scale(1.06); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes rb-anim-rotate-in   { from { opacity: 0; transform: rotate(-9deg) scale(0.8); } to { opacity: 1; transform: none; } }
@keyframes rb-anim-tilt-in     { from { opacity: 0; transform: perspective(900px) rotateY(28deg) translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes rb-anim-reveal-up   { from { opacity: 0; clip-path: inset(100% 0 0 0); transform: translateY(24px); } to { opacity: 1; clip-path: inset(0 0 0 0); transform: none; } }
@keyframes rb-anim-swing-in    { from { opacity: 0; transform: rotate(6deg) translateY(-30px); } 60% { opacity: 1; transform: rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes rb-anim-bounce-in   { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
@keyframes rb-anim-flip-y      { from { opacity: 0; transform: perspective(900px) rotateY(-90deg); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .rb-anim { opacity: 1 !important; animation: none !important; }
    /* Carousel slide fades and headline word swaps snap instead of easing;
     * the JS half (autoplay, rotation, smooth scroll) checks the same
     * preference itself (#15). */
    .rb-carousel__slide,
    .rb-headline__word { transition: none !important; }
    .rb-testimonial-carousel__track { scroll-behavior: auto !important; }
}

/* ============================================================
 * Testimonial carousel, horizontal scroll-snap layout with
 * optional JS-driven arrows + dot pagination.
 * ============================================================ */
.rb-testimonial-carousel {
    position: relative;
}
.rb-testimonial-carousel__track {
    display: flex;
    /* Each card sizes to its own testimonial text instead of stretching to
     * match the tallest card in the row (flex default is align-items:stretch),
     * so the box + background grow and shrink to fit each quote. */
    align-items: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* No visible scroll bar, paging is via the arrows, dots, and swipe. */
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* old Edge / IE */
}
.rb-testimonial-carousel__track::-webkit-scrollbar { width: 0; height: 0; display: none; }
.rb-testimonial-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.rb-testimonial-carousel__arrow:hover { background: #fff; }
.rb-testimonial-carousel__arrow--prev { left: -16px; }
.rb-testimonial-carousel__arrow--next { right: -16px; }
.rb-testimonial-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.rb-testimonial-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(0,0,0,0.2);
    border: 0;
    padding: 0;
    cursor: pointer;
}
.rb-testimonial-carousel__dot.is-active { background: #2563eb; }

@media (max-width: 767px) {
    .rb-section__inner { flex-direction: column; }
    /* Flex-wrap columns stack on phones. Grid sections are unaffected:
     * the generator emits each grid section's column rules at higher
     * specificity (.rb-id-X > .rb-section__inner > .rb-column !important),
     * which wins over this, and emits each grid section's per-device
     * grid-template-columns (defaulting to 1 column on mobile when no
     * override is set). The blanket grid-template-columns:1fr !important
     * that used to live here is gone, it defeated explicit per-device
     * "columns per row" values. */
    .rb-column { flex: 1 1 100% !important; max-width: 100% !important; }
    .rb-hero { padding: 48px 20px; }
    .rb-hero h1 { font-size: 1.75rem; }
    .rb-counter__number { font-size: 3rem; }
}

/* ============================================================
 * Video
 * ============================================================ */
.rb-video {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 6px;
}
.rb-video iframe,
.rb-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================================
 * Icon
 * ============================================================ */
.rb-icon { line-height: 1; }
.rb-icon__glyph { display: inline-block; vertical-align: middle; }
.rb-icon__link { display: inline-block; text-decoration: none; }

/* ============================================================
 * Google Maps
 * ============================================================ */
.rb-map {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
}
.rb-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
 * Tabs
 * ============================================================ */
.rb-tabs__nav {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.rb-tabs__btn {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    margin-bottom: -1px;
}
.rb-tabs__btn:hover { color: #0f172a; }
.rb-tabs__btn.is-active { color: #2563eb; border-bottom-color: #2563eb; }
.rb-tabs__panel { display: none; }
.rb-tabs__panel.is-active { display: block; }

/* ============================================================
 * Image Box / Icon Box
 * ============================================================ */
.rb-imagebox img { max-width: 100%; height: auto; display: block; margin: 0 auto 12px; border-radius: 4px; }

/* Table widget, sensible defaults; per-instance CSS layers borders/header/etc. */
.rb-table-wrap { width: 100%; overflow-x: auto; }
:where(.rb-table) { border-collapse: collapse; width: 100%; }
:where(.rb-table th, .rb-table td) { padding: 10px 12px; text-align: left; vertical-align: top; }
:where(.rb-table th) { font-weight: 700; }
.rb-imagebox__title,
.rb-iconbox__title { margin: 0; font-size: 1.25rem; }
.rb-imagebox__body,
.rb-iconbox__body { margin: 0; color: #475569; }
.rb-iconbox__icon { display: inline-block; }
.rb-iconbox__icon--svg svg { display: block; }
.rb-iconbox__icon-wrap { display: inline-flex; align-items: center; justify-content: center; }
.rb-iconbox__content { display: flex; flex-direction: column; }
.rb-iconbox__link { color: inherit; text-decoration: none; }

/* ============================================================
 * Icon List
 * ============================================================ */
.rb-iconlist { list-style: none; margin: 0; padding: 0; }
.rb-iconlist__item { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.rb-iconlist__item a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.rb-iconlist__icon { font-size: 18px; width: 18px; height: 18px; line-height: 1; }
.rb-iconlist__icon--svg { display: inline-flex; align-items: center; justify-content: center; }
.rb-iconlist__icon--svg svg { width: 100%; height: 100%; display: block; fill: currentColor; }

/* ============================================================
 * Progress Bar
 * ============================================================ */
.rb-progress__head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
    color: #0f172a;
}
.rb-progress__pct { font-weight: 600; }
.rb-progress__track {
    width: 100%;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}
.rb-progress__fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 999px;
    transition: width 0.9s ease;
}

/* ============================================================
 * Alert
 * ============================================================ */
.rb-alert {
    padding: 14px 18px;
    border-radius: 6px;
    border-left: 4px solid;
    background: #f1f5f9;
}
.rb-alert--info    { background: #eff6ff; border-color: #3b82f6; color: #1e3a8a; }
.rb-alert--success { background: #ecfdf5; border-color: #10b981; color: #065f46; }
.rb-alert--warning { background: #fffbeb; border-color: #f59e0b; color: #92400e; }
.rb-alert--danger  { background: #fef2f2; border-color: #ef4444; color: #991b1b; }
.rb-alert__title { font-weight: 700; margin-bottom: 4px; }
.rb-alert__body  { margin: 0; font-size: 14px; }
.rb-alert__body p { margin: 0 0 0.4em; }

/* ============================================================
 * Social Icons
 * ============================================================ */
.rb-social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.rb-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.12s ease, opacity 0.12s ease;
}
.rb-social__link:hover { transform: translateY(-2px); opacity: 0.9; }
.rb-social__link .dashicons { font-size: 18px; width: 18px; height: 18px; }

/* ============================================================
 * Company Info
 * ============================================================ */
.rb-companyinfo { display: flex; flex-direction: column; gap: 14px; }
.rb-companyinfo--center { align-items: center; text-align: center; }
.rb-companyinfo--right  { align-items: flex-end; text-align: right; }
.rb-companyinfo__logo { display: inline-flex; }
.rb-companyinfo__logo img,
.rb-companyinfo__logo-img { max-width: 160px; height: auto; display: block; }
.rb-companyinfo__name { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.rb-companyinfo__tagline { margin: 0; opacity: 0.85; line-height: 1.6; }
.rb-companyinfo__contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rb-companyinfo__row { display: flex; align-items: flex-start; gap: 8px; }
.rb-companyinfo--center .rb-companyinfo__row { justify-content: center; }
.rb-companyinfo--right .rb-companyinfo__row { justify-content: flex-end; }
.rb-companyinfo__row .dashicons { flex: 0 0 auto; margin-top: 2px; opacity: 0.8; }
.rb-companyinfo__contact a { text-decoration: none; }
.rb-companyinfo__contact a:hover { text-decoration: underline; }
.rb-companyinfo__hours { display: flex; flex-direction: column; gap: 6px; }
.rb-companyinfo__hours-title { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.rb-companyinfo--center .rb-companyinfo__hours-title { justify-content: center; }
.rb-companyinfo--right .rb-companyinfo__hours-title { justify-content: flex-end; }
.rb-companyinfo__hours-title .dashicons { opacity: 0.8; }
.rb-companyinfo__hours-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rb-companyinfo__hours-row { display: flex; justify-content: space-between; gap: 16px; }
.rb-companyinfo--center .rb-companyinfo__hours-row { justify-content: center; gap: 8px; }
.rb-companyinfo--right .rb-companyinfo__hours-row { flex-direction: row-reverse; }
.rb-companyinfo__day { font-weight: 600; }
.rb-companyinfo__time { opacity: 0.85; white-space: nowrap; }
.rb-companyinfo__social { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rb-companyinfo--center .rb-companyinfo__social { justify-content: center; }
.rb-companyinfo--right .rb-companyinfo__social { justify-content: flex-end; }
.rb-companyinfo__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.12s ease, opacity 0.12s ease;
}
.rb-companyinfo__social-link:hover { transform: translateY(-2px); opacity: 0.9; }
.rb-companyinfo__social-link .dashicons { font-size: 18px; width: 18px; height: 18px; }
.rb-companyinfo__social.is-mono .rb-companyinfo__social-link { background: transparent; color: inherit; }

/* ============================================================
 * Rating
 * ============================================================ */
.rb-rating {
    position: relative;
    display: inline-block;
    line-height: 1;
}
.rb-rating__track .dashicons,
.rb-rating__fill  .dashicons { line-height: 1; }
.rb-rating__track { color: #e5e7eb; }
.rb-rating__fill  {
    color: #f59e0b;
    position: absolute;
    inset: 0;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
}

/* ============================================================
 * Toggle (collapsible)
 * ============================================================ */
.rb-toggle-w { border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; }
.rb-toggle-w__head {
    width: 100%;
    text-align: left;
    background: #fff;
    border: 0;
    padding: 14px 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.rb-toggle-w__head::after { content: "+"; font-size: 1.25rem; }
.rb-toggle-w.is-open .rb-toggle-w__head::after { content: "−"; }
.rb-toggle-w__body { padding: 0 18px 14px; display: none; }
.rb-toggle-w.is-open .rb-toggle-w__body { display: block; }

/* ============================================================
 * Animated Headline
 * ============================================================ */
/* Tight rotating headline. The cycle is an inline-flex box; the ACTIVE word is
 * in normal flow so the box sizes to it and the trailing text hugs the current
 * word (no gap for short words). The other words are absolute overlays pinned to
 * the same top-left, so the cross-fade (opacity only) has no vertical OR
 * horizontal jump within the box. widgets.js inlines these same rules on the
 * elements, so it's correct at first paint even if this stylesheet is deferred. */
/* All rotating words live in ONE grid cell (grid-area:1/1) so they stack in
 * the same spot and only opacity changes, a word never shifts when it swaps.
 * The cell sizes to the widest word, keeping the trailing text from jumping. */
.rb-headline__cycle { display: inline-grid; }
/* The before/after gaps are CSS margins, not literal spaces in the markup, a
 * space is subject to the heading's word-spacing (which many themes inflate),
 * whereas a margin always renders one normal space. */
.rb-headline__before { margin-right: 0.25em; }
.rb-headline__after { margin-left: 0.25em; }
.rb-headline__word {
    grid-area: 1 / 1;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.rb-headline__word.is-active { opacity: 1; }

/* ============================================================
 * Price List
 * ============================================================ */
.rb-pricelist { list-style: none; margin: 0; padding: 0; }
.rb-pricelist__item { padding: 10px 0; border-bottom: 1px dashed #e5e7eb; }
.rb-pricelist__item:last-child { border-bottom: 0; }
.rb-pricelist__head { display: flex; align-items: baseline; gap: 8px; }
.rb-pricelist__name { font-weight: 600; }
.rb-pricelist__dots { flex: 1; border-bottom: 1px dotted #cbd5e1; transform: translateY(-4px); }
.rb-pricelist__price { font-weight: 700; color: #3b82f6; }
.rb-pricelist__desc { color: #64748b; font-size: 0.9rem; margin-top: 2px; }

/* ============================================================
 * Flip Box
 * ============================================================ */
.rb-flip {
    perspective: 1200px;
    width: 100%;
    height: 280px;
}
.rb-flip__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s;
    transform-style: preserve-3d;
}
.rb-flip:hover .rb-flip__inner { transform: rotateY(180deg); }
.rb-flip__face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    border-radius: 8px;
    padding: 24px;
}
.rb-flip__back { transform: rotateY(180deg); }
.rb-flip__face h3 { margin: 0 0 8px; font-size: 1.5rem; }
.rb-flip__face p  { margin: 0; opacity: 0.92; }

/* ============================================================
 * Countdown
 * ============================================================ */
.rb-countdown {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}
.rb-countdown__cell {
    min-width: 72px;
    text-align: center;
}
.rb-countdown__num {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.rb-countdown__label {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
}

/* ============================================================
 * Blockquote
 * ============================================================ */
.rb-quote {
    position: relative;
    padding: 24px 24px 24px 28px;
    border-left: 4px solid #3b82f6;
    background: #f8fafc;
    border-radius: 6px;
    margin: 0;
}
.rb-quote__mark {
    position: absolute;
    top: -10px;
    left: 16px;
    font-size: 3rem;
    line-height: 1;
    color: #3b82f6;
    font-family: Georgia, serif;
}
.rb-quote__text { font-style: italic; font-size: 1.125rem; margin: 0 0 12px; }
/* The quote is autop'd richtext, so the container is a <div> holding <p>s
 * (a <p> wrapper produced invalid nested-<p> markup: browsers split it and
 * the text escaped the styled element, quote color/italic never applied). */
.rb-quote__text p { margin: 0 0 12px; }
.rb-quote__text p:last-child { margin-bottom: 0; }
.rb-quote__author { font-weight: 600; }
.rb-quote__role { color: #64748b; font-size: 0.875rem; }

/* ============================================================
 * Site widgets
 * ============================================================ */
.rb-sitelogo img { display: inline-block; max-width: 100%; height: auto; }
.rb-sitetitle a, .rb-pagetitle a { color: inherit; text-decoration: none; }
.rb-excerpt { color: #475569; }
.rb-crumbs { font-size: 14px; color: #475569; }
.rb-crumbs a { color: #2563eb; text-decoration: none; }
.rb-crumbs__sep { margin: 0 8px; color: #94a3b8; }

/* ============================================================
 * WordPress widgets
 * ============================================================ */
.rb-search-form { display: flex; gap: 8px; }
.rb-search-form input[type="search"] {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
}
.rb-search-form button {
    padding: 0 18px;
    background: #2563eb;
    color: #fff;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}
.rb-recent { list-style: none; margin: 0; padding: 0; }
.rb-recent__item { padding: 8px 0; border-bottom: 1px solid #f1f5f9; display: flex; flex-direction: column; }
.rb-recent__item a { text-decoration: none; color: #0f172a; font-weight: 500; }
.rb-recent__item a:hover { color: #2563eb; }
.rb-recent__date { color: #94a3b8; font-size: 0.8rem; }
.rb-forums { list-style: none; margin: 0; padding: 0; }
.rb-forums__item { padding: 10px 0; border-bottom: 1px solid #f1f5f9; display: flex; flex-direction: column; gap: 2px; }
.rb-forums__item:last-child { border-bottom: 0; }
.rb-forums__title a { text-decoration: none; color: #0f172a; font-weight: 600; }
.rb-forums__title a:hover { color: #2563eb; }
.rb-forums__desc { color: #64748b; font-size: 0.85rem; }
.rb-forums__meta { color: #94a3b8; font-size: 0.8rem; }
.rb-forums__notice { color: #94a3b8; font-style: italic; margin: 0; }
.rb-tickets { list-style: none; margin: 0; padding: 0; }
.rb-tickets__item { padding: 10px 0; border-bottom: 1px solid #f1f5f9; display: flex; flex-direction: column; gap: 2px; }
.rb-tickets__item:last-child { border-bottom: 0; }
.rb-tickets__title a { text-decoration: none; color: #0f172a; font-weight: 600; }
.rb-tickets__title a:hover { color: #2563eb; }
.rb-tickets__meta { color: #94a3b8; font-size: 0.8rem; }
.rb-tickets__status { font-weight: 600; color: #475569; }
.rb-tickets__status--open { color: #2563eb; }
.rb-tickets__status--in-progress { color: #d97706; }
.rb-tickets__status--on-hold { color: #94a3b8; }
.rb-tickets__status--resolved, .rb-tickets__status--closed { color: #16a34a; }
.rb-tickets__notice { color: #94a3b8; font-style: italic; margin: 0; }
.rb-categories, .rb-archives { list-style: none; margin: 0; padding: 0; }
.rb-categories li, .rb-archives li { padding: 6px 0; }
.rb-categories a, .rb-archives a { color: #2563eb; text-decoration: none; }
.rb-tagcloud a {
    display: inline-block;
    padding: 4px 10px;
    margin: 2px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px !important;
}
.rb-tagcloud a:hover { background: #2563eb; color: #fff; }
.rb-comments { list-style: none; margin: 0; padding: 0; }
.rb-comments__item { padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.rb-comments__item a { color: #2563eb; text-decoration: none; }
.rb-navmenu__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.rb-navmenu__list--vertical { flex-direction: column; gap: 4px; }
.rb-navmenu__list a {
    color: #0f172a;
    text-decoration: none;
    padding: 6px 4px;
    display: inline-block;
}
.rb-navmenu__list a:hover { color: #2563eb; }
.rb-calendar table { width: 100%; border-collapse: collapse; }
.rb-calendar caption { font-weight: 600; padding: 8px 0; }
.rb-calendar th, .rb-calendar td { padding: 6px; text-align: center; border: 1px solid #f1f5f9; }
.rb-calendar td a { color: #2563eb; text-decoration: none; font-weight: 600; }

/* ============================================================
 * Audio
 * ============================================================ */
.rb-audio audio { width: 100%; display: block; }
.rb-audio--embed { position: relative; padding-bottom: 166px; height: 0; overflow: hidden; }
.rb-audio--embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rb-audio--spotify { padding-bottom: 232px; }

/* ============================================================
 * Image Carousel
 * ============================================================ */
.rb-carousel {
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
    border-radius: 8px;
    width: 100%;
}
.rb-carousel__track {
    position: relative;
    width: 100%;
    height: 100%;
}
.rb-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.rb-carousel__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.rb-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rb-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15,23,42,0.55);
    color: #fff;
    border: 0;
    cursor: pointer;
    font-size: 24px;
    line-height: 38px;
    z-index: 2;
    transition: background 0.15s ease;
}
.rb-carousel__arrow:hover { background: rgba(15,23,42,0.85); }
.rb-carousel__arrow--prev { left: 12px; }
.rb-carousel__arrow--next { right: 12px; }
.rb-carousel__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    gap: 6px;
    justify-content: center;
    z-index: 2;
}
.rb-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.rb-carousel__dot.is-active {
    background: #fff;
    transform: scale(1.3);
}

/* ============================================================
 * Image Gallery
 * Hover motion is OPT-IN via the Hover effect control, the base
 * tile has NO animation, so "None" really means none. Each effect
 * is gated behind a .rb-gallery--hover-<name> modifier the widget
 * adds only when chosen.
 * ============================================================ */
.rb-gallery img { transition: transform 0.35s ease, filter 0.35s ease; }
.rb-gallery__item { transition: transform 0.3s ease, box-shadow 0.3s ease; }

.rb-gallery--hover-zoom-in  .rb-gallery__item:hover img { transform: scale(1.08); }
.rb-gallery--hover-zoom-out .rb-gallery__item     img   { transform: scale(1.12); }
.rb-gallery--hover-zoom-out .rb-gallery__item:hover img { transform: scale(1); }
.rb-gallery--hover-grayscale .rb-gallery__item     img  { filter: grayscale(100%); }
.rb-gallery--hover-grayscale .rb-gallery__item:hover img{ filter: grayscale(0); }
.rb-gallery--hover-blur .rb-gallery__item:hover img     { filter: blur(3px); }
.rb-gallery--hover-lift .rb-gallery__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.22);
}

/* Hover overlay + zoom icon (opt-in). */
.rb-gallery__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.rb-gallery--overlay .rb-gallery__item:hover .rb-gallery__overlay { opacity: 1; }
.rb-gallery__zoom {
    display: flex;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}
.rb-gallery--overlay .rb-gallery__item:hover .rb-gallery__zoom { transform: scale(1); }
.rb-gallery--lightbox .rb-gallery__item { cursor: zoom-in; }

/* Captions, overlay (gradient band on hover) or stacked below. */
.rb-gallery__caption { display: block; font-size: 0.9rem; line-height: 1.35; }
.rb-gallery--cap-below .rb-gallery__caption {
    padding: 8px 2px 0;
    color: inherit;
}
.rb-gallery--cap-overlay .rb-gallery__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 12px 12px;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0));
    transform: translateY(8px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.rb-gallery--cap-overlay .rb-gallery__item:hover .rb-gallery__caption {
    opacity: 1;
    transform: translateY(0);
}
/* Masonry tiles must wrap the caption, so they can't clip to a fixed height. */
.rb-gallery--masonry.rb-gallery--cap-below .rb-gallery__item { overflow: visible; }

/* ---------- Shared lightbox overlay ---------- */
.rb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    /* Hidden until opened. Without this a freshly-built (or leftover)
     * overlay would cover the whole page at opacity:0 and swallow scroll
     * and clicks, JS flips display to flex in open() and back in close(). */
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8,10,14,0.92);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.rb-lightbox.is-open { opacity: 1; }
.rb-lightbox__stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
}
.rb-lightbox__img {
    max-width: 90vw;
    max-height: 82vh;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    object-fit: contain;
    transform-origin: center center;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
}
.rb-lightbox.is-zoomed .rb-lightbox__img { cursor: grab; border-radius: 0; }
.rb-lightbox.is-zoomed .rb-lightbox__img:active { cursor: grabbing; }
.rb-lightbox__count, .rb-lightbox__btn, .rb-lightbox__cap, .rb-lightbox__zoom { z-index: 2; }
.rb-lightbox.is-single .rb-lightbox__prev,
.rb-lightbox.is-single .rb-lightbox__next,
.rb-lightbox.is-zoomed .rb-lightbox__prev,
.rb-lightbox.is-zoomed .rb-lightbox__next { display: none; }
.rb-lightbox.is-zoomed .rb-lightbox__cap { opacity: 0; }
.rb-lightbox__zoom {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(12,12,18,0.72);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.rb-lightbox__zbtn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.rb-lightbox__zbtn:hover { background: rgba(255,255,255,0.18); }
.rb-lightbox__zfit { font-size: 0.85rem; font-weight: 600; }
.rb-lightbox__zlevel { min-width: 52px; text-align: center; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.rb-lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
html.rb-lightbox-open { overflow: hidden; }
.rb-lb-target img { cursor: zoom-in; }
.rb-lightbox__cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    text-align: center;
    color: #fff;
    font-size: 0.95rem;
    padding: 0 60px;
}
.rb-lightbox__count {
    position: absolute;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(12,12,18,0.72);
    top: 20px;
    left: 24px;
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}
.rb-lightbox__btn {
    position: absolute;
    background: rgba(12,12,18,0.72);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.rb-lightbox__btn:hover { background: rgba(40,40,52,0.9); }
.rb-lightbox__close { top: 18px; right: 22px; }
.rb-lightbox__prev  { left: 22px;  top: 50%; transform: translateY(-50%); }
.rb-lightbox__next  { right: 22px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
    .rb-lightbox__prev { left: 10px; }
    .rb-lightbox__next { right: 10px; }
    .rb-lightbox__cap  { padding: 0 16px; bottom: 76px; }
    .rb-lightbox__count { display: none; }
    .rb-lightbox__zoom { top: auto; bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .rb-gallery img,
    .rb-gallery__item,
    .rb-gallery__overlay,
    .rb-gallery__caption { transition: none !important; }
}

/* ============================================================
 * Menu Anchor / Read More
 * ============================================================ */
.rb-anchor { display: block; height: 0; overflow: hidden; }
.rb-anchor__label {
    display: inline-block;
    background: #eef2ff;
    color: #4338ca;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
}
.revblocks-active .rb-anchor__label { display: none; }
.rb-anchor--placeholder {
    height: auto;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
}
.rb-readmore {
    display: inline-block;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}
.rb-readmore:hover { text-decoration: underline; }
.rb-readmore--inline {
    color: #94a3b8;
    text-align: center;
    font-style: italic;
    padding: 12px 0;
    border-top: 1px dashed #e5e7eb;
    border-bottom: 1px dashed #e5e7eb;
}

/* ============================================================
 * Sidebar / WP widget bridge
 * ============================================================ */
.rb-sidebar .widget,
.rb-wpwidget { margin-bottom: 18px; }
.rb-wpwidget__title { margin: 0 0 10px; font-size: 1.1rem; }

/* Form widget empty-state placeholder */
.rb-form-empty{padding:24px;border:1px dashed #cbd5e1;border-radius:8px;background:#f8fafc;color:#64748b;font-size:14px;text-align:center;}

/* ---------- Horizontal Scroll Cards ----------
 * Outer block reserves (span + 1) viewport-heights of scroll. The inner
 * .__pin sticks to the top for that whole distance; widgets.js maps scroll
 * progress through the block onto a translateX of the .__track. */
.rb-hscroll{position:relative;height:calc((var(--rb-hs-span,3) + 1) * 100vh);background:#0b1020;color:#fff;}
.rb-hscroll__pin{position:sticky;top:0;height:100vh;overflow:hidden;display:flex;flex-direction:column;}
/* The heading row spans the full column width; line length is the author's
 * call via the widget's own Heading padding/position controls. */
.rb-hscroll__heading{margin:0;padding:clamp(28px,6vh,64px) clamp(20px,6vw,96px) 0;font-size:clamp(1.6rem,3.4vw,2.6rem);line-height:1.15;width:100%;box-sizing:border-box;}
.rb-hscroll__viewport{flex:1;display:flex;align-items:center;overflow:hidden;}
.rb-hscroll__track{display:flex;gap:28px;padding:0 clamp(20px,6vw,96px);will-change:transform;}
.rb-hscroll__card{flex:0 0 auto;width:460px;display:flex;flex-direction:column;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);border-radius:20px;overflow:hidden;}
.rb-hscroll__media{display:block;width:100%;height:520px;object-fit:cover;}
.rb-hscroll__body{padding:22px 26px 28px;}
.rb-hscroll__title{margin:0 0 8px;font-size:1.45rem;line-height:1.25;}
.rb-hscroll__desc{margin:0;line-height:1.55;opacity:.78;}

/* Editor preview + reduced motion: no scroll-jacking. Collapse the spacer,
 * unpin, and let the cards be a normal horizontal scroller. The live preview
 * runs in an iframe whose <body> is `revblocks-editing`; the editor chrome
 * uses `revblocks-editor-body`. Target both so the neutralization actually
 * lands on the rendered widget (which lives in the iframe). */
.revblocks-editing .rb-hscroll,
.revblocks-editor-body .rb-hscroll{height:auto;}
.revblocks-editing .rb-hscroll__pin,
.revblocks-editor-body .rb-hscroll__pin{position:static;height:auto;}
.revblocks-editing .rb-hscroll__viewport,
.revblocks-editor-body .rb-hscroll__viewport{overflow-x:auto;padding-bottom:24px;}
@media (prefers-reduced-motion: reduce){
    .rb-hscroll{height:auto;}
    .rb-hscroll__pin{position:static;height:auto;}
    .rb-hscroll__viewport{overflow-x:auto;padding-bottom:24px;}
}
@media (max-width:782px){
    .rb-hscroll{height:auto;}
    .rb-hscroll__pin{position:static;height:auto;}
    .rb-hscroll__viewport{overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:24px;}
    .rb-hscroll__track{transform:none !important;}
    .rb-hscroll__card{width:78vw;}
    .rb-hscroll__media{height:58vw;}
}


/* ── Themed CTA buttons: keep the shine + lift on hover even under reduce-motion.
 * Matches the theme dashboard CTA preview, which is deliberately exempt. The
 * parent theme honors prefers-reduced-motion globally by forcing
 * transition-duration to ~0 on every element AND ::after, which silently froze
 * the button sweep on the front end while the preview still animated. The
 * `:not(#_)` bumps specificity above the theme's `*:not(#id)` rule (without
 * changing what it matches), so the button transitions win and the shine plays. */
@media (prefers-reduced-motion: reduce) {
    .rb-button:not(#_), .rb-btn:not(#_), .btn-primary:not(#_), .wp-element-button:not(#_), .rf-submit:not(#_) { transition-duration: .22s !important; }
    .rb-button:not(#_)::before, .rb-button:not(#_)::after,
    .rb-btn:not(#_)::before, .rb-btn:not(#_)::after,
    .btn-primary:not(#_)::before, .btn-primary:not(#_)::after,
    .wp-element-button:not(#_)::before, .wp-element-button:not(#_)::after,
    .rf-submit:not(#_)::before, .rf-submit:not(#_)::after { transition-duration: .7s !important; }
}

/* Contact Form widget: the embedded Revolutionary Forms markup caps itself at
 * .rf-form-wrap{max-width:720px}. Inside the Blocks Form widget, stretch it to
 * the column edge instead. The widget's "Max width" control still caps the
 * .rb-form wrapper when set, so this only removes the form's own 720px limit. */
.rb-form,
.rb-form .rf-form-wrap,
.rb-form .rf-form { max-width: none !important; width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
/* Drop the embedded form's built-in 1.75em vertical margin, spacing is the
 * end user's job via the widget Padding/Margin controls. */
.rb-form .rf-form-wrap { margin-top: 0 !important; margin-bottom: 0 !important; }

/* A column that contains a Contact Form widget spans its full row, so the form
 * is always full width regardless of the saved column width. This lives in CSS
 * (not document data), so an editor Save can't revert it, and it applies in the
 * editor canvas too. Loads after the per-post .rb-id-* width via higher
 * specificity + !important. */
.rb-column:has(.rb-form) { flex: 0 0 100% !important; max-width: 100% !important; }

/* Form fields fill the full width of the Blocks Form widget: override
 * Revolutionary Forms' .rf-size-* caps (e.g. the medium textarea's 480px) so
 * every input / textarea / select stretches with the now-full-width column. */
.rb-form .rf-input input,
.rb-form .rf-input textarea,
.rb-form .rf-input select { width: 100% !important; max-width: 100% !important; }

/* (Removed: a blanket `transform: none !important` on suite button hover. It
 * compensated for the theme's old "shine" animation smuggling in a -2px lift;
 * the theme has since split the effects (shine = the ::after sweep ONLY, lift
 * is its own checkbox), so the blanket kill only suppressed legitimately
 * configured hover transforms: lift/grow/tilt/slide never played on Blocks
 * pages while the rest of the site animated.) */

/* The hero turns itself into a flex column when it is given a minimum height.
 * A flex child stretches on the cross axis by default, and :where(.rb-button)
 * is display:inline-block, which a flex container blockifies, so the call to
 * action came out as a full width bar. text-align on the hero cannot move it
 * either, because the button is already as wide as the hero.
 *
 * A button is sized by its label, so it never stretches. The default here is
 * centre because .rb-hero is text-align:center by default; a hero with an
 * explicit alignment gets a matching align-self from the widget's own CSS,
 * which wins because this sits in :where() at zero specificity.
 *
 * Before this, every template worked around it with per-hero custom CSS. */
:where(.rb-hero__cta) { align-self: center; }

/* ---------- Timeline ---------- */
.rb-timeline { position: relative; padding-left: 36px; }
.rb-timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: #e2e8f0; }
.rb-timeline__item { position: relative; padding: 0 0 28px; }
.rb-timeline__item:last-child { padding-bottom: 0; }
.rb-timeline__marker { position: absolute; left: -33px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #0a66c2; box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.15); }
.rb-timeline__meta { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #0a66c2; margin-bottom: 4px; }
.rb-timeline__title { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.rb-timeline__body { margin: 0; line-height: 1.65; }

/* ---------- Before / After ---------- */
.rb-beforeafter { --rb-ba-pos: 50%; position: relative; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.rb-beforeafter__before, .rb-beforeafter__after { display: block; width: 100%; height: auto; }
.rb-beforeafter__after { position: absolute; inset: 0; height: 100%; object-fit: cover; clip-path: inset(0 calc(100% - var(--rb-ba-pos)) 0 0); }
.rb-beforeafter__handle { position: absolute; top: 0; bottom: 0; left: var(--rb-ba-pos); width: 3px; margin-left: -1.5px; background: #fff; cursor: ew-resize; box-shadow: 0 0 8px rgba(0, 0, 0, 0.35); }
.rb-beforeafter__grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); border: 2px solid #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); }
.rb-beforeafter__grip::before, .rb-beforeafter__grip::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 5px solid transparent; transform: translateY(-50%); }
.rb-beforeafter__grip::before { left: 6px; border-right-color: #64748b; }
.rb-beforeafter__grip::after { right: 6px; border-left-color: #64748b; }
.rb-beforeafter__label { position: absolute; top: 12px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; background: rgba(15, 23, 42, 0.65); color: #fff; pointer-events: none; }
.rb-beforeafter__label--before { left: 12px; }
.rb-beforeafter__label--after { right: 12px; }
.rb-beforeafter--empty { padding: 48px; text-align: center; background: #f1f5f9; color: #64748b; border-radius: 12px; }

/* ---------- Section background video ---------- */
.rb-section--video { position: relative; overflow: hidden; }
.rb-section__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; z-index: 0; }
.rb-section--video > .rb-section__inner { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .rb-section__video { display: none; } }

/* ==========================================================================
   SHOWCASE WIDGETS
   Frame, tabs, carousel and hero. Motion is decorative throughout, so every
   moving part is muted, loops, and stops for prefers-reduced-motion.
   ========================================================================== */

/* --- Showcase Frame ---------------------------------------------------- */
.rb-shframe { margin: 0 auto; overflow: hidden; background: #0b0e14;
  box-shadow: 0 30px 70px rgba(8, 12, 20, .28); }
.rb-shframe__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: #1f2430; color: rgba(255,255,255,.62); font-size: 12px; }
.rb-shframe__dots { display: inline-flex; gap: 6px; flex: none; }
.rb-shframe__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.22); }
.rb-shframe__address { flex: 1; text-align: center; padding: 4px 12px; border-radius: 999px;
  background: rgba(255,255,255,.08); font-size: 11px; letter-spacing: .2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-shframe--app .rb-shframe__address { display: none; }
.rb-shframe__devices { display: inline-flex; gap: 8px; align-items: flex-end; flex: none; opacity: .55; }
.rb-shframe__devices i { display: block; border: 1px solid currentColor; border-radius: 2px; }
.rb-shframe__devices .is-desktop { width: 14px; height: 10px; }
.rb-shframe__devices .is-tablet  { width: 9px;  height: 11px; }
.rb-shframe__devices .is-phone   { width: 6px;  height: 11px; }
.rb-shframe__action { flex: none; padding: 5px 12px; border-radius: 6px; background: #0a66c2;
  color: #fff; font-size: 11px; font-weight: 600; }
.rb-shframe__screen { position: relative; line-height: 0; }
.rb-shframe__media { display: block; width: 100%; height: auto; }

/* --- shared pause control ---------------------------------------------- */
.rb-shframe__pause, .rb-shcar__pause { position: absolute; right: 14px; bottom: 14px;
  width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(12,16,24,.55); backdrop-filter: blur(6px); display: grid; place-items: center; }
.rb-shframe__pause span, .rb-shcar__pause span { display: block; width: 12px; height: 12px;
  border-left: 3px solid #fff; border-right: 3px solid #fff; }
.rb-shframe__pause.is-paused span, .rb-shcar__pause.is-paused span { width: 0; height: 0;
  border: 0; border-left: 12px solid #fff; border-top: 7px solid transparent;
  border-bottom: 7px solid transparent; margin-left: 3px; }

/* --- Showcase Tabs ------------------------------------------------------ */
.rb-shtabs { display: grid; gap: 40px; align-items: center; }
.rb-shtabs--media-left .rb-shtabs__list { order: 2; }
.rb-shtabs__list { display: flex; flex-direction: column; gap: 2px; }
.rb-shtabs__item { position: relative; border: 0; background: none; cursor: pointer;
  text-align: left; padding: 12px 0; color: rgba(13,27,42,.34);
  transition: color .25s ease; }
.rb-shtabs__title { display: block; font-weight: 700; line-height: 1.15; }
.rb-shtabs__progress { display: block; height: 2px; margin-top: 10px; border-radius: 2px;
  background: rgba(127,127,127,.25); overflow: hidden; opacity: 0; transition: opacity .2s ease; }
.rb-shtabs__item.is-active .rb-shtabs__progress { opacity: 1; }
.rb-shtabs__progress i { display: block; height: 100%; width: 0; background: #0a66c2; }
.rb-shtabs__item.is-active.is-running .rb-shtabs__progress i { width: 100%;
  transition: width linear var(--rb-shtabs-dur, 5s); }
/* All panes stay RENDERED, stacked in one grid cell, and swap via visibility
 * rather than display:none. Two reasons: a lazy image inside display:none
 * never loads (no box, never intersects the viewport), so the first switch
 * to a pane showed a zero-height image and the whole section reflowed while
 * it downloaded (the content above visibly dropped into the widget); and the
 * stack means the container always holds the tallest pane's height, so
 * switching between different-sized pictures never moves the page either. */
.rb-shtabs__panes { position: relative; display: grid; }
.rb-shtabs__pane {
    grid-area: 1 / 1;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.rb-shtabs__pane.is-active { visibility: visible; opacity: 1; }
.rb-shtabs__media { display: block; width: 100%; height: auto; }
.rb-shtabs__caption { margin-top: 16px; }
.rb-shtabs__caption strong { display: block; font-size: 18px; margin-bottom: 4px; }
.rb-shtabs__caption span { display: block; line-height: 1.6; }
@media (max-width: 782px) {
  .rb-shtabs { grid-template-columns: 1fr !important; gap: 24px; }
  .rb-shtabs--media-left .rb-shtabs__list { order: 0; }
}

/* --- Showcase Carousel -------------------------------------------------- */
.rb-shcar { position: relative; }
.rb-shcar__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding-bottom: 8px;
  scrollbar-width: none; -ms-overflow-style: none; }
.rb-shcar__track::-webkit-scrollbar { display: none; }
.rb-shcar__card { flex: none; scroll-snap-align: start; }
.rb-shcar__frame { position: relative; overflow: hidden; background: #0b0e14; }
.rb-shcar__media { width: 100%; height: 100%; object-fit: cover; display: block; }
.rb-shcar__text { padding: 14px 2px 0; }
.rb-shcar__title { margin: 0 0 4px; font-size: 18px; }
.rb-shcar__body { margin: 0; line-height: 1.6; }
.rb-shcar__nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }
.rb-shcar__arrow { width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(127,127,127,.35); background: transparent; position: relative; }
.rb-shcar__arrow::before { content: ""; position: absolute; inset: 0; margin: auto;
  width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); }
.rb-shcar__arrow.is-next::before { transform: rotate(-135deg); }
.rb-shcar__arrow[disabled] { opacity: .3; cursor: default; }

/* --- Showcase Hero ------------------------------------------------------ */
.rb-shhero__frame { position: relative; overflow: hidden; display: grid; place-items: center; }
.rb-shhero__media { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; }
.rb-shhero__scrim { position: absolute; inset: 0; }
.rb-shhero__inner { position: relative; padding: 48px; max-width: 900px; }
.rb-shhero--center .rb-shhero__inner { text-align: center; }
.rb-shhero__eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; opacity: .85; }
.rb-shhero__heading { margin: 0 0 16px; line-height: 1.05; color: inherit; }
.rb-shhero__sub { margin: 0 0 24px; font-size: 18px; line-height: 1.6; opacity: .88; }
.rb-shhero__cta { display: inline-block; padding: 14px 28px; border-radius: 8px;
  background: #fff; color: #0d1b2a; font-weight: 600; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .rb-shcar__track { scroll-behavior: auto; }
  .rb-shtabs__item.is-active.is-running .rb-shtabs__progress i { transition: none; width: 100%; }
  .rb-shtabs__pane { transition: none; }
}

/* Fixed-background scroll effect: touch devices render
 * background-attachment:fixed badly (iOS ignores it or paints the image
 * zoomed), so coarse pointers fall back to normal scrolling. */
@media (pointer: coarse) {
  .rb-section, .rb-column { background-attachment: scroll !important; }
}

/* Ken Burns background: a slow ambient pan and zoom on the runtime layer,
 * time-driven rather than scroll-driven. The pan stays inside the zoom's
 * own edge margin ((scale - 1) / 2 each side), so the image never uncovers
 * the element. Depth sets --rb-kb-scale / --rb-kb-pan via widgets.js. */
.rb-parallax__layer--kenburns {
  animation: rb-kenburns 14s ease-in-out infinite alternate;
}
@keyframes rb-kenburns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(var(--rb-kb-scale, 1.1)) translate(var(--rb-kb-pan, 2%), calc(-1 * var(--rb-kb-pan, 2%))); }
}

/* ============================================================
 * Logo Carousel
 * A seamless marquee: two identical tracks slide as one, so when the
 * first has fully left the box the second is exactly where it started.
 * Only the tracks move; a single logo never moves on its own (hover
 * changes color and opacity, nothing else), so the row glides as one.
 * ============================================================ */
.rb-logos {
    --rb-logo-h: 44px;
    --rb-logo-gap: 72px;
    --rb-logo-speed: 36s;
    --rb-logo-opacity: .7;
    display: flex;
    overflow: hidden;
    width: 100%;
    padding: 8px 0;
    user-select: none;
}
.rb-logos--fade {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.rb-logos__track {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 100%;
    justify-content: space-around;
    gap: var(--rb-logo-gap);
    padding-right: var(--rb-logo-gap);
    animation: rb-logos-scroll var(--rb-logo-speed) linear infinite;
    will-change: transform;
}
.rb-logos--ltr .rb-logos__track { animation-direction: reverse; }
.rb-logos--pause:hover .rb-logos__track { animation-play-state: paused; }
.rb-logos__item {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    height: var(--rb-logo-h);
    opacity: var(--rb-logo-opacity);
    transition: opacity .35s ease, filter .35s ease;
    text-decoration: none;
    line-height: 0;
}
.rb-logos__item img {
    height: var(--rb-logo-h);
    width: auto;
    max-width: none;
    display: block;
    object-fit: contain;
}
.rb-logos--gray .rb-logos__item { filter: grayscale(1); }
.rb-logos--light .rb-logos__item { filter: brightness(0) invert(1); }
.rb-logos--gray.rb-logos--light .rb-logos__item { filter: brightness(0) invert(1); }
.rb-logos__item:hover {
    opacity: 1;
    filter: none;
}
.rb-logos--light .rb-logos__item:hover { filter: brightness(0) invert(1); }
@keyframes rb-logos-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}
/* Reduced motion stops the row and wraps it, unless the widget's "Keep
 * moving when the visitor has animations turned off" is on (--always). */
@media (prefers-reduced-motion: reduce) {
    .rb-logos:not(.rb-logos--always) { -webkit-mask-image: none; mask-image: none; }
    .rb-logos:not(.rb-logos--always) .rb-logos__track { animation: none; flex-wrap: wrap; justify-content: center; min-width: 0; width: 100%; padding-right: 0; row-gap: 24px; }
    .rb-logos:not(.rb-logos--always) .rb-logos__track[aria-hidden="true"] { display: none; }
    /* The parent theme forces every animation to ~0s and one run under
     * reduced motion; `:not(#_)` outranks its `*:not(#id)` rule so the row
     * the author asked to keep moving still loops at its own speed. */
    .rb-logos--always:not(#_) .rb-logos__track:not(#_) {
        animation-duration: var(--rb-logo-speed) !important;
        animation-iteration-count: infinite !important;
    }
}

/* ---- Color mode images ----------------------------------------------
 * Widgets with an optional "Image for dark mode" / "Image for light mode"
 * print every picture (includes/Color_Mode_Image.php). The theme's color
 * mode sets html[data-color-mode] before first paint; these rules show one
 * picture: the variant for the active mode when there is one, else the
 * default. With color mode off (no attribute) only the default shows. The
 * hidden pictures are lazy, so they are not downloaded until shown. The
 * wrapper adds no box of its own, so widget layout is unchanged. */
.rb-cm-swap { display: contents; }
html:not([data-color-mode="dark"]) .rb-cm-img--dark,
html:not([data-color-mode="light"]) .rb-cm-img--light,
html[data-color-mode="dark"] .rb-cm-swap--dark > .rb-cm-img--default,
html[data-color-mode="light"] .rb-cm-swap--light > .rb-cm-img--default { display: none !important; }

/* ---- Follow the theme's color mode ------------------------------------
 * Only when the "Follow the theme's color mode" setting is on (the plugin
 * adds body.rb-follow-color-mode) AND the theme sets html[data-color-mode]
 * (Multipurpose theme 1.48+, which also defines the --dash-mode-* colors).
 * Without both, nothing here matches and pages render as before.
 *
 * With the setting on, the CSS generator writes literal colors picked for a
 * dark design as var(--rb-cm-<role>, <chosen>). The roles are defined in
 * light mode only, so dark mode keeps the chosen colors through the fallback.
 * The widget defaults below sit inside :where() so a color set on a widget
 * still wins over them. */
html[data-color-mode="light"] body.rb-follow-color-mode {
    --rb-cm-text: var(--dash-mode-text, #0a0a0a);
    --rb-cm-muted: var(--dash-mode-muted, #525252);
    --rb-cm-surface: var(--dash-mode-surface, #ffffff);
    --rb-cm-surface-alt: var(--dash-mode-surface-alt, #f5f5f5);
    --rb-cm-border: var(--dash-mode-border, #d4d4d4);
    --rb-cm-accent: var(--dash-mode-accent, #fde247);
}
:where(html[data-color-mode="light"] body.rb-follow-color-mode) .rb-document .rb-section {
    background-color: var(--rb-cm-surface);
    color: var(--rb-cm-text);
}
:where(html[data-color-mode="light"] body.rb-follow-color-mode) .rb-document > .rb-section:first-child {
    background-image: radial-gradient(ellipse at 90% 0, color-mix(in srgb, var(--rb-cm-accent) 14%, transparent), transparent 65%);
}
:where(html[data-color-mode="light"] body.rb-follow-color-mode) .rb-document :is(.rb-heading, .rb-iconbox__title, .rb-timeline__title, .rb-accordion__header, .rb-tabs__btn) {
    color: var(--rb-cm-text);
}
:where(html[data-color-mode="light"] body.rb-follow-color-mode) .rb-document :is(.rb-text, .rb-iconbox__body, .rb-iconbox__desc, .rb-iconlist__text, .rb-timeline__body, .rb-timeline__meta, .rb-accordion__answer, .rb-accordion__panel, .rb-tabs__panel) {
    color: var(--rb-cm-text);
}
:where(html[data-color-mode="light"] body.rb-follow-color-mode) .rb-document :is(.rb-iconbox, .rb-timeline__content, .rb-accordion__item, .rb-accordion__header, .rb-accordion__answer, .rb-tabs__nav, .rb-tabs__panels) {
    background-color: var(--rb-cm-surface);
    border-color: var(--rb-cm-border);
}
:where(html[data-color-mode="light"] body.rb-follow-color-mode) .rb-document :is(.rb-iconbox__icon, .rb-iconlist__icon, .rb-timeline__marker) {
    color: var(--rb-cm-text);
    fill: var(--rb-cm-text);
}
:where(html[data-color-mode="light"] body.rb-follow-color-mode) .rb-document :is(.rb-iconbox__icon, .rb-iconlist__icon, .rb-timeline__marker) svg:not(.rb-multicolor) {
    fill: currentColor;
}
:where(html[data-color-mode="light"] body.rb-follow-color-mode) .rb-document :is(.rb-accordion__header:hover, .rb-tabs__btn[aria-selected="true"]) {
    background-color: var(--rb-cm-surface-alt);
    color: var(--rb-cm-text);
    box-shadow: inset 3px 0 0 var(--rb-cm-accent);
}
:where(html[data-color-mode="light"] body.rb-follow-color-mode) .rb-document :is(.rb-table, .rb-table td, .rb-table th) {
    background-color: var(--rb-cm-surface);
    border-color: var(--rb-cm-border);
    color: var(--rb-cm-text);
}
:where(html[data-color-mode="light"] body.rb-follow-color-mode) .rb-document .rb-table th {
    background-color: var(--rb-cm-surface-alt);
}
:where(html[data-color-mode="light"] body.rb-follow-color-mode) .rb-document .rb-text a {
    color: var(--rb-cm-text);
    text-decoration: underline;
    text-decoration-color: var(--rb-cm-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
