/* =========================================
   VARIÁVEIS E CONFIGURAÇÕES GERAIS
========================================= */
:root {
    /* Cores Principais - Paleta Suave Mundo Mágico */
    --primary-blue: #4A90E2;
    /* Azul suave e tranquilo */
    --primary-yellow: #F5D76E;
    /* Amarelo alegre e iluminado */
    --primary-red: #FF6B6B;
    /* Vermelho soft e carinhoso */

    /* Cores de Apoio */
    --light-blue: #E8F2FC;
    --light-yellow: #FFF8E1;
    --light-red: #FFECEC;
    --success-green: #37C27B;
    --accent-purple: #B288FF;
    --accent-pink: #FF85D4;

    /* Tons de Base */
    --bg-color: #FAFCFF;
    /* Fundo branco azulado bem leve */
    --bg-section: #FFFFFF;
    --text-main: #34425A;
    /* Azul marinho bem acinzentado */
    --text-muted: #728197;
    --white: #FFFFFF;

    /* Sombras e Raios */
    --border-radius-sm: 12px;
    --border-radius-md: 24px;
    --border-radius-lg: 40px;
    --box-shadow-sm: 0 4px 12px rgba(74, 144, 226, 0.08);
    --box-shadow-md: 0 12px 24px rgba(74, 144, 226, 0.12);
    --box-shadow-hover: 0 20px 40px rgba(74, 144, 226, 0.2);

    /* Transições */
    --transition-fast: 0.2s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    --transition-smooth: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light-blue);
}

/* Tipografia e Highlights */
h1,
h2,
h3,
h4 {
    color: var(--text-main);
    font-weight: 800;
    line-height: 1.2;
}

.highlight-red {
    color: var(--primary-red);
}

.highlight-blue {
    color: var(--primary-blue);
}

.highlight-yellow {
    color: var(--primary-yellow);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.section-desc.style-left {
    text-align: left;
}

/* =========================================
   BOTÕES
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--success-green);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(55, 194, 123, 0.3);
}

.btn-primary:hover {
    background-color: #2da868;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(55, 194, 123, 0.4);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* =========================================
   HEADER & NAVBAR
========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 12px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-blue);
}

.logo-icon {
    color: var(--primary-yellow);
    font-size: 1.8rem;
}

.navbar .nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 600;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--primary-red);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--primary-red);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 1001;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    transition: var(--transition-smooth);
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    align-self: flex-end;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-main);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav-links a {
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
}

/* =========================================
   HERO SECTION
========================================= */
#hero {
    position: relative;
    padding: 180px 0 100px;
    overflow: hidden;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    filter: blur(40px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(74, 144, 226, 0.2);
    top: 10%;
    left: -100px;
    animation: float 8s infinite alternate ease-in-out;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(245, 215, 110, 0.2);
    bottom: -100px;
    right: -100px;
    animation: float 12s infinite alternate-reverse ease-in-out;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: rgba(255, 107, 107, 0.15);
    top: 20%;
    right: 30%;
    animation: float 10s infinite alternate ease-in-out;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-30px) scale(1.05);
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--light-yellow);
    color: #cca415;
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: 50px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

/* Hero Image & Floating Elements */
.hero-image {
    position: relative;
    z-index: 1;
}

.image-wrapper {
    position: relative;
}

.main-img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-md);
    border: 8px solid var(--white);
    transform: rotate(2deg);
    transition: var(--transition-smooth);
}

.main-img:hover {
    transform: rotate(0deg) scale(1.02);
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-hover);
    display: flex;
    align-items: center;
    gap: 16px;
    animation: floatY 4s infinite alternate ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.floating-card .text {
    display: flex;
    flex-direction: column;
}

.floating-card strong {
    font-size: 1.1rem;
    color: var(--text-main);
}

.floating-card span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.icon-circle.yellow {
    background: var(--light-yellow);
    color: var(--primary-yellow);
}

.icon-circle.blue {
    background: var(--light-blue);
    color: var(--primary-blue);
}

.kids-happy {
    bottom: -30px;
    left: -40px;
    animation-delay: 1s;
}

.teachers {
    top: 40px;
    right: -30px;
}

@keyframes floatY {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-15px);
    }
}

/* =========================================
   SERVIÇOS
========================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition-smooth);
    border-top: 6px solid var(--card-color);
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.service-card .card-icon {
    font-size: 3rem;
    color: var(--card-color);
    margin-bottom: 24px;
    display: inline-block;
    padding: 20px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 50%;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.age-badge {
    display: inline-block;
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-main);
}

.card-features i {
    color: var(--success-green);
}

.service-card.featured {
    transform: scale(1.05);
    box-shadow: var(--box-shadow-md);
    z-index: 2;
}

.service-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

/* =========================================
   DIFERENCIAIS
========================================= */
.differentials-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.diff-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.diff-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.diff-icon {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.diff-icon.pink {
    background: var(--light-red);
    color: var(--accent-pink);
}

.diff-icon.green {
    background: #e8fbed;
    color: var(--success-green);
}

.diff-icon.purple {
    background: #f3ecff;
    color: var(--accent-purple);
}

.diff-text h4 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.diff-text p {
    color: var(--text-muted);
}

.diff-image {
    position: relative;
}

.blob-mask {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    overflow: hidden;
    animation: morph 8s ease-in-out infinite both alternate;
    box-shadow: var(--box-shadow-md);
    height: 500px;
}

.blob-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.dots-pattern {
    position: absolute;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(var(--primary-blue) 20%, transparent 20%);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: -1;
    bottom: -30px;
    left: -30px;
}

/* =========================================
   GALERIA
========================================= */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: var(--box-shadow-sm);
    height: 280px;
    flex: 1 1 280px;
    max-width: 400px;
}

.gallery-item.wide {
    flex: 1 1 450px;
    max-width: 600px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 144, 226, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-item .overlay i {
    color: var(--white);
    font-size: 3rem;
    transform: scale(0.5);
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item:hover .overlay i {
    transform: scale(1);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 2002;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 20px;
    z-index: 2001;
    transition: var(--transition-fast);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--primary-yellow);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* =========================================
   FOOTER
========================================= */
footer {
    background-color: var(--text-main);
    color: var(--white);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-logo {
    color: var(--white);
    margin-bottom: 24px;
}

.footer-brand p {
    color: #aeb9cc;
    margin-bottom: 24px;
    max-width: 350px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary-yellow);
    color: var(--text-main);
    transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
    color: var(--primary-yellow);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul a {
    color: #aeb9cc;
}

.footer-links ul a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.footer-contact i {
    font-size: 1.5rem;
    color: var(--primary-red);
}

.footer-contact strong {
    display: block;
    margin-bottom: 4px;
}

.footer-contact span {
    color: #aeb9cc;
    font-size: 0.95rem;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 24px 0;
    color: #aeb9cc;
    font-size: 0.9rem;
}

/* =========================================
   CUSTOM CURSOR
========================================= */
@media (min-width: 769px) {

    body,
    a,
    button,
    .btn,
    .hamburger,
    .close-menu,
    .lightbox-trigger,
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next,
    .gallery-item {
        cursor: none !important;
    }
}

.custom-cursor,
.custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.custom-cursor {
    width: 40px;
    height: 40px;
    border: 3px solid #4A90E2;
    background-color: rgba(74, 144, 226, 0.15);
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}

.custom-cursor.hovering {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 107, 107, 0.25);
    border-color: #FF6B6B;
}

.custom-cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #4A90E2;
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.6);
    transition: background-color 0.2s, transform 0.2s;
}

.custom-cursor-dot.hovering {
    background-color: #FF6B6B;
    transform: scale(1.5);
    box-shadow: 0 0 12px rgba(255, 107, 107, 0.6);
}

/* Hide on smaller screens */
@media (max-width: 768px) {

    .custom-cursor,
    .custom-cursor-dot {
        display: none !important;
    }
}

/* =========================================
   SCROLLYTELLING ANIMATION CLASSES
========================================= */
.reveal {
    opacity: 0;
    will-change: transform, opacity;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0) scale(1) !important;
}

/* Tipos de Animação de Entrada */
.fade-up {
    transform: translateY(60px);
}

.fade-down {
    transform: translateY(-60px);
}

.fade-left {
    transform: translateX(60px);
}

.fade-right {
    transform: translateX(-60px);
}

.zoom-in {
    transform: scale(0.85);
}

.zoom-out {
    transform: scale(1.1);
}

/* Atrasos (Delays) */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* =========================================
   RESPONSIVIDADE
========================================= */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card.featured {
        transform: scale(1);
    }

    .service-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .floating-card.kids-happy {
        bottom: 10%;
        left: 0;
    }

    .differentials-wrapper {
        grid-template-columns: 1fr;
    }

    .section-header {
        max-width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {

    .navbar,
    .nav-btn {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.wide {
        max-width: 100%;
    }

    .blob-mask {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .floating-card {
        display: none;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 1.8rem;
        padding: 10px;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }
}