/* =========================================
   LP Dr. Eduardo Rauen
   Borda dos cards: #b29b8d · seções creme: #f7ede8
========================================= */

/* ---- Componentes compartilhados ---- */
.dr-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradiente-badge);
    border: 1px solid var(--borda-badge);
    border-radius: 29px;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 0.3px;
    line-height: 1.4;
    color: var(--cor-secundaria);
    white-space: nowrap;
}

.dr-tag img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.dr-tag--plain {
    white-space: nowrap;
}

.dr-seal {
    width: 128px;
    height: 128px;
}

.dr-actions {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.dr-actions--center {
    justify-content: center;
}

/* Botão fantasma (texto + seta dourada) */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.4px;
    color: var(--cor-secundaria);
    transition: gap 0.25s ease, color 0.2s ease;
    text-decoration: underline;
}

.btn-ghost:hover {
    color: var(--cor-primaria-escura);
    gap: 14px;
}

.btn-ghost img {
    width: 24px;
    height: 24px;
}

/* =========================================
   Banner
========================================= */
.dr-banner {
    position: relative;
    overflow: hidden;
    min-height: 803px;
    background-color: #f7ede8;
    display: flex;
    align-items: stretch;
}

.dr-banner__watermark {
    position: absolute;
    top: 50%;
    right: -4%;
    transform: translateY(-50%);
    width: 46%;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

.dr-banner__watermark img {
    width: 100%;
    height: auto;
    /* logo-mark.svg não tem dimensão intrínseca: fixa a proporção do R. */
    aspect-ratio: 40 / 43.6;
}

/* Desvanece a base do banner para o branco da próxima seção. */
.dr-banner::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 121px;
    background: linear-gradient(to top, var(--cor-branca), rgba(252, 249, 248, 0));
    pointer-events: none;
    z-index: 1;
}

.dr-banner__brand {
    position: absolute;
    top: 40px;
    left: max(24px, calc(50% - 653px));
    /* Absoluto + imagens com max-width:100% global geram largura circular que
       colapsa o lockup; max-content quebra essa dependência. */
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
}

.dr-banner__brand-mark {
    width: 43px;
    height: 47px;
}

.dr-banner__brand-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* SVGs sem dimensão intrínseca: largura + altura explícitas (como no header). */
.dr-banner__brand-text img {
    width: 150px;
}

.dr-banner__brand-text img:first-child {
    height: 12px;
}

.dr-banner__brand-text img:last-child {
    height: 8.5px;
}

.dr-banner__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1306px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.dr-banner__text {
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: 600px;
    padding: 160px 0 60px;
}

.dr-banner__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 52px;
    line-height: 1.1;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.dr-banner__title-role {
    color: var(--cor-secundaria);
}

.dr-banner__divider {
    display: block;
    width: 597px;
    max-width: 100%;
    height: 1px;
    background: rgba(107, 59, 32, 0.25);
}

.dr-banner__subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 24px;
    line-height: 1.4;
    color: var(--cor-secundaria);
    max-width: 564px;
}

.dr-banner__figure {
    position: relative;
    align-self: flex-end;
    flex-shrink: 0;
}

.dr-banner__photo {
    display: block;
    height: 760px;
    width: auto;
    max-width: 100%;
}

.dr-banner__tag {
    position: absolute;
    z-index: 4;
}

.dr-banner__tag--1 {
    top: 46%;
    left: -40px;
}

.dr-banner__tag--2 {
    top: 64%;
    right: -30px;
}

/* =========================================
   Introdução / bio
========================================= */
.dr-intro {
    max-width: 1155px;
    margin: 100px auto 0;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 42px;
}

.dr-intro__figure {
    position: relative;
    flex: 0 0 auto;
}

.dr-intro__photo {
    display: block;
    width: 449px;
    max-width: 100%;
    height: auto;
    border-radius: 1.25rem;
}

.dr-intro__seal {
    position: absolute;
    left: -24px;
    bottom: 40px;
}

.dr-intro__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.dr-intro__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 37px;
    line-height: 1.2;
}

.dr-intro__desc {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 20px;
    line-height: 1.4;
    color: var(--cor-secundaria);
}

.dr-intro__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* =========================================
   Credibilidade
========================================= */
.dr-credibility {
    max-width: 1199px;
    margin: 80px auto 0;
    padding: 0 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.dr-credibility__group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    flex: 1 1 auto;
}

.dr-credibility__label {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 19px;
    letter-spacing: 0.38px;
    color: var(--cor-primaria);
    text-align: center;
}

.dr-credibility__logos {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    justify-content: center;
}

.dr-credibility__logos img {
    height: 38px;
    width: auto;
    /* Sem encolher: senão o flex esmaga a largura mantendo a altura (distorce). */
    flex-shrink: 0;
}

.dr-credibility__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: max-content;
}

.dr-credibility__brand-mark {
    width: 47px;
    height: 52px;
}

.dr-credibility__brand-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dr-credibility__brand-text img {
    width: 165px;
}

.dr-credibility__brand-text img:first-child {
    height: 13px;
}

.dr-credibility__brand-text img:last-child {
    height: 9.5px;
}

/* =========================================
   Constância
========================================= */
.dr-constancia {
    max-width: 996px;
    margin: 100px auto 0;
    padding: 0 24px;
}

.dr-constancia__grid {
    display: flex;
    align-items: stretch;
    gap: 28px;
}

.dr-constancia__lemma {
    position: relative;
    flex: 1 1 0;
    min-height: 640px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0px 0px 60px rgba(58, 49, 45, 0.02);
    display: flex;
    align-items: flex-end;
}

.dr-constancia__lemma-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dr-constancia__lemma::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(22, 14, 9, 0) 40%, #160e09 100%);
}

.dr-constancia__lemma-text {
    position: relative;
    z-index: 1;
    padding: 30px;
    color: var(--cor-branca);
}

.dr-constancia__lemma-eyebrow {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.3;
}

.dr-constancia__lemma-word {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 50px;
    line-height: 1.3;
    text-transform: uppercase;
}

.dr-constancia__cards {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.dr-value-card {
    position: relative;
    flex: 1 1 0;
    background-color: var(--cinza);
    border: 1px solid #b29b8d;
    border-radius: 20px;
    box-shadow: 0px 0px 60px rgba(58, 49, 45, 0.02);
    padding: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.dr-value-card__watermark {
    position: absolute;
    left: -16px;
    bottom: -30px;
    font-family: var(--font-decorative);
    font-style: italic;
    font-weight: 500;
    font-size: 128px;
    line-height: 1;
    color: rgba(201, 146, 14, 0.12);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.dr-value-card__icon {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(-45deg, rgba(255, 245, 241, 0.5), rgba(245, 225, 213, 0.5));
    backdrop-filter: blur(4px);
}

.dr-value-card__icon img {
    width: 43px;
    height: 43px;
}

.dr-value-card__title {
    position: relative;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 44px;
    line-height: 1.3;
}

.dr-value-card--wide {
    margin-top: 28px;
    align-items: center;
    text-align: center;
}

.dr-value-card--wide .dr-value-card__title {
    font-size: 48px;
}

.dr-constancia__desc {
    margin: 40px auto 0;
    max-width: 821px;
    text-align: center;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 20px;
    line-height: 1.4;
    color: var(--cor-secundaria);
}

/* =========================================
   Palestras e Projetos
========================================= */
.dr-talks {
    margin-top: 100px;
    background-color: #f7ede8;
    border-top: 1px solid #b29b8d;
    border-bottom: 1px solid #b29b8d;
    padding: 100px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.dr-talks__content {
    max-width: 589px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.dr-talks__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 47px;
    line-height: 1.1;
}

.dr-talks__desc {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 20px;
    line-height: 1.4;
    color: var(--cor-secundaria);
}

.dr-talks__grid {
    max-width: 590px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dr-project-card {
    background-color: var(--cor-branca);
    border: 1px solid #f7ede8;
    border-radius: 16px;
    box-shadow: 0px 0px 30px rgba(58, 49, 45, 0.02);
    padding: 20px;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
}

.dr-project-card__icon {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(-45deg, rgba(255, 245, 241, 0.55), rgba(245, 225, 213, 0.55));
    backdrop-filter: blur(4px);
}

.dr-project-card__icon img {
    width: 43px;
    height: 43px;
}

.dr-project-card__label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 18px;
    line-height: 1.2;
    color: var(--cor-secundaria);
}

/* =========================================
   Formação e atuação clínica
========================================= */
.dr-education {
    max-width: 1199px;
    margin: 100px auto 0;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 4.5rem;
}

.dr-education__content {
    flex: 1 1 657px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.dr-education__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 48px;
    line-height: 1.3;
}

.dr-education__text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 20px;
    line-height: 1.4;
    color: var(--cor-secundaria);
}

.dr-education__text strong {
    font-weight: 500;
}

.dr-education__crms {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.dr-education__figure {
    position: relative;
    flex: 0 0 auto;
}

.dr-education__photo {
    display: block;
    width: 458px;
    max-width: 100%;
    height: auto;
    border-radius: 1.25rem;
}

.dr-education__seal {
    position: absolute;
    left: 24px;
    top: 24px;
}

/* =========================================
   CTA final + rodapé
========================================= */
.dr-cta {
    position: relative;
    margin-top: 100px;
    background-color: #f7ede8;
    border-top: 1px solid #b29b8d;
    overflow: hidden;
}

.dr-cta__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 24px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.dr-cta__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.dr-cta__brand-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.dr-cta__brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-align: left;
}

.dr-cta__brand-name {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.4;
    color: var(--cor-secundaria);
}

.dr-cta__brand-handle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.4;
    color: var(--cor-secundaria);
}

.dr-cta__brand-handle img {
    width: 18px;
    height: 18px;
}

.dr-cta__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 48px;
    line-height: 1.3;
    margin-top: 8px;
}

.dr-cta__desc {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 24px;
    line-height: 1.4;
    color: var(--cor-secundaria);
    max-width: 779px;
}

.dr-cta__copy {
    background: #FFF;
    margin: 0;
    padding: 32px 24px;
    border-top: 1px solid #b29b8d;
    text-align: center;
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.4;
    color: var(--cor-secundaria);
}

/* =========================================
   Responsivo
========================================= */
@media (max-width: 1199px) {
    .dr-banner__photo {
        height: 620px;
    }

    .dr-banner__title {
        font-size: 44px;
    }

    .dr-intro,
    .dr-education {
        flex-direction: column;
        gap: 40px;
    }

    .dr-intro__figure,
    .dr-education__figure {
        order: -1;
    }

    .dr-talks {
        flex-direction: column;
    }

    .dr-talks__content,
    .dr-talks__grid {
        max-width: 620px;
    }
}

@media (max-width: 991px) {
    .dr-banner {
        min-height: 914px;
        border-top: 1px solid #b29b8d;
        border-bottom: 1px solid #b29b8d;
        align-items: flex-start;
        background-color: #f7ede8;
    }

    .dr-banner::after {
        height: 252px;
        background: linear-gradient(to top, #f7ede8 0%, rgba(247, 237, 232, 0) 100%);
        z-index: 1;
    }

    .dr-banner__watermark {
        top: 80px;
        left: 50%;
        right: auto;
        width: 420px;
        max-width: 112vw;
        transform: translateX(-50%);
        opacity: 0.08;
    }

    .dr-banner__brand {
        top: 32px;
        left: 50%;
        transform: translateX(-50%);
        gap: 8px;
    }

    .dr-banner__brand-mark {
        width: 34px;
        height: 37px;
    }

    .dr-banner__brand-text {
        gap: 5px;
    }

    .dr-banner__brand-text img {
        width: 116px;
    }

    .dr-banner__brand-text img:first-child {
        height: 9px;
    }

    .dr-banner__brand-text img:last-child {
        height: 6.5px;
    }

    .dr-banner__inner {
        min-height: 914px;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        gap: 0;
        padding: 0 20px;
    }

    .dr-banner__text {
        order: 2;
        align-items: center;
        max-width: 403px;
        width: 100%;
        padding: 0;
        gap: 20px;
        margin-top: -88px;
        z-index: 3;
    }

    .dr-banner__figure {
        order: 1;
        align-self: center;
        margin-top: 102px;
        z-index: 2;
    }

    .dr-banner__photo {
        height: auto;
        width: 363px;
        max-width: calc(100vw - 40px);
        filter: drop-shadow(0 0 30px rgba(58, 49, 45, 0.15));
    }

    .dr-banner__title {
        font-size: 32px;
        line-height: 1.1;
        width: 100%;
    }

    .dr-banner__divider {
        margin: 0 auto;
        width: 363px;
        max-width: 100%;
        background: rgba(107, 59, 32, 0.25);
    }

    .dr-banner__subtitle {
        max-width: 363px;
        font-size: 20px;
        line-height: 1.4;
    }

    .dr-banner .btn-gradient {
        min-height: 68px;
        padding: 20px 38px;
        font-size: 20px;
    }

    .dr-banner__tag {
        padding: 7px 14px;
        font-size: 8px;
        letter-spacing: 0.16px;
        gap: 5px;
    }

    .dr-banner__tag img {
        width: 11px;
        height: 11px;
    }

    .dr-banner__tag--1 {
        top: 54%;
        right: -14px;
        left: auto;
    }

    .dr-banner__tag--2 {
        top: 34%;
        right: auto;
        left: -14px;
    }

    .dr-intro__title,
    .dr-talks__title,
    .dr-education__title,
    .dr-value-card--wide .dr-value-card__title,
    .dr-cta__title {
        font-size: 34px;
    }

    .dr-constancia__grid {
        flex-direction: column;
    }

    .dr-constancia__lemma {
        min-height: 460px;
    }

    .dr-intro,
    .dr-constancia,
    .dr-education {
        margin-top: 50px;
        padding-inline: 20px;
    }

    .dr-intro {
        gap: 20px;
        text-align: center;
    }

    .dr-intro__figure,
    .dr-education__figure {
        width: 100%;
        max-width: 363px;
    }

    .dr-intro__figure {
        height: 464px;
        overflow: hidden;
        border-radius: 17px;
    }

    .dr-intro__photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        border-radius: 17px;
    }

    .dr-intro__seal {
        left: 0;
        top: 0;
        bottom: auto;
        width: 109px;
        height: 109px;
    }

    .dr-intro__content,
    .dr-education__content,
    .dr-talks__content {
        align-items: center;
        width: 100%;
        text-align: center;
        gap: 20px;
    }

    .dr-intro__title,
    .dr-talks__title,
    .dr-education__title,
    .dr-cta__title {
        font-size: 32px;
        line-height: 1.2;
    }

    .dr-intro__desc,
    .dr-talks__desc,
    .dr-education__text,
    .dr-constancia__desc {
        font-size: 20px;
        line-height: 1.4;
        text-align: center;
    }

    .dr-actions {
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        width: 100%;
    }

    .dr-actions .btn-gradient {
        min-height: 68px;
        padding: 20px 32px;
        font-size: 20px;
    }

    .btn-ghost {
        min-height: 68px;
        font-size: 20px;
        text-decoration: none;
    }

    .dr-intro__tags,
    .dr-education__crms {
        justify-content: center;
        gap: 12px;
    }

    .dr-credibility {
        margin-top: 50px;
        padding-inline: 20px;
        gap: 32px;
    }

    .dr-credibility__group {
        gap: 20px;
        width: 100%;
        flex-basis: 100%;
    }

    .dr-constancia__lemma {
        min-height: 455px;
        border-radius: 16px;
    }

    .dr-constancia__lemma-text {
        width: 100%;
        padding: 24px;
        text-align: center;
    }

    .dr-constancia__lemma-eyebrow {
        font-size: 28px;
    }

    .dr-constancia__lemma-word {
        font-size: 44px;
    }

    .dr-value-card {
        min-height: 170px;
        padding: 20px;
        align-items: center;
        text-align: center;
        border-radius: 16px;
    }

    .dr-value-card__watermark {
        font-size: 72px;
        left: -10px;
        bottom: -18px;
    }

    .dr-value-card__title {
        font-size: 28px;
        line-height: 1.15;
    }

    .dr-value-card--wide {
        margin-top: 16px;
    }

    .dr-value-card--wide .dr-value-card__title {
        font-size: 32px;
    }

    .dr-constancia__desc {
        margin-top: 24px;
    }

    .dr-talks {
        margin-top: 50px;
        padding: 40px 20px;
        align-items: center;
        gap: 20px;
        overflow: hidden;
    }

    .dr-talks__grid {
        display: flex;
        max-width: none;
        width: calc(100% + 40px);
        margin-inline: -20px;
        padding: 0 20px 4px;
        gap: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .dr-talks__grid::-webkit-scrollbar {
        display: none;
    }

    .dr-project-card {
        width: 285px;
        min-width: 285px;
        scroll-snap-align: center;
    }

    .dr-education {
        gap: 20px;
    }

    .dr-education__figure {
        order: -1;
    }

    .dr-education__photo {
        width: 100%;
    }

    .dr-education__seal {
        top: 20px;
        left: 20px;
        width: 102px;
        height: 102px;
    }

    .dr-cta {
        margin-top: 50px;
    }

    .dr-cta__inner {
        padding: 60px 20px;
        gap: 20px;
    }

    .dr-cta__title {
        margin-top: 0;
    }

    .dr-cta__desc {
        font-size: 20px;
        max-width: 100%;
    }

    .dr-cta__desc strong {
        font-size: 24px;
        font-weight: 500;
    }

    .dr-cta__copy {
        padding: 20px;
        font-size: 16px;
        letter-spacing: 0.64px;
        text-align: center;
    }
}

@media (min-width: 576px) {
    .dr-constancia__cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 992px) {
    .dr-constancia__cards {
        grid-template-columns: 1fr;
    }
}