/* --- VARIÁVEIS DE COR --- */
:root {
    --bg-cyan: #bbf0f3;       
    --bg-purple: #3a2a70;     
    --text-dark: #333333;
    --btn-blue: #3b6bf6;      
    --accent-orange: #ff6b3d; 
    --badge-yellow: #d4e157;  
    --whatsapp-green: #25D366; 
}

/* --- RESET GERAL E SCROLL SUAVE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #fafafa;
}

h1, h2, h3, h4 {
    font-family: 'Fredoka', sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Espaçamento base das secções */
section {
    padding: 80px 0;
    scroll-margin-top: 80px;
}

/* Tipografia Fluida (adapta-se ao ecrã) */
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 2.5rem);
    color: var(--bg-purple);
    margin-bottom: 50px;
    text-align: center;
}

/* --- HEADER --- */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.top-bar {
    background-color: var(--bg-purple);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info-header span {
    margin-right: 20px;
    display: inline-block;
}

.contact-info-header i {
    margin-right: 8px;
    color: var(--badge-yellow);
}

.social-header i {
    margin-left: 15px;
    cursor: pointer;
    transition: color 0.3s;
    color: var(--badge-yellow);
}

.social-header i:hover {
    color: var(--accent-orange);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    color: var(--bg-purple);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo i {
    color: var(--accent-orange);
    margin-right: 10px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
    transition: 0.3s;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--btn-blue);
}

.nav-btn {
    background-color: var(--accent-orange);
    color: white !important;
    padding: 10px 25px;
    border-radius: 30px;
    transition: transform 0.3s;
}

.nav-btn:hover {
    transform: scale(1.05);
    background-color: #e65100;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--bg-purple);
    cursor: pointer;
}

/* --- WIDGETS LATERAIS --- */
.side-widgets {
    position: fixed;
    right: 0;
    bottom: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scroll-top {
    background-color: var(--btn-blue);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50% 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.2);
    transition: background 0.3s;
}

.scroll-top:hover {
    background-color: var(--bg-purple);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 85vh;
    margin-top: 100px;
    background: url('img/background_landingpage.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 40px 20px;
}

.hero-overlay {
    background: rgba(0,0,0,0.4);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
}

.hero-btn {
    background-color: var(--accent-orange);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    display: inline-block;
    transition: transform 0.3s;
    margin-top: 10px;
}

.hero-btn:hover {
    transform: scale(1.05);
}

.badge-toddler {
    position: absolute;
    bottom: 10%;
    left: 5%;
    background-color: #311b92;
    color: white;
    width: clamp(90px, 15vw, 130px);
    height: clamp(90px, 15vw, 130px);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--accent-orange);
    transform: rotate(-10deg);
    z-index: 2;
}

.badge-toddler span {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: bold;
    line-height: 1;
}

.badge-toddler small {
    font-size: clamp(0.7rem, 2vw, 1rem);
}

/* --- GRELHAS COMUNS --- */
.grid-2-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

/* --- SOBRE NÓS --- */
.about-section {
    background-color: white;
}

.about-image img {
    border-radius: 20px;
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
}

.btn-blue {
    background-color: var(--btn-blue);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 20px;
    transition: 0.3s;
}

.btn-blue:hover {
    background-color: #2b52cc;
}

/* --- SERVIÇOS --- */
.services-section {
    background-color: var(--bg-cyan);
    text-align: center;
    padding: 40px 0; 
}

.services-section .section-title {
    margin-bottom: 30px; 
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; 
    justify-items: center;
}

.service-card {
    width: 100%;
    max-width: 400px; 
    padding: 20px; 
    border-radius: 20px;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.service-img {
    height: 250px; 
    margin: 0 auto 15px auto;
    object-fit: contain;
}

.service-card h3 {
    font-size: 1.4rem; 
    color: #333;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.95rem; 
    line-height: 1.5;
}

/* --- GALERIA DESKTOP --- */
.gallery-section {
    background-color: #fffbf0;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.gallery-item {
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- TESTEMUNHOS --- */
.testimonials-section {
    background-color: white;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.testimonial-item {
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 15px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.user-avatar {
    font-size: 40px;
    color: var(--btn-blue);
}

.green-card {
    font-size: 170%;
    background-color: var(--bg-purple);
    color: white;
    padding: 40px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 80%;
    margin-top: 85px;
}

/* --- CONTACTO / RESERVAS --- */
.contact-section {
    background-color: var(--bg-purple);
    color: white;
    padding: 100px 0;
}

.contact-content h2 {
    color: var(--badge-yellow);
    margin-bottom: 20px;
}

.contact-text {
    font-size: 1.1rem;
}

.contact-buttons-wrapper {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-contact {
    padding: 15px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.btn-contact:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
}

.btn-whatsapp:hover {
    background-color: #1ebe5d;
    color: white;
}

.btn-email {
    background-color: var(--btn-blue);
}

.btn-email:hover {
    background-color: #2b52cc;
    color: white;
}

/* --- FOOTER --- */
footer {
    background-color: #251b4d;
    color: white;
    position: relative;
    padding-top: 20px;
}

.footer-wave {
    position: absolute;
    top: -48px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-wave svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

.footer-wave .shape-fill {
    fill: #251b4d;
}

.footer-content {
    padding: 40px 0 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--badge-yellow);
}

.footer-col p, .footer-col a {
    color: #ddd;
    font-size: 1rem;
    margin-bottom: 10px;
    text-decoration: none;
    display: block;
    transition: 0.3s;
}

.footer-col a:hover {
    color: var(--accent-orange);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* CORREÇÃO DO ÍCONE (Aumenta especificidade para ganhar ao display: block) */
.footer-col a.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; /* Agora respeita o flex perfeitamente! */
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    color: white;
    margin-bottom: 0; /* Remove a margem extra do footer normal */
    padding: 0;
}

.footer-col a.social-icon:hover {
    background-color: var(--btn-blue);
    transform: translateY(-3px);
    padding-left: 0; /* Evita que o hover de outros links afete este */
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 20px 0;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #888;
}

/* =========================================
   MEDIA QUERIES (TABLET E MOBILE)
   ========================================= */
@media (max-width: 992px) {
    .hero {
        min-height: 60vh;
        margin-top: 80px;
    }

    section {
        padding: 60px 0;
        scroll-margin-top: 70px;
    }

    .grid-2-col {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* CLASSE PARA ESCONDER ELEMENTOS NO TELEMÓVEL */
    .hide-on-mobile {
        display: none !important;
    }

    .top-bar {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        gap: 15px;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 10px;
        width: 100%;
    }

    .nav-btn {
        display: inline-block;
        width: 80%;
        margin: 10px auto 0 auto;
    }

    .hero {
        min-height: 70vh;
        margin-top: 65px;
        padding-top: 60px;
    }

    .side-widgets {
        display: none;
    }
    
    .contact-buttons-wrapper {
        flex-direction: column;
        width: 100%;
    }

    .btn-contact {
        width: 100%;
    }

    .services-section {
        padding: 40px 0; 
    }

    .service-card {
        max-width: 90%;
    }

    /* --- CARROSSEL HORIZONTAL NA GALERIA (APENAS MOBILE) --- */
    .gallery-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 10px;
        gap: 15px;
    }

    .gallery-grid::-webkit-scrollbar {
        display: none; 
    }

    .gallery-item {
        flex: 0 0 85%; 
        scroll-snap-align: center;
        height: 250px;
    }

    /* --- ALINHAMENTO DO FOOTER NO MOBILE --- */
    .footer-col {
        text-align: center; /* Centraliza todo o texto das colunas */
    }

    .footer-col .logo {
        justify-content: center; /* Centraliza o flex do logo */
    }

    .social-links {
        justify-content: center; /* Centraliza o flex dos ícones do facebook/insta */
    }
}