/* Reset e Variáveis */
:root {
    --primary-color: #5da840; /* Escurecido para melhor contraste */
    --primary-dark: #4a8a33;
    --secondary-color: #32B5AB;
    --text-dark: #2c3e50;
    --text-light: #6b7280;
    --bg-light: #f5f7f6;
    --bg-medium: #e8eeec;
    --bg-white: #ffffff;
    --border-color: #d1d5db;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

/* Containers para componentes dinâmicos */
#header-container {
    /* Sem min-height para evitar espaço branco */
}

#footer-container {
    /* Sem min-height para evitar espaço branco */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    /* Evitar CLS */
    aspect-ratio: attr(width) / attr(height);
}

/* Botões */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.cta-button.large {
    padding: 20px 40px;
    font-size: 20px;
}

.btn-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #70BE4F 0%, #5da840 50%, #32B5AB 100%);
    color: white;
    padding: 60px 0 0;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(112, 190, 79, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(50, 181, 171, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(93, 168, 64, 0.3) 0%, transparent 50%);
    animation: heroFloat 15s ease-in-out infinite;
}

/* Estrelas fixas que piscam */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(2px 2px at 15% 60%, white, transparent),
        radial-gradient(1px 1px at 70% 40%, white, transparent),
        radial-gradient(1px 1px at 40% 20%, white, transparent),
        radial-gradient(2px 2px at 85% 85%, white, transparent),
        radial-gradient(1px 1px at 25% 45%, white, transparent),
        radial-gradient(1px 1px at 95% 35%, white, transparent),
        radial-gradient(2px 2px at 10% 90%, white, transparent),
        radial-gradient(1px 1px at 55% 15%, white, transparent),
        radial-gradient(1px 1px at 75% 75%, white, transparent);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    animation: starBlink 3s ease-in-out infinite;
    opacity: 0.8;
}

/* Estrelas cadentes */
.hero .shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    animation: shootingStar 3s linear infinite;
}

.hero .shooting-star:nth-child(1) {
    top: 20%;
    left: -5%;
    animation-delay: 0s;
    animation-duration: 2.5s;
}

.hero .shooting-star:nth-child(2) {
    top: 50%;
    left: -5%;
    animation-delay: 1.5s;
    animation-duration: 3s;
}

.hero .shooting-star:nth-child(3) {
    top: 70%;
    left: -5%;
    animation-delay: 3s;
    animation-duration: 2.8s;
}

.hero .shooting-star:nth-child(4) {
    top: 35%;
    left: -5%;
    animation-delay: 4.5s;
    animation-duration: 2.6s;
}

.hero .shooting-star:nth-child(5) {
    top: 85%;
    left: -5%;
    animation-delay: 2s;
    animation-duration: 3.2s;
}

@keyframes heroFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    33% {
        transform: translate(50px, -50px) scale(1.2);
        opacity: 0.6;
    }
    66% {
        transform: translate(-40px, 40px) scale(0.8);
        opacity: 0.5;
    }
}

/* Animação de piscar das estrelas */
@keyframes starBlink {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.3;
    }
}

/* Animação das estrelas cadentes */
@keyframes shootingStar {
    0% {
        transform: translate(0, 0) rotate(45deg);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translate(300px, -300px) rotate(45deg);
        opacity: 0;
    }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-h2 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-photo {
    width: 100%;
    max-width: 550px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.hero-image {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background: var(--bg-white);
    margin-top: 0;
}

.benefits h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.benefit-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: invert(65%) sepia(48%) saturate(456%) hue-rotate(56deg) brightness(95%) contrast(88%);
}

.benefit-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.benefit-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: var(--bg-light);
}

.how-it-works h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    filter: invert(65%) sepia(48%) saturate(456%) hue-rotate(56deg) brightness(95%) contrast(88%);
}

.step h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.step p {
    color: var(--text-light);
}

.cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--bg-white);
}

.services h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: invert(65%) sepia(48%) saturate(456%) hue-rotate(56deg) brightness(95%) contrast(88%);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
}

/* Differentials */
.differentials {
    padding: 80px 0;
    background: var(--bg-white);
}

.differentials h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.differentials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.differential-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-medium);
    border-radius: 8px;
}

.diff-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    filter: invert(65%) sepia(48%) saturate(456%) hue-rotate(56deg) brightness(95%) contrast(88%);
}

.differential-item p {
    font-size: 18px;
    color: var(--text-dark);
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: var(--bg-light);
}

.faq h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-icon {
    width: 50px;
    height: 50px;
    filter: invert(65%) sepia(48%) saturate(456%) hue-rotate(56deg) brightness(95%) contrast(88%);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
}

.faq-arrow {
    width: 20px;
    height: 20px;
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 30px 25px;
    color: var(--text-light);
    line-height: 1.8;
}

/* Final CTA */
.final-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #70BE4F 0%, #5da840 50%, #32B5AB 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(112, 190, 79, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(50, 181, 171, 0.3) 0%, transparent 50%);
    animation: heroFloat 20s ease-in-out infinite;
}

.final-cta .container {
    position: relative;
    z-index: 1;
}

.final-cta h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* Animações */
.benefit-card,
.step,
.service-card,
.faq-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.benefit-card.animate-in,
.step.animate-in,
.service-card.animate-in,
.faq-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero {
        padding: 100px 0 0;
        text-align: center;
        margin-top: 70px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-h2 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-content {
        padding-bottom: 10px;
    }
    
    .hero-photo {
        max-width: 450px;
    }
    
    .benefits h2,
    .how-it-works h2,
    .services h2,
    .differentials h2,
    .faq h2 {
        font-size: 28px;
    }
    
    .final-cta h2 {
        font-size: 32px;
    }
    
    .final-cta p {
        font-size: 18px;
    }
    
    /* Mobile: 1 coluna */
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .differentials-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet: 2-3 colunas */
@media (min-width: 769px) and (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .differentials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Services Grid Enhanced - Nutricionista Online */
.services-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card-link,
.service-card-featured {
    background: white;
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border: 2px solid transparent;
}

.service-card-link:hover,
.service-card-featured:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

/* Cards Destacados */
.service-card-featured {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 3px solid var(--primary-color);
    box-shadow: 0 8px 30px rgba(93, 168, 64, 0.25);
    position: relative;
    overflow: hidden;
}

.service-card-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.service-card-featured:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 40px rgba(93, 168, 64, 0.35);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(93, 168, 64, 0.4);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    filter: invert(65%) sepia(48%) saturate(456%) hue-rotate(56deg) brightness(95%) contrast(88%);
    transition: var(--transition);
}

.service-card-link:hover .service-icon,
.service-card-featured:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card-link h3,
.service-card-featured h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 700;
}

.service-card-featured h3 {
    font-size: 22px;
    color: var(--primary-dark);
}

.service-card-link p,
.service-card-featured p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 15px;
    flex-grow: 1;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}

.service-card-link:hover .service-link,
.service-card-featured:hover .service-link {
    gap: 10px;
}

/* Responsive */
@media (max-width: 968px) {
    .services-grid-enhanced {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 640px) {
    .services-grid-enhanced {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card-link,
    .service-card-featured {
        padding: 30px 20px;
    }
}
