:root {
    --container-max-width: 1900px;
    --container-padding-inline: 20px;
    --container-padding-inline-desktop: 63px;
    --section-padding-block: 40px;
    --section-padding-block-desktop: 60px;
    --grid-gap: 24px;
    --grid-gap-tablet: 32px;
    --grid-gap-desktop: 45px;
    --card-radius: 25px;
    --card-min-height: 420px;
    --card-min-height-desktop: 40vw;
    --avatar-size: 56px;
    --avatar-size-desktop: 5vw;
    --nav-size: 42px;
    --nav-size-desktop: 2.5vw;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Hanken Grotesk', sans-serif;
}

body {
    color: #000;
    background-color: #fff;
    margin-top: 0;
    padding-top: 0;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 2.04vw;
    font-weight: 400;
    line-height: 140%;
}

a {
    text-decoration: none;
}

img {
    vertical-align: middle;
    max-width: 100%;
    display: inline-block;
}

.container {
    padding-left: 4.16667vw;
    padding-right: 4.16667vw;
}

/* HERO */
.hero {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-family: 'Hanken Grotesk', 'Arial', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 2em;
    line-height: 140%;
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 5em;
    }
}

.sobre.section-padding {
    padding-top: 4.16667vw;
}

.sobre-container {
    position: relative;
    border-radius: 30px;
    max-height: 80vh;
    align-items: center;
    overflow: hidden;
}

/* IMAGEM */
.sobre-img {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    display: block;
}

/* OVERLAY */
.sobre-overlay {
    backdrop-filter: blur(20px);
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: .3em;
    padding: .75em .75em .75em;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

/* TEXTO */
.sobre-overlay p {
    font-family: 'Hanken Grotesk', 'Arial', sans-serif;
    font-style: normal;
    font-weight: 500;
    color: #ddd;
    line-height: 120%;
    font-size: 0.6em;
}

@media (max-width: 768px) {
    .sobre {
        padding: 20px;
    }

    .sobre-img {
        height: auto;
    }

    .sobre-overlay {
        padding: 20px;
    }

    .sobre-overlay p {
        font-size: 14px;
    }

    .sobre-overlay {
        backdrop-filter: blur(20px);
        color: #fff;
        background: #86895D;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: .3em;
        padding: 2em 2em 2em;
        position: relative;
        left: 0;
        right: 0;
        bottom: 0;
    }

}

/* Novo: Responsividade para section-padding */
@media (max-width: 768px) {
    .section-padding {
        padding-left: 10px;
        padding-right: 10px;
    }
}

.page-container,
.section-wrapper {
    max-width: 1200px;
    margin: auto;
}

.valores.section-padding {
    padding-top: 4.16667vw;
    padding-bottom: 4.16667vw;
}

.valores-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(16px, 2vw, 30px);
}

/* CARD PEQUENO */
.valores-container>* {
    width: 100%;
    max-width: 560px;
    /* limite original */
    aspect-ratio: 560.33 / 525.05;
    /* mantém proporção */
}

/* CARD GRANDE */
.valores-container-grande>* {
    width: 100%;
    max-width: 1768px;
    aspect-ratio: 1768 / 525;
}

.valores-container-grande {
    display: grid;
    grid-template-columns: 1fr;
    padding-top: 4.16667vw;
}

/* CARD */
.valor-card {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #000;
}

.valor-card img {
    width: 100%;
    flex: 1 1 auto;
    min-height: 220px;
    object-fit: cover;
}

.valor-overlay {
    position: relative;
    display: block;
    width: 100%;
    padding: 22px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
}

.valor-overlay h3 {
    margin-bottom: 10px;
}

.valor-overlay p {
    margin: 0;
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* CARD GRANDE */
.valor-card.grande {
    grid-column: span 1;

}

/*==========================
        DIFERENCIAIS
 ==========================*/
.card-info-section {
    padding-top: 4.16667vw;
}

.section-wrapper {
    width: 100%;
    max-width: 1820px;
    margin: 0 auto;
}

.card-info {
    position: relative;
    width: 100%;
    height: 620px;
    overflow: hidden;
    border-radius: 42px;
}

.card-info img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================
   CONTENT BOX
========================= */

.card-content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48%;
    padding: 55px 60px;
    overflow: hidden;
    background: rgba(71, 71, 71, 0.38);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    z-index: 2;
}

/* CARD 01 */
.card-left .card-content {
    left: 0px;
    border-radius: 0px 34px 34px 0px;
}

.card-right {
    margin-top: 4.16667vw;
}

/* CARD 02 */
.card-right .card-content {
    right: 0px;
    border-radius: 34px 0px 0px 34px;
}

/* =========================
   TYPOGRAPHY
========================= */

.card-content h3 {
    font-size: 3.2rem;
    line-height: 1.1;
    font-weight: 600;
    color: #fff;
    margin-bottom: 28px;
    letter-spacing: -1.5px;
}

.card-content p {
    font-size: 1.18rem;
    line-height: 140%;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.94);
    max-width: 95%;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

    .card-info img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }

    .card-content h3 {
        font-size: 1.5rem;
        margin-bottom: .1em;
    }

    .card-content p {
        max-width: 100%;
        font-size: .95rem;
        line-height: 23px;
        font-style: normal;
        font-weight: 500;
    }

    .card-info-section {
        padding: 60px 0;
    }

    .card-info {
        position: relative;
        border-radius: 30px;
        height: auto;
        align-items: center;
        overflow: hidden;
    }

    .card-left .card-content,
    .card-right .card-content {
        backdrop-filter: blur(20px);
        color: #fff;
        background: #86895D;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: .3em;
        padding: 2em 2em 2em;
        position: relative;
        width: 100%;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transform: translateY(0%);
        border-radius: 0px;
    }

}

/* =========================
   RESPONSIVE - END
========================= */

/* Media queries para refinamento */
@media (min-width: 768px) {
    .diferenciais {
        padding: 80px 0;
    }

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

}

@media (min-width: 1024px) {
    .valores-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .card-info-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media (min-width: 1440px) {

    .card-info-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* IMAGEM */
.valor-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* OVERLAY */
.valor-overlay {
    backdrop-filter: blur(20px);
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: .2em;
    padding: .75em .75em .75em;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

/* TEXTO */
.valor-overlay h3 {
    color: #fff;
    margin-bottom: 6px;
    font-size: .7em;
    font-weight: 600;
    line-height: 100%;
}

.valor-overlay p {
    color: #ddd;
    line-height: 120%;
    max-width: 94.5em;
    font-size: .5em;
}

.diferenciais {
    padding-top: 4.16667vw;
}

.diferenciais h2 {
    font-size: 1.64em;
    margin-bottom: 1em;
}

/* GRID */
.topo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

/* LISTA */
.lista h2 {
    font-size: 1.3em;
    margin-bottom: 25px;
}

.lista ul {
    list-style: none;
    padding: 0;
}

/* ITEM */
.item {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    cursor: pointer;
    transition: 0.3s;
}

/* TOPO DO ITEM */
.titulo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .7em;
}

/* SETA */
.titulo span {
    transition: 0.3s;
}

/* HOVER */
.item:hover .titulo span {
    transform: translateX(5px);
}

/* CONTEÚDO (ACCORDION) */
.conteudo {
    max-height: 0;
    overflow: hidden;
    font-size: .5em;
    color: #555;
    transition: all 0.4s ease;
    margin-top: 0;
    line-height: 1.5;
}

/* ATIVO */
.item.active {
    padding-bottom: 15px;
}

.item.active .conteudo {
    max-height: 120px;
    margin-top: 10px;
}

.item.active .titulo span {
    transform: rotate(90deg);
}

.item.active .titulo {
    font-weight: 600;
}

/* IMAGEM */
.imagem {
    width: 100%;
}

.imagem img {
    width: 100%;
    height: 380px;
    /* mais proporcional */
    object-fit: cover;
    border-radius: 20px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ANIMAÇÃO SUAVE */
.imagem img.fade {
    opacity: 0.3;
    transform: scale(0.98);
}

/* CARDS */
/* Regras de .card-info foram definidas acima em card-info-section para min-height e responsividade */

/* OVERLAY */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    padding: 20px;

    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(30px);
    color: #fff;
}

.overlay h3 {
    margin-bottom: 10px;
}

.overlay p {
    font-size: 13px;
    line-height: 1.4;
}

/* RESPONSIVO */
@media (max-width: 1200px) {
    .valores-container {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 768px) {

    .valores {
        padding: 60px 0 90px;
    }

    /* remove layout desktop */
    .valores-container,
    .valores-container-grande {
        display: contents;
    }

    /* cria slider único */
    .valores {
        display: flex;
        gap: 18px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 22px;
        padding-left: 10px;
        padding-right: 10px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .valores::-webkit-scrollbar {
        display: none;
    }

    .valor-card,
    .valor-card.grande {
        flex: 0 0 95%;
        width: 95%;
        height: 40em;
        border-radius: 25px;
        overflow: hidden;
        position: relative;

    }

    .valor-overlay {
        padding: 28px 24px;

        background:
            linear-gradient(180deg,
                rgba(0, 0, 0, 0) 0%,
                rgba(0, 0, 0, .28) 25%,
                rgba(0, 0, 0, .68) 100%);

        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .valor-overlay h3 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .valor-overlay p {
        font-size: 16px;
        line-height: 1.5;
    }

    /* =========================================
   DOTS
========================================= */


    .valores-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin-top: 28px;
    }

    .valores-dots span {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #ccc;
        transition: .3s ease;
        cursor: pointer;
    }

    .valores-dots span.active {
        background: #7a7a52;
        transform: scale(1.2);
    }


    .card-info-section {
        grid-template-columns: 1fr;
    }

    .card-info-section {
        padding: 60px 10px;
    }

    .topo {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .imagem img {
        height: 250px;
    }

    .overlay {
        width: 90%;
    }

    .conteudo {
        max-height: 0;
        overflow: hidden;
        font-size: 1.5em;
        color: #555;
        transition: all 0.4s ease;
        margin-top: 0;
        line-height: 1.5;
    }

    .card {
        min-width: 220px;
        height: 320px;
    }

    .card img {
        transform: none !important;
    }

    .extra {
        opacity: 1;
        transform: none;
    }

    .valor-overlay {
        padding: 1.75em 1.75em 1.75em;
    }

    .valor-overlay h3 {
        font-size: 1.7em;
    }

    .valor-overlay p {
        max-width: 94.5em;
        font-size: 1.4em;
    }

    .lista h2 {
        font-size: 2.3em;
        margin-bottom: 25px;
    }

    .titulo {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 1.7em;
    }

    .diferenciais h2 {
        font-size: 4em;
        margin-bottom: 1em;
        line-height: 100%;
        text-align: center;
    }

    .imagem {
        width: 100%;
        order: 1;
    }

    .diferenciais .lista {
        order: 2;
    }
}



/* =========================
   SECTION CORRETORES HOME
========================= */

/* RESET / BASE */
.corretores {
    padding-top: 4.16667vw;
    padding-bottom: 4.16667vw;
}

.corretores h2 {
    font-size: 1.64em;
    margin-bottom: 1em;
}

/* =========================
   WRAPPER
========================= */
.carousel-wrapper {
    position: relative;
}

/* =========================
   CAROUSEL
========================= */
#carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* esconder scrollbar */
#carousel::-webkit-scrollbar {
    display: none;
}

/* =========================
   CARD (BASE)
========================= */
.card {
    flex: 0 0 calc((100% - 40px) / 3);
    /* 3 cards desktop */
    max-width: 100%;
    height: 580px;

    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;

    scroll-snap-align: start;
    transition: 0.4s ease;
}

/* =========================
   IMAGE
========================= */
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

/* =========================
   OVERLAY
========================= */
.corretores .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 170px;

    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);

    display: flex;
    align-items: flex-end;
    padding: 20px;
    transition: 0.4s ease;
}

/* =========================
   CONTENT
========================= */
.card-content-corretores {
    position: absolute;
    bottom: 1.5em;
    left: .8em;
    color: #fff;
    z-index: 2;
    line-height: 84%;
}

.card-content-corretores h3 {
    margin: 0;
    font-style: normal;
    font-weight: 600;
    font-size: .8em;
    line-height: 140%;
}

.card-content-corretores p {
    font-style: normal;
    font-weight: 400;
    font-size: .5em;
    line-height: 130%;
    color: #FFFFFF;
}

/* EXTRA (expandido) */
.extra {
    opacity: 0;
    max-height: 0;
    transition: 0.4s;
    overflow: hidden;
}

.card.active .card-overlay {
    height: 100%;
    justify-content: flex-start;
}

/* =========================
   EXTRA (hidden default)
========================= */
.extra {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(10px);
    transition: 0.4s ease;
}

/* =========================
   SOCIAL
========================= */
.social {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.social i {
    font-size: 1em;
    color: #fff;
}

/* =========================
   BUTTON
========================= */
.corretores .btn {
    background: transparent;
    border: 1px solid #fff;
    padding: 10px 15px;
    border-radius: 25px;
    color: #fff;
    font-size: .6em;
    cursor: pointer;
    justify-self: center;
    line-height: 3em;
}

/* =========================
   ACTIVE CARD
========================= */
.card.active .card-img {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.card.active .card-overlay {
    align-items: flex-start;
}

.card.active .extra {
    opacity: 1;
    max-height: max-content;
}

/* =========================
   NAV BUTTONS
========================= */
.nav {
    position: absolute;
    top: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-50%);
    width: 3.5em;
    height: 3.5em;
    border-radius: 50%;
    border: none;
    background: #eee;
    cursor: pointer;
    z-index: 10;
}

.prev {
    left: -24px;
}

.next {
    right: -24px;
}

.nav i {
    font-size: 1em;
}

/* =========================
   DOTS
========================= */
.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dots span {
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
}

.dots span.active {
    background: #7a7a52;
    width: 10px;
    height: 10px;
}

/* =========================
   RESPONSIVO
========================= */

/* Tablet */
@media (max-width: 900px) {
    .card {
        flex: 0 0 calc((100% - 20px) / 2);
        /* 2 cards */
    }

    .nav {
        width: 50px;
        height: 50px;
    }

    .prev {
        left: 5px;
    }

    .next {
        right: 5px;
    }

    .nav i {
        font-size: 2em;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .card {
        flex: 0 0 100%;
        /* 1 card */
    }

    .card-content-corretores {

        bottom: 2em;
        left: 0;
        line-height: 3.5em;
        padding: 3em;
    }

    .card-content-corretores h3 {
        margin: 0;
        font-style: normal;
        font-weight: 600;
        font-size: 3.5em;
        line-height: 140%;
    }

    .card-content-corretores p {
        font-style: normal;
        font-weight: 400;
        font-size: 2em;
        line-height: 130%;
        color: #FFFFFF;
    }

    .extra .social i {
        font-size: 5em;
        color: #fff;
    }

    .corretores .btn {
        background: transparent;
        border: 1px solid #fff;
        padding: 10px 15px;
        border-radius: 25px;
        color: #fff;
        font-size: 2.5em;
        cursor: pointer;
        justify-self: center;
        line-height: 3.5em;
    }

    .next,
    .prev {
        display: none;
    }

    .corretores h2 {
        font-size: 3.64em;
        margin-bottom: 1em;
    }
}