/* 
   AÇAÍ PREMIUM - PREMIUM DARK STYLES (RESTORATION)
   Inspirado no design minimalista e luxuoso da Apple
*/

:root {
    /* Paleta de Cores Premium */
    --primary-bg: #0f0117;
    --secondary-bg: #1a1a1a;
    --accent-color: #a3ff00;
    --accent-rgb: 163, 255, 0;
    --text-white: #ffffff;
    --text-muted: #888888;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --main-gradient: linear-gradient(180deg, #0f0117 0%, #2e0854 100%);
    --accent-gradient: linear-gradient(135deg, #a3ff00 0%, #7dbb00 100%);

    /* Tipografia Apple-like */
    --font-main: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;

    --radius-lg: 32px;
    --radius-md: 20px;
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-white);
    background-color: var(--primary-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* --- COMPONENTES GLOBAIS --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #000;
    box-shadow: 0 10px 30px rgba(163, 255, 0, 0.2);
}

.btn-primary:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 40px rgba(163, 255, 0, 0.4);
}

.btn-large {
    padding: 1.5rem 4rem;
    font-size: 1.2rem;
}

.highlight {
    color: var(--accent-color);
}

/* --- PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-logo {
    font-size: 2.5rem;
    font-weight: 900;
    font-style: italic;
    color: white;
    margin-bottom: 2rem;
    animation: pulsate 2s infinite;
}

.loader-bar-bg {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.loader-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    transition: width 0.3s ease;
}

@keyframes pulsate {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }
}

/* --- BACKGROUND ANIMATION SYSTEM --- */
.hero-bg-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: background-image;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--primary-bg) 85%);
    z-index: -1;
    pointer-events: none;
}

/* Patch Digital para ocultar marca d'água no canto inferior direito */
.hero-bg-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 250px;
    height: 150px;
    background: var(--primary-bg);
    filter: blur(40px);
    opacity: 1;
    pointer-events: none;
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.delay-4 {
    transition-delay: 0.8s;
}

/* --- NAVBAR LUXURY --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.5s ease;
    background: rgba(15, 1, 23, 0.7);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -2px;
}

.logo-text .premium {
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(163, 255, 0, 0.3);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.mobile-toggle {
    display: none;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.headline {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 10vw, 8rem);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -3px;
    margin-bottom: 2rem;
    font-style: italic;
}

.subheadline {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.trust-badge i {
    color: var(--accent-color);
    width: 18px;
    height: 18px;
}

.trust-badge strong {
    color: white;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 5px;
    background-color: var(--accent-color);
    border-radius: 2px;
    animation: scrollMove 2s infinite;
}

@keyframes scrollMove {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* --- CARROSSEL 3D SABORES --- */
.flavors-3d {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0;
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at center, rgba(46, 8, 84, 0.15) 0%, transparent 70%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

/* Viewport é o pai das zonas de clique invisíveis */
.carousel-3d-viewport {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* CRUCIAL para ancorar .carousel-nav */
    padding: 1rem 0;
}

.carousel-3d-container {
    perspective: 2000px;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    gap: 3rem;
}

.carousel-3d-track {
    position: relative;
    width: min(80vw, 550px);
    height: min(80vw, 550px);
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    flex-shrink: 0;
}

.carousel-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    transition:
        opacity   1.3s cubic-bezier(0.4, 0, 0.2, 1),
        filter    1.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* suave nos laterais */
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 40px 100px rgba(0, 0, 0, 0.8));
    transition: all 1s ease;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

@keyframes carouselZoomIn {
    0% {
        opacity: 0.2;
        transform: translate3d(0, 0, 120px) scale(0.85);
    }

    70% {
        opacity: 1;
        transform: translate3d(0, 0, 120px) scale(1.18);
    }

    /* leve overshoot */
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 120px) scale(1.15);
    }
}

@keyframes shadowPulse {
    0% {
        filter: drop-shadow(0 40px 100px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 0px rgba(163, 255, 0, 0));
    }

    50% {
        filter: drop-shadow(0 50px 120px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 30px rgba(63, 0, 98, 0.574));
    }

    100% {
        filter: drop-shadow(0 40px 100px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 0px rgba(163, 255, 0, 0));
    }
}

.carousel-item.active {
    opacity: 1;
    z-index: 50;
    pointer-events: auto;
    /* animation define o transform final, transition não conflita pois o animation vence */
    animation: carouselZoomIn 0.9s cubic-bezier(0.34, 1.3, 0.64, 1) forwards;
}

.carousel-item.active img {
    animation: shadowPulse 1.4s ease-out 0.5s 1 forwards;
}

.carousel-item.prev {
    filter: blur(12px);
    opacity: 0.1;
    z-index: 5;
    transform: translate3d(-90%, 0, -250px) rotateY(30deg);
}

.carousel-item.next {
    filter: blur(12px);
    opacity: 0.1;
    z-index: 5;
    transform: translate3d(90%, 0, -250px) rotateY(-30deg);
}

/* Zonas de Clique Invisíveis — posicionadas no viewport */
.carousel-nav {
    position: absolute;
    inset: 0;
    /* top:0 right:0 bottom:0 left:0 */
    display: flex;
    justify-content: space-between;
    z-index: 200;
    pointer-events: none;
    /* container não captura, só os filhos */
}

.carousel-nav-btn {
    width: 30%;
    /* Zona de 30% em cada lateral */
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

#prevBtn {
    cursor: w-resize;
}

#nextBtn {
    cursor: e-resize;
}

.flavor-info {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    transition: all 0.8s ease;
}

#currentFlavorDesc {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

#currentFlavorName {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 900;
    margin-bottom: 0.3rem;
    line-height: 1;
    color: white;
}

.price-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.price-symbol {
    font-size: 0.9rem;
    font-weight: 800;
    margin-top: 0.8rem;
    color: rgba(163, 255, 0, 0.6);
}

#currentFlavorPrice {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    color: var(--accent-color);
    line-height: 0.9;
    letter-spacing: -2px;
    text-shadow: 0 0 30px rgba(163, 255, 0, 0.2);
}

.btn-order {
    padding: 1.2rem 3.5rem;
    border-radius: 100px;
    background: var(--accent-color);
    color: black;
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 15px 40px rgba(163, 255, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-order:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(163, 255, 0, 0.5);
}

/* --- BENEFÍCIOS --- */
.benefits {
    padding: clamp(100px, 15vh, 180px) 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(30px);
    border-radius: 35px;
    padding: 3.5rem 2rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.benefit-card:hover {
    transform: translateY(-15px);
    border-color: var(--accent-color);
    background: rgba(163, 255, 0, 0.05);
}

.benefit-card .benefit-icon {
    width: 70px;
    height: 70px;
    background: rgba(163, 255, 0, 0.1);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: rotate(10deg) scale(1.1);
}

.benefit-card h4 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- DEPOIMENTOS --- */
.testimonials {
    padding: clamp(100px, 15vh, 200px) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
}

.stars {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

/* --- CONTATO LUXURY --- */
.contact-section {
    padding: clamp(100px, 15vh, 200px) 0;
}

.contact-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(30px);
    border-radius: 60px;
    padding: 6rem 4rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

/* --- FOOTER --- */
.footer {
    background: rgba(15, 1, 23, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #444;
    font-size: 0.8rem;
}

/* --- WHATSAPP FLOATING --- */
.floating-wa {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 70px;
    height: 70px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.8rem;
    box-shadow: 0 15px 40px rgba(163, 255, 0, 0.3);
    z-index: 999;
}

.floating-wa .pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0.5;
    z-index: -1;
    animation: pulseAnimate 2s infinite;
}

@keyframes pulseAnimate {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* ─── RESPONSIVIDADE MOBILE ─────────────────────── */
@media (max-width: 768px) {

    /* Navbar */
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: none;
    }

    /* Remove menu hamburger */
    .nav-cta {
        display: none;
    }

    /* Remove botão Pedir Agora */

    /* Hero */
    .hero-bg-animation {
        transform: translate(-30%, -50%);
        /* Desloca para esq. para mostrar o açaí parcialmente */
        width: 140vw;
        /* Aumenta largura para compensar o deslocamento */
    }

    .headline {
        font-size: clamp(2.5rem, 10vw, 4rem);
        letter-spacing: -1px;
    }

    .subheadline {
        font-size: 1rem;
    }

    .hero {
        padding-top: 100px;
    }

    /* Seção de Sabores */
    .flavors-3d {
        min-height: unset;
        padding: 80px 0 60px;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        letter-spacing: -1px;
    }

    /* Carrossel */
    .carousel-3d-container {
        gap: 2rem;
    }

    .carousel-3d-track {
        width: 85vw;
        height: 85vw;
    }

    .carousel-item.active {
        transform: translate3d(0, 0, 60px) scale(1.05);
    }

    .carousel-item.prev {
        transform: translate3d(-30%, 0, -200px) rotateY(25deg);
    }

    .carousel-item.next {
        transform: translate3d(30%, 0, -200px) rotateY(-25deg);
    }

    /* Zonas de clique menores no mobile (mais toque central) */
    .carousel-nav-btn {
        width: 20%;
    }

    /* Info do sabor */
    .flavor-info {
        width: 100%;
        margin-top: 0;
        padding: 0 1rem;
    }

    #currentFlavorName {
        font-size: clamp(2.2rem, 9vw, 3.5rem);
    }

    #currentFlavorDesc {
        font-size: 0.75rem;
    }

    #currentFlavorPrice {
        font-size: clamp(3rem, 13vw, 5rem);
        letter-spacing: -2px;
    }

    .price-symbol {
        font-size: 1rem;
        margin-top: 0.6rem;
    }

    .price-container {
        margin-bottom: 1.5rem;
    }

    .btn-order {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }

    /* Layout geral */
    .trust-badges {
        gap: 1rem;
        margin-bottom: 2.5rem;
    }

    .trust-badge {
        font-size: 0.75rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .benefit-card {
        padding: 2.5rem 1.5rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .contact-card {
        padding: 3rem 1.5rem;
        border-radius: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .headline {
        font-size: clamp(2rem, 11vw, 2.8rem);
    }

    .carousel-3d-track {
        width: 90vw;
        height: 90vw;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}