/* style.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Libre+Franklin:ital,wght@0,100..900;1,100..900&display=swap');

/* Variáveis de Cores para fácil manutenção */
:root {
    --primary-orange: #FF7700;
    --secondary-orange: #ff77009f;
    --burned-yellow: #FFA705;
    --dark-blue: #0A1128;
    --bluh2: #145A75;
    --creme: #FEC286;
    --dark-grey: #4D4B4B;
    --white: #FFFFFF;
    --black: #000000;
    --purple: #87078E;
    --purple-pastel: #8873FF;
    --green: #BCD918;
}

/* ============================
   Custom Scrollbar
   ============================ */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-grey);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 6px;
    border: 3px solid var(--dark-grey); /* Espaçamento interno */
}

::-webkit-scrollbar-thumb:hover {
    background: var(--burned-yellow);
}
/* Reset Básico e Fontes */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'libre franklin', 'inter', 'Lato', sans-serif;
    font-weight: 400;
    text-align: center;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    line-height: 1.6;
    color: var(--dark-grey);
    background-color: var(--white);
    font-size: 1.1rem;
}

/* Cabeçalho e Navegação */
header {
    padding: 15px 0;
    position: relative;
    /* Para posicionar a forma roxa no canto */
    width: 100%;
}

.menu {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    /* Alinha o menu à direita como na imagem */
    align-items: center;
    padding: 0 20px;
}

.menu-list {
    list-style: none;
    display: flex;
    gap: 30px;
}

.menu-list a {
    text-decoration: none;
    color: var(--black);
    font-weight: bold;
    font-size: 1rem;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.menu-list a:hover {
    color: var(--primary-orange);
}

/* Título Principal */
h1 {
    display: block;
    font-size: 2.5rem;
    color: #BD5902;
    /* Cor base do texto principal */
    margin: 5% auto;
    /* Espaçamento ajustado para focar no centro */
    max-width: 800px;
    line-height: 1.2;
    padding: 0 20px;
    position: relative;
    z-index: 5;
    /* H1 ficará acima dos cards do fundo, mas abaixo dos da frente (via JS) */
}

h2 {
    font-size: 2rem;
    color: var(--bluh2);
    text-align: center;
    margin: 1%;
}

/* Carousel Section */
#carousel-section {
    margin-top: -100px;
    /* Avança substancialmente sobre o H1 */
    margin-bottom: 80px;
    /* Aumenta a distância entre o carrossel e a suaPersonalidade */
    padding: 0;
    /* Removido padding para apertar o layout */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    /* Altura ajustada para os novos cards */
    position: relative;
    z-index: 2;
    /* Garante que o container base do carrossel não encubra tudo */
    max-width: 100vw;
    overflow: hidden;
}

.carousel-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-container {
    position: relative;
    width: 260px;
    height: 260px;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


/* _________________________________________________*/

.qstFraco {
    display: inline;
    background-color: #ff770095;
    border-radius: 6px;
    padding: 5px;
    font-size: 140%;
}

#suaPersonalidade {
    margin-left: 5%;
    margin-right: 5%;
}

#suaPersonalidade p {
    font-size: 1.2rem;
    text-align: center;
    margin-left: 4%;
    margin-right: 4%;
}

#elementos {
    text-align: center;
    margin-top: 3%;
    margin-bottom: 6%;
}

#elementos>p {
    display: inline;
    color: var(--primary-orange);
    margin: 3%;
    font-size: 120%;
}

/*________________________________________________*/
button {
    cursor: pointer;
    background-color: var(--secondary-orange);
    color: var(--black);
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 120%;
    font-weight: 500;
}

/*_______________________________________*/

.servicos-info {
    display: flex;
    margin-top: 30px;
    padding: 7%;
}

.servico-item {
    position: relative;
    width: 25%;
    text-align: center;
    margin: 0.3%;
}

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

.servico-item p {
    position: absolute;
    top: 75%;
    color: var(--primary-orange);
    width: 100%;
    padding: 0 10px;
    /*text-shadow: 1px 1px 3px var(--black);*/
}

/*_______________________________________*/
#pqNos {
    margin-left: 7%;
    margin-right: 5%;
    margin-bottom: 10%;
}

#pqNos>h2 {
    display: flex;
}

#pqNos>p {
    margin-left: 1%;
    font-size: 1.2rem;
    text-align: left;
    width: 70%;
}

/*_______________________________________*/

#issoNaoEObvio {
    background-color: #4D4B4B;
    color: var(--white);
}

.formas {
    font-size: 1.5rem;
}

#forma-1 {
    background-color: #FFA705;
    padding: 40px;
    border-radius: 50%;
    transform: rotate(-40deg);
    width: 400px;
    height: 200px;
    display: relative;
    justify-content: center;
    align-items: center;
    margin: 30px;
    margin-left: 21%;
    top: 100%;
}

#forma-1 p {
    font-size: 2rem;
    transform: rotate(40deg);
    padding: 1%;
}

#forma-2 {
    background-color: var(--secondary-orange);
    border-radius: 10px;
    display: relative;
    width: 315px;
    padding: 10px;
    margin-left: 50%;
}

#forma-3 {
    background-color: #FEC286;
    border-radius: 50%;
    display: relative;
    width: 230px;
    padding: 20px;
    transform: rotate(-10deg);
    margin-left: 54%;
}

#forma-4 {
    background-color: #ACA3CA;
    border-radius: 10px;
    display: relative;
    width: 350px;
    padding: 10px;
    margin-left: 47%;
    transform: rotate(2deg);
}

#forma-5 {
    background-color: #92A818;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 70px;
    padding: 30px;
    margin-left: 50%;
    position: relative;
    top: -3px;
}

#forma-5 p {
    margin: 0;
}

/*_______________________________________*/
#cases {
    display: inline-flex;
}

#cases>* {
    margin: 0 20px;
}

.case-num>*>* {
    display: inline-block;
    font-size: 2.5rem;
    margin: 0 10px;
}

.case-num>div {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    border-bottom: 2px solid;
    border-image: linear-gradient(to right, var(--primary-orange) 0%, var(--primary-orange) 50%, var(--black) 50%, var(--black) 100%);
    border-image-slice: 1;
    width: fit-content;
    margin: 0 auto 10px auto;
    /* Ensures the border matches the text width */
}

.caseOrange {
    color: var(--primary-orange);
    font-size: 350%;
}

.caseBlack {
    color: var(--black);
    font-size: 140%;
    margin-top: -10px;
    width: 150px;
}

.case-imgs {
    position: relative;
    width: 400px;
    height: 550px;
    margin: 40px auto;
}

.case-imgs img {
    position: absolute;
    max-height: 500px;
    width: 250px;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.case-imgs img:nth-child(1) {
    top: 90px;
    left: 0;
    z-index: 1;
}

.case-imgs img:nth-child(2) {
    top: 20px;
    left: 75px;
    z-index: 2;
}

.case-imgs img:nth-child(3) {
    top: 10px;
    right: 0;
    z-index: 3;
}

.case-imgs img:hover {
    transform: scale(1.05) rotate(0);
    z-index: 4;
}

/* Animação issoNaoEObvio */
#issoNaoEObvio .formas div {
    opacity: 0;
}

#issoNaoEObvio.animate #forma-5 {
    animation: dropForm5 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

#issoNaoEObvio.animate #forma-4 {
    animation: dropForm4 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.2s;
}

#issoNaoEObvio.animate #forma-3 {
    animation: dropForm3 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.4s;
}

#issoNaoEObvio.animate #forma-2 {
    animation: dropForm2 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.6s;
}

#issoNaoEObvio.animate #forma-1 {
    animation: dropForm1 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.8s;
}

@keyframes dropForm5 {
    0% {
        opacity: 0;
        transform: translateY(-150px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dropForm4 {
    0% {
        opacity: 0;
        transform: translateY(-150px) rotate(2deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotate(2deg);
    }
}

@keyframes dropForm3 {
    0% {
        opacity: 0;
        transform: translateY(-150px) rotate(-10deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotate(-10deg);
    }
}

@keyframes dropForm2 {
    0% {
        opacity: 0;
        transform: translateY(-150px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dropForm1 {
    0% {
        opacity: 0;
        transform: translateY(-150px) rotate(-40deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotate(-40deg);
    }
}


/* Contato */
#contato {
    padding: 50px 20px;
    background-color: white;
    border-radius: 20px;
    box-shadow: var(--sombra-padrao);
    max-width: 1000px;
    margin: 40px auto;
    text-align: center;
}

#contato h2 {
    color: var(--verdeEscuro);
    font-size: 2.5em;
    margin-bottom: 30px;
    position: relative;
}

#contato h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--laranja);
    border-radius: 4px;
}

/* Links */
.links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
}

.links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--verdeEscuro);
    transition: all 0.3s ease;
}

.links a:hover {
    transform: translateY(-8px);
}

.links a img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    padding: 10px;
    background-color: #f8f8f8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.links a:hover img {
    background-color: var(--roxo);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}


footer {
    background-color: var(--dark-grey);
    color: var(--white);
    text-align: center;
    padding: 0;
    padding-bottom: 60px;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.footer-arc-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 350px;
    padding-top: 80px;
}

/* Arco laranja usando pseudo-elemento */
.footer-arc-section::before {
    content: '';
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 540px;
    border: 3px solid var(--primary-orange);
    border-radius: 50%;
    pointer-events: none;
}

.footer-logo {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    margin-top: -10px;
}

.footer-logo img {
    height: 120%;
    object-fit: contain;
}

.footer-labels {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 10px;
    min-width: 180px;
    z-index: 2;
}

.footer-labels span {
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 400;
}

.footer-labels-left {
    text-align: left;
    margin-right: 40px;
}

.footer-labels-right {
    text-align: right;
    margin-left: 40px;
}

footer a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-orange);
}

.hailton {
    background-color: #000000;
    text-align: center;
    font-family: 'Prata', serif;
    font-size: 0.75em;
    color: #ffffff;
    padding: 5px 10px;
    margin-top: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    border-top: 1px solid var(--roxo);
}

.hailton:hover {
    opacity: 0.9;
}

.hailton a {
    color: var(--roxo);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hailton a:hover {
    color: var(--laranja);
}

/* Floating Shapes Animation */
#floating-shapes-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* height will be set via JS */
    overflow: hidden;
    pointer-events: none;
    z-index: -1; 
}

.floating-shape {
    position: absolute;
    top: 0; left: 0;
    will-change: transform;
    opacity: 0.8;
}

.shape-purple-star {
    width: 80px; height: 80px;
    background-color: var(--purple, #87078E);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.shape-pink-triangle {
    width: 70px; height: 70px;
    background-color: #DDA2CA; /* pastely pink based on image */
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.shape-green-oval {
    width: 90px; height: 60px;
    background-color: var(--green, #BCD918);
    border-radius: 50%;
}

.shape-orange-circle {
    width: 70px; height: 70px;
    background-color: var(--creme, #FEC286);
    border-radius: 50%;
}

.shape-periwinkle-star {
    width: 90px; height: 90px;
    background-color: var(--purple-pastel, #8873FF);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ============================
   RESPONSIVIDADE (Telas < 990px)
   ============================ */
@media (max-width: 990px) {
    /* Header & Navegação */
    .menu { justify-content: center; }
    .menu-list { flex-wrap: wrap; justify-content: center; gap: 15px; }

    /* H1 */
    h1 { font-size: 1.8rem; margin: 10% auto; padding: 0 15px; }

    /* Carousel */
    #carousel-section { min-height: 250px; margin-bottom: 30px; margin-top: -30px; width: 100%; overflow: hidden; }
    .carousel-container, .carousel-item { width: 150px; height: 150px; }

    /* Elementos (Comunicação -> Marketing...) */
    #elementos { display: flex; flex-direction: column; align-items: center; gap: 10px; }
    #elementos > p { margin: 0; }
    #elementos > .seta { transform: rotate(90deg); display: inline-block; margin: -5px 0; }

    /* Serviços Info (Icones página inicial) */
    .servicos-info { flex-wrap: wrap; padding: 20px; justify-content: center; }
    .servico-item { width: 45%; margin-bottom: 35px; }
    .servico-item p { font-size: 1rem; top: auto; bottom: -25px; }

    /* Seção "Por que escolher..." */
    #pqNos { margin-left: 20px; margin-right: 20px; text-align: center; }
    #pqNos > h2 { display: block; text-align: center; font-size: 1.6rem; }
    #pqNos > p { width: 100%; margin-top: 15px; text-align: center; }

    /* Isso Não é Óbvio (Formas Flutuantes / Textos Destaque) */
    #issoNaoEObvio { overflow-x: hidden; width: 100vw; max-width: 100%; box-sizing: border-box; }
    #issoNaoEObvio .formas { 
        display: flex; flex-direction: column; align-items: center; 
        padding-top: 50px; padding-bottom: 50px;
        width: 100%; box-sizing: border-box; overflow-x: hidden;
    }
    #issoNaoEObvio .formas div {
        margin-left: 0 !important; /* Remove as margens esquerdas absurdas do desktop */
        margin-right: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        max-width: 85vw !important; /* Para não vazar a tela */
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Ajustes específicos de tamanho e rotação para caber em telas estreitas */
    #issoNaoEObvio #forma-1 { margin-bottom: 80px !important; width: 280px !important; height: 140px !important; padding: 20px !important; }
    #issoNaoEObvio #forma-2 { width: 260px !important; }
    #issoNaoEObvio #forma-3 { width: 200px !important; padding: 15px !important; }
    #issoNaoEObvio #forma-4 { width: 280px !important; }
    #issoNaoEObvio #forma-5 { width: 260px !important; }

    /* Recriar as keyframes das animações adaptadas para mobile (caindo retos, mas mantendo a rotação final) */
    #issoNaoEObvio.animate #forma-1 { animation: dropForm1Mob 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.8s; }
    #issoNaoEObvio.animate #forma-2 { animation: dropForm2Mob 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.6s; }
    #issoNaoEObvio.animate #forma-3 { animation: dropForm3Mob 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.4s; }
    #issoNaoEObvio.animate #forma-4 { animation: dropForm4Mob 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.2s; }
    #issoNaoEObvio.animate #forma-5 { animation: dropForm5Mob 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards; }

    /* Cases (Números e Imagens Empilhadas) */
    #cases { display: flex; flex-direction: column; align-items: center; }
    .case-num > div { justify-content: center; width: 100%; }
    .caseOrange { font-size: 2.5rem; }
    .caseBlack { font-size: 1.1rem; width: auto; }
    .case-imgs { width: 100%; max-width: 340px; height: 450px; margin-top: 30px; }
    .case-imgs img { width: 180px; }
    .case-imgs img:nth-child(1) { top: 60px; left: 0; }
    .case-imgs img:nth-child(2) { top: 20px; left: 70px; }
    .case-imgs img:nth-child(3) { top: 0; right: 0; }

    /* Contato Links */
    .links { flex-wrap: wrap; gap: 20px; }

    /* Footer Arc */
    .footer-arc-section { 
        flex-direction: column; 
        align-items: center; 
        gap: 20px; 
        padding-top: 50px; 
        min-height: 380px; 
    }
    .footer-arc-section::before { 
        width: 150vw; 
        height: 100vw; 
        bottom: -40vw; 
        border-width: 2px;
    }
    .footer-labels { 
        text-align: center !important; 
        margin: 0 !important; 
        width: 100%; 
    }
}

@keyframes dropForm1Mob {
    0% { opacity: 0; transform: translateY(-100px) rotate(-40deg); }
    100% { opacity: 1; transform: translateY(0) rotate(-40deg); }
}
@keyframes dropForm2Mob {
    0% { opacity: 0; transform: translateY(-100px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes dropForm3Mob {
    0% { opacity: 0; transform: translateY(-100px) rotate(-10deg); }
    100% { opacity: 1; transform: translateY(0) rotate(-10deg); }
}
@keyframes dropForm4Mob {
    0% { opacity: 0; transform: translateY(-100px) rotate(2deg); }
    100% { opacity: 1; transform: translateY(0) rotate(2deg); }
}
@keyframes dropForm5Mob {
    0% { opacity: 0; transform: translateY(-100px); }
    100% { opacity: 1; transform: translateY(0); }
}