/**
 * OneView Universal Theme — Main Stylesheet
 *
 * Mobile-first, Glassmorphism, Apple-like design.
 *
 * @package OneView_Universal
 * @version 1.0.0
 * @author  Jay C — https://jaycdesigner.com.br/
 */

/* ══════════════════════════════════════════════
   CSS Custom Properties
   ══════════════════════════════════════════════ */

:root {
    /* Colors */
    --ov-primary: #6366F1;
    --ov-primary-dark: #4F46E5;
    --ov-primary-light: #818CF8;
    --ov-primary-rgb: 99, 102, 241;

    --ov-dark: #0F172A;
    --ov-dark-soft: #1E293B;
    --ov-gray-900: #111827;
    --ov-gray-700: #374151;
    --ov-gray-500: #6B7280;
    --ov-gray-400: #9CA3AF;
    --ov-gray-200: #E5E7EB;
    --ov-gray-100: #F3F4F6;
    --ov-gray-50: #F9FAFB;
    --ov-white: #FFFFFF;

    /* Glass */
    --ov-glass: rgba(255, 255, 255, 0.72);
    --ov-glass-strong: rgba(255, 255, 255, 0.85);
    --ov-glass-border: rgba(255, 255, 255, 0.18);
    --ov-glass-dark: rgba(15, 23, 42, 0.6);
    --ov-blur: blur(20px);
    --ov-blur-sm: blur(12px);

    /* Shadows */
    --ov-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --ov-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --ov-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --ov-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);

    /* Typography */
    --ov-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Radius */
    --ov-radius-sm: 8px;
    --ov-radius: 12px;
    --ov-radius-lg: 16px;
    --ov-radius-xl: 20px;
    --ov-radius-full: 9999px;

    /* Transitions */
    --ov-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ov-transition: 0.3s ease;
}

/* ══════════════════════════════════════════════
   Reset & Base
   ══════════════════════════════════════════════ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    /* Avoid reserved gutter; overlay scrollbar will not shift layout */
    scrollbar-gutter: auto;
}

/* Desktop mouse UX: native scrollbar hidden; custom overlay thumb appears when needed */
@media (pointer: fine) {
    html {
        scrollbar-width: none;
    }

    html::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    #ov-overlay-scrollbar {
        position: fixed;
        top: 0;
        right: 0;
        width: 14px;
        height: 100vh;
        z-index: 1400;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    #ov-overlay-scrollbar .ov-overlay-scrollbar__thumb {
        position: absolute;
        top: 0;
        right: 2px;
        width: 8px;
        min-height: 56px;
        border-radius: 9999px;
        background: rgba(55, 65, 81, 0.38);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }

    body.ov-overlay-scrollbar--visible #ov-overlay-scrollbar {
        opacity: 1;
    }

    body.ov-overlay-scrollbar--active #ov-overlay-scrollbar .ov-overlay-scrollbar__thumb:hover {
        background: rgba(55, 65, 81, 0.56);
    }

    body:not(.ov-overlay-scrollbar--active) #ov-overlay-scrollbar {
        display: none;
    }
}

body {
    font-family: var(--ov-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ov-gray-700);
    background: var(--ov-gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    --ov-header-behind-image: none;
    --ov-header-behind-opacity: 0;
    --ov-header-behind-blur: 20px;
    --ov-header-behind-brightness: 0.72;
    --ov-header-behind-height: calc(var(--ov-header-total, 96px) + 1px);
    --ov-header-behind-top: 0px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    top: var(--ov-header-behind-top, 0px);
    left: 0;
    right: 0;
    height: var(--ov-header-behind-height, calc(var(--ov-header-total, 96px) + 1px));
    z-index: 0;
    pointer-events: none;
    background-image: var(--ov-header-behind-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    filter: blur(var(--ov-header-behind-blur)) brightness(var(--ov-header-behind-brightness));
    opacity: var(--ov-header-behind-opacity);
    transition: opacity var(--ov-transition), filter var(--ov-transition);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ══════════════════════════════════════════════
   Header
   ══════════════════════════════════════════════ */

.ov-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    isolation: isolate;
    overflow: hidden;
    padding: var(--ov-header-padding, 16px) 1.5rem;
    background-color: transparent;
    backdrop-filter: var(--ov-blur);
    -webkit-backdrop-filter: var(--ov-blur);
    border-bottom: 1px solid var(--ov-glass-border);
    transition: background-color var(--ov-transition), box-shadow var(--ov-transition);
    --ov-header-bg-image: none;
    --ov-header-bg-filter: none;
    --ov-header-bg-transform: none;
    --ov-header-overlay-bg: rgba(255, 255, 255, 0.65);
    --ov-header-overlay-bg-scrolled: rgba(255, 255, 255, 0.8);
}

.ov-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: var(--ov-header-bg-image);
    background-size: cover;
    background-position: center;
    filter: var(--ov-header-bg-filter);
    transform: var(--ov-header-bg-transform);
}

.ov-header::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-color: var(--ov-header-overlay-bg);
    transition: background-color var(--ov-transition);
}

.ov-header.is-scrolled {
    box-shadow: var(--ov-shadow);
}

.ov-header.is-scrolled::after {
    background-color: var(--ov-header-overlay-bg-scrolled);
}

.ov-header__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
    gap: 1rem;
}

.ov-header__inner--has-nav {
    justify-content: space-between;
}

.ov-header__inner--has-nav .ov-header__logo {
    flex-shrink: 0;
}

.ov-header__inner--has-nav .ov-header__nav {
    margin-left: auto;
    margin-right: 0;
    max-width: min(62%, 780px);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ov-header__inner--has-nav .ov-header__nav::-webkit-scrollbar {
    display: none;
}

.ov-header__inner--has-nav .ov-header__nav.ov-header__nav--left {
    margin-left: 0;
    margin-right: auto;
}

.ov-header__inner--has-nav .ov-header__nav.ov-header__nav--center {
    margin-left: auto;
    margin-right: auto;
}

.ov-header__inner--has-nav .ov-header__nav.ov-header__nav--right {
    margin-left: auto;
    margin-right: 0;
}

.ov-header__inner--has-nav .ov-header__cta {
    position: static;
    flex-shrink: 0;
}

.ov-header__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.ov-header__logo--center {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

/* Logo position variants */
.ov-header__logo--left {
    margin-right: auto;
    margin-left: 0;
    justify-content: flex-start;
}

.ov-header__logo--right {
    margin-left: auto;
    margin-right: 0;
    justify-content: flex-end;
}

.ov-header__logo--custom {
    position: absolute;
}

.ov-header__inner--has-nav .ov-header__logo--center,
.ov-header__inner--has-nav .ov-header__logo--custom {
    position: absolute;
}

.ov-header__inner--has-nav .ov-header__logo--center {
    left: 50%;
    transform: translateX(-50%);
}

.ov-header__logo img {
    max-height: var(--ov-logo-height, 40px);
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.ov-header__logo-svg {
    height: var(--ov-logo-height, 40px);
    width: auto;
    max-width: 100%;
    display: block;
    overflow: visible;
}

.ov-header__logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    overflow: visible;
}

.ov-header__site-name {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--ov-dark);
    letter-spacing: -0.02em;
}

/* Header CTA Link */
.ov-header__cta {
    position: static;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}

.ov-header__cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: var(--ov-radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ov-cta-color, var(--ov-dark));
    background: var(--ov-cta-bg, rgba(255, 255, 255, 0.25));
    backdrop-filter: var(--ov-cta-blur, blur(4px));
    -webkit-backdrop-filter: var(--ov-cta-blur, blur(4px));
    border: 1px solid var(--ov-cta-border, rgba(255, 255, 255, 0.3));
    transition: background var(--ov-transition), box-shadow var(--ov-transition);
    white-space: nowrap;
}

.ov-header__cta-link:hover {
    opacity: 0.85;
    box-shadow: var(--ov-shadow);
}

.ov-header__cta-link i {
    font-size: 1rem;
    line-height: 1;
}

/* CTA: only icon on very small screens */
@media (max-width: 479px) {
    .ov-header__cta-link span { display: none; }
    .ov-header__cta-link { padding: 0.5rem; }
}

/* ── Header Navigation ── */
.ov-header__nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ov-header__nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--ov-radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ov-nav-color, var(--ov-dark));
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border: 1px solid transparent;
}

.ov-header__nav-link i {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.65;
    color: var(--ov-nav-icon-color, inherit);
    transition: opacity 0.25s ease, color 0.25s ease;
}

.ov-header__nav-link:hover {
    color: var(--ov-nav-hover-color, var(--ov-primary, #4F46E5));
    background: var(--ov-nav-hover-bg, rgba(0, 0, 0, 0.04));
    backdrop-filter: var(--ov-nav-hover-blur, blur(8px));
    -webkit-backdrop-filter: var(--ov-nav-hover-blur, blur(8px));
    border-color: var(--ov-nav-hover-border, rgba(255, 255, 255, 0.18));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ov-header__nav-link:hover i {
    opacity: 1;
    color: var(--ov-nav-hover-color, var(--ov-primary, #4F46E5));
}

.ov-header__nav-link.is-active {
    color: var(--ov-nav-active-text-color, var(--ov-nav-active-color, var(--ov-primary, #4F46E5)));
    background: var(--ov-nav-active-bg, rgba(79, 70, 229, 0.08));
    backdrop-filter: var(--ov-nav-active-blur, blur(12px));
    -webkit-backdrop-filter: var(--ov-nav-active-blur, blur(12px));
    border-color: var(--ov-nav-active-border, rgba(255, 255, 255, 0.22));
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    font-weight: 500;
}

.ov-header__nav-link.is-active i {
    opacity: 1;
    color: var(--ov-nav-active-icon-color, var(--ov-nav-active-text-color, var(--ov-nav-active-color, var(--ov-primary, #4F46E5))));
}

/* Hamburger Button */
.ov-header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 0;
    z-index: 10;
}

.ov-header__hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ov-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.ov-header__hamburger.is-active .ov-header__hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.ov-header__hamburger.is-active .ov-header__hamburger-line:nth-child(2) {
    opacity: 0;
}

.ov-header__hamburger.is-active .ov-header__hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile Menu (rendered outside <header> to avoid stacking context) ── */
.ov-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
}

.ov-mobile-menu.is-open {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
}

.ov-mobile-menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ov-mobile-menu.is-open .ov-mobile-menu__overlay {
    opacity: 1;
}

.ov-mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.ov-mobile-menu.is-open .ov-mobile-menu__panel {
    transform: translateX(0);
}

.ov-mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ov-mobile-menu__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ov-dark);
}

.ov-mobile-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 50%;
    cursor: pointer;
    color: var(--ov-dark);
    font-size: 1.125rem;
    transition: background 0.15s ease;
}

.ov-mobile-menu__close:hover {
    background: rgba(0, 0, 0, 0.08);
}

.ov-mobile-menu__nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ov-mobile-menu__link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ov-dark);
    text-decoration: none;
    transition: background 0.15s ease;
}

.ov-mobile-menu__link i {
    font-size: 1.125rem;
    opacity: 0.6;
    flex-shrink: 0;
}

.ov-mobile-menu__link:hover,
.ov-mobile-menu__link:active {
    background: rgba(0, 0, 0, 0.04);
}

.ov-mobile-menu__link.is-active {
    background: rgba(79, 70, 229, 0.08);
    color: var(--ov-primary, #4F46E5);
    font-weight: 600;
}

.ov-mobile-menu__link.is-active i {
    opacity: 1;
}

.ov-mobile-menu__cta {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ov-mobile-menu__cta-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: var(--ov-primary, #4F46E5);
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.ov-mobile-menu__cta-link:hover {
    opacity: 0.9;
}

.ov-mobile-menu__cta-link i {
    font-size: 1.125rem;
}

/* ── Responsive: Nav → Hamburger ── */
@media (max-width: 768px) {
    .ov-header {
        padding: var(--ov-header-padding-mobile, var(--ov-header-padding, 16px)) 1.5rem;
    }

    .ov-header__nav {
        display: none;
    }
    .ov-header__hamburger {
        display: flex;
    }
    /* Push CTA left of hamburger */
    .ov-header__cta {
        margin-right: 44px;
    }

    /* Mobile-specific logo alignment (separate from desktop setting) */
    .ov-header__logo--mobile-left {
        position: static;
        left: auto;
        transform: none;
        margin-left: 0 !important;
        margin-right: auto !important;
        justify-content: flex-start;
    }

    .ov-header__logo--mobile-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0 !important;
        margin-right: 0 !important;
        justify-content: center;
    }

    .ov-header__logo--mobile-right {
        position: static;
        left: auto;
        transform: none;
        margin-left: auto !important;
        margin-right: 0 !important;
        justify-content: flex-end;
    }

    .ov-header__logo--mobile-custom {
        position: absolute;
        left: var(--ov-logo-mobile-custom-left, 50%);
        transform: translateX(-50%);
        margin-left: 0 !important;
        margin-right: 0 !important;
        justify-content: center;
    }
}

/* ══════════════════════════════════════════════
   Buttons
   ══════════════════════════════════════════════ */

.ov-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--ov-radius-full);
    font-family: var(--ov-font);
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.ov-btn--primary,
.ov-btn--white {
    background: var(--ov-white);
    color: var(--ov-dark);
    box-shadow: var(--ov-shadow-md);
}

.ov-btn--primary:hover,
.ov-btn--white:hover {
    transform: translateY(-2px);
    box-shadow: var(--ov-shadow-lg);
}

.ov-btn--glass {
    background: rgba(255, 255, 255, 0.15);
    color: var(--ov-white);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.ov-btn--glass:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.ov-btn--custom {
    box-shadow: var(--ov-shadow-md);
}

.ov-btn--custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--ov-shadow-lg);
    filter: brightness(1.1);
}

/* ══════════════════════════════════════════════
   Hero Section
   ══════════════════════════════════════════════ */

.ov-hero {
    position: relative;
    min-height: 100vh; /* default — overridden by inline style if set */
    padding-top: var(--ov-header-total, 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--ov-dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.ov-hero--auto-adjust {
    background-size: contain;
    background-repeat: no-repeat;
}

.ov-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.8) 0%,
        rgba(99, 102, 241, 0.4) 50%,
        rgba(15, 23, 42, 0.7) 100%
    );
    z-index: 1;
}

.ov-hero--has-bg .ov-hero__overlay {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.75) 0%,
        rgba(99, 102, 241, 0.3) 50%,
        rgba(15, 23, 42, 0.65) 100%
    );
}

.ov-hero__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 7rem 1.5rem 4rem;
    max-width: 800px;
    width: 100%;
}

.ov-hero__title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--ov-white);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.ov-hero__subtitle {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ov-hero__buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

/* ══════════════════════════════════════════════
   Features Section
   ══════════════════════════════════════════════ */

.ov-features {
    padding: 4rem 1.5rem;
    background: var(--ov-gray-50);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    --ov-features-bg-image: none;
    --ov-features-bg-size: cover;
    --ov-features-bg-position: center 50%;
    --ov-features-bg-opacity: 1;
    --ov-features-bg-blur: 0px;
    --ov-features-bg-overlay: transparent;
}

.ov-features::before,
.ov-features::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ov-features::before {
    z-index: 0;
    background-image: var(--ov-features-bg-image);
    background-size: var(--ov-features-bg-size);
    background-position: var(--ov-features-bg-position);
    background-repeat: no-repeat;
    filter: blur(var(--ov-features-bg-blur));
    transform: scale(1.06);
    opacity: var(--ov-features-bg-opacity);
}

.ov-features::after {
    z-index: 1;
    background: var(--ov-features-bg-overlay);
}

.ov-features__inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.ov-features__grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(var(--ov-feat-cols-mob, 1), 1fr);
}

/* Feature Card */
.ov-feature-card {
    background: var(--ov-glass);
    backdrop-filter: var(--ov-blur);
    -webkit-backdrop-filter: var(--ov-blur);
    border: 1px solid var(--ov-glass-border);
    border-radius: var(--ov-radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--ov-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ov-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ov-shadow-lg);
}

.ov-feature-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--ov-primary), var(--ov-primary-light));
    border-radius: var(--ov-radius);
    color: var(--ov-white);
    font-size: var(--ov-feature-icon-size, 1.375rem);
    box-shadow: 0 4px 12px rgba(var(--ov-primary-rgb), 0.3);
}

.ov-feature-card__icon i {
    font-size: 1em;
    line-height: 1;
}

.ov-feature-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ov-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.ov-feature-card__desc {
    font-size: 0.9375rem;
    color: var(--ov-gray-500);
    line-height: 1.6;
    text-wrap: pretty;
    overflow-wrap: anywhere;
    hyphens: auto;
}

/* ── Size Variants ── */

/* Small */
.ov-features--small .ov-feature-card {
    padding: 1.25rem 1rem;
}
.ov-features--small .ov-feature-card__icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-bottom: 0.875rem;
}
.ov-features--small .ov-feature-card__title {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}
.ov-features--small .ov-feature-card__desc {
    font-size: 0.8125rem;
}

/* Large */
.ov-features--large .ov-feature-card {
    padding: 2.5rem 2rem;
}
.ov-features--large .ov-feature-card__icon {
    width: 72px;
    height: 72px;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}
.ov-features--large .ov-feature-card__title {
    font-size: 1.3125rem;
    margin-bottom: 0.75rem;
}
.ov-features--large .ov-feature-card__desc {
    font-size: 1rem;
}

.ov-features.ov-features--card-square .ov-feature-card {
    border-radius: 0;
    aspect-ratio: 1/1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ov-features.ov-features--card-square.ov-features--square-small .ov-feature-card {
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
}

.ov-features.ov-features--card-square.ov-features--square-medium .ov-feature-card {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.ov-features.ov-features--card-square.ov-features--square-large .ov-feature-card {
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.ov-features.ov-features--card-rounded .ov-feature-card {
    border-radius: 24px;
}

.ov-features.ov-features--card-rectangular .ov-feature-card {
    border-radius: var(--ov-radius-lg);
}

.ov-features.ov-features--icon-only .ov-feature-card__icon {
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    color: var(--ov-primary);
    margin-bottom: 0.875rem;
}

/* ══════════════════════════════════════════════
   App Links Section
   ══════════════════════════════════════════════ */

.ov-app-links {
    padding: 4rem 1.5rem;
    background: var(--ov-dark);
    text-align: center;
}

.ov-app-links__inner {
    max-width: 700px;
    margin: 0 auto;
}

.ov-app-links__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ov-white);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.ov-app-links__subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2rem;
}

.ov-app-links__buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

/* App Badge */
.ov-app-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--ov-radius);
    color: var(--ov-white);
    transition: all 0.3s ease;
    min-width: 200px;
}

.ov-app-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.ov-app-badge i {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.ov-app-badge span {
    display: flex;
    flex-direction: column;
    text-align: left;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.25;
}

.ov-app-badge span small {
    font-size: 0.6875rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

/* ══════════════════════════════════════════════
   Footer
   ══════════════════════════════════════════════ */

.ov-footer {
    padding: 2rem 1.5rem;
    background: var(--ov-dark-soft);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    margin-top: auto;
}

/* When App Links is disabled, Features becomes the last section.
   Let it grow to consume free vertical space so footer stays anchored
   at the bottom without creating white gaps above or below. */
body.home .ov-features:last-of-type {
    flex: 1 0 auto;
}

.ov-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.ov-footer p {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--ov-gray-400);
    max-width: 860px;
    margin: 0 auto;
    text-wrap: balance;
}

.ov-footer p a {
    color: inherit;
    text-decoration: none;
}

/* ── Footer Social Icons ── */

.ov-footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.ov-footer-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ov-footer-social__link:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* Simple: plain icon, colored */
.ov-footer-social--simple .ov-footer-social__link {
    font-size: 1.25rem;
}

/* Circle: filled circle bg, white icon */
.ov-footer-social--circle .ov-footer-social__link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
}

/* Outline: circle border, colored icon */
.ov-footer-social--outline .ov-footer-social__link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    font-size: 1rem;
    background: transparent;
}

/* Rounded: rounded square bg, white icon */
.ov-footer-social--rounded .ov-footer-social__link {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
}

/* Glass: frosted glass effect */
.ov-footer-social--glass .ov-footer-social__link {
    width: 40px;
    height: 40px;
    border-radius: var(--glass-radius, 10px);
    font-size: 1.05rem;
    background: var(--glass-bg, rgba(255,255,255,0.2));
    backdrop-filter: blur(var(--glass-blur, 12px));
    -webkit-backdrop-filter: blur(var(--glass-blur, 12px));
    border: 1px solid rgba(255,255,255,0.18);
}

.ov-footer-social--glass .ov-footer-social__link:hover {
    opacity: 1;
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.3);
}

/* ── Footer Social Position Modifiers ── */

/* Row layout for left/right positions */
.ov-footer__row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.ov-footer__row p {
    margin: 0;
}

.ov-footer__row .ov-footer-social {
    margin-top: 0;
}

/* Above: remove default top margin */
.ov-footer--social-above .ov-footer-social {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

/* Mobile: stack left/right to column on small screens */
@media (max-width: 600px) {
    .ov-footer {
        padding-top: 2.125rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .ov-footer__row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .ov-footer p {
        font-size: 0.8125rem;
        line-height: 1.5;
        max-width: 100%;
    }

    .ov-footer-social {
        gap: 0.625rem;
        row-gap: 0.5rem;
        max-width: 100%;
        justify-content: center;
    }
}

/* App badge coming soon */
.ov-app-badge--coming-soon {
    opacity: 0.6;
    cursor: default;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
    position: relative;
}

.ov-app-badge--coming-soon::after {
    content: 'Em breve';
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--ov-primary);
    color: var(--ov-white);
    font-size: 0.5625rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--ov-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════════
   Hero Slideshow
   ══════════════════════════════════════════════ */

.ov-hero__slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ov-hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease;
}

.ov-hero--auto-adjust .ov-hero__slide {
    background-size: contain;
    background-repeat: no-repeat;
}

.ov-hero__slide.is-active {
    opacity: 1;
}

/* Slide animation */
.ov-hero--slideshow[data-animation="slide"] .ov-hero__slide {
    transform: translateX(100%);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.ov-hero--slideshow[data-animation="slide"] .ov-hero__slide.is-active {
    transform: translateX(0);
    opacity: 1;
}

.ov-hero--slideshow[data-animation="slide"] .ov-hero__slide.is-exiting {
    transform: translateX(-100%);
    opacity: 0;
}

/* Zoom animation */
.ov-hero--slideshow[data-animation="zoom"] .ov-hero__slide {
    transform: scale(1.1);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.ov-hero--slideshow[data-animation="zoom"] .ov-hero__slide.is-active {
    transform: scale(1);
    opacity: 1;
}

.ov-hero--auto-adjust.ov-hero--slideshow[data-animation="zoom"] .ov-hero__slide,
.ov-hero--auto-adjust.ov-hero--slideshow[data-animation="zoom"] .ov-hero__slide.is-active {
    transform: none;
}

/* ══════════════════════════════════════════════
   Animations
   ══════════════════════════════════════════════ */

.ov-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ov-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero is above-the-fold — render instantly without fade-in flash */
.ov-hero .ov-fade-in {
    opacity: 1;
    transform: none;
    transition: none;
}

.ov-delay-0 { transition-delay: 0s; }
.ov-delay-1 { transition-delay: 0.1s; }
.ov-delay-2 { transition-delay: 0.2s; }
.ov-delay-3 { transition-delay: 0.3s; }
.ov-delay-4 { transition-delay: 0.4s; }
.ov-delay-5 { transition-delay: 0.5s; }

/* ══════════════════════════════════════════════
   Mobile Tab Bar (bottom navigation)
   ══════════════════════════════════════════════ */

.ov-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: none; /* controlled by inline media query from PHP */
    align-items: stretch;
    justify-content: space-around;
    background: var(--ov-tab-bg, #FFFFFF);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ov-tab-bar.is-hidden {
    transform: translateY(100%);
}

.ov-tab-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    padding: 4px 0;
    color: var(--ov-tab-color, #6B7280);
    text-decoration: none;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.ov-tab-bar__item i {
    font-size: 1.375rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.ov-tab-bar__item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 64px;
}

.ov-tab-bar__item.is-active {
    color: var(--ov-tab-active, #4F46E5);
}

.ov-tab-bar__item.is-active i {
    transform: scale(1.1);
}

.ov-tab-bar__item:active i {
    transform: scale(0.9);
}

/* Spacer: the inline media query from PHP handles footer padding */

/* ══════════════════════════════════════════════
   Custom Mobile Hamburger Button + Panel
   (rendered by footer.php when menu type = hamburger)
   ══════════════════════════════════════════════ */

/* Hamburger button — fixed position, shown only via inline media query */
.ov-mob-hamburger {
    display: none; /* shown via inline media query from PHP */
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1001; /* above header */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.ov-mob-hamburger__line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ov-tab-color, var(--ov-dark, #1c1c1e));
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.ov-mob-hamburger.is-active .ov-mob-hamburger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.ov-mob-hamburger.is-active .ov-mob-hamburger__line:nth-child(2) {
    opacity: 0;
}
.ov-mob-hamburger.is-active .ov-mob-hamburger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Left side position */
.ov-mob-menu--left ~ .ov-mob-hamburger,
body.ov-mob-left .ov-mob-hamburger {
    right: auto;
    left: 12px;
}

/* ── Panel container ── */
.ov-mob-menu {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
}

.ov-mob-menu.is-open {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
}

.ov-mob-menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ov-mob-menu.is-open .ov-mob-menu__overlay {
    opacity: 1;
}

/* Panel — slides from right by default */
.ov-mob-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    background: var(--ov-tab-bg, rgba(255, 255, 255, 0.92));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.ov-mob-menu.is-open .ov-mob-menu__panel {
    transform: translateX(0);
}

/* Panel — left variant */
.ov-mob-menu--left .ov-mob-menu__panel {
    right: auto;
    left: 0;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(-100%);
}

.ov-mob-menu--left.is-open .ov-mob-menu__panel {
    transform: translateX(0);
}

/* Panel header */
.ov-mob-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ov-mob-menu__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ov-dark, #1c1c1e);
}

.ov-mob-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 50%;
    cursor: pointer;
    color: var(--ov-dark, #1c1c1e);
    font-size: 1.125rem;
    transition: background 0.15s ease;
}

.ov-mob-menu__close:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* Panel navigation */
.ov-mob-menu__nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ov-mob-menu__link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ov-tab-color, var(--ov-dark, #1c1c1e));
    text-decoration: none;
    transition: background 0.15s ease;
}

.ov-mob-menu__link i {
    font-size: 1.125rem;
    opacity: 0.6;
    flex-shrink: 0;
}

.ov-mob-menu__link:hover,
.ov-mob-menu__link:active {
    background: rgba(0, 0, 0, 0.04);
}

.ov-mob-menu__link.is-active {
    background: rgba(79, 70, 229, 0.08);
    color: var(--ov-tab-active, var(--ov-primary, #4F46E5));
    font-weight: 600;
}

.ov-mob-menu__link.is-active i {
    opacity: 1;
}

/* ══════════════════════════════════════════════
   Tablet (≥ 640px)
   ══════════════════════════════════════════════ */

@media (min-width: 640px) {
    .ov-hero__title {
        font-size: 2.75rem;
    }

    .ov-hero__subtitle {
        font-size: 1.125rem;
    }

    .ov-hero__buttons {
        flex-direction: row;
        justify-content: center;
    }

    .ov-features__grid {
        grid-template-columns: repeat(min(var(--ov-feat-cols, 2), 2), 1fr);
    }

    .ov-app-links__buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* ══════════════════════════════════════════════
   Desktop (≥ 1024px)
   ══════════════════════════════════════════════ */

@media (min-width: 1024px) {
    .ov-header {
        padding: 1.25rem 2rem;
    }

    .ov-header__logo img {
        max-height: var(--ov-logo-height, 48px);
    }

    .ov-hero__inner {
        padding: 8rem 2rem 5rem;
    }

    .ov-hero__title {
        font-size: 3.5rem;
    }

    .ov-hero__subtitle {
        font-size: 1.25rem;
    }

    .ov-btn {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }

    .ov-features {
        padding: 6rem 2rem;
    }

    .ov-features__grid {
        grid-template-columns: repeat(var(--ov-feat-cols, 3), 1fr);
    }

    .ov-feature-card {
        padding: 2.5rem 2rem;
    }

    .ov-features--small .ov-feature-card {
        padding: 1.5rem 1.25rem;
    }
    .ov-features--small .ov-feature-card__icon {
        width: 48px;
        height: 48px;
        font-size: 1.125rem;
    }

    .ov-features--large .ov-feature-card {
        padding: 3rem 2.5rem;
    }
    .ov-features--large .ov-feature-card__icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .ov-feature-card__icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    .ov-features.ov-features--icon-only .ov-feature-card__icon {
        width: auto;
        height: auto;
    }

    .ov-features.ov-features--card-square.ov-features--square-small .ov-feature-card {
        max-width: 260px;
    }

    .ov-features.ov-features--card-square.ov-features--square-medium .ov-feature-card {
        max-width: 320px;
    }

    .ov-features.ov-features--card-square.ov-features--square-large .ov-feature-card {
        max-width: 380px;
    }

    .ov-app-links {
        padding: 6rem 2rem;
    }

    .ov-app-links__title {
        font-size: 2.25rem;
    }

    .ov-footer {
        padding: 2.5rem 2rem;
    }
}

/* Large Desktop (≥ 1280px) */
@media (min-width: 1280px) {
    .ov-features__grid {
        gap: 1.5rem;
    }
}

/* ══════════════════════════════════════════════
   Reduced Motion
   ══════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    .ov-fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ov-btn:hover,
    .ov-feature-card:hover,
    .ov-app-badge:hover {
        transform: none;
    }
}

/* ══════════════════════════════════════════════
   Page Template (page.php)
   ══════════════════════════════════════════════ */

.ov-page {
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
    padding-top: calc(var(--ov-header-total, 72px) + 2rem);
}

.ov-page__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ov-page__content {
    font-family: var(--ov-font);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ov-gray-700);
}

.ov-page__content h1,
.ov-page__content h2,
.ov-page__content h3,
.ov-page__content h4 {
    color: var(--ov-gray-900);
    margin: 1.5rem 0 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.ov-page__content h1 { font-size: 2rem; }
.ov-page__content h2 { font-size: 1.5rem; }
.ov-page__content h3 { font-size: 1.25rem; }

.ov-page__content p {
    margin-bottom: 1rem;
}

.ov-page__content img {
    border-radius: var(--ov-radius);
    margin: 1rem 0;
}

.ov-page__content a {
    color: var(--ov-primary);
    text-decoration: underline;
    text-decoration-color: rgba(var(--ov-primary-rgb), 0.3);
    text-underline-offset: 2px;
    transition: color var(--ov-transition);
}

.ov-page__content a:hover {
    color: var(--ov-primary-dark);
}

@media (max-width: 768px) {
    .ov-page {
        padding: 1rem 0;
        padding-top: calc(var(--ov-header-total, 72px) + 1rem);
    }
    .ov-page__container {
        padding: 0 1rem;
    }
    .ov-page__content h1 { font-size: 1.5rem; }
    .ov-page__content h2 { font-size: 1.25rem; }
}

/* ══════════════════════════════════════════════
   Back to Top Button
   ══════════════════════════════════════════════ */

.ov-back-to-top {
    position: fixed;
    bottom: 32px;
    left: 24px;
    z-index: 9998;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.10),
        0 0 0 1px rgba(255, 255, 255, 0.18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.85);
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.ov-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Chevron "telhado" — CSS puro */
.ov-back-to-top__icon {
    display: block;
    width: 14px;
    height: 14px;
    border-left: 2.5px solid #374151;
    border-top: 2.5px solid #374151;
    transform: rotate(45deg);
    margin-top: 4px;
    transition: border-color 0.2s ease;
}

.ov-back-to-top:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.25);
}

.ov-back-to-top:active {
    transform: translateY(0) scale(0.92);
}

/* Mobile: centralizado, na frente do tab bar */
@media (max-width: 768px) {
    .ov-back-to-top {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(16px) scale(0.85);
        bottom: 20px;
        width: 40px;
        height: 40px;
    }

    .ov-back-to-top.is-visible {
        transform: translateX(-50%) translateY(0) scale(1);
    }

    .ov-back-to-top:active {
        transform: translateX(-50%) translateY(0) scale(0.92);
    }

    .ov-back-to-top__icon {
        width: 12px;
        height: 12px;
        border-width: 2.5px;
        margin-top: 3px;
    }
}
