/* CEOS - Creche Escola Oficina do Saber - Custom Styles */

/* ===== VARIÁVEIS CSS ===== */
:root {
    --primary-color: #4169E1;      /* Azul do logo */
    --secondary-color: #FFD700;    /* Amarelo das estrelas */
    --accent-color: #32CD32;       /* Verde do planeta */
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
    --border-radius: 15px;
    --transition: all 0.3s ease;
}

/* ===== FONTES ===== */
body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka', cursive;
    font-weight: 600;
}

/* ===== NAVBAR ===== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    text-decoration: none;
}

.brand-name {
    font-family: 'Fredoka', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    background-color: var(--primary-color);
    color: var(--white) !important;
    transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #E3F2FD 0%, #F3E5F5 100%);
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    transition: var(--transition);
}

.hero-image:hover {
    transform: scale(1.02);
}

.hero-image img {
    max-width: 600px;
    width: 100%;
    border-radius: 0;
    transition: var(--transition);
    animation: float-image 6s ease-in-out infinite;
}

.hero-image:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

@keyframes float-image {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

/* Decorações do Hero */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star-1, .star-2, .star-3 {
    position: absolute;
    color: var(--secondary-color);
    font-size: 2.5rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.star-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation: float 4s ease-in-out infinite, twinkle 2s ease-in-out infinite;
}

.star-2 {
    top: 30%;
    right: 15%;
    animation-delay: 1s;
    animation: float 3.5s ease-in-out infinite, twinkle 2.5s ease-in-out infinite;
}

.star-3 {
    bottom: 40%;
    left: 20%;
    animation-delay: 2s;
    animation: float 4.5s ease-in-out infinite, twinkle 3s ease-in-out infinite;
}

.bulb-1 {
    position: absolute;
    top: 50%;
    right: 10%;
    color: var(--secondary-color);
    font-size: 3rem;
    animation: pulse 2s ease-in-out infinite, glow 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.3));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

@keyframes twinkle {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.6; 
        transform: scale(1.2);
    }
}

@keyframes glow {
    0%, 100% { 
        filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.3));
    }
    50% { 
        filter: drop-shadow(0 4px 16px rgba(255, 215, 0, 0.6)) brightness(1.2);
    }
}

/* ===== SEÇÕES GERAIS ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* ===== SOBRE NÓS ===== */
.about-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.about-content h3:first-child {
    margin-top: 0;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.values-list i {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.stat-card {
    background: var(--white);
    padding: 2rem 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.stat-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card h4 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-light);
    margin: 0;
}

/* ===== SERVIÇOS ===== */
.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.service-card li {
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* ===== METODOLOGIA ===== */
.methodology-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.methodology-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.methodology-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.methodology-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ===== GALERIA ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 280px; /* Altura fixa para todos os itens da galeria */
}

.gallery-item:hover {
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 100%; /* Usa toda a altura do container */
    object-fit: cover; /* Mantém proporção e cobre todo o espaço */
    object-position: center; /* Centraliza a imagem */
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h5 {
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.9rem;
}


/* Melhor espaçamento entre itens da galeria */
#galeria .row .col-lg-4,
#galeria .row .col-md-6 {
    margin-bottom: 2rem;
}

/* Garantir que todas as imagens tenham o mesmo tamanho */
.gallery-item {
    display: flex;
    flex-direction: column;
}

.gallery-item img {
    flex: 1;
    min-height: 0;
}

/* ===== CONTATO ===== */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #E9ECEF;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(65, 105, 225, 0.25);
}

.contact-info {
    text-align: center;
    padding: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.contact-info h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary-color) !important;
}

.footer-brand {
    font-family: 'Fredoka', cursive;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.footer-subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
    line-height: 1;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-color);
    color: var(--text-dark);
    transform: translateY(-3px);
}

/* ===== BOTÕES PERSONALIZADOS ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .methodology-item {
        flex-direction: column;
        text-align: center;
    }
    
    .methodology-icon {
        margin: 0 auto 1rem;
    }
    
    /* Hero image responsivo - tablets */
    .hero-image img {
        max-width: 450px;
    }
    
    .star-1, .star-2, .star-3 {
        font-size: 2rem;
    }
    
    .bulb-1 {
        font-size: 2.5rem;
    }
    
    /* Galeria responsiva - tablets */
    .gallery-item {
        height: 240px; /* Altura reduzida para tablets */
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    /* Hero image responsivo - mobile */
    .hero-image img {
        max-width: 350px;
    }
    
    .star-1, .star-2, .star-3 {
        font-size: 1.8rem;
    }
    
    .bulb-1 {
        font-size: 2rem;
    }
    
    /* Galeria responsiva - mobile */
    .gallery-item {
        height: 200px; /* Altura ainda menor para mobile */
        margin-bottom: 1rem;
    }
    
    .gallery-overlay {
        padding: 1.5rem 0.75rem 0.75rem; /* Padding reduzido para mobile */
    }
    
    .gallery-overlay h5 {
        font-size: 1rem; /* Título menor no mobile */
    }
    
    .gallery-overlay p {
        font-size: 0.8rem; /* Texto menor no mobile */
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
}

/* ===== ANIMAÇÕES ADICIONAIS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== BOTÃO WHATSAPP FLUTUANTE ===== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background: #20BA5A;
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    transition: transform 0.3s ease;
}

.whatsapp-float:hover i {
    transform: scale(1.1);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.8), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

/* Responsividade do botão WhatsApp */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }
}

@media (max-width: 576px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
        font-size: 24px;
    }
}
