/* ============================================================================
   MAMA E NENÉM - STYLESHEET
   Versão simplificada: index.php + style.css + script.js
   ============================================================================ */

/* ============================================================================
   RESET E VARIÁVEIS
   ============================================================================ */

:root {
    /* Paleta de cores profissional */
    --primary: #001F3F;
    --primary-light: #003d6b;
    --secondary: #FFDC00;
    --accent: #2ECC40;
    --accent-light: #55d96d;
    --background: #ffffff;
    --foreground: #1a1a1a;
    --card-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --text-muted: #666666;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    
    /* Tipografia */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Espaçamento */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border radius */
    --radius: 0.65rem;
    --radius-lg: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--foreground);
    background-color: var(--background);
    line-height: 1.6;
}

/* ============================================================================
   CONTAINER E LAYOUT
   ============================================================================ */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ============================================================================
   HEADER E NAVEGAÇÃO
   ============================================================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
}

.header.sticky {
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-primary);
    display: none;
}

@media (min-width: 640px) {
    .logo-text {
        display: block;
    }
}

.nav {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .nav {
        gap: 2rem;
        font-size: 1rem;
    }
}

.nav-link {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.2s;
    padding: 0.5rem 0;
}

.nav-link:hover {
    opacity: 0.8;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
    background: linear-color(to right, var(--primary), var(--primary-light));
    background: var(--primary);
    color: white;
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .hero {
        padding: 6rem 0;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    padding: 0.75rem 2rem;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    font-size: 1rem;
}

.cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.cta-button:active {
    transform: scale(0.98);
}

.hero-image {
    display: none;
}

@media (min-width: 768px) {
    .hero-image {
        display: block;
    }
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

/* ============================================================================
   SEÇÕES PADRÃO
   ============================================================================ */

.section-default {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .section-default {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .section-default {
        padding: 5rem 0;
    }
}

.bg-card {
    background-color: var(--card-bg);
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--primary);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 2.75rem;
    }
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .section-subtitle {
        font-size: 1.125rem;
    }
}

.text-center {
    text-align: center;
}

/* ============================================================================
   FEATURES GRID
   ============================================================================ */

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

.feature-card {
    padding: 2rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.feature-text {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================================================
   CONTENT GRID
   ============================================================================ */

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.content-text {
    order: 2;
}

@media (min-width: 768px) {
    .content-grid.reverse .content-text {
        order: 2;
    }
}

.content-description {
    font-size: 1.0625rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.checklist {
    list-style: none;
    space-y: 1rem;
}

.checklist li {
    padding: 0.75rem 0;
    color: var(--foreground);
    font-weight: 500;
}

.checklist li::before {
    content: "✓ ";
    color: var(--accent);
    font-weight: 700;
    margin-right: 0.5rem;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

/* ============================================================================
   MILESTONES GRID
   ============================================================================ */

.milestones-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 640px) {
    .milestones-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .milestones-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.milestone-card {
    padding: 1.5rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.milestone-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.milestone-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.milestone-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.milestone-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================================================
   WELLNESS GRID
   ============================================================================ */

.wellness-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .wellness-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

.wellness-card {
    padding: 2rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.wellness-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.wellness-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--primary);
    margin-bottom: 1rem;
}

.wellness-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.link-arrow {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.link-arrow:hover {
    opacity: 0.8;
}

/* ============================================================================
   COMMUNITY GRID
   ============================================================================ */

.community-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

.community-card {
    padding: 2rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
}

.community-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.community-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--primary);
    margin-bottom: 1rem;
}

.community-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.community-button {
    padding: 0.75rem 1.5rem;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.community-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ============================================================================
   NEWSLETTER
   ============================================================================ */

.newsletter {
    background-color: var(--primary);
    color: white;
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .newsletter {
        padding: 4rem 0;
    }
}

.newsletter-container {
    max-width: 600px;
    text-align: center;
}

.newsletter h2 {
    font-size: 1.875rem;
    font-weight: 700;
    font-family: var(--font-primary);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .newsletter h2 {
        font-size: 2.25rem;
    }
}

.newsletter p {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .newsletter-form {
        flex-direction: row;
        gap: 0.75rem;
    }
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font-secondary);
}

.newsletter-form input::placeholder {
    color: #999;
}

.newsletter-button {
    padding: 0.75rem 2rem;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
}

.newsletter-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer {
    background-color: var(--primary);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-primary);
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.footer-column a:hover {
    opacity: 1;
}

.footer-column p {
    font-size: 0.9375rem;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ============================================================================
   ANIMAÇÕES
   ============================================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================================================
   ACESSIBILIDADE
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ============================================================================
   RESPONSIVE UTILITIES
   ============================================================================ */

@media (max-width: 640px) {
    .hero {
        padding: 2.5rem 0;
    }
    
    .section-default {
        padding: 2rem 0;
    }
    
    .newsletter {
        padding: 2rem 0;
    }
}
