html { scroll-behavior: smooth; }

/**
 * Caarvio Velocity – Frontend CSS v1.1.0
 * Automotive Dark Design Language
 */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }

/* ═══════════════════════════════════════ NAVBAR ══════════════════════════════════════ */

.cvio-vel-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    /* env(safe-area-inset-top) handles iPhone notch + Android Chrome address bar */
    top: env(safe-area-inset-top, 0px);
    z-index: 9900;
    height: var(--vel-nav-h, 77px);
    display: flex;
    flex-direction: column;
    transition: background .35s cubic-bezier(.4,0,.2,1),
                box-shadow  .35s cubic-bezier(.4,0,.2,1),
                height      .3s  cubic-bezier(.4,0,.2,1);
    will-change: background, box-shadow;
}

/* Transparent (hero + before scroll) */
.cvio-vel-navbar:not(.cvio-vel-navbar--solid):not(.cvio-vel-navbar--sticky-mode):not(.is-scrolled) {
    background: transparent;
}

/* Solid */
.cvio-vel-navbar--solid,
.cvio-vel-navbar--sticky-mode,
.cvio-vel-navbar.is-scrolled {
    background: rgba(10,10,10,.95);
    box-shadow: 0 1px 0 rgba(var(--vel-primary-rgb),.25), 0 8px 32px rgba(0,0,0,.6);
}
/* Shrink on scroll */
.cvio-vel-navbar.is-scrolled {
    height: calc(var(--vel-nav-h, 77px) * .72);
}
.cvio-vel-navbar.is-scrolled .cvio-vel-navbar__inner {
    height: 100%;
}
.cvio-vel-navbar.is-scrolled .cvio-vel-logo__img {
    /* Use per-breakpoint var so mobile/tablet get their own base size × 0.72 */
    height: calc(var(--vel-logo-h, 45px) * .72);
    transition: height .3s cubic-bezier(.4,0,.2,1);
}
@media (max-width: 1024px) {
    .cvio-vel-navbar.is-scrolled .cvio-vel-logo__img {
        height: calc(var(--vel-logo-h-tablet, 35px) * .72);
    }
}
@media (max-width: 640px) {
    .cvio-vel-navbar.is-scrolled .cvio-vel-logo__img {
        height: calc(var(--vel-logo-h-mobile, 30px) * .72);
    }
}

/* Blur */
.cvio-vel-navbar.is-scrolled.has-blur {
    background: rgba(10,10,10,.82);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}

/* ── Inner ── */
.cvio-vel-navbar__inner {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: var(--vel-nav-max-w, 1280px);
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 1.5rem;
}

/* Full-width variant (no inner padding constraint) */
.cvio-vel-navbar[style*="--vel-nav-max-w:100%"] .cvio-vel-navbar__inner,
:root[style*="--vel-nav-max-w:100%"] .cvio-vel-navbar__inner {
    max-width: 100%;
    padding: 0 1.5rem;
}

/* ── Accent Line ── */
.cvio-vel-navbar__accent {
    height: 2px;
    background: linear-gradient(90deg,transparent,rgba(var(--vel-primary-rgb),.9) 30%,rgba(var(--vel-primary-rgb),1) 50%,rgba(var(--vel-primary-rgb),.9) 70%,transparent);
    opacity: 0;
    transition: opacity .35s ease;
}
.cvio-vel-navbar--solid .cvio-vel-navbar__accent,
.cvio-vel-navbar--sticky-mode .cvio-vel-navbar__accent,
.cvio-vel-navbar.is-scrolled .cvio-vel-navbar__accent { opacity: 1; }

/* ═══════════════════════════════════════ SOCIAL ICONS ══════════════════════════════ */

.cvio-vel-socials {
    display: flex; align-items: center; gap: .35rem; flex-shrink: 0;
}
.cvio-vel-social-link {
    display: flex; align-items: center; gap: .35rem;
    color: rgba(255,255,255,.7); text-decoration: none;
    padding: .4rem .5rem; border-radius: 5px;
    transition: color .2s, background .2s;
}
.cvio-vel-social-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.cvio-vel-social-link svg { flex-shrink: 0; }
.cvio-vel-social__label { font-size: .78rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 1024px) { .cvio-vel-socials { display: none; } }

/* ═══════════════════════════════════════ LOGO ══════════════════════════════════════ */

@keyframes vel-logo-shine {
    0%   { transform: translateX(-200%) skewX(-15deg); opacity: 0; }
    10%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateX(250%) skewX(-15deg); opacity: 0; }
}

/* Outer link: drop-shadow here so mask-image on __clip doesn't clip it */
.cvio-vel-logo {
    display: flex; align-items: center; flex-shrink: 0;
    text-decoration: none; outline: none;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,.55));
    transition: filter .3s;
}
.cvio-vel-logo:focus-visible { outline: 2px solid var(--vel-primary); outline-offset: 3px; border-radius: 3px; }

/* Inner clip wrapper:
   overflow:hidden clips the shine horizontally.
   mask-image uses the logo PNG itself as a pixel-perfect alpha mask:
   the shine only shows through opaque logo pixels, never on
   transparent PNG corners. --logo-mask is set inline by PHP. */
.cvio-vel-logo__clip {
    position: relative;
    overflow: hidden;
    display: inline-flex; line-height: 0;
    -webkit-mask-image: var(--logo-mask, none);
            mask-image: var(--logo-mask, none);
    -webkit-mask-size: contain;
            mask-size: contain;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
}

/* Shine pseudo-element */
.cvio-vel-logo__clip::after {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 55%; height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,.8) 50%,
        transparent 100%
    );
    transform: translateX(-200%) skewX(-15deg);
    pointer-events: none;
    opacity: 0;
}

/* Load shimmer: plays once on front page */
body.cvio-vel-logo-shimmer .cvio-vel-logo__clip::after {
    animation: vel-logo-shine 1.1s cubic-bezier(.4,0,.2,1) .7s 1 forwards;
}

/* Hover shimmer: plays on every hover, all pages */
.cvio-vel-logo:hover .cvio-vel-logo__clip::after {
    animation: vel-logo-shine .75s cubic-bezier(.4,0,.2,1) 0s 1 forwards;
}

.cvio-vel-logo__img {
    display: block; width: auto; object-fit: contain;
    /* no filter here – drop-shadow lives on .cvio-vel-logo to avoid mask clipping */
    transition: height .3s cubic-bezier(.4,0,.2,1);
    height: var(--vel-logo-h, 45px);
}
@media (max-width: 1024px) {
    .cvio-vel-logo__img { height: var(--vel-logo-h-tablet, 35px); }
}
@media (max-width: 640px) {
    .cvio-vel-logo__img { height: var(--vel-logo-h-mobile, 30px); }
}
.cvio-vel-navbar--solid .cvio-vel-logo,
.cvio-vel-navbar.is-scrolled .cvio-vel-logo { filter: none; }

.cvio-vel-logo__text {
    font-family: var(--vel-font, inherit);
    font-size: 1.2rem; font-weight: 800; letter-spacing: .05em;
    color: #fff; text-transform: uppercase;
}

/* ═══════════════════════════════════════ DESKTOP NAV ═══════════════════════════════ */

.cvio-vel-nav { flex: 1; display: flex; justify-content: flex-end; align-items: center; }

.cvio-vel-nav ul,
.cvio-vel-nav .cvio-vel-nav__list {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; gap: .2rem;
}

.cvio-vel-nav li { position: relative; margin: 0; }

.cvio-vel-nav a {
    font-family: var(--vel-font, inherit);
    font-size: var(--vel-nav-fs-desktop, 15px); font-weight: 600;
    letter-spacing: .01em;
    color: rgba(255,255,255,.92);
    text-decoration: none; padding: .6rem 1rem;
    border-radius: 4px; display: flex; align-items: center;
    position: relative; transition: color .2s, background .2s;
    white-space: nowrap;
}
.cvio-vel-nav a::after {
    content: ''; position: absolute;
    bottom: 2px; left: .9rem; right: .9rem;
    height: var(--vel-underline-h, 1.5px);
    background: var(--vel-underline-color, var(--vel-primary));
    transform: scaleX(0); transform-origin: var(--vel-underline-origin, center);
    transition: transform var(--vel-underline-duration, .25s) cubic-bezier(.4,0,.2,1);
    border-radius: 1px;
}
.cvio-vel-nav a:hover { color: #fff; }
.cvio-vel-nav a:hover::after { transform: scaleX(1); }
.cvio-vel-nav li.current-menu-item > a,
.cvio-vel-nav li.current_page_item > a { color: #fff; font-weight: 700; }
.cvio-vel-nav li.current-menu-item > a::after,
.cvio-vel-nav li.current_page_item > a::after { transform: scaleX(1); }
.cvio-vel-nav a:focus-visible { outline: 2px solid var(--vel-primary); outline-offset: 2px; border-radius: 4px; }

/* Sub-menus */
.cvio-vel-nav ul ul {
    position: absolute; top: calc(100% + 8px); right: 0;
    flex-direction: column; gap: 0;
    background: rgba(14,14,14,.97);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.08); border-radius: 8px;
    min-width: 200px; padding: .4rem;
    box-shadow: 0 16px 48px rgba(0,0,0,.6);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s; z-index: 9910;
}
.cvio-vel-nav li:hover > ul,
.cvio-vel-nav li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.cvio-vel-nav ul ul a { font-size: .82rem; padding: .55rem .75rem; border-radius: 5px; letter-spacing: .02em; }
.cvio-vel-nav ul ul a::after { display: none; }
.cvio-vel-nav ul ul a:hover { background: rgba(var(--vel-primary-rgb),.12); color: #fff; }

/* ═══════════════════════════════════════ BURGER ════════════════════════════════════ */

.cvio-vel-burger {
    display: none; flex-direction: column; justify-content: center; align-items: flex-end;
    gap: 5px; width: 40px; height: 40px; padding: 8px;
    background: transparent; border: none; cursor: pointer;
    flex-shrink: 0; border-radius: 6px; transition: background .2s; margin-left: auto;
}
.cvio-vel-burger:hover { background: rgba(255,255,255,.08); }
.cvio-vel-burger:focus-visible { outline: 2px solid var(--vel-primary); outline-offset: 2px; }

.cvio-vel-burger__line {
    display: block; height: 2px; background: #fff; border-radius: 2px;
    transform-origin: center;
    transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s, width .35s cubic-bezier(.4,0,.2,1);
}
.cvio-vel-burger__line--top    { width: 22px; }
.cvio-vel-burger__line--mid    { width: 22px; }
.cvio-vel-burger__line--bottom { width: 22px; }

.cvio-vel-burger.is-open .cvio-vel-burger__line--top    { transform: translateY(7px) rotate(45deg); width: 22px; }
.cvio-vel-burger.is-open .cvio-vel-burger__line--mid    { opacity: 0; transform: scaleX(0); }
.cvio-vel-burger.is-open .cvio-vel-burger__line--bottom { transform: translateY(-7px) rotate(-45deg); width: 22px; }

/* ═══════════════════════════════════════ MOBILE PANEL ══════════════════════════════ */

.cvio-vel-mobile-panel {
    position: fixed; inset: 0; z-index: 9950; pointer-events: none;
    clip-path: inset(0 0 0 0); /* clips drawer shadow that bleeds into viewport when off-screen */
}
.cvio-vel-mobile-panel.is-open { pointer-events: all; }

.cvio-vel-mobile-panel__backdrop {
    position: absolute; inset: 0;
    background: transparent; /* no darkening – clean look */
    opacity: 1;
}
.cvio-vel-mobile-panel.is-open .cvio-vel-mobile-panel__backdrop { opacity: 1; }

.cvio-vel-mobile-panel__drawer {
    position: absolute; top: 0; left: 0; right: 0;
    width: 100%;
    /* stops above browser address bar on iOS 26 / modern mobile browsers */
    max-height: calc(100dvh - env(safe-area-inset-bottom, 34px) - 24px);
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255,255,255,.07);
    display: flex; flex-direction: column;
    transform: translateY(-100%);
    transition: transform .38s cubic-bezier(.4,0,.2,1);
    overflow-y: auto; overscroll-behavior: contain;
    box-shadow: none;
}
.cvio-vel-mobile-panel.is-open .cvio-vel-mobile-panel__drawer {
    transform: translateY(0);
    box-shadow: 0 16px 48px rgba(0,0,0,.7);
}

.cvio-vel-mobile-panel__head {
    display: flex; align-items: center; justify-content: flex-end;
    padding: .75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.06); flex-shrink: 0;
}
.cvio-vel-mobile-panel__brand { display: none; /* removed – redundant */ }
.cvio-vel-mobile-panel__close {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border: none; background: rgba(255,255,255,.05);
    border-radius: 8px; color: rgba(255,255,255,.7);
    cursor: pointer; transition: background .2s, color .2s;
}
.cvio-vel-mobile-panel__close:hover { background: rgba(255,255,255,.1); color: #fff; }

.cvio-vel-mobile-nav { padding: .75rem 0; flex: 1; }

.cvio-vel-mobile-nav ul,
.cvio-vel-mobile-nav__list { list-style: none; margin: 0; padding: 0; }

.cvio-vel-mobile-nav li { opacity: 0; transform: translateX(20px); transition: opacity .3s, transform .3s; }
.cvio-vel-mobile-panel.is-open .cvio-vel-mobile-nav li { opacity: 1; transform: translateX(0); }
.cvio-vel-mobile-panel.is-open .cvio-vel-mobile-nav li:nth-child(1) { transition-delay: .07s; }
.cvio-vel-mobile-panel.is-open .cvio-vel-mobile-nav li:nth-child(2) { transition-delay: .12s; }
.cvio-vel-mobile-panel.is-open .cvio-vel-mobile-nav li:nth-child(3) { transition-delay: .17s; }
.cvio-vel-mobile-panel.is-open .cvio-vel-mobile-nav li:nth-child(4) { transition-delay: .22s; }
.cvio-vel-mobile-panel.is-open .cvio-vel-mobile-nav li:nth-child(5) { transition-delay: .27s; }
.cvio-vel-mobile-panel.is-open .cvio-vel-mobile-nav li:nth-child(n+6) { transition-delay: .32s; }

.cvio-vel-mobile-nav a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.5rem;
    font-family: var(--vel-font,inherit);
    font-size: 1.05rem; font-weight: 600; letter-spacing: .03em;
    color: rgba(255,255,255,.85); text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.04);
    transition: color .2s, background .2s, padding-left .2s; position: relative;
}
.cvio-vel-mobile-nav a::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 2px; background: var(--vel-primary);
    transform: scaleY(0); transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.cvio-vel-mobile-nav a:hover,
.cvio-vel-mobile-nav li.current-menu-item > a {
    color: #fff; background: rgba(var(--vel-primary-rgb),.06); padding-left: calc(1.5rem + 8px);
}
.cvio-vel-mobile-nav a:hover::before,
.cvio-vel-mobile-nav li.current-menu-item > a::before { transform: scaleY(1); }

.cvio-vel-mobile-panel__footer { display: none; /* removed – redundant company name */ }

/* ═══════════════════════════════════════ HERO ═══════════════════════════════════════ */

.cvio-vel-hero {
    position: relative; width: 100%;
    /* Desktop height */
    height: var(--hero-h, 100vh);
    min-height: 480px;
    display: flex; align-items: center; justify-content: center;
    /* overflow:hidden moved to __bg – was blocking iOS touch on absolute children */
    background: #000; /* prevents white flash during hero image fade-in */
    /* Pull up behind fixed navbar */
    margin-top: calc(var(--vel-nav-h, 77px) * -1);
    padding-top: var(--vel-nav-h, 77px);
}

.cvio-vel-hero__bg { position: absolute; inset: 0; z-index: 0; background: #000; overflow: hidden; }

/* ── Hero image load animation ── */
@keyframes vel-hero-img-in {
    from { opacity: 0; transform: scale(1.04) translateY(12px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}
.cvio-vel-hero__bg-img {
    width: 100%; height: 100%; object-fit: cover;
    object-position: var(--hero-img-pos, center center);
    animation: vel-hero-img-in 1.1s cubic-bezier(.4,0,.2,1) both;
}
.cvio-vel-hero__bg-video { width: 100%; height: 100%; object-fit: cover; }
.cvio-vel-hero__bg-grad,
.cvio-vel-hero__bg-fallback { width: 100%; height: 100%; }
.cvio-vel-hero__bg-fallback { background: linear-gradient(135deg,#1a1a1a,#0a0a0a); }

.cvio-vel-hero__overlay {
    position: absolute; inset: 0; z-index: 1;
    background: rgb(var(--hero-overlay-rgb, 0,0,0));
}
.cvio-vel-hero__overlay--grad {
    background: none; /* gradient set inline from PHP */
}
/* Fade overlay: top dark → bottom lighter (set from PHP via inline style) */
.cvio-vel-hero__overlay--fade {
    background: none; /* gradient set inline from PHP */
}

.cvio-vel-hero__pattern {
    position: absolute; inset: 0; z-index: 2;
    /* opacity via CSS var so backend strength slider works */
    background-image: radial-gradient(circle,rgba(255,255,255,var(--hero-pattern-opacity,.12)) 1px,transparent 1px);
    background-size: var(--hero-pattern-size, 28px) var(--hero-pattern-size, 28px);
    pointer-events: none;
}


/* Top gradient – behind navbar content, over hero image only */
.cvio-vel-hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 55%; z-index: 2;
    background: linear-gradient(to bottom,
        rgba(0,0,0,var(--hero-top-grad-opacity, .72)) 0%,
        rgba(0,0,0,calc(var(--hero-top-grad-opacity, .72) * .55)) 30%,
        rgba(0,0,0,calc(var(--hero-top-grad-opacity, .72) * .18)) 65%,
        transparent 100%);
    pointer-events: none;
}

/* Bottom fade for content readability */
.cvio-vel-hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 45%;
    z-index: 3; background: linear-gradient(to top,rgba(0,0,0,.55),transparent);
    pointer-events: none;
}

.cvio-vel-hero__content {
    position: relative; z-index: 5; width: 100%; padding: 0 2rem;
}

.cvio-vel-container { max-width: var(--vel-nav-max-w, 1280px); margin: 0 auto; width: 100%; }

.cvio-vel-hero__inner {
    display: flex; flex-direction: column; gap: 1.25rem;
    /* text-align set inline from PHP */
    animation: vel-hero-in .9s cubic-bezier(.4,0,.2,1) both;
}

.cvio-vel-hero__headline {
    font-family: var(--vel-font,inherit);
    font-size: var(--hero-hl-d, 42px);
    font-weight: 800; line-height: 1.08; letter-spacing: -.02em;
    color: #fff; margin: 0;
    text-shadow: 0 2px 32px rgba(0,0,0,.8);
    animation: vel-hero-in .9s .1s cubic-bezier(.4,0,.2,1) both;
}
.cvio-vel-hero__headline strong,
.cvio-vel-hero__headline em { color: var(--vel-primary); font-style: normal; }

.cvio-vel-hero__subtext {
    font-family: var(--vel-font,inherit);
    font-size: var(--hero-sub-d, 17px);
    line-height: 1.65; color: rgba(255,255,255,.78); margin: 0;
    text-shadow: 0 1px 12px rgba(0,0,0,.7);
    animation: vel-hero-in .9s .2s cubic-bezier(.4,0,.2,1) both;
}

.cvio-vel-hero__ctas {
    display: flex; flex-wrap: wrap; gap: .875rem;
    /* justify-content set inline from PHP */
    animation: vel-hero-in .9s .3s cubic-bezier(.4,0,.2,1) both;
}

.cvio-vel-btn {
    display: inline-flex; align-items: center; gap: .45rem;
    font-family: var(--vel-font,inherit);
    font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    text-decoration: none; padding: .8rem 1.6rem;
    border-radius: 5px; border: 2px solid transparent; cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s cubic-bezier(.4,0,.2,1), box-shadow .2s;
    white-space: nowrap;
}
.cvio-vel-btn--primary {
    background: var(--vel-primary); color: #fff; border-color: var(--vel-primary);
    box-shadow: 0 4px 24px rgba(var(--vel-primary-rgb),.4);
}
.cvio-vel-btn--primary:hover {
    background: var(--vel-secondary); border-color: var(--vel-secondary);
    transform: translateY(-2px); box-shadow: 0 8px 32px rgba(var(--vel-primary-rgb),.5);
}
.cvio-vel-btn--primary:active { transform: translateY(0); }
.cvio-vel-btn__arrow { transition: transform .2s; flex-shrink: 0; }
.cvio-vel-btn--primary:hover .cvio-vel-btn__arrow { transform: translateX(4px); }


/* Button size variants */
.cvio-vel-btn--small {
    font-size: .75rem; padding: .55rem 1.1rem;
}
.cvio-vel-btn--small .cvio-vel-btn__arrow { width: 13px; height: 13px; }
.cvio-vel-btn--large {
    font-size: .95rem; padding: 1rem 2rem;
}
.cvio-vel-btn--large .cvio-vel-btn__arrow { width: 18px; height: 18px; }
.cvio-vel-btn--ghost {
    background: transparent; color: rgba(255,255,255,.88); border-color: rgba(255,255,255,.35);
}
.cvio-vel-btn--ghost:hover {
    background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.7);
    color: #fff; transform: translateY(-2px);
}

/* Scroll Indicator */
.cvio-vel-hero__scroll-wrap {
    position: absolute; bottom: 1.75rem; left: 50%;
    transform: translateX(-50%); z-index: 6;
    animation: vel-hero-in 1.2s .6s ease both; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: .3rem;
}
/* Desktop: keep classic mouse indicator */
.cvio-vel-scroll-ind { display: flex; flex-direction: column; align-items: center; gap: .35rem; animation: vel-scroll-float 2.2s ease-in-out infinite; }
.cvio-vel-scroll-ind__mouse { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.45); border-radius: 12px; position: relative; display: flex; justify-content: center; transition: border-color .2s; }
.cvio-vel-scroll-ind:hover .cvio-vel-scroll-ind__mouse { border-color: var(--vel-scroll-ind-color, rgba(255,255,255,.9)); }
.cvio-vel-scroll-ind__wheel { width: 3px; height: 7px; background: rgba(255,255,255,.8); border-radius: 2px; margin-top: 5px; animation: vel-scroll-wheel 2.2s ease-in-out infinite; }
.cvio-vel-scroll-ind__label { font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.4); }
/* Tablet/Mobile: animated chevron instead */
@media (max-width: 1024px) {
    .cvio-vel-scroll-ind__mouse,
    .cvio-vel-scroll-ind__wheel,
    .cvio-vel-scroll-ind__label { display: none; }
    .cvio-vel-hero__scroll-wrap::after {
        content: '';
        display: block;
        width: 22px; height: 22px;
        border-right: 2px solid rgba(255,255,255,.6);
        border-bottom: 2px solid rgba(255,255,255,.6);
        transform: rotate(45deg);
        animation: vel-chevron-bounce 1.6s ease-in-out infinite;
    }
    .cvio-vel-hero__scroll-wrap::before {
        content: '';
        display: block;
        width: 22px; height: 22px;
        border-right: 2px solid rgba(255,255,255,.3);
        border-bottom: 2px solid rgba(255,255,255,.3);
        transform: rotate(45deg);
        animation: vel-chevron-bounce 1.6s ease-in-out .25s infinite;
        margin-bottom: -14px;
    }
}

/* ═════════════════════ ANIMATIONS ═══════════════════ */

@keyframes vel-hero-in {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes vel-scroll-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }
@keyframes vel-scroll-wheel { 0%{transform:translateY(0);opacity:1} 60%{transform:translateY(8px);opacity:0} 61%{transform:translateY(0);opacity:0} 100%{opacity:1} }
@keyframes vel-chevron-bounce { 0%,100%{transform:rotate(45deg) translate(0,0);opacity:.4} 50%{transform:rotate(45deg) translate(4px,4px);opacity:1} }

/* ═════════════════════ RESPONSIVE ═══════════════════ */


/* Mobile/Tablet: always solid navbar – hero starts below */
@media (max-width: 1024px) {
    .cvio-vel-navbar {
        background: var(--vel-primary) !important;
        box-shadow: 0 2px 12px rgba(0,0,0,.4) !important;
    }
    .cvio-vel-navbar__accent { opacity: 0 !important; }
    /* hero no longer needs to underlay navbar on mobile */
    .cvio-vel-hero {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    body.cvio-vel-hero-page { padding-top: var(--vel-nav-h) !important; }
}
/* Tablet */
@media (max-width: 1024px) {
    .cvio-vel-navbar__inner { padding: 0 1.25rem; }
    .cvio-vel-nav { display: none; }
    .cvio-vel-burger { display: flex; }
    .cvio-vel-mobile-nav a { font-size: var(--vel-nav-fs-tablet, 15px); }
    /* Tablet hero height */
    .cvio-vel-hero { height: var(--hero-h-tablet, 80vh); }
    .cvio-vel-hero__headline { font-size: var(--hero-hl-t, 32px); }
    .cvio-vel-hero__subtext  { font-size: var(--hero-sub-t, 15px); }
    .cvio-vel-hero__content  { text-align: var(--hero-ta-t, var(--hero-text-align, center)); }
    .cvio-vel-btn--hide-t    { display: none !important; }
}

/* Mobile */
@media (max-width: 640px) {
    .cvio-vel-navbar__inner { padding: 0 1rem; }
    .cvio-vel-mobile-nav a { font-size: var(--vel-nav-fs-mobile, 16px); }
    /* Mobile hero height */
    .cvio-vel-hero { height: var(--hero-h-mobile, 70vh); min-height: 380px; }
    .cvio-vel-hero__headline { font-size: var(--hero-hl-m, 22px); }
    .cvio-vel-hero__subtext  { font-size: var(--hero-sub-m, 14px); }
    .cvio-vel-hero__content  { text-align: var(--hero-ta-m, var(--hero-text-align, center)); }
    .cvio-vel-btn--hide-m    { display: none !important; }
    .cvio-vel-hero__ctas     { flex-direction: column; align-items: stretch; }
    .cvio-vel-btn            { justify-content: center; }
    .cvio-vel-hero__content  { padding: 0 1rem; }
    .cvio-vel-hero__scroll-wrap { bottom: 1.5rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cvio-vel-navbar, .cvio-vel-navbar__accent, .cvio-vel-logo,
    .cvio-vel-nav a, .cvio-vel-nav a::after, .cvio-vel-burger__line,
    .cvio-vel-mobile-panel__backdrop, .cvio-vel-mobile-panel__drawer,
    .cvio-vel-mobile-nav li, .cvio-vel-hero__inner, .cvio-vel-hero__headline,
    .cvio-vel-hero__subtext, .cvio-vel-hero__ctas, .cvio-vel-btn,
    .cvio-vel-hero__bg-img, .cvio-vel-scroll-ind, .cvio-vel-scroll-ind__wheel {
        transition: none !important; animation: none !important;
    }
}


/* ── WP Admin Bar compatibility ── */
.admin-bar .cvio-vel-navbar { top: calc(32px + env(safe-area-inset-top, 0px)); }
@media screen and (max-width: 782px) {
    .admin-bar .cvio-vel-navbar { top: calc(46px + env(safe-area-inset-top, 0px)); }
}

/* ═════════════════════ BODY ═════════════════════════ */
body.cvio-vel-active  { padding-top: var(--vel-nav-h, 77px); }
body.cvio-vel-hero-page { padding-top: 0 !important; }

/* ═════════════════════ PRINT ═════════════════════════ */
@media print {
    /* Remove Velocity elements from document flow entirely */
    .cvio-vel-navbar,
    .cvio-vel-hero,
    .cvio-vel-mobile-panel,
    .cvio-vel-hero__scroll-wrap { display: none !important; }

    /* Reset body padding Velocity added */
    body.cvio-vel-active,
    body.cvio-vel-hero-page { padding-top: 0 !important; }

    /* html background: Velocity sets html{background-color:primary} inline.
       Black primary bleeds through visibility:hidden elements in print.
       Force white here so Caarvio's print layout renders cleanly. */
    html { background-color: #fff !important; }
}

/* ═════════════════ PER-BREAKPOINT HERO CONTENT ══════════════════ */

/* Desktop: show desktop, hide tablet/mobile variants */
.cvio-vel-hero__content--tablet,
.cvio-vel-hero__content--mobile { display: none !important; }

@media (max-width: 1024px) {
    .cvio-vel-hero__content:not(.cvio-vel-hero__content--tablet):not(.cvio-vel-hero__content--mobile) { display: none !important; }
    .cvio-vel-hero__content--tablet { display: flex !important; }
}
@media (max-width: 640px) {
    .cvio-vel-hero__content--tablet { display: none !important; }
    .cvio-vel-hero__content--mobile { display: flex !important; }
}

/* ═════════════════ TRUST / SOCIAL PROOF STRIP ═══════════════════ */

.cvio-vel-trust {
    position: absolute; z-index: 6;
    bottom: 1.75rem;
    display: flex; flex-direction: column; gap: .4rem;
    align-items: flex-start;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.12);
    padding: .55rem .85rem; border-radius: 8px;
    animation: vel-hero-in .9s .4s both;
}
.cvio-vel-trust--bottom-left   { left: 2rem; }
.cvio-vel-trust--bottom-center { left: 0; right: 0; margin-left: auto; margin-right: auto; width: fit-content; max-width: calc(100% - 4rem); align-items: center; }
.cvio-vel-trust--bottom-right  { right: 2rem; left: auto; align-items: flex-end; }

/* Main row: stars + score + badges all inline */
.cvio-vel-trust__main-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
}

.cvio-vel-trust__stars { display: flex; gap: 2px; align-items: center; }

.cvio-vel-trust__info {
    display: flex; align-items: center; gap: .3rem;
    font-size: .78rem; color: rgba(255,255,255,.9);
    white-space: nowrap;
}
.cvio-vel-trust__avg   { font-size: .95rem; font-weight: 700; color: #fff; }
.cvio-vel-trust__sep   { font-size: .72rem; color: rgba(255,255,255,.5); }
.cvio-vel-trust__dot   { color: rgba(255,255,255,.3); }
.cvio-vel-trust__num   { font-weight: 600; color: #fff; }
.cvio-vel-trust__label { color: rgba(255,255,255,.7); }

.cvio-vel-trust__src {
    flex-shrink: 0;
    font-size: .62rem; font-weight: 700; letter-spacing: .04em;
    padding: 2px 6px; border-radius: 4px; text-transform: uppercase;
}
.cvio-vel-trust__src--google { background: rgba(66,133,244,.25); color: #93bbfc; }
.cvio-vel-trust__src--as24   { background: rgba(245,242,0,.15); color: #f5f240; }

.cvio-vel-trust--hide-t { display: none; }
@media (max-width: 640px) { .cvio-vel-trust--hide-m { display: none !important; } }
@media (max-width: 1024px) {
    .cvio-vel-trust--bottom-left  { left: 1rem; }
    .cvio-vel-trust--bottom-right { right: 1rem; }
    .cvio-vel-trust--bottom-center { bottom: 2rem; }
}
@media (max-width: 640px) {
    .cvio-vel-trust { bottom: 1rem; font-size: .7rem; padding: .45rem .7rem; }
    .cvio-vel-trust__avg { font-size: .85rem; }
}
@media print {
    .cvio-vel-trust { display: none !important; }
}

/* ── Trust strip: anchor trigger (always div + data-anchor for iOS compat) ── */
.cvio-vel-trust[data-anchor] {
    cursor: pointer;
    pointer-events: all;  /* override any inherited none from hero children */
    -webkit-tap-highlight-color: rgba(255,255,255,.15);
    touch-action: manipulation;
    user-select: none; -webkit-user-select: none;
}
.cvio-vel-trust[data-anchor]:hover,
.cvio-vel-trust[data-anchor]:active { background: rgba(0,0,0,.6); }

/* ── Trust strip: badge visibility per breakpoint ── */
@media (max-width: 1024px) {
    .cvio-vel-trust__src--hide-t { display: none !important; }
    .cvio-vel-trust--bottom-left  { left: 1rem; }
    .cvio-vel-trust--bottom-right { right: 1rem; }
    .cvio-vel-trust--bottom-center { bottom: 2rem; }
    .cvio-vel-trust { bottom: 1rem; font-size: .7rem; padding: .45rem .7rem; }
}
@media (max-width: 640px) {
    .cvio-vel-trust__src--hide-m { display: none !important; }
    .cvio-vel-trust__avg { font-size: .85rem; }
}

/* ── Trust strip: rotating quotes ── */
.cvio-vel-trust__quotes {
    /* Full-width row below the main strip row */
    width: 100%;
    min-height: 2em;
    position: relative;
}
.cvio-vel-trust__quote {
    /* Stacked absolutely so all occupy same space – only active is visible */
    position: absolute; top: 0; left: 0; right: 0;
    font-size: .72rem; color: rgba(255,255,255,.72);
    font-style: italic; line-height: 1.45;
    opacity: 0; visibility: hidden;
    transition: opacity .7s ease, visibility .7s ease;
}
.cvio-vel-trust__quote.is-active {
    position: relative; /* takes up height */
    opacity: 1; visibility: visible;
}
/* Fade-out class applied by JS before switching */
.cvio-vel-trust__quote.is-leaving {
    position: absolute;
    opacity: 0; visibility: hidden;
    transition: opacity .5s ease, visibility .5s ease;
}
/* When quotes present, allow strip to be a bit wider */
.cvio-vel-trust--has-quotes {
    max-width: 380px;
}
@media (max-width: 640px) {
    .cvio-vel-trust--has-quotes { max-width: calc(100% - 2rem); }
    .cvio-vel-trust__quote { font-size: .68rem; }
}

/* ═════════════════════ HERO SLIDESHOW ══════════════════════════════ */

/* All slides stacked, only .is-active visible */
.cvio-vel-hero__bg-slide {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: var(--hero-img-pos, 50% 50%);
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(.4,0,.2,1);
    will-change: opacity;
}
.cvio-vel-hero__bg-slide.is-active {
    opacity: 1;
}

/* Zoom-fade: subtle Ken Burns on active slide */
.cvio-vel-hero--slideshow[data-slide-trans="zoom-fade"] .cvio-vel-hero__bg-slide.is-active {
    animation: vel-slide-zoom 8s linear forwards;
}
@keyframes vel-slide-zoom {
    from { transform: scale(1.0); }
    to   { transform: scale(1.08); }
}
/* Reset zoom when slide leaves */
.cvio-vel-hero--slideshow[data-slide-trans="zoom-fade"] .cvio-vel-hero__bg-slide {
    transform: scale(1);
    transition: opacity 1.2s cubic-bezier(.4,0,.2,1), transform 0s;
}

/* Dot navigation */
.cvio-vel-hero__slide-dots {
    position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
    display: flex; gap: .45rem; z-index: 7;
}
.cvio-vel-hero__slide-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,.4);
    transition: background .3s, transform .3s;
    cursor: pointer;
}
.cvio-vel-hero__slide-dot.is-active {
    background: #fff;
    transform: scale(1.3);
}

/* Reduced motion: instant switch, no zoom */
@media (prefers-reduced-motion: reduce) {
    .cvio-vel-hero__bg-slide { transition: opacity .1s; }
    .cvio-vel-hero--slideshow[data-slide-trans="zoom-fade"] .cvio-vel-hero__bg-slide.is-active {
        animation: none;
    }
}

/* Print: show only first slide */
@media print {
    .cvio-vel-hero__bg-slide:not(.is-active),
    .cvio-vel-hero__slide-dots { display: none !important; }
}

/* ═════════════════ TRUST STRIP SHORTCODE (inline) ════════════════ */
.cvio-vel-trust-inline {
    position: relative; z-index: auto;
    display: inline-flex; flex-direction: column; gap: .4rem;
    align-items: flex-start;
    background: rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.1);
    padding: .65rem 1rem; border-radius: 10px;
    margin: .5rem 0;
    animation: none; bottom: auto; left: auto; right: auto;
    transform: none;
}
/* Dark variant (for dark backgrounds in content) */
.cvio-vel-trust-inline.is-dark {
    background: rgba(0,0,0,.45);
    border-color: rgba(255,255,255,.12);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.cvio-vel-trust-inline .cvio-vel-trust__avg   { color: #222; }
.cvio-vel-trust-inline .cvio-vel-trust__label { color: #555; }
.cvio-vel-trust-inline .cvio-vel-trust__num   { color: #222; }
.cvio-vel-trust-inline .cvio-vel-trust__dot   { color: #aaa; }
.cvio-vel-trust-inline .cvio-vel-trust__sep   { color: #aaa; }
.cvio-vel-trust-inline .cvio-vel-trust__quote { color: #444; }
.cvio-vel-trust-inline.is-dark .cvio-vel-trust__avg,
.cvio-vel-trust-inline.is-dark .cvio-vel-trust__num   { color: #fff; }
.cvio-vel-trust-inline.is-dark .cvio-vel-trust__label { color: rgba(255,255,255,.7); }
.cvio-vel-trust-inline.is-dark .cvio-vel-trust__quote { color: rgba(255,255,255,.75); }

/* ═════════════════ SPEECH BUBBLE QUOTES ══════════════════════════ */
.cvio-vel-hero--has-bubble .cvio-vel-trust {
    /* Extra room above for bubble */
    margin-bottom: 3.5rem;
}
.cvio-vel-bubble-wrap {
    position: absolute; z-index: 7;
    bottom: 1.75rem; pointer-events: none;
    /* inherits left/right from trust position */
}
.cvio-vel-trust--bottom-left   .cvio-vel-bubble-wrap,
.cvio-vel-trust--bottom-center .cvio-vel-bubble-wrap,
.cvio-vel-trust--bottom-right  .cvio-vel-bubble-wrap { display: none; }

.cvio-vel-bubble {
    position: relative;
    background: rgba(255,255,255,.95);
    color: #222;
    font-size: .78rem; font-style: italic; line-height: 1.45;
    padding: .55rem .85rem;
    border-radius: 12px 12px 12px 2px;
    max-width: 280px; min-width: 160px;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
    opacity: 0; transform: translateY(6px) scale(.97);
    transition: opacity .5s ease, transform .5s ease;
}
.cvio-vel-bubble.is-active {
    opacity: 1; transform: translateY(0) scale(1);
}
.cvio-vel-bubble.is-leaving {
    opacity: 0; transform: translateY(-4px) scale(.97);
    transition: opacity .4s ease, transform .4s ease;
}
/* Tail */
.cvio-vel-bubble::after {
    content: '';
    position: absolute; bottom: -7px; left: 16px;
    width: 0; height: 0;
    border: 7px solid transparent;
    border-bottom: 0;
    border-top-color: rgba(255,255,255,.95);
}
.cvio-vel-trust--bottom-center .cvio-vel-bubble::after {
    left: 50%; transform: translateX(-50%);
}
.cvio-vel-trust--bottom-right .cvio-vel-bubble::after {
    left: auto; right: 16px;
}
.cvio-vel-bubble__name {
    display: block; font-style: normal; font-size: .68rem;
    font-weight: 600; color: #666; margin-top: .3rem;
}

@media (max-width: 640px) {
    .cvio-vel-bubble { max-width: calc(100vw - 3rem); font-size: .72rem; }
}
@media print { .cvio-vel-bubble-wrap { display: none !important; } }
