:root {
    --title-color: #25658D;
    --title-font: 'Lato', sans-serif;
    --text-color: #15425E;
    --text-font: 'Nunito', sans-serif;
    --highlight-color: #00B535;
    --background-color: #E7F2FC;
    --background-inverted-color: #F7F7F7;
}

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

/* fonts utilities */

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

li {
    list-style: none;
}

.logo {
    font-family: var(--title-font);
    color: var(--title-color);
    font-size: 24px;
}

.title-big {
    font-family: var(--title-font);
    color: var(--title-color);
    font-size: 36px;
    margin-bottom: 30px;
}

.title-1 {
    font-family: var(--title-font);
    color: var(--title-color);
    font-size: 28px;
    margin-bottom: 20px;
}

.title-2 {
    font-family: var(--title-font);
    color: var(--title-color);
    font-size: 22px;
    margin-bottom: 15px;
}

.title-3 {
    font-family: var(--title-font);
    color: var(--title-color);
    font-size: 18px;
    margin-bottom: 14px;
    padding: 0 20px;
}

.title-4-white {
    font-family: var(--title-font);
    color: var(--background-color);
    font-size: 18px;
    margin-bottom: 10px;
}

.text {
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
    font-family: var(--text-font);

}

.text-2 {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.6;
    font-family: var(--text-font);
}

.text-white {
    color: var(--background-color);
    font-family: var(--text-font);
    font-size: 12px;
}

.highlight {
    display: inline-block;
    width: 50%;
    height: 2px;
    background-color: var(--highlight-color);
    
}

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

.list-item {
    list-style-type: disc;
}


/* background utilities */

.background {
    background: linear-gradient(180deg, var(--background-color) 0%, var(--background-inverted-color) 100%);
}

.background-inverted {
    background: linear-gradient(180deg, var(--background-inverted-color) 0%, var(--background-color) 100%);
}

.background-blue {
    background: var(--text-color);
}

.hero-bg {
    background-image: linear-gradient(180deg, rgba(231, 242, 252, 0.87) 0%, rgba(247, 247, 247, 0.92) 100%),
        url('assets/images/hero-crianca.jpeg');
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
}

/* flex utilities */

.flex {
    display: flex;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.space-between {
    justify-content: space-between;
}

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

.center {
    align-items: center;
}

.space-around {
    justify-content: space-around;
}

/* spacing utilities */

.pv-20 {
    padding: 20px 0;
}

.pv-40 {
    padding: 40px 0;
}

.ph-20 {
    padding: 0 20px;
}

.pt-20 {
    padding-top: 20px;
}

.mv-20 {
    margin: 20px 0;
}


.mh-20 {
    margin: 0 20px;
}

.mt-20 {
    margin-top: 20px;
}

.width-90 {
    width: 90%;
}

.width-70 {
    width: 70%;
}

.width-50 {
    width: 50%;
}

.height-50-vmax {
    height: 50vmax;
}

.width-40 {
    width: 40%;
}

.width-30 {
    width: 30%;
}

.width-20 {
    width: 20%;
}

.height-60 {
    height: 60%;
}

.height-80 {
    height: 80%;
}

/* navigation */

.navbar-link {
    color: #25658D;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-block;
    padding-bottom: 5px;
    position: relative;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--highlight-color);
    transition: width 0.3s ease;
}

.navbar-link:hover {
    color: var(--highlight-color);
}

.navbar-link:hover::after,
.navbar-link.active::after {
    width: 100%;
}

/* Botão hambúrguer - só aparece em telas pequenas (ver media query) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--title-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* Carrousel */

.carrousel-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.slider {
    width: 600px;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.slide {
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.track {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

/* Carousel Controls - Navigation Buttons */
.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    color: #000;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* Dots Navigation */
.dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dots label,
.dots input[type="radio"] {
    cursor: pointer;
    display: inline-block;
}

.dots label {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dots label:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.dots label.active {
    background-color: #fff;
    width: 14px;
    height: 14px;
}

/* Hide radio buttons but keep functionality */
.dots input[type="radio"] {
    display: none;
}

.dots input[type="radio"]:checked + label,
.dots input[type="radio"]:checked ~ label:nth-of-type(n) {
    background-color: #fff;
}


/* utilities */

.footer {
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.footer .width-30 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.footer-bottom {
    flex-basis: 100%;
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(247, 247, 247, 0.2);
}

.footer-bottom a {
    text-decoration: underline;
}

.button {
    display: inline-block;
    padding: 16px 36px;
    background-color: var(--title-color);
    color: var(--background-color);
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: var(--highlight-color);
}

/* Banner de consentimento de cookies (só é inserido no DOM pelo
   analytics.js quando há algum ID de rastreamento configurado) */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background: var(--text-color);
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.cookie-banner p {
    color: var(--background-color);
    margin: 0;
    flex: 1 1 280px;
}

.cookie-banner a {
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.cookie-reject {
    background: none;
    border: 1px solid var(--background-color);
    color: var(--background-color);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: var(--text-font);
}

.card {
    background-color: var(--background-inverted-color);
    border-radius: 10px;
    /* sem padding lateral/superior de propósito: a imagem sangra até a
       borda do card. O respiro horizontal do texto vem de .title-3/.ph-20,
       e o respiro inferior vem daqui. */
    padding-bottom: 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}



.img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.card-img {
    width: 100%;
    height: 50vh;
    border-radius: 10px;
    object-fit: cover;
}

/* Specialty cards */

.specialties-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.small-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 14px;
    box-shadow: 0 8px 20px rgba(21, 66, 94, 0.06);
    min-height: 84px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.small-card h4 {
    margin: 0 0 8px 0;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color: #102A44;
}

.small-card p {
    margin: 0;
    font-size: 13px;
    color: #465A6C;
    line-height: 1.4;
}

/* FAQ (Dúvidas frequentes) - accordion nativo via <details>/<summary> */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--background-inverted-color);
    border-radius: 10px;
    padding: 4px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.faq-question {
    list-style: none;
    cursor: pointer;
    padding: 16px 0;
    font-family: var(--title-font);
    color: var(--title-color);
    font-weight: 600;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 22px;
    line-height: 1;
    color: var(--title-color);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding-bottom: 18px;
}

/* Espaçamento lateral das seções, padronizado com o mesmo respiro de
   ~5% que a nav/hero já usam via .width-90 */
#sobre,
#fundadora,
#atendimento,
#especialidades,
#abordagem,
#duvidas,
#contato {
    padding-left: 5%;
    padding-right: 5%;
}

@media (max-width: 1200px) {
    .specialties-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 768px) {
    .specialties-cards {
        grid-template-columns: 1fr;
    }

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

/* Responsivo */

@media (max-width: 768px) {

    html {
        scroll-behavior: smooth;
    }

    body.nav-fixed-padding {
        /* compensa a navbar fixa, que sai do fluxo normal da página -
           só é aplicado depois que o JS marca a navbar como fixa */
        padding-top: 68px;
    }

    /* Âncoras das seções não ficam escondidas atrás da navbar fixa ao rolar */
    #sobre,
    #atendimento,
    #especialidades,
    #abordagem,
    #contato {
        scroll-margin-top: 68px;
    }

    .title-big {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .title-1 {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .title-2 {
        font-size: 18px;
    }

    .title-3 {
        font-size: 17px;
    }

    .title-4-white {
        font-size: 16px;
    }

    .logo {
        font-size: 20px;
    }

    /* Navbar com menu em dropdown (hambúrguer). Só fica fixa depois que o
       usuário rola a página um pouco (classe .nav-fixed adicionada pelo JS).
       position:relative sempre presente, mesmo antes de ficar fixa, pra
       ancorar o dropdown do menu sem depender do estado de scroll. */
    nav {
        position: relative;
    }

    nav.nav-fixed {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(21, 66, 94, 0.1);
    }

    .nav-toggle {
        display: flex;
    }

    /* Dropdown grudado embaixo da navbar (sem gap) e animado via
       opacity/transform - fica sempre no DOM com display:flex, então dá
       pra transicionar em vez de aparecer/sumir abruptamente */
    nav ul.navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        background-color: var(--background-color);
        padding: 16px 0;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 10px 16px rgba(21, 66, 94, 0.12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    }

    nav ul.navbar-menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    nav .mh-20 {
        margin: 6px 0;
    }

    /* Hero: altura fixa em vmax pode cortar conteúdo, libera pra altura automática */
    .height-50-vmax {
        height: auto;
        padding: 40px 0;
    }

    /* Seções mais compactas no mobile (menos espaço em branco por seção
       ao empilhar tudo em coluna única) */
    .pv-40 {
        padding: 28px 0;
    }

    .pv-20 {
        padding: 16px 0;
    }

    .mv-20 {
        margin: 12px 0;
    }

    /* Colunas de conteúdo (cards, especialidades, abordagem, contato)
       passam de lado-a-lado para empilhadas. #sobre e #fundadora já são
       coluna única, não precisam de override aqui. */
    #especialidades>div.flex,
    #abordagem>div.flex,
    #contato>div.flex {
        flex-direction: column;
    }

    /* Zera o respiro lateral de 5% da seção em telas pequenas: os próprios
       filhos (width-40/30/20 etc.) já ficam em ~90% de largura, então
       manter o padding da seção duplicaria o respiro */
    #sobre,
    #fundadora,
    #atendimento,
    #especialidades,
    #abordagem,
    #duvidas,
    #contato {
        padding-left: 0;
        padding-right: 0;
    }

    /* Wrapper do carrossel: sem isso ele fica colado nas bordas da tela
       (não tem classe de largura própria, só o .slider por dentro dele) */
    #especialidades>div.flex>div.flex.center.justify-center,
    #abordagem>div.flex>div.flex.center.justify-center {
        width: 90%;
    }

    .width-90 {
        width: 95%;
    }

    .width-70 {
        width: 90%;
    }

    .width-50 {
        width: 90%;
    }

    .width-40 {
        width: 90%;
    }

    .width-30 {
        width: 90%;
    }

    .width-20 {
        width: 90%;
    }

    .card-img {
        height: 240px;
    }

    /* Rodapé: colunas empilhadas e centralizadas */
    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer .width-30 {
        align-items: center;
    }

    .footer-bottom {
        flex-basis: auto;
        width: 100%;
    }

    /* Banner de cookies empilhado e centralizado */
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cookie-banner-actions {
        justify-content: center;
    }
}