/* =========================================
   VARIÁVEIS E BASE (Aplicado a todas as telas)
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Adicionado para evitar quebra de layout com paddings */
}

html {
    font-size: 9px;
    scroll-behavior: smooth;
}

body {
    /* Adicionado para compensar o menu fixo no mobile */
    padding-top: 80px;
}

a {
    transition: all 0.2s ease-in-out;
    color: var(--c2);
    text-decoration: none;
}

button {
    cursor: pointer;
}

/* =========================================
   1. ESTILOS MOBILE (Padrão)
========================================= */

/* --- Navbar --- */
.nav-bar {
    display: flex;
    flex-direction: column;
    /* Empilha logo e links no celular */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--c3);
    padding: 1em;
    box-shadow: 1px 1px 0 1px #f5f5f5;
    align-items: center;
    gap: 1.5em;
    width: 100dvw;
    z-index: 10;
    transition: background-color 0.2s, box-shadow 0.1s ease-in-out;
}

.nav-bar img {
    width: 200px;
}

.links,
li {
    display: flex;
    position: relative;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    gap: 4rem;
}

a {
    position: relative;
    transition: all 0.2s ease-in-out;
    color: var(--c2);
    text-decoration: none;
}

li a:hover {
    cursor: pointer;
    color: var(--c1);
}

li:not(:nth-child(4))::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--c1);
    bottom: -5px;
    left: 50%;
    transition: all 0.3s ease-in-out;
}

li:hover::after {
    width: 50%;
    left: 25%;
}

li:nth-child(4) a {
    border: 2px solid #3A3A3A;
    padding: 0.5em;
    transition: background 0.2s ease-in-out;
}

li:nth-child(4) a:hover {
    background: #3A3A3A;
}

/* --- Hero Section --- */
.hero {
    display: flex;
    flex-direction: column;
    padding: 2em;
    /* Reduzido para celular */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6)), url('../img/bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    /* Melhorado para celular */
    min-height: 100dvh;
    /* Evita cortar conteúdo */
}

#main-hero {
    display: flex;
    flex-direction: column;
    /* Texto e qualidades empilhados */
    align-items: center;
    gap: 4em;
    padding-top: 50px;
}

#text {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: justify;
    /* Centraliza no celular */
    align-items: center;
}

#hero-h1 {
    background: linear-gradient(90deg, #d49929, #d69f37, #d1a147, var(--c1));
    background-clip: text;
    -webkit-background-clip: text;
    /* Compatibilidade */
    max-width: 700ch;
    font-size: 3.5rem;
    color: transparent;
}

#desc {
    margin: 2em 0;
    font-weight: 200;
    max-width: 125ch;
    color: var(--c3);
}

#btns {
    display: flex;
    flex-direction: column;
    /* Botões empilhados */
    width: 100%;
    gap: 1.5em;
}

#con,
#cta {
    width: 100%;
    height: 80px;
    display: flex;
    font-weight: 600;
    align-items: center;
    justify-content: center;
}

#con {
    border: 2px solid var(--c2);
    background-color: var(--c2);
}

#cta {
    border: 1px solid var(--c1);
    background-color: var(--c1);
}

#btns a p {
    color: white;
    margin: 0;
}

#qual {
    display: grid;
    grid-template-columns: 1fr;
    /* 1 card por linha no mobile */
    gap: 2em;
    width: 100%;
}

.card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--c2);
    font-family: var(--font2);
    height: 200px;
    /* Reduzido para celular */
    justify-content: center;
    backdrop-filter: blur(5px);
    align-items: center;
}

.card p {
    padding: 1em 0;
    color: var(--c3);
}

#grid-redes {
    display: flex;
    justify-content: center;
    gap: 2em;
    font-size: 3em;
    margin-top: 4em;
    padding-bottom: 2em;
}

#grid-redes a {
    color: white;
}

/* --- Sobre Section --- */
#sobre {
    display: flex;
    flex-direction: column;
    /* Imagem embaixo do texto */
    padding: 4em 2em;
    gap: 2em;
    height: 100dvh;
    align-items: center;
}

#div-sobre {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2em;
    border: 2px solid var(--c1);
    border-radius: 16px;
    text-align: justify;
}

#div-sobre h4 {
    color: var(--c1);
    font-family: "DM Sans", sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1em;
}

#div-sobre p {
    color: var(--c2);
    font-size: 1.6rem;
}

#img-sobre {
    display: flex;
    width: 100%;
    justify-content: center;
    border: 2px solid var(--c1);
    border-radius: 16px;
    overflow: hidden;
}

#img-sobre img {
    width: 100%;
    height: auto;
}

/* --- Serviços Section --- */
#serv {
    display: flex;
    flex-direction: column;
    padding: 4em 2em;
    background: #f1f1f1;
    align-items: center;
}

#tratamentos {
    display: grid;
    grid-template-columns: 1fr;
    /* 1 card por linha */
    width: 100%;
    gap: 2em;
}

.card-trat {
    background-color: #ececec;
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-trat img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-trat h6 {
    padding: 18px 18px 0 18px;
    font-size: 2.2rem;
    font-family: "DM Sans", sans-serif;
    color: var(--c2);
}

.card-trat p {
    padding: 18px;
    font-size: 1.6rem;
    color: var(--c2);
}

/* --- Contato Section --- */
#cont {
    display: flex;
    flex-direction: column;
    padding: 4em 2em;
    gap: 3em;
}

#cont-div {
    display: flex;
    flex-direction: column;
    gap: 2em;
    width: 100%;
}

.coluna {
    width: 100%;
    padding: 2em;
    background-color: var(--c3);
    border: 2px solid #d3a34a;
}

.coluna h6 {
    color: var(--c2);
    margin-bottom: 1em;
    font-size: 1.8rem;
}

.coluna p {
    color: var(--c2);
    font-size: 1.4rem;
    line-height: 1.5;
}

iframe {
    width: 100%;
    /* Fluido no mobile */
    height: 300px;
    border-radius: 8px;
}

/* --- Footer --- */
footer {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--c2);
    color: white;
    font-weight: 200;
    padding: 2em;
    text-align: center;
    font-size: 1.6rem;
}


/* =========================================
   2. TABLETS (A partir de 768px)
========================================= */
@media (min-width: 768px) {

    /* Serviços em 2 colunas */
    #tratamentos {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hero botões lado a lado */
    #btns {
        flex-direction: row;
        justify-content: center;
    }

    .hero {
        align-items: center;
    }

    #main-hero {
        width: 65%;
    }

    #qual {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .card {
        width: 300px;
    }

    #hero-h1 {
        text-align: justify;
    }

    #con,
    #cta {
        width: 250px;
    }
}


/* =========================================
   3. DESKTOPS (A partir de 1024px)
========================================= */
@media (min-width: 1024px) {

    body {
        margin: 0;
        padding: 0;
    }

    /* Remove compensação do menu mobile */

    /* Navbar volta ao original */
    .nav-bar {
        flex-direction: row;
        justify-content: space-around;
    }

    .links {
        width: auto;
        font-size: 2rem;
        gap: 4rem;
        overflow-x: visible;
    }

    /* Hero volta ao original */
    .hero {
        height: 100dvh;
    }

    #main-hero {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
        padding: 0 10em 0 10em;
        height: 100dvh;
    }

    #text {
        width: 50%;
        text-align: left;
        align-items: flex-start;
    }

    #hero-h1 {
        font-size: 5rem;
        max-width: 75%;
    }

    #desc {
        max-width: 75%;
        text-align: justify;
    }

    #btns {
        display: flex;
        justify-content: left;
    }

    #qual {
        width: 50%;
        grid-template-columns: repeat(3, minmax(150px, 1fr));
        gap: 4em;
    }

    .card {
        height: clamp(200px, 50vw, 300px);
    }

    #grid-redes {
        height: 10%;
        margin-top: 0;
        font-size: 4em;
    }

    /* Sobre volta ao original */
    #sobre {
        flex-direction: row;
        height: 100dvh;
        padding: 0 10em;
        justify-content: center;
    }

    #div-sobre {
        text-align: left;
        max-width: 100ch;
        align-items: flex-start;
    }

    #div-sobre h4 {
        font-size: 4rem;
    }

    #div-sobre p {
        font-size: 1.6rem;
    }

    #img-sobre {
        width: 400px;
        border-radius: 16px;
    }

    /* Serviços volta ao original */
    #serv {
        height: 100dvh;
        align-items: center;
        justify-content: center;
        padding: 0 10em;
    }

    #tratamentos {
        grid-template-columns: repeat(3, 320px);
        align-items: center;
        justify-content: center;
        gap: 2em;
    }

    .card-trat {
        height: 372px;
    }

    /* Contato volta ao original */
    #cont {
        flex-direction: row;
        justify-content: space-around;
        padding: 0 10em;
        height: 100dvh;
        align-items: center;
    }

    #cont-div {
        width: auto;
        height: auto;
        flex-direction: column;
    }

    .coluna {
        width: 385px;
    }

    iframe {
        width: 600px;
        height: 450px;
    }

    .card-trat:hover {
        cursor: pointer;
        box-shadow: 2px 1px 10px 0 var(--c2);
    }

    #grid-redes a i:hover {
        cursor: pointer;
    }

    #grid-redes a:hover.instagram {
        color: #E1306C;
    }

    #grid-redes a:hover.whatsapp {
        color: #25D366;
    }

    #grid-redes a:hover.pinterest {
        color: #E60023;
    }

    #grid-redes a:hover.facebook {
        color: #1877F2;
    }
}