/* ===== VARIÁVEIS DE TRANSIÇÃO ===== */
:root {
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 48px rgba(42, 83, 194, 0.15);
}

/* ===== HERO SECTION ===== */
#hero-produto {
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
    background-size:cover;
    background-position:center top;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero-produto > span {
    background-image: url("/img/produtos/bg.svg");
    background-size: cover;
    background-position: center;
    position: absolute;
    right: -1px;
    top: 0;
    width: 50vw;
    height: 100%;
    z-index: -1;
    border-radius: 10px 0 0 10px;
    transition: var(--transition-smooth);
    opacity: 0.95;
}

#hero-produto:hover > span {
    opacity: 1;
}

@media screen and (max-width: 992px) {
    #hero-produto > span {
        top: auto;
        bottom: 0;
        height: 250px;
        width: calc(100vw + 2px);
        border-radius: 0;
    }
}

/* ===== PRODUTO TAG ===== */
.produto-tag {
    display: inline-block;
    background: white;
    color: var(--af-primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(42, 83, 194, 0.1);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.produto-tag:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ===== HERO TEXT ===== */
.hero--vistoria h1 {
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero--vistoria .lead-text {
    font-size: 1.25rem;
    color: var(--af-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.5;
    animation: slideInLeft 0.8s ease-out 0.1s backwards;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-color);
    max-width: 600px;
    animation: slideInLeft 0.8s ease-out 0.2s backwards;
}

.hero-img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-img:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

/* ===== CHALLENGES SECTION ===== */
.section-challenges {
    background: linear-gradient(135deg, var(--af-primary) 0%, var(--af-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.section-challenges::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.challenge-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.challenge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(42, 83, 194, 0.05), transparent);
    transition: left 0.5s ease;
}

.challenge-card:hover::before {
    left: 100%;
}

.challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(42, 83, 194, 0.2);
}

.challenge-card i {
    font-size: 1.5rem;
    flex-shrink: 0;
    color: var(--af-primary);
    transition: var(--transition-smooth);
}

.challenge-card:hover i {
    transform: scale(1.1);
}

.challenge-card p {
    margin: 0;
    font-weight: 600;
    color: var(--af-secondary);
    line-height: 1.4;
    width: 100%;
}

/* ===== FEATURES ===== */
.feature-list-check {
    list-style: none;
    padding: 0;
}

.feature-list-check > li {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-list-check > li:nth-child(1) { animation-delay: 0.1s; }
.feature-list-check > li:nth-child(2) { animation-delay: 0.2s; }
.feature-list-check > li:nth-child(3) { animation-delay: 0.3s; }
.feature-list-check > li:nth-child(4) { animation-delay: 0.4s; }

.feature-list-check > li:last-child {
    margin-bottom: 0;
}

.feature-list-check .icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--af-light-blue) 0%, rgba(245, 246, 255, 0.5) 100%);
    color: var(--af-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.feature-list-check .icon-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(42, 83, 194, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.feature-list-check > li:hover .icon-box::before {
    width: 100px;
    height: 100px;
}

.feature-list-check > li:hover .icon-box {
    transform: rotate(5deg) scale(1.1);
    box-shadow: var(--shadow-md);
}

.feature-list-check h4 {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--af-secondary);
    margin-bottom: 10px;
    transition: var(--transition-smooth);
}

.feature-list-check > li:hover h4 {
    color: var(--af-primary);
}

.feature-list-check ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.feature-list-check ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.feature-list-check ul li:hover {
    padding-left: 24px;
    color: var(--af-secondary);
}

.feature-list-check ul li:before {
    content: "•";
    color: var(--af-primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    transition: var(--transition-smooth);
}

.feature-list-check ul li:hover:before {
    transform: scale(1.3);
}

/* ===== WHY US (Cards) ===== */
.section-why {
    border-top: 1px solid rgba(0,0,0,0.05);
}

.why-card-prod {
    background: white;
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    height: 100%;
    border: 2px solid rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.why-card-prod::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(42, 83, 194, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.why-card-prod:hover::before {
    opacity: 1;
}

.why-card-prod:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
    border-color: rgba(42, 83, 194, 0.3);
}

.why-card-prod i {
    font-size: 2.8rem;
    color: var(--af-primary);
    margin-bottom: 20px;
    display: block;
    transition: var(--transition-bounce);
    position: relative;
    z-index: 1;
}

.why-card-prod:hover i {
    transform: rotateY(360deg) scale(1.1);
}

.why-card-prod h5 {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--af-secondary);
    position: relative;
    z-index: 1;
    transition: var(--transition-smooth);
}

.why-card-prod:hover h5 {
    color: var(--af-primary);
}

.why-card-prod p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ===== INTEGRATIONS ===== */
.integration-badge {
    background-color: #fff;
    border: 2px solid #e0e0e0;
    padding: 14px 26px;
    border-radius: 12px;
    color: #555;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    display: inline-block;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.integration-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(42, 83, 194, 0.05), transparent);
    transition: left 0.5s ease;
}

.integration-badge:hover::before {
    left: 100%;
}

.integration-badge:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-md);
    border-color: var(--af-primary);
    color: var(--af-primary);
}

/* ===== CONTACT OVERRIDES ===== */
#contato .container {
    max-width: 650px;
}

/* ===== SCROLL ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
    .challenge-card,
    .why-card-prod {
        opacity: 0;
        animation: fadeInUp 0.6s ease-out forwards;
    }
    
    .challenge-card:nth-child(1) { animation-delay: 0.1s; }
    .challenge-card:nth-child(2) { animation-delay: 0.2s; }
    .challenge-card:nth-child(3) { animation-delay: 0.3s; }
    .challenge-card:nth-child(4) { animation-delay: 0.4s; }
    .challenge-card:nth-child(5) { animation-delay: 0.5s; }
    .challenge-card:nth-child(6) { animation-delay: 0.6s; }
    
    .why-card-prod:nth-child(1) { animation-delay: 0.1s; }
    .why-card-prod:nth-child(2) { animation-delay: 0.2s; }
    .why-card-prod:nth-child(3) { animation-delay: 0.3s; }
    .why-card-prod:nth-child(4) { animation-delay: 0.4s; }
}

/* ===== RESPONSIVIDADE APRIMORADA ===== */
@media (max-width: 768px) {
    .feature-list-check .icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .why-card-prod {
        padding: 24px;
    }
    
    .why-card-prod i {
        font-size: 2.2rem;
    }
}
