:root {
    --bgColor: #d5ccc8;
    --bgDark: #b4a79d;
    --lighterColor: #e7e7e7;
    --textColor: #676767;
    --linesColor: #aeaeae;
    --buttonColor: #d58c6c;
    --darkerColor: #3b3836;
    --quoteColor: #d18d70;
    --citeColor: #a39189;
    --headerHeight: 0px;
    --mobileMenuButtonHeight: 64px;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: var(--textColor);
}

body {
    font-family: Roboto, sans-serif;
    line-height: 1.6;
    background-color: var(--bgColor);
}

a {
    text-decoration: none;
    color: inherit;
}


.busca a,
.sessoes a {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 40px;
}

html {
    scroll-behavior: smooth;
}

/* =========================== MAIN */

.container {
    position: relative;
    max-width: 960px;
    margin: auto;
}

.section {
    padding: 20px 0;
    scroll-margin-top: var(--headerHeight);
}

.nav {
    /* background-color: #444; */
    background: var(--bgColor);
    width: 100%;
    display: flex;
    align-items: center;
    max-width: 960px;
    margin: auto;
    text-transform: uppercase;
}

.nav::before {
    content: "";
    position: absolute;
    left: 0;
    right: calc(50% + 960px / 2);
    height: 10px;
    background:
        linear-gradient(var(--linesColor), var(--linesColor)) top/100% 2px no-repeat,
        linear-gradient(var(--linesColor), var(--linesColor)) bottom/100% 2px no-repeat;

}

.nav::after {
    content: "";
    position: absolute;
    right: 0;
    left: calc(50% + 960px / 2);
    height: 10px;
    background:
        linear-gradient(var(--linesColor), var(--linesColor)) top/100% 2px no-repeat,
        linear-gradient(var(--linesColor), var(--linesColor)) bottom/100% 2px no-repeat;
}

.nav a {
    flex: 1;
    text-align: center;
}

.mob-text p {
    padding-bottom: 8px;
}

.whatsapp-btn {
    display: none;
}


/* =========================== QUOTE */

.quote {
    /* background-color: #00fff283; */
    float: right;
    width: 30%;
    font-size: 1.4rem;
    font-style: italic;
    font-weight: lighter;
    text-align: right;
    color: var(--quoteColor);
    padding-bottom: 20px;
    padding-left: 10px;
}

.quote cite {
    /* background-color: #ff070752; */
    display: block;
    font-size: 1rem;
    color: var(--citeColor);
    font-weight: lighter;
}

ul {
    padding: 0 60px;
}

/* =========================== BUTTON */

.btn {
    background: var(--buttonColor);
    display: inline-block;
    min-width: 380px;
    color: white;
    padding: 8px 16px;
    margin: 10px auto;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.rem;
    cursor: pointer;
    user-select: none;

    -webkit-user-select: none;
    /* Safari */
}

.small-cta {
    /* background-color: chartreuse; */

    border: solid 1px var(--linesColor);
    border-radius: 4px;
    padding: 4px 16px;
    -webkit-user-select: none;
    /* Safari */
    user-select: none;
}

/* =========================== HEADER */

.mobile-header {
    display: none;
}

.header {
    background-color: var(--bgColor);
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 0;
    z-index: 99;
}

.mobile-menu-btn {
    display: none;
}

/* =========================== HERO */

.hero {
    /* background-color: #ce21213b; */
    position: relative;
    height: 576px;
    display: flex;
    align-items: center;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.50)), url(../img/hero-cover.jpg?v=1.002);
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.hero-content {
    /* background-color: #acff4149; */
    margin: auto;
    width: 482px;
    transform: translateX(-56%);
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background:
        linear-gradient(var(--linesColor), var(--linesColor)) top/100% 2px no-repeat,
        linear-gradient(var(--bgColor), var(--bgColor)) top/100% 10px no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background:
        linear-gradient(var(--linesColor), var(--linesColor)) bottom/100% 2px no-repeat,
        linear-gradient(var(--bgColor), var(--bgColor)) bottom/100% 10px no-repeat;
}

.hero-logo {
    padding-bottom: 150px;
}

.hero p {
    font-size: 0.9rem;
    font-weight: 300;
    /* text-transform: uppercase; */
    color: white;
}

.hero .reg {
    font-size: 0.75rem;
    color: var(--lighterColor);
    padding-left: 200px;
}

/* =========================== SOBRE */

.about {
    display: flex;
    gap: 20px;
    text-wrap: balance;
}

.sobre-foto {
    position: relative;
    flex: 2;
}

.sobre-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sobre-foto::after {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 0;
    box-shadow:
        inset 0 0 0 2px var(--linesColor),
        inset 0 0 0 12px var(--bgColor);
}

h1,
h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;

    margin-top: -12px;
    text-transform: uppercase;
    width: 100%;
    font-weight: 400;
}

h1 {
    font-size: 1rem;
    font-weight: normal;
    color: var(--lighterColor);
}

h1::after,
h2::after {
    content: "";
    display: block;
    height: 2px;
    background: var(--linesColor);
    width: 100%;
}

h1::after {
    height: 1px;
}

.sobre-texto {
    flex: 4;
}

.sobre-texto h1::after,
.sobre-texto h2::after {
    width: 120%;
    margin-left: -20%;
}

.small-quote {
    font-style: italic;
    font-weight: 600;
}

.small-quote-sign {
    font-size: 0.9rem;
    font-weight: lighter;
    font-style: italic;
    margin-top: -10px;
}

/* =========================== PSICANALISE */

.psicanalise {
    /* display: flex; */
    flex-direction: column;
}

.psicanalise p {
    /* background-color: rgba(3, 255, 255, 0.384);      */

    text-align: left;
    text-wrap: balance;
}

/* =========================== TERAPIA */

.terapia p {
    text-wrap: balance;
}

.topicos-box {
    border: solid 2px var(--linesColor);
    border-radius: 8px;
    padding: 20px 0;
    margin-top: 20px;
}

.topicos {
    columns: 2;
}

.busca {
    text-wrap: balance;
}

/* =========================== ARTIGOS */

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--lighterColor);
    padding: 20px;
    border-radius: 6px;
    text-align: center;
}

.card h3 {
    padding-bottom: 20px;
    font-size: 2em;
}

.card p {
    font-style: italic;
}


/* =========================== DUVIDAS */

/* #about,
#psicanalise,
#terapia,
#sessoes,
#artigos,
#exterior,
.about,
.psicanalise,
.terapia,
.sessoes
{
    display:  none;
} */

.duvidas a {
    display: block;
    color: var(--lighterColor);
    padding-top: 10px;
    font-weight: bold;
}

.dark {
    position: relative;
    padding-top: 20px;
    padding-bottom: 20px;
    z-index: 1;
}

.dark::after {
    background-color: var(--bgDark);
    content: "";
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    z-index: -1;
}

.dark h2 {
    color: white;
}

.dark h2::after {
    background-color: white;
}

details {
    overflow: hidden;
    margin-top: 10px;
}

details * {
    margin: 0;
    width: 100%;
}

summary {
    font-size: 1rem;
    padding: 0;
    display: flex;
}

summary::-webkit-details-marker {
    display: none;
}

span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 20px;
    background-color: var(--lighterColor);
    border-radius: 8px;

    transition: border-radius 0.1s 0.4s ease;
}

span p {
    padding-top: 5px;
    margin-bottom: -5px;
}

span:hover {
    cursor: pointer;
}

span::after {
    content: "►";
    font-size: 1rem;
    float: right;
    padding-left: 10px;

    transition: rotate 400ms ease;
}

.answer {
    background-color: var(--lighterColor);
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 30px;
    padding-right: 30px;
    border-radius: 0px 0px 8px 8px;
    font-style: italic;
    font-size: 0.95rem;
    text-wrap: balance;

    transition: max-height 0.4s ease,
        padding 0.4s ease;
}

details[open]+.answer {
    padding-top: 0px;
    padding-bottom: 5px;
    max-height: 200px;
}

details[open] span {
    border-radius: 8px 8px 0px 0px;
    transition: border-radius 0s ease;
}

details[open] span::after {
    rotate: 90deg;
}


/* =========================== EXTERIOR */
.exterior {
    text-wrap: balance;
}

.exterior-cover {
    background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.50)), url(../img/exterior-cover.jpg);
    position: relative;
    height: 344px;
    margin-bottom: 20px;
}

.exterior-cover h2 {
    color: var(--lighterColor);
    text-align: right;
    padding: 60px 20px;
}

.exterior-cover h2::after {
    display: none;
}

.exterior-cover::after {
    background-color: var(--bgDark);
    content: "";
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    z-index: -1;
}

.voce {
    text-wrap: balance;
}

.lettering {
    font-size: 2em;
    text-wrap: balance;
    font-weight: lighter;
    font-style: italic;
}

/* =========================== CONTATO */
.contato {
    display: flex;
    gap: 5px;
    flex-direction: column;
    padding-bottom: 20px;
}

.contato a {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 1.3rem;
    padding: 5px 10px;
}

.contato a img {
    height: 1.8rem;
}

/* =========================== FOOTER */

.footer {
    background: var(--darkerColor);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: small;
}

.warning {
    color: rgb(165, 165, 165);
}

/* .article-carosel {
    display: none;
} */

.carousel {
    background-color: var(--bgColor);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.track {
    display: flex;
    gap: 16px;
    padding: 0px 16px 32px;
}

.track::after,
.track::before {
    content: "";
    flex: 0 0 32px;
    display: none;
}

.card {
    background: var(--lighterColor);
    flex: 0 0 32%;
    scroll-snap-align: center;
    border-radius: 6px;
    padding: 40px;
    height: 300px;
    text-align: center;
    text-wrap: balance;
}

.card h3 {
    font-size: 1em;
    font-weight: bold;
    padding: 4px 10px 20px;
}

.card p {
    font-style: italic;
    font-size: 0.9em;
}

/* ================================================================== @ MEDIA */

@media (max-width: 800px) {

    body {
        background-color: #000000;
    }

    h1,
    h2 {
        margin-bottom: 12px;
        font-size: 1rem;
    }

    h1 {
        font-size: 0.9rem;
    }

    .section {
        background-color: var(--bgColor);
        padding: 10px 10px;
        scroll-margin-top: 0;
        text-align: center;
    }

    /* HEADER */
    .header-logo-desktop {
        display: none;
    }

    .header {
        position: fixed;
        display: flex;
        justify-content: right;
        bottom: 0;
        width: 100%;

        top: unset;
        flex-direction: row;
        align-items: unset;
        padding: unset;

        z-index: 99;
    }

    .whatsapp-btn {
        /* background-color: rgba(0, 255, 0, 0.61); */
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        height: var(--mobileMenuButtonHeight);
        width: 50px;
        bottom: 0px;
        left: 0px;
        z-index: 98;
    }

    .whatsapp-btn img {
        width: 80%;
        border-radius: 50%;
    }

    .mobile-menu-btn {
        /* background-color: rgba(39, 248, 255, 0.349); */
        position: fixed;
        font-size: 2rem;
        display: flex;
        right: 20px;
        bottom: 0px;
        z-index: 99;
        width: var(--mobileMenuButtonHeight);
        height: var(--mobileMenuButtonHeight);
        align-items: center;
        justify-content: right;
        cursor: pointer;
    }

    .mobile-menu-btn img {
        /* background-color: aqua; */
        max-width: 60%;
        filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.2));
    }

    .nav {
        position: fixed;
        bottom: 0;
        right: 0;
        width: 100%;
        text-align: right;

        background: var(--lighterColor);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: 14px;

        transform: translateY(100vh);
        padding: 0px 20px var(--mobileMenuButtonHeight);
        max-height: 0px;
        opacity: 0.1;

        transition: 0.4s ease;
    }

    .nav.open {
        transform: translateY(0);
        padding: 14px 20px var(--mobileMenuButtonHeight);
        max-height: 100%;
        opacity: 1;
    }

    .nav a {
        /* background: var(--darkerColor); */
        width: 100%;
        z-index: 1;
        text-align: right;
    }

    .nav a::before {
        content: "";
        position: absolute;
        margin-top: 7px;
        right: 0;
        height: 10px;
        width: 100%;
        background:
            linear-gradient(90deg, var(--linesColor), transparent 60%) top/100% 2px no-repeat,
            linear-gradient(90deg, var(--linesColor), transparent 60%) bottom/100% 2px no-repeat;
    }

    .quote {
        font-size: 1rem;
        font-weight: bold;
        width: 100%;
        padding-left: 15%;
    }

    .quote cite {
        font-size: 0.6rem;
        margin-bottom: 10px;
    }

    /* HERO */
    .hero {
        height: 100svh;
        background-position: 66% 50%;
        /* background-attachment: fixed;         */
        background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.60)), url(../img/hero-cover-mob.jpg?v=1.001);
    }

    .hero-content {
        /* background-color: rgba(153, 205, 50, 0.226); */
        position: absolute;
        display: flex;
        flex-direction: column;
        margin-bottom: unset;
        /* height: calc(100svh - 30px - var(--mobileMenuButtonHeight)); */
        height: 75svh;
        width: 90%;
        left: 5%;
        top: 20px;
        transform: unset;
        text-wrap: balance;
    }

    .hero::after,
    .hero::before {
        content: none;
    }

    .hero-logo {
        /* background-color: #ff21217c; */
        padding-bottom: unset;
        flex: 1;
    }

    .hero-logo img {
        /* background-color: rgba(132, 0, 255, 0.521); */
        width: 55%;
    }

    .title {
        /* background-color: rgba(0, 255, 255, 0.26); */
        display: flex;
        bottom: 0;
    }

    .hero p {
        font-size: 0.8rem;
        font-weight: 400;
    }

    .hero .reg {
        /* font-size: 0.65rem;
        padding: unset; */
        display: none;
    }


    /* BUTTON */
    .btn {
        width: 100%;
        min-width: unset;
        font-size: 0.9rem;
    }

    /* SOBRE */
    .about {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 0px;
    }

    .mob-text {
        font-size: 0.85rem;
        padding: 20px 5px;
        text-wrap: balance;
    }

    .mob-text p {
        padding-bottom: 12px;
    }

    .mob-text ul {
        /* background-color: #dc00f05d; */
        text-align: left;
        columns: 1;
        padding: 0 40px
    }

    .sobre-texto h1::after {
        width: 100%;
        margin-left: 0px;
    }

    .psicanalise p {
        /* background-color: rgba(3, 255, 255, 0.384);     */
        text-wrap: balance;
        text-align: center;
        width: unset;
    }

    /* EXTERIOR */

    .exterior-cover {
        left: -15px;
        width: 100vw;
        background-position-x: 45%;
    }

    /* FAQ */
    summary {
        /* background-color: #ffffff; */

        font-size: 0.92rem;
    }

    span {
        padding: 12px 4px;
        text-wrap: balance;
    }

    .answer {
        font-size: 0.82rem;
    }


    /* CONTATO */
    .contato a {
        justify-content: center;
        font-size: 1.1rem;
        padding: 0x 6px;
    }

    /* ARTIGOS */
    #artigos-desktop {
        display: none;
    }

    .footer {
        padding-bottom: 60px;
        font-size: 0.75rem;
    }

    .article-carosel {
        display: block;
    }

    .carousel {
        background-color: var(--bgColor);
        overflow-x: auto;
        scroll-snap-type: x mandatory;

        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* padding: 0 32px; */
    }

    .carousel::-webkit-scrollbar {
        display: none;
    }

    .track {
        display: flex;
        gap: 16px;
        padding: 0px 16px 32px;
    }

    .track::after,
    .track::before {
        content: "";
        flex: 0 0 32px;
        display: block;
    }

    .card {
        background: var(--lighterColor);

        flex: 0 0 85%;
        scroll-snap-align: center;
        border-radius: 6px;
        padding: 30px;
        height: 85vw;
        text-align: center;
        text-wrap: balance;
    }

    .card h3 {
        font-size: 1.2rem;
        font-weight: bold;
        padding: 0px 2px 15px;
    }

    .card p {
        font-style: italic;
        font-size: 1rem;
    }

    #artigos.section {
        padding: 10px 0;
    }
}