/* ==========================================================================
   1. RESET + BASE + VARIÁVEIS
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    font: inherit;
}

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: "Montserrat", "Agrandir", system-ui, -apple-system, BlinkMacOS, "Segoe UI", Roboto, sans-serif;
    font-size: clamp(1.6rem, 0.96rem + 2vw, 1.8rem);
    line-height: 1.5;
    background-image: linear-gradient(to left bottom, #ffffff, #f6f6fb, #edeef8, #e2e6f4, #d7def1, #c9d4f0, #bacbf0, #aac2ef, #96b5f0, #81a7f0, #6c9af0, #558cf0);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
}

/* Variáveis */
:root {
    --color-0: #ffffff;
    --color-1: #c6d4ed;
    --color-2: #558cf0;
    --color-3: #295097;
    --color-4: #263868;
    --color-5: #000000;

    --color-primary: #0066ff;
    --color-primary-dark: #0052cc;

    --font-size-base: clamp(1.6rem, 0.96rem + 2vw, 1.8rem);
    --spacing-xs: 0.8rem;
    --spacing-sm: 1.2rem;
    --spacing-md: 2rem;
    --spacing-lg: 3.2rem;
    --spacing-xl: 4.8rem;

    --container-width: 128rem;
    --transition: all 0.25s ease;
}

/* Modo escuro */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #0f0f0f;
        --color-text: #295097;
        --color-primary: #4da6ff;
    }

    body {
        color: var(--color-text);
        background-color: var(--color-bg);
    }
}

/* ==========================================================================
   2. CABEÇALHO + MENU + HAMBURGER
   ========================================================================== */
.cabecalho {
    background-color: #558cf0;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 100;
}

.logo {
    width: clamp(90px, 20vw, 120px);
    height: auto;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 110;
    align-self: flex-end;
}

.hamburger span {
    background: white;
    height: 4px;
    border-radius: 2px;
    transition: all 0.35s ease;
}

.hamburger span:nth-child(2) {
    width: 75%;
    align-self: flex-end;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.menu {
    display: flex;
}

.menu ul {
    display: flex;
    gap: clamp(1.5rem, 3vw, 3rem);
    list-style: none;
}

li a:hover {
    background-color: #4da6ff;
    transition: 0.1s all ease;
}

.menu a {
    color: white;
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.5rem, 2vw, 1.8rem);
    padding: 0.8rem 1.2rem;
    transition: background 0.2s;
}

/* Menu mobile */
@media (max-width: 900px) {
    .cabecalho {
        padding: 0.9rem 1.2rem;
        height: 64px;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
    }

    .menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: clamp(260px, 75vw, 320px);
        background: #295097;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 80px 20px 40px;
        z-index: 90;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        flex-direction: column;

    }

    .menu.active {
        transform: translateX(0);
        
    }

    .menu ul {
        flex-direction: column;
        /* itens na vertical */
        gap: 2rem;
        /* mais espaço entre itens */
        align-items: center;
        /* centraliza horizontalmente */
        width: 100%;
    }

    .menu li {
        width: 100%;
        /* cada item ocupa a largura toda */
        text-align: start;
    }

    .menu a {
        display: block;
        /* transforma o link em bloco */
        padding: 1.2rem 2rem;
        font-size: clamp(1.8rem, 5vw, 2.4rem);
        /* fonte maior no mobile */
        width: 100%;
        transition: background 0.3s;
    }

    .menu a:hover,
    .menu a:focus {
        background: rgba(255, 255, 255, 0.15);
    }

    .logo {
        width: clamp(60px, 32vw, 100px);
        max-height: 48px;
    }
}

/* ==========================================================================
   3. SLIDESHOW + HERO + SETA + FRASE HOME
   ========================================================================== */
.top-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 85vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.mask {
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.top-slideshow .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.top-slideshow .slide.active {
    opacity: 0.5;
}

.hero-section {
    position: relative;
}

.seta {
    position: relative;
    left: 71%;
    bottom: 10px;
    width: 30%;
    max-width: 500px;
    height: auto;
    z-index: 2;
    pointer-events: none;
}

.frase-home {
    color: #295097;
    font-size: clamp(3.2rem, 10vw, 7rem);
    font-weight: bold;
    font-family: "Montserrat", sans-serif;
    line-height: 0.92;
    letter-spacing: 1px;
    text-align: center;
    margin: 0;
    padding: 0 5%;
    position: relative;
    right: 32%;
    bottom: 140px;
}

.frase-home .animacao {
    display: block;
    opacity: 0;
    animation: impulso 0.9s ease-out forwards;
}

.frase-home .animacao:nth-child(1) {
    animation-delay: 0.4s;
    padding-top: 2%;
}

.frase-home .animacao:nth-child(2) {
    animation-delay: 0.8s;
    padding-left: 12.5%;
    padding-top: 2%;
}

.frase-home .animacao:nth-child(3) {
    animation-delay: 1.2s;
    padding-left: 28%;
    padding-top: 2%;
}

@keyframes impulso {
    from {
        opacity: 0;
        transform: translate(-140px, 140px);
    }

    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* Ajustes mobile frase + slideshow + seta */
@media (max-width: 768px) {
    .seta {
        display: none;
    }

    .top-slideshow {
        height: 70vh;
    }

    .top-slideshow .slide.active {
        opacity: 0.10;
    }

    .frase-home {
        font-size: clamp(2.4rem, 7.8vw, 4.2rem);   /* bem menor para caber bem */
        line-height: 0.98;
        text-align: left;
        margin: 40px auto 0;
        padding: 0 5%;
        position: relative;
        right: 0;
        bottom: auto;
        top: 40px;                                  /* desce um pouco mais em relação ao topo */
        left: 50%;
        transform: translateX(-50%);
        max-width: 92vw;
    }

    .frase-home .animacao:nth-child(2) {
        padding-left: 12%;
    }

    .frase-home .animacao:nth-child(3) {
        padding-left: 24%;
    }
}

@media (max-width: 480px) {
    .frase-home {
        font-size: clamp(2.6rem, 9vw, 4.2rem);
        position: relative;
        top: 15vw;
        right: 15vw;
        margin: 10vw;
    }

    .seta {
        display: none;
    }
}

/* ==========================================================================
   4. NOTÍCIAS
   ========================================================================== */
.noticias {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 0rem;
    padding: 0 4%;
}

.noticia-item {
    background: #295097a8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.noticia-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.noticia-item .subtitulo {
    background: rgba(0, 0, 0, 0.25);
    padding: 1.2rem 1.8rem;
    margin: 0;
    font-size: clamp(1.9rem, 4.5vw, 2.4rem);
    text-align: left;
}

.noticia-conteudo {
    padding: 1.8rem;
    color: white;
    font-size: clamp(1.6rem, 3.2vw, 1.9rem);
    line-height: 1.65;
}

.resumo {
    position: relative;
}

.resumo::after {
    content: "...";
    font-weight: bold;
    color: #a0c0ff;
}

.conteudo-completo {
    margin-top: 1rem;
}

.texto1 {
    width: 50%;
}

.texto2 {
    width: 40%;
}

/* Mobile → esconde notícias por enquanto (você pode querer mostrar em coluna) */
@media (max-width: 768px) {
    .noticias {
       /* display: none; */
    }
}

/* ==========================================================================
   5. TÍTULOS GERAIS
   ========================================================================== */
.titulo {
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-family: "Montserrat", sans-serif;
    padding: clamp(4rem, 12vh, 10rem) 0 clamp(2rem, 6vh, 5rem);
    letter-spacing: clamp(2px, 0.8vw, 8px);
    font-weight: bold;
    text-align: start;
}

.subtitulo {
    font-size: clamp(2rem, 6vw, 4rem);
    font-family: "Open Sans Light", sans-serif;
    padding: 0 0 clamp(1.5rem, 4vh, 3rem) 0;
    letter-spacing: clamp(1.5px, 0.6vw, 6px);
    text-align: center;
}

p {
    font-family: "Agrandir", sans-serif;
    font-weight: lighter;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1.6;
    letter-spacing: clamp(0.5px, 0.2vw, 2px);
}

@media (max-width: 480px) {
    .titulo {
        font-size: clamp(2.2rem, 7vw, 3.8rem);
    }

    p {
        font-size: clamp(1.4rem, 3.5vw, 1.8rem);
    }
}

/* ==========================================================================
   6. CARROSSEL
   ========================================================================== */
.carrossel-wrapper {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.carrossel-container {
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

.carrossel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform-style: preserve-3d;
    width: max-content;
    overflow: hidden;
}

.carrossel-item {
    flex: 0 0 320px;
    height: 420px;
    margin: 0 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.6s ease;
    transform: scale(0.8) translateZ(-100px);
    opacity: 0.6;
    overflow: hidden;
}

.carrossel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.carrossel-item.active {
    transform: scale(1.15) translateZ(0);
    opacity: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.carrossel-seta {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 3.5rem;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s;
}

.carrossel-seta:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Carrossel mobile */
@media (max-width: 768px) {
    .carrossel-item {
        flex: 0 0 240px;
        height: 320px;
        font-size: 4rem;
        margin: 0 1rem;
    }

    .carrossel-item.active {
        transform: scale(1.12) translateZ(0);
    }
}

/* ==========================================================================
   7. SERVIÇOS
   ========================================================================== */
.servicos-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding: 4rem 0;
}

.servico-detalhe {
    flex: 1;
    background: rgba(255, 255, 255, 0.12);
    padding: 3.2rem;
    border-radius: 1.2rem;
    backdrop-filter: blur(8px);
    min-height: 420px;
    color: #fff;
    position: relative;
}

.servico-detalhe h2 {
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    margin-bottom: 2.4rem;
    color: #ffffff;
}

#servico-conteudo {
    font-size: 1.65rem;
    line-height: 1.7;
}

/* Estilo do "Quais as vantagens?" */
.vantagens-trigger {
    color: #a0c0ff;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    margin: 20px 0 10px;
    transition: color 0.3s;
}

.vantagens-trigger:hover {
    color: #ffffff;
}

.vantagens-conteudo {
    display: none;
    margin-top: 10px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 1.55rem;
    line-height: 1.65;
}

.agende-link{
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #ffffff;
    color: #3e85cc;
    font-weight: 600;
    font-size: 1.6rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2 ease;
    
}

.agende-link:hover{
    background-color: #1dca60;
    color: white;
    transition: 0.1s all ease;
    
}

/* Estado expandido */
#servico-conteudo.expandido .vantagens-conteudo {
    display: block;
}

/* Lista à direita */
.servicos-lista {
    flex: 1;
    max-height: 580px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 1.2rem;
    padding: 1.6rem;
    scrollbar-width: thin;
    scrollbar-color: #4da6ff #222;
}

.servico-item {
    display: block;
    padding: 1.8rem 2rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.8rem;
    color: #ddd;
}

.servico-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(8px);
}

.servico-item.active {
    background: var(--color-primary, #0066ff);
    color: white;
    font-weight: 600;
}

/* Layout desktop (lado a lado) */
@media (min-width: 900px) {
    .servicos-container {
        flex-direction: row;
        gap: 6rem;
        align-items: stretch;
    }

    .servico-detalhe {
        flex: 3;
    }

    .servicos-lista {
        flex: 2;
        max-height: 600px;
    }
}

/* Menu mobile / tablet */
@media (max-width: 1100px) {
    .cabecalho {
        padding: 1rem 1.5rem;
        height: 70px;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
    }

    .menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: clamp(280px, 70vw, 380px);
        background: #295097;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 90px 20px 40px;
        z-index: 90;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    }

    .menu.active {
        transform: translateX(0);
    }

    .menu ul {
        flex-direction: column;
        gap: 2.2rem;
        align-items: center;
        width: 100%;
    }

    .menu li {
        width: 100%;
        text-align: center;
    }

    .menu a {
        display: block;
        padding: 1.4rem 2.5rem;
        font-size: clamp(1.9rem, 4.5vw, 2.6rem);
        width: 100%;
        transition: background 0.3s;
    }

    .menu a:hover,
    .menu a:focus {
        background: rgba(255, 255, 255, 0.12);
    }

    .logo {
        width: clamp(80px, 22vw, 130px);
        max-height: 55px;
    }
}

/* Ajustes gerais para tablets / telas médias */
@media (max-width: 1100px) {
    #container {
        padding-inline: 4vw;
        margin-top: -6%;
    }

    .frase-home {
        font-size: clamp(2.4rem, 7.5vw, 4.8rem);   /* menor que no desktop */
        line-height: 0.95;
        text-align: left;                           /* texto alinhado à esquerda */
        margin: 80px auto;
        padding: 0 6% 0 0;                         /* margens simétricas */
        position: relative;
        right: 0;                                   /* remove o deslocamento direito */
        bottom: 100px;                              /* ajusta posição vertical */
        max-width: 90vw;                            /* evita que fique muito largo */
        left: 50%;
        transform: translateX(-50%);                /* centraliza o bloco inteiro */
    }

    .frase-home .animacao:nth-child(2) {
        padding-left: 15%;                           /* ajusta o escalonamento da animação */
    }

    .frase-home .animacao:nth-child(3) {
        padding-left: 36%;
    }

    .titulo {
        font-size: clamp(3.4rem, 7vw, 5rem);
        padding: 6vh 0 4vh;
        text-align: center;
    }

    .carrossel-item {
        flex: 0 0 280px;
        height: 360px;
        margin: 0 1.2rem;
    }

    .servicos-container {
        flex-direction: column;
        gap: 5rem;
    }
}

/* Tablets maiores / desktop pequeno */
@media (min-width: 768px) and (max-width: 1100px) {
    .frase-home {
        font-size: clamp(2rem, 8vw, 3.6rem);
        bottom: 100px;
        position: relative;
        right: 20vw;
    }

    .noticias {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        padding: 0 6%;
    }

    

    .texto1,
    .texto2 {
        width: 100%;
    }
}

/* Só desktop de verdade */
@media (min-width: 1101px) {
    .noticias {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1200px;
        margin: 0 auto 12rem;
        padding: 0;
    }

    .texto1 {
        width: 58%;
    }

    .texto2 {
        width: 42%;
    }
}

/* ==========================================================================
   8. SOBRE MIM
   ========================================================================== */
.sobremim {
    background-color: #ffffff14;
    padding: 5%;
    border-radius: 10%;
    width: fit-content;
    margin: 0 auto;
    text-align: center;
    align-self: center;
    justify-content: center;
    width: 30%;
}


.bio {
    font-style: italic;
}

/* ==========================================================================
   9. RODAPÉ
   ========================================================================== */
.rodape {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    background-color: #295097a8;
    border-radius: 1%;
    padding: 40px;
    font-size: 18px;
}

.contato-link {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.contato-link:hover {
    color: #4da6ff;
    transition: 0.1s all ease;
}

.contato-link img {
    flex-shrink: 0;
}

.parceiros-container {
    flex: 1;
    text-align: center;
}

.parceiros-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.parceiro-categoria {
    min-width: 180px;
}

.parceiro-categoria h3 {
    font-size: 1.6rem;
    margin-bottom: 18px;
    color: white;
    font-weight: 600;
    letter-spacing: 1px;
}

.parceiro-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.parceiros a:hover{
    color: #4da6ff;
}

.parceiro-item img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.parceiro-item span {
    font-size: 1.4rem;
    color: #ddd;
    text-align: center;
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    .parceiros-grid {
        gap: 40px;
    }
    
    .parceiro-categoria {
        min-width: 140px;
    }
}

/* ==========================================================================
   10. CONTAINER GERAL + UTILITÁRIOS
   ========================================================================== */
#container {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--spacing-md);
    margin-bottom: 10%;
    margin-top: -10%;
}

/* Container responsivo */
@media (min-width: 480px) {
    :root {
        --container-width: 46rem;
    }
}

@media (min-width: 768px) {
    :root {
        --container-width: 72rem;
    }
}

@media (min-width: 1024px) {
    :root {
        --container-width: 96rem;
    }
}

@media (min-width: 1280px) {
    :root {
        --container-width: 116rem;
    }
}

@media (min-width: 1536px) {
    :root {
        --container-width: 132rem;
    }
}