/* ===== Rede Encomendas — Brutalist Design System ===== */
/* Palette: re-navy #0a1628, re-green #22c55e, re-orange #f97316, re-paper #f8fafc */

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: #f97316;
    color: #f8fafc;
}

::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
    border-left: 1px solid #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #22c55e;
    border: 2px solid #f8fafc;
}
::-webkit-scrollbar-thumb:hover {
    background: #f97316;
}

/* ===== Language Toggle (CSS-driven) ===== */
[data-lang-pt],
[data-lang-en] {
    display: none;
}
[data-lang="pt"] [data-lang-pt],
[data-lang="en"] [data-lang-en] {
    display: revert;
}
/* Marquee needs flex */
[data-lang="pt"] [data-lang-pt].marquee-content,
[data-lang="en"] [data-lang-en].marquee-content {
    display: flex;
}

/* ===== Grid Pattern Background ===== */
.bg-grid-pattern {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}
.bg-grid-pattern-light {
    background-image: linear-gradient(to right, rgba(10, 22, 40, 0.04) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(10, 22, 40, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ===== Diagonal Clip ===== */
.clip-diagonal {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

/* ===== Navigation Link Underline ===== */
.nav-link-bold {
    position: relative;
}
.nav-link-bold::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -6px;
    left: 0;
    background: linear-gradient(to right, #22c55e, #f97316);
    transition: width 0.3s ease;
}
.nav-link-bold:hover::after {
    width: 100%;
}

/* ===== Button Brutal (press effect) ===== */
.btn-brutal {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-brutal:hover {
    transform: translate(4px, 4px);
}

/* ===== Card Brutal ===== */
.card-brutal {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-brutal:hover {
    transform: translate(4px, 4px);
    box-shadow: 2px 2px 0px 0px rgba(10, 22, 40, 1);
}

/* ===== Marquee Animation ===== */
@keyframes marquee-scroll {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}
.marquee-track {
    display: flex;
    animation: marquee-scroll 30s linear infinite;
}

/* ===== Float Animation ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* ===== Pulse Dot ===== */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}
.animate-pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* ===== FAQ Accordion ===== */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.faq-item.active .faq-answer {
    max-height: 600px;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}
.faq-icon {
    transition: transform 0.3s ease;
}

/* ===== Three.js Canvas Containers ===== */
#hero-three canvas,
#stats-three canvas,
#cta-three canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#hero-three,
#stats-three,
#cta-three {
    pointer-events: none;
}
#hero-three {
    pointer-events: auto;
}

/* ===== Gradient Text ===== */
.text-gradient-green {
    background: linear-gradient(to right, #22c55e, #86efac, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gradient-mixed {
    background: linear-gradient(to right, #22c55e, #14b8a6, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Blur Blob ===== */
.blur-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
}

/* ===== Skeleton Shimmer ===== */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* ===== Toast Notification ===== */
@keyframes toast-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}
.toast {
    animation: toast-in 0.3s ease;
}
.toast.fade-out {
    animation: toast-out 0.3s ease forwards;
}
