/* Small visual overrides for theme integration */

/* Prevent accidental horizontal overflow */
html,
body {
    overflow-x: hidden;
}

/* Scrollbar styling (Windows/Chrome shows a light track by default) */
html {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(255, 248, 239, 0.65) #000;
}

/* WebKit-based browsers (Chrome/Edge) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(227, 181, 118, 0.55);
    border-radius: 999px;
    border: 3px solid #000;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.685);
}

/* Header (hero): center the main menu like the theme demo */
@media (min-width: 992px) {
    /* The theme sets `.wpo-header-style #navbar { justify-content: end; }`.
       Override it so the menu is centered (matches demo). */
    .wpo-header-style .wpo-site-header #navbar {
        justify-content: center !important;
    }
}

/* Header: liquid glass grouped around the whole menu (single pill)
   Apply only when the navigation is NOT sticky (so the sticky/black header stays plain).
*/
@media (min-width: 992px) {
    .wpo-header-style .wpo-site-header .navigation:not(.sticky-on) #navbar > ul.nav {
        position: relative;
        overflow: visible;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.28);
        backdrop-filter: blur(14px) saturate(160%);
        -webkit-backdrop-filter: blur(14px) saturate(160%);
        /* Small inner padding so the grouped pill is slim like the CTA */
        padding: 20px 0px;
    }

    .wpo-header-style .wpo-site-header .navigation:not(.sticky-on) #navbar > ul.nav::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        border-radius: inherit;
        background:
            radial-gradient(60% 80% at 20% 0%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 60%),
            radial-gradient(60% 80% at 80% 100%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%);
        opacity: 0.9;
    }

    .wpo-header-style .wpo-site-header .navigation:not(.sticky-on) #navbar > ul.nav > li,
    .wpo-header-style .wpo-site-header .navigation:not(.sticky-on) #navbar > ul.nav > li > a {
        position: relative;
        z-index: 1;
    }

    /* When navigation is sticky, remove the liquid glass so header stays plain/black */
    .wpo-header-style .wpo-site-header .navigation.sticky-on #navbar > ul.nav {
        background: transparent !important;
        border: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 0 !important;
    }
}

/* Header: keep fully transparent; add subtle text shadow for legibility */
@media (min-width: 992px) {
    /* Navigation links: Home/About/Services/... */
    .wpo-header-style .wpo-site-header #navbar > ul > li > a {
        color: #fff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 1px rgba(0, 0, 0, 0.35);
        /* Reduce vertical padding so the pill matches the CTA height */
        padding: 8px 16px;
        line-height: 1;
    }

    .wpo-header-style .wpo-site-header #navbar > ul > li > a:hover,
    .wpo-header-style .wpo-site-header #navbar ul li.current a {
        color: #fff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65), 0 0 1px rgba(0, 0, 0, 0.4);
    }

    /* CTA button: "Contact Now" */
    .wpo-header-style .wpo-site-header .header-right .theme-btn {
        color: #fff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 1px rgba(0, 0, 0, 0.35);
    }
}

/* Prevent CTA wrapping on desktop */
@media (min-width: 992px) {
    .wpo-site-header .header-right .close-form .theme-btn {
        white-space: nowrap;
    }
}

/* Prevent menu items from wrapping so 'Privacy' stays inside the menu */
@media (min-width: 992px) {
    .wpo-header-style #navbar > ul {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center;
        white-space: nowrap;
    }
    .wpo-header-style #navbar > ul > li {
        display: inline-block;
    }
}

@media (max-width: 991px) {
    .wpo-header-style #navbar > ul {
        display: block !important;
        white-space: normal;
    }
}

/* Home: make hero image blend into the white section below */
.wpo-hero-slider .slide-inner {
    position: absolute; /* keep consistent even if theme changes */
}

.wpo-hero-slider .slide-inner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    pointer-events: none;
    /* Fade into the next section's white background */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 100%);
}

/* Home hero: Call button (tel link) */
.wpo-hero-slider .hero-call {
    position: absolute;
    right: 365px;
    bottom: 375px;
    z-index: 12;
}

.wpo-hero-slider .hero-call__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px; 
    border-radius: 999px;
    text-decoration: none;
    background: #f5f5f5;
    border: 2px solid #ffffff;
}

.wpo-hero-slider .hero-call__icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff9500;
    color: #fff;
    flex: 0 0 auto;
}

.wpo-hero-slider .hero-call__icon i {
    font-size: 18px;
    line-height: 1;
}

.wpo-hero-slider .hero-call__number {
    color: #ff9500;
    font-weight: 700;
    font-size: 25px;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 1199px) {
    .wpo-hero-slider .hero-call {
        right: 50px;
        bottom: 290px;
    }
}

@media (max-width: 575px) {
    .wpo-hero-slider .hero-call {
        left: 20px;
        right: 20px;
        bottom: 205px;
        display: flex;
        justify-content: center;
    }
}

/* Hero: render social icons inside the existing hero-team circles */
.hero-team ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.hero-team ul li a i {
    color: #fff;
    font-size: 28px;
}

/* Hero: colored social circles (keep the same positions/overlap) */
.hero-team ul li.hero-social {
    border: 2px solid rgba(255, 255, 255, 0.95);
    overflow: hidden;
}

/* Hero: overlap circles like the theme demo (stacked avatars) */
.hero-team ul {
    display: flex;
    align-items: center;
}

.hero-team ul li {
    margin: 0;
    position: relative;
}

.hero-team ul li + li {
    margin-left: -30px;
}

/* Theme adds extra spacing to the last circle; remove it so YouTube overlaps too */
.hero-team ul li.hero-social:last-child {
    margin-left: -30px;
}

@media (max-width: 991px) {
    .hero-team ul li + li {
        margin-left: -24px;
    }

    .hero-team ul li.hero-social:last-child {
        margin-left: -24px;
    }
}

/* Ensure later items sit above earlier ones (right-most on top) */
.hero-team ul li:nth-child(1) { z-index: 1; }
.hero-team ul li:nth-child(2) { z-index: 2; }
.hero-team ul li:nth-child(3) { z-index: 3; }
.hero-team ul li:nth-child(4) { z-index: 4; }
.hero-team ul li:nth-child(5) { z-index: 5; }
.hero-team ul li:nth-child(6) { z-index: 6; }
.hero-team ul li:nth-child(7) { z-index: 7; }
.hero-team ul li:nth-child(8) { z-index: 8; }
.hero-team ul li:nth-child(9) { z-index: 9; }
.hero-team ul li:nth-child(10) { z-index: 10; }

/* Brand backgrounds (values reused from static_in_env/app_info/css/style.css) */
.hero-team ul li.hero-social--facebook { background: #1877F2; }
.hero-team ul li.hero-social--twitter { background: #000; }
.hero-team ul li.hero-social--whatsapp { background: #25D366; }
.hero-team ul li.hero-social--youtube { background: #FF0000; }
.hero-team ul li.hero-social--linkedin { background: #0077B5; }
.hero-team ul li.hero-social--instagram {
    background: linear-gradient(#400080, transparent),
                linear-gradient(200deg, #d047d1, #ff0000, #ffff00);
}
.hero-team ul li.hero-social--tiktok {
    background: #000;
}

/* Services: curved carousel (white background) */
.services-carousel-section {
    background: #fff;
}

.services-carousel {
    position: relative;
    width: 100%;
}

.services-carousel__viewport {
    position: relative;
    width: 100%;
    height: 760px;
    overflow: hidden;
    outline: none;
    perspective: 1200px;
}

.services-carousel__card {
    position: absolute;
    left: 50%;
    top: 46%;
    width: 420px;
    height: 560px;
    transform:
        translate(-50%, -50%)
        translate3d(var(--x, 0px), var(--y, 0px), 0)
        rotate(var(--rot, 0deg))
        scale(var(--scale, 1));
    opacity: var(--opacity, 1);
    transition: transform 380ms ease, opacity 220ms ease;
    will-change: transform, opacity;
}


.services-carousel__card.is-active {
    transform:
        translate(-50%, -50%)
        translate3d(var(--x, 0px), var(--y, 0px), 0)
        rotate(0deg)
    translateZ(80px)
    scale(1.10);
}

.services-carousel__link {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    /* Reuse theme shadow value for consistency */
    box-shadow: -2px 18px 40px -9px rgb(153, 153, 153);

    /* Reflection (Chrome/Edge) */
    -webkit-box-reflect: below 18px linear-gradient(
        transparent 0%,
        rgba(0, 0, 0, 0.10) 55%,
        rgba(0, 0, 0, 0.22) 100%
    );

    position: relative;
}

/* Cross-browser shine/reflection overlay */
.services-carousel__link::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.32) 0%,
            rgba(255, 255, 255, 0.10) 18%,
            rgba(255, 255, 255, 0) 42%
        );
    opacity: 0.85;
}

.services-carousel__media {
    width: 100%;
    height: 100%;
    position: relative;
}

.services-carousel__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.services-carousel__meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 22px;
    pointer-events: none;
}

.services-carousel__title {
    margin: 0;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 1px rgba(0, 0, 0, 0.35);
}

@media (max-width: 991px) {
    .services-carousel__viewport {
        height: 560px;
    }

    .services-carousel__card {
        width: 320px;
        height: 440px;
    }
}

@media (max-width: 575px) {
    .services-carousel__viewport {
        height: 500px;
    }

    .services-carousel__card {
        width: 280px;
        height: 390px;
    }
}

/* Footer: render social-link horizontally and style icon buttons */
.footer-widget__single-newsletter .social-link {
    display: flex;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
    align-items: center;
}
.footer-widget__single-newsletter .social-link li {
    margin: 0;
}
.footer-widget__single-newsletter .fx-social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.9);
}
.footer-widget__single-newsletter .fx-social-icon-btn i {
    font-size: 18px;
}

/* Strong override: force footer social links to be horizontal regardless of theme defaults */
.footer-widget__single-newsletter .social-link,
.social-widget ul.social-link {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    align-items: center !important;
    justify-content: flex-start !important;
}
.footer-widget__single-newsletter .social-link li,
.social-widget ul.social-link li {
    margin: 0 !important;
    display: inline-flex !important;
}
.footer-widget__single-newsletter .fx-social-icon-btn,
.social-widget ul.social-link li .fx-social-icon-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    color: #fff !important;
    text-decoration: none !important;
    border: 2px solid rgba(255,255,255,0.9) !important;
}
.footer-widget__single-newsletter .social-link i,
.social-widget ul.social-link i {
    font-size: 18px !important;
}

/* Footer: tighten layout + make lower footer readable */
.wpo-site-footer .copyright-text {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.wpo-site-footer .copyright-text p {
    margin: 0;
}

.wpo-site-footer .wpo-lower-footer ul.right {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: flex-end;
}

@media (max-width: 991px) {
    .wpo-site-footer .wpo-lower-footer ul.right {
        justify-content: center;
        gap: 14px;
        margin-top: 10px;
    }
}

/* Contact section: positionable decorative image */
.wpo-consultaForm-section-s3 .wraper {
    position: relative;
}

.wpo-consultaForm-section-s3 .contact-decor-image {
    position: absolute;
    top: var(--contact-img-top, auto);
    right: var(--contact-img-right, auto);
    bottom: var(--contact-img-bottom, auto);
    left: var(--contact-img-left, auto);
    width: var(--contact-img-width, 260px);
    max-width: var(--contact-img-max-width, 45vw);
    z-index: var(--contact-img-z, 1);
    pointer-events: none;
}

.wpo-consultaForm-section-s3 .contact-decor-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    /* Hide decorative contact image on small screens to avoid overlapping content */
    .wpo-consultaForm-section-s3 .contact-decor-image {
        display: none !important;
    }
}

/* TikTok: subtle cyan/red accents like the brand */
.hero-team ul li.hero-social--tiktok a i {
    filter: drop-shadow(-2px 0 0 rgba(0, 242, 234, 0.85))
            drop-shadow(2px 0 0 rgba(255, 0, 80, 0.85));
}


/* Home hero: Partners slider (liquid glass) */
.wpo-hero-slider .hero-partners-bar {
    position: absolute;
    right: 224px;
    bottom: 90px;
    z-index: 3;
    width: 520px;
    max-width: calc(100% - 160px);
}

.wpo-hero-slider .hero-partners-glass {
    position: relative;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    overflow: hidden;
}

.wpo-hero-slider .hero-partners-glass::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(60% 80% at 20% 0%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 60%),
        radial-gradient(60% 80% at 80% 100%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%);
}

.wpo-hero-slider .hero-partners-glass .partners-slider {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Hero partners: when slick is NOT active (<= 5 logos), JS adds .partners-static */
.wpo-hero-slider .hero-partners-glass .partners-slider.partners-static {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 24px;
}

.wpo-hero-slider .hero-partners-glass .partners-slider.partners-static li {
    flex: 0 0 auto;
}

.wpo-hero-slider .hero-partners-glass .partners-slider li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpo-hero-slider .hero-partners-glass .partners-slider li > div {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 74px;
}

.wpo-hero-slider .hero-partners-glass .partners-slider img {
    max-height: 58px;
    width: auto;
}

.wpo-hero-slider .hero-partners-glass .partners-slider a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1199px) {
    .wpo-hero-slider .hero-partners-bar {
        right: 50px;
        bottom: 150px;
        max-width: calc(100% - 100px);
    }
}

@media (max-width: 575px) {
    .wpo-hero-slider .hero-partners-bar {
        left: 20px;
        right: 20px;
        bottom: 115px;
        width: auto;
        max-width: none;
    }
}

/* Sticky header: show the specific newpeach logo on scroll */
.wpo-site-header .navigation .navbar-brand img.sticky-logo {
    display: none;
}
.wpo-site-header .navigation.sticky-on .navbar-brand img.sticky-logo {
    display: inline-block;
}
/* hide original logo when sticky to avoid duplicate visuals (keeps dimensions) */
.wpo-site-header .navigation.sticky-on .navbar-brand img:not(.sticky-logo) {
    display: none;
}

@media (max-width: 991px) {
    .wpo-hero-slider + .wpo-about-section-s2.section-padding {
        padding-top: 45px;
    }
}

@media (max-width: 767px) {
    .wpo-hero-slider + .wpo-about-section-s2.section-padding {
        padding-top: 40px;
    }
}

/* Slightly reduce partners logos so they fit better visually */
.wpo-partners-section .partners-slider li img {
    max-height: 90px;
    width: auto;
    display: inline-block;
}

/* Keep a bit larger on very wide screens while still reduced from original */
@media (min-width: 1200px) {
    .wpo-partners-section .partners-slider li img {
        max-height: 110px;
    }


/* Partners: center logos without changing their size */
/* When slick is NOT active (<= 5 logos), we render as a centered flex group */
.wpo-partners-section .partners-slider.partners-static {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 0;
    margin: 0 auto;
    list-style: none;
}

/* Partners: add spacing when slick IS active (> 5 logos) */
.wpo-partners-section .partners-slider.slick-initialized .slick-slide {
    padding: 0 16px;
}

@media (max-width: 575px) {
    .wpo-partners-section .partners-slider.slick-initialized .slick-slide {
        padding: 0 10px;
    }
}

.wpo-partners-section .partners-slider.partners-static li,
.wpo-partners-section .partners-slider.partners-static li > div {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* When slick IS active (> 5 logos), center the content inside each slide */
.wpo-partners-section .partners-slider .slick-slide > div {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpo-partners-section .partners-slider .slick-slide > div > a,
.wpo-partners-section .partners-slider .slick-slide > div > img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
    /* Services submenu improvements (desktop + mobile fallback) */
    @media (min-width: 992px) {
        .wpo-header-style .wpo-site-header .navigation .menu-item-has-children { position: relative; }
        .wpo-header-style .wpo-site-header .navigation .sub-menu {
            min-width: 220px;
            max-width: 360px;
            background: #ffffff;
            padding: 6px 0;
            box-shadow: 0 6px 18px rgba(0,0,0,0.12);
            border-radius: 6px;
            list-style: none;
            left: 0;
            top: 100%;
            position: absolute;
            z-index: 999;
        }
        .wpo-header-style .wpo-site-header .navigation .sub-menu li a {
            display: block;
            padding: 10px 16px;
            color: #111;
            font-weight: 600;
            font-size: 15px;
            line-height: 1.2;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        /* Ensure submenu links are readable on the header's translucent background */
        .wpo-header-style .wpo-site-header .navigation .sub-menu li a:hover {
            background: rgba(0,0,0,0.03);
            color: #000;
        }
    }

    /* Mobile / small screens: keep submenu in normal flow */
    @media (max-width: 991px) {
        .wpo-header-style .wpo-site-header .navigation .sub-menu {
            position: static !important;
            box-shadow: none !important;
            max-width: none !important;
            background: transparent !important;
            padding-left: 12px !important;
        }
        .wpo-header-style .wpo-site-header .navigation .sub-menu li a {
            white-space: normal !important;
            text-overflow: unset !important;
            color: inherit !important;
            padding: 8px 0 !important;
            font-weight: 600;
        }
    }
}
