/*
   Expresso Eco 2026 - Premium Design System
   Focus: Strategic CMO + AI Automation
   Identity: Dark Mode, Glassmorphism, Strategic High-Tide Design System (DFII: 14)
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');

:root {
    --bg-deep: #05070a;
    --bg-card: rgba(18, 24, 33, 0.9);
    --primary-eco: #00e0ff;
    --accent-wave: #00ffd5;
    --text-main: #ffffff;
    --text-dim: #cbd5e1;
    --glass-border: rgba(255, 255, 255, 0.15);
    --noise-opacity: 0.03;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Bricolage Grotesque', sans-serif;
}

/* Base Contrast Improvements */
.bg-deep-gradient {
    background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(18, 24, 33, 1) 100%) !important;
}

h2, h3, h4, h5, h6 {
    color: var(--text-main);
}


/* Luxury Noise Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: var(--noise-opacity);
    pointer-events: none;
    z-index: 9999;
}

body {
    background-color: var(--bg-deep) !important;
    color: var(--text-main) !important;
    font-family: var(--font-body) !important;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
}

/* Glassmorphism Classes */
.glass-effect {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* Hero Section Refinement - Doppler Parallax Effect */
#home .header {
    background: radial-gradient(circle at 50% 50%, rgba(0, 224, 255, 0.1) 0%, transparent 70%),
                var(--bg-deep) !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* === HERO: DOPPLER RINGS (CSS-only, sem JS) === */
.doppler-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    z-index: 0;
    pointer-events: none;
}

.wave-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 224, 255, 0.2);
    animation: ringExpand 8s ease-out infinite;
    pointer-events: none;
    /* Center each ring */
    top: 50%;
    left: 50%;
}

.wave-ring:nth-child(1) { animation-delay: 0s;    width: 200px; height: 200px; margin: -100px 0 0 -100px; }
.wave-ring:nth-child(2) { animation-delay: -2s;   width: 200px; height: 200px; margin: -100px 0 0 -100px; }
.wave-ring:nth-child(3) { animation-delay: -4s;   width: 200px; height: 200px; margin: -100px 0 0 -100px; }
.wave-ring:nth-child(4) { animation-delay: -6s;   width: 200px; height: 200px; margin: -100px 0 0 -100px; }

@keyframes ringExpand {
    0% {
        transform: scale(0.2);
        opacity: 0.8;
        border-color: rgba(0, 255, 213, 0.5);
    }
    50% {
        opacity: 0.3;
        border-color: rgba(0, 224, 255, 0.2);
    }
    100% {
        transform: scale(8);
        opacity: 0;
        border-color: rgba(0, 255, 213, 0);
    }
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 20px;
    background: radial-gradient(circle at center, rgba(18, 24, 33, 0.6) 0%, transparent 70%);
}

/* Text & Typography Scale */
h1, h2, h3, h4, .section-title {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    font-weight: 700;
}

.text-eco-glow {
    color: var(--primary-eco);
    text-shadow: 0 0 20px rgba(0, 224, 255, 0.5);
}

.text-dim {
    color: var(--text-dim);
    line-height: 1.7;
}

.strategic-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 224, 255, 0.1);
    border: 1px solid rgba(0, 224, 255, 0.3);
    color: var(--primary-eco);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.staggered-entry {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Owl Carousel & Cards Overrides */
.card, .expertises-item {
    background: var(--bg-card) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-main) !important;
}

.card-body h4, .card-body h5 {
    color: var(--text-main) !important;
}

/* Buttons */
.btn-warning {
    background-color: var(--primary-eco) !important;
    border-color: var(--primary-eco) !important;
    color: #05070a !important; /* High contrast black on cyan */
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-warning:hover {
    background-color: var(--accent-wave) !important;
    box-shadow: 0 0 30px rgba(0, 242, 195, 0.4);
}

/* Navbar */
.navbar.navbar-light.bg-light {
    background-color: rgba(5, 7, 10, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar .navbar-brand {
    color: var(--text-main) !important;
}

.navbar .nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
}

.navbar .nav-link:hover {
    color: var(--primary-eco) !important;
}

/* Calculators & Interactions Styles */
#calculadora-roi .glass-effect {
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.slider-group {
    margin-bottom: 2rem;
}

.slider-group label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dim);
}

.eco-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: rgba(255,255,255,0.1);
    outline: none;
}

.eco-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-eco);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 224, 255, 0.5);
    transition: transform 0.2s;
}

.eco-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.eco-input {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-main);
    padding: 10px 15px;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 1rem;
    transition: border-color 0.3s;
}

.eco-input:focus {
    outline: none;
    border-color: var(--primary-eco);
}

.results-panel {
    background: rgba(0, 224, 255, 0.05);
    border-left: 4px solid var(--primary-eco);
    padding: 2rem;
    border-radius: 0 15px 15px 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blur-overlay {
    filter: blur(8px);
    transition: filter 0.3s ease;
    user-select: none;
    pointer-events: none;
}

/* Case Studies Filters */
.filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    padding: 8px 20px;
    border-radius: 50px;
    margin: 0 5px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: rgba(0, 224, 255, 0.1);
    border-color: var(--primary-eco);
    color: var(--primary-eco);
}

.case-card {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.case-card.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

