/* --- CSS Reset & Custom Properties V2 --- */
:root {
    /* New Pediatric Pastel Palette */
    --pink: #fca5a9;
    --pink-light: #fde8e9;
    --yellow: #fce18d;
    --green: #b8dc77;
    --blue: #b2e3e9;
    --purple: #c3a1db;
    --cream: #ffffff;
    --dark: #9157a3;
    /* Vibrant purple from NUTRIÇÃO text */
    --gray: #6b7280;

    /* Fallbacks/Mappings for existing vars */
    --sage: var(--green);
    --sage-dark: #82a83e;
    --blush: var(--pink);
    --sand: var(--yellow);

    --font-display: 'Outfit', sans-serif;
    --font-text: 'Inter', sans-serif;

    --radius-pill: 100px;
    --radius-bento: 32px;

    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.03);
    --shadow-glass: 0 8px 32px rgba(55, 65, 81, 0.07);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-text);
    color: var(--dark);
    background-color: var(--cream);
    overflow-x: hidden;
    line-height: 1.5;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Badges & Buttons --- */
.modern-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(163, 201, 168, 0.2);
    color: var(--sage-dark);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.1rem;
    transition: 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-modern.primary {
    background: var(--dark);
    color: white;
}

.btn-modern.primary:hover {
    background: var(--sage-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(132, 169, 140, 0.3);
}

.btn-modern.light {
    background: white;
    color: var(--dark);
}

.btn-modern.light:hover {
    background: var(--sand);
    transform: translateY(-2px);
}

.btn-modern.large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

/* --- Floating Navigation (Pill) --- */
.nav-pill {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 10px 10px 10px 30px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 40px;
    z-index: 1000;
    box-shadow: var(--shadow-glass);
    transition: 0.4s ease;
}

.nav-pill.scrolled {
    top: 15px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.logo-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.logo-pill img {
    height: 80px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--gray);
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--dark);
}

.btn-pill {
    background: var(--pink);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-weight: 600;
    transition: var(--transition);
}

.btn-pill:hover {
    background: var(--pink-light);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glass);
}

/* --- Modern Hero --- */
.hero-v2 {
    min-height: 100vh;
    padding-top: 150px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.blob-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: var(--blush);
    animation: drift 20s infinite alternate ease-in-out;
}

.blob-2 {
    bottom: 10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--sage);
    animation: drift 25s infinite alternate-reverse ease-in-out;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

.hero-content-v2 {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.display-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.lead-text {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-features {
    list-style: none;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-features li {
    font-size: 1.1rem;
    color: var(--gray);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hero-features li i {
    color: var(--sage-dark);
    margin-top: 4px;
}

.hero-highlight {
    font-weight: 600;
    color: var(--sage-dark);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.avatars-proof {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatars {
    display: flex;
}

.avatars img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid var(--cream);
    margin-left: -15px;
}

.avatars img:first-child {
    margin-left: 0;
}

.proof-text {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--gray);
    font-size: 0.95rem;
}

.hero-image-container {
    position: relative;
}

.hero-image-container>img {
    border-radius: 40px;
    box-shadow: var(--shadow-soft);
}

.glass-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 15px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-glass);
}

.stat-badge-1 {
    top: 40px;
    left: -40px;
}

.stat-badge-2 {
    bottom: 40px;
    right: -40px;
}

.icon-box {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.icon-box.green {
    background: var(--sage-dark);
}

.icon-box.pink {
    background: #E5989B;
}

.stat-text strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.stat-text span {
    font-size: 0.85rem;
    color: var(--gray);
}

/* --- Bento Box Services --- */
.bento-section {
    padding: 120px 0;
}

.section-title-modern {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-modern h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-title-modern p {
    font-size: 1.2rem;
    color: var(--gray);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 24px;
}

.bento-item {
    border-radius: var(--radius-bento);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.bg-mint {
    background: var(--sage);
}

.bg-sand {
    background: var(--sand);
}

.bg-blush {
    background: var(--blush);
}

.bg-dark {
    background: var(--dark);
    color: white;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    padding: 50px;
}

.bento-wide {
    grid-column: span 3;
    justify-content: center;
}

.bento-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.bento-large .bento-content h3 {
    font-size: 2.5rem;
    max-width: 400px;
}

.bento-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 20px;
    max-width: 350px;
}

.bento-link {
    font-family: var(--font-display);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bento-img {
    position: absolute;
    bottom: 0;
    right: -20px;
    width: 50%;
    height: 80%;
    object-fit: cover;
    border-top-left-radius: 40px;
}

.bento-icon-large {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 150px;
    opacity: 0.1;
}

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

.bento-text h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.bento-text p {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 500px;
}

/* --- About Magazine Style --- */
.about-magazine {
    padding: 120px 0;
    background: white;
}

.magazine-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.img-frame {
    position: relative;
    padding: 15px;
    background: var(--cream);
    border-radius: 40px;
}

.img-frame img {
    border-radius: 30px;
    width: 100%;
}

.mag-subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--sage-dark);
    margin: 10px 0 30px;
    line-height: 1.3;
}

.mag-text p {
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 20px;
}

.credentials {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.cred-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--sand);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-weight: 500;
}

.cred-item i {
    color: var(--sage-dark);
}

/* --- Minimal Footer --- */
.footer-modern {
    background: var(--dark);
    color: white;
    padding: 100px 0 40px;
    text-align: center;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 80px;
}

.footer-logo {
    height: 100px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.footer-top h2 {
    font-size: 3rem;
    max-width: 600px;
    margin-bottom: 40px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.socials {
    display: flex;
    gap: 15px;
}

.socials a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.socials a:hover {
    background: var(--sage);
    color: var(--dark);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
}

/* --- Reveal Animations --- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(40px);
}

.reveal-right {
    transform: translateX(-40px);
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

/* --- How It Works --- */
.how-it-works-section {
    padding: 100px 0;
    background: var(--pink-light);
}

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

.step-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-bento);
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glass);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--pink);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(244, 138, 158, 0.4);
}

.step-icon {
    font-size: 2.5rem;
    color: var(--sage-dark);
    margin-bottom: 20px;
    margin-top: 10px;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.step-card p {
    color: var(--gray);
    font-size: 1rem;
}

/* --- Testimonials --- */
.testimonials-section {
    padding: 100px 0;
    background: var(--sand);
}

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

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-bento);
    position: relative;
    box-shadow: var(--shadow-soft);
}

.quote-icon {
    font-size: 2rem;
    color: var(--pink);
    opacity: 0.5;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-size: 1.15rem;
    color: var(--dark);
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.6;
}

.testimonial-card h4 {
    font-size: 1.1rem;
    color: var(--gray);
    font-weight: 500;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-large {
        grid-column: span 2;
    }

    .bento-wide {
        grid-column: span 2;
    }

    .display-title {
        font-size: 3.5rem;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-pill {
        width: 90%;
        justify-content: space-between;
        padding: 10px 20px;
    }

    .nav-links {
        display: none;
    }

    .hero-content-v2 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .avatars-proof {
        justify-content: center;
    }

    .stat-badge-1 {
        left: 10px;
    }

    .stat-badge-2 {
        right: 10px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(250px, auto);
    }

    .bento-large,
    .bento-wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-content-row {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .bento-img {
        display: none;
    }

    .magazine-grid {
        grid-template-columns: 1fr;
    }

    .mag-content {
        text-align: center;
    }

    .credentials {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card:last-child {
        grid-column: span 1;
    }
}