/* DESIGN SYSTEM OVERRIDES */
:root {
    --brand-red: #db3034;
    --brand-whatsapp: #25D366;
    --brand-black: #000000;
    --brand-gray: #f4f4f4;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--brand-black);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--brand-black) !important;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-whatsapp {
    background-color: var(--brand-whatsapp);
    color: white !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    filter: brightness(1.1);
}

.btn-fiocamp {
    background-color: var(--brand-red);
    color: white !important;
    box-shadow: 0 4px 15px rgba(219, 48, 52, 0.3);
}

.btn-fiocamp:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(219, 48, 52, 0.4);
    filter: brightness(1.1);
}

/* LAYOUT COMPONENTS */
.sticky-top-bar {
    background: #222;
    color: white;
    padding: 10px 0;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.sticky-top-bar a {
    color: var(--brand-whatsapp);
    text-decoration: none;
    margin-left: 10px;
}

.header-main {
    padding: 20px 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.fiocamp-container {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

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

.logo img {
    max-width: 200px;
}

/* HERO SECTION */
.hero {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    min-height: 60vh;
}

.hero-parallax-bg {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    background: url('../img/hero-bg-professional.png') center/cover no-repeat;
    z-index: 0;
    will-change: transform;
    pointer-events: none;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.98) 35%, rgba(255,255,255,0.4) 100%);
    z-index: 1;
}


.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: left;
    margin-left: 0 !important;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 35px;
    color: #444;
}

/* SEGMENTATION */
.segmentation {
    padding: 80px 0;
    background: white;
    text-align: left;
}

.segment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.segment-card {
    padding: 40px;
    border-radius: 15px;
    background: var(--brand-gray);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.segment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    background: white;
    border-color: var(--brand-red);
}

.segment-card i {
    font-size: 40px;
    color: var(--brand-red);
    margin-bottom: 20px;
}

.segment-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* VALUE GRID */
.value-grid {
    background: #000;
    color: white;
    padding: 60px 0;
}

.value-grid h2, .value-grid h3 { color: white !important; }

.steps-flex {
    display: flex;
    justify-content: space-between;
    text-align: left;
}

.step-item span {
    display: block;
    font-size: 40px;
    font-weight: 800;
    color: var(--brand-red);
    margin-bottom: 10px;
}

/* LOGO CAROUSEL */
.logo-slider {
    overflow: hidden;
    padding: 40px 0;
    white-space: nowrap;
    position: relative;
}

.logo-slide-track {
    display: inline-block;
    animation: scroll 40s linear infinite;
}

.logo-slide-track img {
    max-height: 70px;
    margin: 0 40px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    vertical-align: middle;
}

.logo-slide-track img:hover {
    opacity: 1;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
    section { padding: 60px 0 !important; }
    .hero { 
        padding: 80px 0 !important; 
        text-align: center;
        background-position: center;
    }
    .hero::before {
        background: linear-gradient(0deg, rgba(255,255,255,0.95) 50%, rgba(255,255,255,0.7) 100%);
    }
    .hero-content {
        margin: 0 auto !important;
        text-align: center;
    }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 18px; }
    .hero div { justify-content: center; }
    
    .segment-grid { grid-template-columns: 1fr !important; gap: 20px; }
    .steps-flex { flex-direction: column; gap: 40px; }
    .flex-between { flex-direction: column; gap: 20px; }
    
    .fiocamp-container { padding-left: 20px !important; padding-right: 20px !important; }
    
    .mobile-action-bar {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
        z-index: 10000;
        padding: 12px;
        gap: 12px;
        box-sizing: border-box;
    }
    .mobile-action-bar .cta-button {
        flex: 1;
        padding: 15px 10px;
        font-size: 14px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .whatsapp-float {
        bottom: 90px !important;
        right: 20px !important;
    }
    
    .logo img { max-width: 160px; }
    header nav { display: none; }
    .header-main { padding: 10px 0 !important; }
    .header-main .fiocamp-container { justify-content: center; }
    
    /* Testimonials centering on mobile */
    section[style*="background: #f9f9f9;"] .fiocamp-container {
        text-align: center !important;
    }
    section[style*="background: #f9f9f9;"] h5, 
    section[style*="background: #f9f9f9;"] h2, 
    section[style*="background: #f9f9f9;"] p {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .sticky-top-bar a {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
}

.mobile-action-bar { display: none; }

/* Persistent Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
}

/* SCROLL REVEAL ANIMATION */
.reveal {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, filter, transform;
}

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

/* Staggered reveal for children if needed */
.reveal-stagger {
    transition-delay: 0.2s;
}
