/* VS Soluções - Custom CSS | Apple-style Premium Design */

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible {
    opacity: 1;
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delay */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ===== NAVBAR ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-text-color {
    color: white;
    transition: color 0.4s ease;
}
#navbar.scrolled .nav-text-color {
    color: #1f2937;
}
.nav-link {
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
}
#navbar.scrolled .nav-link {
    color: #374151;
}
#navbar.scrolled .nav-link:hover {
    background: rgba(0, 46, 91, 0.08);
}
.nav-link.bg-primary-500 {
    color: white !important;
}

/* ===== HERO SECTIONS ===== */
.hero-gradient {
    background: linear-gradient(135deg, #002e5b 0%, #003d7a 50%, #004d99 100%);
    position: relative;
    overflow: hidden;
}
.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 20%, rgba(150, 198, 73, 0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(0, 77, 153, 0.3) 0%, transparent 50%);
    pointer-events: none;
}
.hero-gradient::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, white, transparent);
    pointer-events: none;
}

/* Hero Home - versão humanizada */
.hero-home {
    background: linear-gradient(135deg, #002e5b 0%, #00396f 40%, #004d99 100%);
    position: relative;
    overflow: hidden;
}
.hero-home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 80% 20%, rgba(150, 198, 73, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 10% 80%, rgba(0, 46, 91, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 77, 153, 0.1) 0%, transparent 70%);
    pointer-events: none;
}
.hero-bottom-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 5;
}
.hero-bottom-wave svg {
    width: 100%;
    height: 80px;
}

/* Hero image wrapper */
.hero-image-wrapper {
    position: relative;
}

/* Floating cards */
.floating-card {
    animation: floatUp 3s ease-in-out infinite;
}
.floating-card-2 {
    animation: floatUp 3s ease-in-out infinite;
    animation-delay: 1.5s;
}
@keyframes floatUp {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Nav logo - invert on dark bg, normal on scroll */
.nav-logo {
    filter: brightness(0) invert(1);
    transition: filter 0.4s ease;
}
#navbar.scrolled .nav-logo {
    filter: none;
}

.hero-mesh {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(at 40% 20%, rgba(255,255,255,0.03) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(150,198,73,0.05) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(0,46,91,0.1) 0px, transparent 50%);
    pointer-events: none;
}

/* ===== CARDS ===== */
.card-premium {
    background: white;
    border-radius: 1.25rem;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 46, 91, 0.08);
}

.card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.25rem;
}

/* ===== ICON CONTAINERS ===== */
.icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #002e5b, #003d7a);
    color: white;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.card-premium:hover .icon-box {
    transform: scale(1.08);
}

.icon-box-accent {
    background: linear-gradient(135deg, #96c649, #78a53a);
}

.icon-box-light {
    background: rgba(0, 46, 91, 0.06);
    color: #002e5b;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #002e5b;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary:hover {
    background: #003d7a;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 46, 91, 0.25);
}

.btn-accent {
    background: #96c649;
}
.btn-accent:hover {
    background: #78a53a;
    box-shadow: 0 8px 24px rgba(150, 198, 73, 0.3);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    text-decoration: none;
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-dark {
    color: #002e5b;
    border-color: rgba(0, 46, 91, 0.2);
}
.btn-outline-dark:hover {
    background: rgba(0, 46, 91, 0.05);
    border-color: rgba(0, 46, 91, 0.4);
}

/* ===== STATS ===== */
.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #002e5b, #004d99);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== SECTIONS ===== */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 46, 91, 0.06);
    color: #002e5b;
    padding: 0.375rem 1rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* ===== FAQ ===== */
.faq-item {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item:hover {
    border-color: rgba(0, 46, 91, 0.12);
}
.faq-header {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    transition: background 0.2s ease;
    user-select: none;
}
.faq-header:hover {
    background: rgba(0, 46, 91, 0.02);
}
.faq-header svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: #9ca3af;
}
.faq-item.active .faq-header svg {
    transform: rotate(180deg);
    color: #002e5b;
}
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.active .faq-content {
    max-height: 300px;
}
.faq-content-inner {
    padding: 0 1.5rem 1.25rem;
    color: #6b7280;
    line-height: 1.7;
}

/* ===== SEGMENT TAGS ===== */
.segment-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.625rem 1.25rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.3s ease;
}
.segment-tag:hover {
    border-color: #002e5b;
    color: #002e5b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 46, 91, 0.1);
}

/* ===== CTA SECTION ===== */
.cta-gradient {
    background: linear-gradient(135deg, #002e5b 0%, #003d7a 100%);
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
}
.cta-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(150, 198, 73, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* ===== SMOOTH SCROLL ===== */
html {
    scroll-behavior: smooth;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(0, 46, 91, 0.15);
    color: #002e5b;
}

/* ===== TEXT BALANCE ===== */
h1, h2, h3 {
    text-wrap: balance;
}

/* ===== PAGE TRANSITION ===== */
main {
    animation: pageIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE HELPERS ===== */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2.5rem;
    }
    .hero-gradient::after {
        height: 60px;
    }
    .hero-bottom-wave svg {
        height: 40px;
    }
    .floating-card,
    .floating-card-2 {
        position: static !important;
        display: inline-flex;
        margin-top: 0.75rem;
        margin-right: 0.5rem;
    }
    .hero-image-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .hero-image-wrapper > .relative {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 2rem;
    }
}
