/* ------------------------------------------------------------------
   Aqua-Info — "app" theme overlay
   Ports the navy/blue/cyan glassmorphism visual identity and motion
   system from intro/css/home.css onto the existing zenith-template
   markup. Loaded last, after style.css and css/style.css — restyles
   colors/typography/chrome only, never touches the DOM/JS contracts
   of the phone-carousel widget (zenith.js), Owl Carousel, Slick, or
   the AJAX product loader.
------------------------------------------------------------------- */

:root {
    --navy-950: #050b1f;
    --navy-900: #071033;
    --brand-700: #07319b;
    --brand-500: #1450d6;
    --accent-400: #22d3ee;
    --accent-300: #5eead4;
    --ink-900: #0b1220;
    --ink-600: #57647a;
    --paper: #ffffff;
    --paper-soft: #f2f7ff;
    --radius-lg: 28px;
    --radius-md: 18px;
    --shadow-soft: 0 24px 60px -24px rgba(7, 20, 60, .35);
    --shadow-btn: 0 14px 30px -12px rgba(20, 80, 214, .55);
    --ease: cubic-bezier(.22, .68, 0, 1.01);
}

/* ---------- base ---------- */

body {
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand-500);
    transition: color .3s ease;
}

a:hover,
a:focus {
    color: var(--accent-400);
}

h1, h2, h3 {
    font-weight: 700;
}

.light-bg {
    background-color: var(--paper-soft);
}

/* ---------- buttons ---------- */

.btn-light {
    border-radius: 999px;
    background: #fff;
    color: var(--navy-900);
    box-shadow: var(--shadow-soft);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}

.btn-light:hover {
    transform: translateY(-3px);
    background: var(--paper-soft);
    box-shadow: 0 20px 40px -14px rgba(20, 80, 214, .35);
    color: var(--brand-700);
}

/* ---------- floating glass nav ---------- */

.nav-menu {
    top: 18px;
    padding: 0;
    background: transparent;
    transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}

.nav-menu .container {
    max-width: 1180px;
}

.nav-menu .navbar {
    padding: 10px 14px 10px 18px;
    background: rgba(5, 11, 31, .55);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 34px -16px rgba(0, 0, 0, .55);
    transition: background .35s ease, border-radius .35s ease;
}

.nav-menu.is-scrolling .navbar,
.nav-menu.menu-is-open .navbar {
    box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .65);
}

.nav-menu.is-scrolling,
.nav-menu.menu-is-open {
    background: transparent;
    box-shadow: none;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .01em;
    white-space: nowrap;
    color: #fff !important;
}

.navbar-brand img {
    height: 26px;
    width: auto;
}

/* order the flex children of .navbar so the layout reads the same
   whether the toggler (mobile) or the link list (desktop) is the
   visible sibling next to brand + CTA: brand, links, cta, toggler */
.navbar-collapse { order: 1; }
.nav-cta { order: 2; }
.navbar-toggler { order: 3; }

.navbar-nav .nav-link {
    position: relative;
    color: rgba(255, 255, 255, .75) !important;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 14px !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    left: 14px;
    right: 100%;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent-400), var(--accent-300));
    transition: right .3s var(--ease);
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-link.active:after {
    right: 14px;
}

/* always-visible primary CTA, matching intro's .btn.btn-primary */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    color: #fff;
    background: linear-gradient(120deg, var(--brand-700), var(--brand-500) 55%, var(--accent-400));
    background-size: 180% 180%;
    box-shadow: var(--shadow-btn);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-position .35s var(--ease);
}

.nav-cta svg {
    width: 14px;
    height: 14px;
    transition: transform .35s var(--ease);
}

.nav-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    background-position: 100% 0;
    box-shadow: 0 20px 40px -14px rgba(20, 80, 214, .65);
}

.nav-cta:hover svg {
    transform: translateX(3px);
}

.nav-menu .dropdown > .nav-link,
.nav-menu .dropdown > button.nav-link {
    border-color: var(--accent-400) !important;
    color: #fff !important;
    border-radius: 999px !important;
}

.nav-menu .dropdown-menu {
    background: var(--navy-900);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.nav-menu .dropdown-item {
    color: rgba(255, 255, 255, .8);
}

.nav-menu .dropdown-item:hover,
.nav-menu .dropdown-item:focus {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, .35);
}

@media (max-width: 991px) {
    .nav-menu .navbar-collapse {
        background: rgba(5, 11, 31, .92);
        border-radius: var(--radius-md);
        margin-top: 10px;
        padding: 14px 8px;
    }

    /* .navbar keeps border-radius:999px (pill shape) at all times, sized
       for a short single-row bar. Once the mobile menu expands, the same
       element grows tall to wrap the open .navbar-collapse list, and a
       999px radius on a tall box curves the corners into a big rounded
       blob that cuts into the menu items instead of a clean rounded
       rectangle. Use a normal corner radius while open. */
    .nav-menu.menu-is-open .navbar {
        border-radius: var(--radius-md);
    }
}

/* ---------- hero ---------- */

header#home {
    position: relative;
    padding: 170px 0 70px;
    overflow: hidden;
    isolation: isolate;
}

.bg-gradient {
    background: radial-gradient(120% 140% at 15% 0%, #0c1c52 0%, var(--navy-950) 55%, #020614 100%);
}

header#home .hero__aurora {
    position: absolute;
    inset: -20%;
    z-index: -2;
    pointer-events: none;
}

header#home .hero__aurora span {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .55;
    animation: aquaDrift 22s ease-in-out infinite;
}

header#home .hero__aurora span:nth-child(1) {
    width: 46vw;
    height: 46vw;
    top: -10%;
    left: -8%;
    background: radial-gradient(circle, var(--brand-500), transparent 70%);
}

header#home .hero__aurora span:nth-child(2) {
    width: 38vw;
    height: 38vw;
    bottom: -14%;
    right: -6%;
    background: radial-gradient(circle, var(--accent-400), transparent 70%);
    animation-duration: 26s;
    animation-delay: -6s;
}

header#home .hero__aurora span:nth-child(3) {
    width: 26vw;
    height: 26vw;
    top: 34%;
    left: 46%;
    background: radial-gradient(circle, var(--accent-300), transparent 72%);
    animation-duration: 18s;
    animation-delay: -3s;
    opacity: .35;
}

@keyframes aquaDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(4%, -6%) scale(1.08); }
}

header#home .hero__bubbles {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

header#home .hero__bubbles span {
    position: absolute;
    bottom: -10%;
    display: block;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .05) 70%);
    border: 1px solid rgba(255, 255, 255, .25);
    animation: aquaRise linear infinite;
}

@keyframes aquaRise {
    from { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: .8; }
    90% { opacity: .5; }
    to { transform: translateY(-115vh) translateX(30px); opacity: 0; }
}

header#home h1 {
    background: linear-gradient(100deg, #ffffff 40%, var(--accent-300));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    color: rgba(255, 255, 255, .82);
    font-weight: 300;
}

/* The stock .img-holder (height:0 + padding-bottom% + overflow:hidden)
   is a "peek window" crop meant for images with empty space below the
   subject. header1.png's two phones fill the frame edge to edge, so
   that crop sliced straight through them right at a hard, arbitrary
   line. Instead, let the phones sit at their natural size and tuck
   the bottom slice behind the wave (which paints above them, z-index
   1) so they're deliberately, cleanly partly hidden along the wave's
   curve rather than sliced by a straight edge. */
.img-holder {
    height: auto;
    padding-bottom: 0;
    overflow: visible;
    display: flex;
    justify-content: center;
    margin-bottom: -130px;
}

.img-holder img {
    position: static;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 52vh;
    margin: 0;
    animation: aquaFloat 5s ease-in-out infinite;
    filter: drop-shadow(0 30px 45px rgba(0, 0, 0, .45));
}

@keyframes aquaFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

header#home .wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    line-height: 0;
    z-index: 1;
}

header#home .wave svg {
    width: 100%;
    height: 70px;
    display: block;
}

.site-footer .wave {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    line-height: 0;
}

.site-footer .wave svg {
    width: 100%;
    height: 70px;
    display: block;
}

/* ---------- section rhythm ---------- */

.section-title small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand-500);
}

.section-title small::before {
    content: '';
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent-400), var(--brand-500));
    display: inline-block;
}

.section-title h3 {
    margin-top: 14px;
    color: var(--ink-900);
    font-size: clamp(26px, 3.4vw, 38px);
}

/* ---------- cards & widgets chrome ---------- */

.card.features {
    height: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.card.features:before {
    background: linear-gradient(to bottom, var(--accent-400) 0%, var(--brand-500) 100%);
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
}

.card.features:hover {
    box-shadow: 0 30px 60px -20px rgba(7, 20, 60, .3);
}

.gradient-fill:before {
    background: linear-gradient(to bottom, var(--accent-400) 0%, var(--brand-700) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.box-icon {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.circle-icon {
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
    color: #fff;
}

.img-gallery img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

/* phone-carousel widget (zenith.js) — chrome only, geometry untouched */
.highlight .fl-inner h4,
.highlight .fr-inner h4 {
    color: var(--ink-900);
}

.icon-wrapper i {
    background-color: var(--brand-700);
    color: #fff;
}

.highlight.active h4:after,
.highlight h4:after {
    background: var(--accent-400);
}

/* counters — recolor the rotated-diamond layout, keep its geometry */
.counter__item {
    background: var(--brand-700);
}

.counter__item::before,
.counter__item.second__item:before,
.counter__item.four__item:before,
.counter__item.third__item:before {
    border-color: rgba(34, 211, 238, .3);
}

/* FAQ */
#faq h4 {
    color: var(--ink-900);
}

/* products (AJAX-populated by js/script.js, chrome only) */
/* Slick sets each slide's width inline (based on the carousel's own
   math); Bootstrap's col-md-4/col-sm-6/col-lg-3 grid classes on the
   same element then clamp that width down via percentage max-width,
   which is what made the cards render far narrower than the slide
   itself. Slick already fully owns sizing here, so drop the clamp. */
.slideProdutos .listagemProdutos {
    max-width: none !important;
}

.fotoProduto {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.fotoProduto img {
    transition: transform .6s var(--ease);
}

.listagemProdutos:hover .fotoProduto img {
    transform: scale(1.05);
}

.tituloProduto {
    color: var(--ink-900);
}

/* download CTA — the icon itself uses the template's pre-built
   .gradient-fill2 (solid white, !important) instead of .gradient-fill
   (navy gradient, also !important in style.css): style.css's own
   !important rules can't be beaten from here, so the HTML picks the
   variant that's already white. */
#download .box-icon {
    background: linear-gradient(135deg, var(--brand-700), var(--accent-400));
    color: #fff;
}

#download {
    position: relative;
    overflow: hidden;
    padding: 130px 0;
}

#download .wave-top,
#download .wave-bottom {
    position: absolute;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 1;
}

#download .wave-top { top: 0; }
#download .wave-bottom { bottom: 0; }

#download .wave-top svg,
#download .wave-bottom svg {
    width: 100%;
    height: 70px;
    display: block;
}

.call-to-action .tagline {
    color: rgba(255, 255, 255, .82);
}

/* contact */
.social-icons a {
    border-radius: 999px;
    color: var(--brand-700);
    box-shadow: var(--shadow-soft);
}

.social-icons a:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-700), var(--accent-400));
}

/* ---------- reveal-on-scroll ---------- */

.reveal,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal { transform: translateY(28px); }
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

.reveal-delay-1.is-visible { transition-delay: .12s; }
.reveal-delay-2.is-visible { transition-delay: .24s; }
.reveal-delay-3.is-visible { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-left,
    .reveal-right,
    .img-holder img,
    header#home .hero__aurora span,
    header#home .hero__bubbles span {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ---------- footer ---------- */

.site-footer {
    position: relative;
    background: var(--navy-950);
    color: rgba(255, 255, 255, .65);
    padding: 100px 0 30px;
    overflow: hidden;
}

.site-footer__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 26px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
}

.site-footer__brand img {
    height: 32px;
}

.site-footer__links {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.site-footer__links a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, .65);
    text-decoration: none;
    transition: color .3s ease;
}

.site-footer__links a:hover {
    color: var(--accent-300);
}

.site-footer__bottom {
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, .4);
}

/* ---------- back to top ---------- */

.to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1050;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-700), var(--accent-400));
    color: #fff;
    box-shadow: var(--shadow-btn);
    opacity: 0;
    transform: translateY(12px) scale(.9);
    pointer-events: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.to-top.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.to-top:hover {
    transform: translateY(-4px) scale(1.05);
}

.to-top svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 767px) {
    header#home {
        padding-top: 140px;
    }

    /* counters — the diamonds' fixed 255px size and negative-margin brick
       lattice (css/style.css) assume the desktop 2-column layout. Below
       Bootstrap's sm breakpoint each .counter__item becomes a full-width
       single column, so every diamond renders at its full desktop size and
       overlaps the next one. Shrinking the box does not really fix it
       either: a 45deg-rotated square visually extends ~41% beyond its own
       layout box along its points, so margins large enough to clear that
       make the section very tall for very little content. Simpler and
       more legible on a phone: a plain 2x2 grid of rounded cards instead
       of rotated diamonds. */
    .counter {
        height: auto;
        padding: 50px 0;
    }

    .counter__content {
        padding: 0 20px;
    }

    .counter__content .row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        /* Bootstrap gives .row a -15px/-15px margin to counteract the
           padding on its .col-* children; left as-is it makes this grid
           30px wider than .counter__content, pushing the right column
           past the edge of the screen. */
        margin-left: 0;
        margin-right: 0;
    }

    /* Each item is wrapped in a Bootstrap col-sm-6 (max-width:50%,
       flex-basis:50%), sized for the ORIGINAL flex .row (50% of the full
       row). Under the grid above, that 50% instead resolves against the
       cell it is already sitting in — which is itself ~50% of the row —
       compounding into a 25%-wide box. Let it fill its grid cell instead. */
    .counter__content .row > [class*="col-"] {
        max-width: 100%;
        flex-basis: auto;
    }

    .counter__item,
    .counter__item.second__item,
    .counter__item.third__item,
    .counter__item.four__item {
        /* width:auto + aspect-ratio inside a 1fr grid track resolved
           inconsistently (84px regardless of viewport at some widths) —
           explicit width/height sidesteps that sizing ambiguity entirely. */
        width: 100% !important;
        height: 150px !important;
        margin: 0 !important;
        transform: none !important;
        border-radius: 20px;
    }

    .counter__item::before {
        display: none;
    }

    .counter__item__text {
        transform: none;
    }

    .counter__item__text h2 {
        font-size: 32px;
        margin-top: 0;
    }
}

/* "Saiba tudo o que precisa" (zenith phone-carousel widget) — .left-row,
   the phone column and .right-row are each col-lg-4 col-md-4 col-sm-12,
   so from 768px (md) they try to sit side by side as 3 columns. The
   center phone graphic has a fixed 300px width (.phone-holder), which
   does not fit alongside two ~33%-wide icon columns until the viewport
   is wide enough (col-lg-4 at 992px+) — below that the icon columns
   render on top of the phone. Stack all three full-width, same as the
   already-correct <768px behavior, until there is room at 992px. */
@media (min-width: 768px) and (max-width: 991px) {
    .left-row,
    .highlights-phone,
    .right-row {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
