﻿:root {
    --primary-color: #F25D07;
    /* Orange */
    --secondary-color: #3805F2;
    /* Blue */
    --tertiary-color: #D90479;
    /* Pink/Magenta */
    --text-white: #ffffff;
    --text-dark: #333333;
    --whatsapp-green: #25D366;
    --radius: 20px;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Acessibilidade: Respeitar preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .service-card {
        opacity: 1;
        transform: none;
    }
    
    .cta-button-whatsapp {
        animation: none;
    }
    
    .cta-button-whatsapp::after {
        animation: none;
    }
    
    .service-card:first-child::before {
        animation: none;
    }
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f2f5 0%, #e8eaf0 100%);
    /* Neutral background with subtle gradient */
    overflow-x: hidden;
    position: relative;
}

/* Fundo Interativo */
.interactive-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 1; /* Garantir que está visível */
}

#backgroundCanvas {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 1; /* Garantir opacidade total */
}

/* Mobile Container */
.mobile-container {
    width: 100%;
    max-width: 480px;
    background-color: transparent;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Services List */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Banner Service Card */
.service-card {
    border-radius: var(--radius);
    padding: 20px 15px;
    /* Slightly reduced padding to fit text */
    position: relative;
    box-shadow: var(--shadow);
    display: flex;
    overflow: hidden;
    min-height: 220px;
    /* Ensure height for content */
    cursor: pointer;
    /* Indicate clickability */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.service-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3), 0 0 20px rgba(242, 93, 7, 0.2);
    z-index: 1;
    filter: brightness(1.1);
}

/* Background Colors */
.bg-teal {
    background-color: var(--primary-color);
}

.bg-pink {
    background-color: var(--secondary-color);
}

.bg-purple {
    background-color: var(--tertiary-color);
}

/* Cores específicas para cards */
.bg-pink-rosa {
    background-color: #FF69B4;
    /* Rosa pink para Furo Humanizado */
}

.bg-orange-vivo {
    background-color: #FF6B35;
    /* Laranja mais vivo para Perfuração em Adultos */
}

.bg-purple-light {
    background-color: #8B5CF6;
    /* Roxo para Luz Que Cura em Casa */
}

.bg-orange-forte {
    background-color: #FF4500;
    /* Laranja forte para Gestar Juntos */
}

.bg-tiktok {
    background: linear-gradient(135deg, #000000 0%, #161823 50%, #000000 100%);
    /* Preto com gradiente para TikTok */
}

.bg-parcerias {
    background-color: #0EA5E9;
    /* Azul para Parcerias */
}

/* Card Content (Left Side) */
.card-content {
    flex: 1;
    z-index: 2;
    padding-right: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 60%;
    /* Limit text width to allow image space */
}

.service-card h2 {
    font-size: 1.4rem;
    /* Slightly smaller to fit long words */
    color: var(--text-white);
    margin-bottom: 5px;
    line-height: 1.1;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}

.logo-placeholder-card {
    font-weight: 900;
    color: var(--text-white);
    font-size: 1rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.benefits-list {
    list-style: none;
    margin-bottom: 15px;
}

.benefits-list li {
    font-size: 0.75rem;
    /* Smaller font for list to fit all items */
    color: var(--text-white);
    margin-bottom: 4px;
    padding-left: 15px;
    position: relative;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.benefits-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--text-white);
    font-weight: bold;
    font-size: 0.7rem;
}

/* WhatsApp Button - Regras consolidadas */
.cta-button-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: var(--whatsapp-green);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    align-self: flex-start;
    transition: background 0.2s, transform 0.1s;
    border: 2px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    z-index: 2;
    animation: pulseGreen 2s infinite;
}

.cta-button-whatsapp:hover {
    background-color: #1ebe57;
}

.cta-button-whatsapp:active {
    transform: scale(0.95);
    background-color: #128c7e;
}

/* Efeito de brilho no botão */
.cta-button-whatsapp::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 3s infinite;
    animation-delay: 1s;
}

/* Pseudo-elemento para área clicável (removido - não necessário) */

/* Banner Image (Right Side) */
.card-banner-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    /* Slightly less width to give more room to text */
    height: 100%;
    z-index: 1;
    /* Removed mask-image for solid background */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- BANNER DE APRESENTAÇÃO: Estilos Especiais para o Primeiro Card --- */
.service-card:first-child {
    margin-bottom: 50px;
    /* Maior espaçamento para destacar do restante */
    min-height: 260px;
    /* Altura aumentada para mais presença */
    padding: 30px 20px;
    /* Padding aumentado para mais respiro */
    background: #FF8C42;
    /* Cor de fundo personalizada para o banner - laranja mais escuro */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25), 
                0 5px 15px rgba(242, 93, 7, 0.3),
                0 0 30px rgba(242, 93, 7, 0.15);
    /* Sombra mais pronunciada com múltiplas camadas */
    border: 3px solid rgba(255, 255, 255, 0.4);
    /* Borda sutil para destacar */
    position: relative;
}

/* Efeito de brilho sutil ao redor do banner */
.service-card:first-child::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, 
        rgba(242, 93, 7, 0.4), 
        rgba(209, 74, 5, 0.3),
        rgba(242, 93, 7, 0.4));
    border-radius: calc(var(--radius) + 3px);
    z-index: -1;
    opacity: 0.6;
    filter: blur(8px);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        opacity: 0.4;
    }
    100% {
        opacity: 0.7;
    }
}

    /* Hover mais sutil para o banner (não precisa ser tão interativo) */
    .service-card:first-child:hover {
        transform: scale(1.02) translateY(-3px);
        /* Efeito mais sutil que os outros cards */
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 
                    0 8px 20px rgba(242, 93, 7, 0.4),
                    0 0 40px rgba(242, 93, 7, 0.2);
        filter: brightness(1.05);
        /* Brilho mais sutil */
    }

/* AJUSTE: Imagem do primeiro card mais à direita */
.service-card:first-child .card-banner-img {
    right: -5%;
    /* Mais à direita */
}

/* AJUSTE: Permitir que imagens nos cards (exceto o primeiro) vazem e aumentar largura */
.service-card:not(:first-child) .card-banner-img {
    overflow: visible;
    width: 55%;
    /* Largura aumentada para acomodar a imagem maior */
    right: -5%;
    /* Posicionamento ajustado para permitir vazamento à direita */
}

/* AJUSTE ESPECÍFICO: Imagem do card "Luz que cura em casa" (4º card) mais à direita */
.service-card:nth-child(4) .card-banner-img {
    right: -15%;
    /* Mais à direita para maior destaque */
}

/* AJUSTE ESPECÍFICO: Imagem do card "Furo Humanizado" (2º card) mais à esquerda */
.service-card:nth-child(2) .card-banner-img {
    right: 2%;
    /* Mais à esquerda */
}

/* AJUSTE ESPECÍFICO: Imagem do card "Perfuração Humanizada em Adultos" (3º card) mais à esquerda */
.service-card:nth-child(3) .card-banner-img {
    right: -2%;
    /* Mais à esquerda */
}

/* AJUSTE: Aumentar imagens dos cards em 25% (exceto o primeiro) */
.service-card:not(:first-child) .card-image {
    width: 125%;
    height: 125%;
    object-fit: contain;
    /* Mudado de cover para contain para não cortar a imagem */
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: transparent;
    /* Transparent background for PNGs */
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
    text-align: center;
    font-size: 0.8rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle separator guide */
}

.image-placeholder::after {
    content: attr(data-label);
}

@keyframes pulseGreen {
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* Touch Feedback (Active State) */
.service-card:active {
    transform: scale(0.98) translateY(0);
    transition: transform 0.1s;
}

/* Staggered Delays for Initial Load (Optional, handled by JS intersection usually better, but CSS helper) */
.service-card:nth-child(1) {
    transition-delay: 0.1s;
}

.service-card:nth-child(2) {
    transition-delay: 0.2s;
}

.service-card:nth-child(3) {
    transition-delay: 0.1s;
}

/* Reset for scrolling */

/* --- NEW: Scroll Reveal Animation --- */
.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- NEW: Desktop/Tablet Responsive Layout --- */
@media (min-width: 768px) {
    .mobile-container {
        max-width: 1200px;
        /* Expand container width */
        padding: 40px;
    }

    .services-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        /* Responsive Grid */
        gap: 30px;
    }

    .service-card {
        min-height: 250px;
        /* Slightly taller for desktop balance */
    }

    /* --- NEW: First Card as Header/Banner --- */
    .service-card:first-child {
        grid-column: 1 / -1;
        /* Span full width */
        min-height: 350px;
        /* Altura aumentada para desktop */
        display: flex;
        align-items: center;
        background: #FF8C42;
        /* Cor de fundo personalizada para o banner no desktop - laranja mais escuro */
        margin-bottom: 60px;
        /* Espaçamento maior no desktop */
        padding: 40px;
        /* Padding maior no desktop */
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 
                    0 8px 25px rgba(242, 93, 7, 0.35),
                    0 0 40px rgba(242, 93, 7, 0.2);
        /* Sombra ainda mais pronunciada no desktop */
        border: 4px solid rgba(255, 255, 255, 0.5);
        /* Borda mais espessa no desktop */
    }

    .service-card:first-child .card-content {
        max-width: 50%;
        padding-left: 40px;
    }

    .service-card:first-child h2 {
        font-size: 2.5rem;
        /* Larger title */
        margin-bottom: 10px;
    }

    .service-card:first-child .subtitle {
        font-size: 1.2rem;
    }

    .service-card:first-child .card-banner-img {
        width: 50%;
        /* Larger image area */
        clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
        /* Angled cut */
    }

    /* Hover mais sutil para o banner no desktop */
    .service-card:first-child:hover {
        transform: scale(1.02) translateY(-5px);
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 
                    0 12px 30px rgba(242, 93, 7, 0.45),
                    0 0 50px rgba(242, 93, 7, 0.25);
        filter: brightness(1.08);
    }
}


/* --- NEW: Image Styles --- */
.logo-image {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
    filter: sepia(1) saturate(1.5) hue-rotate(-10deg) brightness(1.1) contrast(1.2);
    /* Efeito dourado na logo */
    transition: filter 0.3s ease;
}

.logo-image:hover {
    filter: sepia(1) saturate(1.8) hue-rotate(-10deg) brightness(1.2) contrast(1.3);
    /* Efeito dourado mais intenso no hover */
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}/* Aumentar foto do primeiro card em 110% */
.service-card:first-child .card-image {
    width: 210%;
    height: 210%;
    object-fit: contain;
    transform: translateY(10%);
}

/* AJUSTE MOBILE: Descer imagens de cards específicos apenas na versão mobile */
@media (max-width: 767px) {
    /* Furo Humanizado (2º card) */
    .service-card:nth-child(2) .card-image {
        transform: translateY(10%);
    }
    
    /* Perfuração Humanizada (3º card) */
    .service-card:nth-child(3) .card-image {
        transform: translateY(10%);
    }
    
    /* Luz Que Cura em Casa (4º card) */
    .service-card:nth-child(4) .card-image {
        transform: translateY(10%);
    }
    
    /* Curso para Gestantes (5º card) */
    .service-card:nth-child(5) .card-image {
        transform: translateY(10%);
    }
    
    /* Consultoria em Amamentação (7º card) */
    .service-card:nth-child(7) .card-image {
        transform: translateY(10%);
    }
    
    /* Medicação Endovenosa (10º card) */
    .service-card:nth-child(10) .card-image {
        transform: translateY(10%);
    }
}

/* Efeito de fade da esquerda para a direita */
.fade-left-right {
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) 20%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 1) 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) 20%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 1) 100%);
}

