/* =========================================
   Hero
========================================= */
.hero {
    position: relative;
    height: 950px;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Banner em vídeo: desktop por padrão, mobile abaixo de 768px */
.hero__media--mobile {
    display: none;
}

@media (max-width: 767px) {
    .hero__media--desktop {
        display: none;
    }

    .hero__media--mobile {
        display: block;
    }
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(16deg,
            rgba(10, 6, 1, 0.3) 16%,
            rgba(10, 6, 1, 0.5) 43%,
            rgba(10, 6, 1, 0.7) 70%,
            rgba(10, 6, 1, 0.8) 97%);
}

.hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 860px;
    padding: 0 24px;
    text-align: center;
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 62px;
    line-height: 1.3;
    color: var(--cor-branca);
}

.hero__divider {
    width: 100%;
    max-width: 600px;
    height: 1px;
    background-color: rgba(252, 249, 248, 0.4);
}

.hero__subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 24px;
    line-height: 1.4;
    color: #f9faf9;
    max-width: 600px;
}

@media (max-width: 991px) {
    .hero {
        height: min(100vh, 800px);
    }

    .hero__title {
        font-size: 38px;
    }

    .hero__subtitle {
        font-size: 18px;
    }
}

/* Abaixo de 767px a hero passa a seguir a proporção do design mobile
   (banner mais baixo, sem depender de 100vh) em vez da altura do desktop/tablet. */
@media (max-width: 767px) {
    .hero {
        height: auto;
        max-height: none;
        aspect-ratio: 402 / 440;
    }

    .hero__title {
        font-size: 32px;
    }

    .hero__subtitle {
        font-size: 20px;
    }
}

/* =========================================
   Clínica Rauen + carrossel de especialistas
========================================= */
.clinic-intro {
    padding: 80px 24px 0;
    text-align: center;

    .badge-pill {
        margin-bottom: 24px;
    }

    .clinic-intro__title {
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 48px;
        line-height: 1.3;
        max-width: 786px;
        width: 100%;
        margin: 0 auto;
    }

    .clinic-intro__subtitle {
        font-family: var(--font-body);
        font-weight: 300;
        font-size: 20px;
        line-height: 1.4;
        max-width: 786px;
        width: 100%;
        margin: 16px auto 0;
    }

    .clinic-intro__divider {
        display: block;
        width: 100%;
        max-width: 1012px;
        height: 1px;
        background-color: var(--borda-tan);
        margin: 40px auto;
    }

    .specialists {
        max-width: 1200px;
        margin: 0 auto;
        /* padding-top reserva o espaço para o médico "estourar" acima da moldura
       (o recorte sobe além do topo do card); o .swiper tem overflow:hidden,
       então sem essa folga a cabeça seria cortada. */
        padding: 40px 24px 57px;

        .specialist-card {
            position: relative;
            height: auto;
        }

        .specialist-card__photo {
            position: relative;
            height: 470px;
            border-radius: 20px;
            overflow: hidden;
            background-color: var(--cinza);
            border: 1px solid #eee3dc;
            box-shadow: var(--sombra-card);
        }

        .specialist-card__blur {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: blur(30px);
            opacity: 0.15;
        }

        .specialist-card__img {
            position: absolute;
            left: 50%;
            bottom: 0;
            transform: translateX(-50%);
            width: 112%;
            max-width: none;
            height: 130%;
            object-fit: contain;
            object-position: bottom center;
            z-index: 2;
            pointer-events: none;
        }

        .specialist-card__deco {
            position: absolute;
            top: -11% !important;
            inset: 0;
            max-width: 140%;
            width: 133%;
            height: 100%;
            transform: rotate(-15deg);
            object-fit: cover;
            pointer-events: none;
            mix-blend-mode: multiply;
            z-index: 1;
        }

        .specialist-card__info {
            position: absolute;
            left: 20px;
            right: 20px;
            bottom: 24px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            text-align: center;
            background: rgba(252, 249, 248, 0.8);
            backdrop-filter: blur(4px);
            border: 1px solid #eee3dc;
            border-radius: 12px;
            padding: 12px 24px;
            z-index: 3;
        }

        .specialist-card__name {
            font-family: var(--font-body);
            font-weight: 600;
            font-size: 18px;
        }

        .specialist-card__role {
            font-family: var(--font-body);
            font-weight: 400;
            font-size: 15px;
        }

        .specialist-card__link {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-weight: 500;
            font-size: 16px;
            letter-spacing: 0.32px;
            color: var(--cor-primaria);
        }

        .specialist-card__link img {
            width: 16px;
            height: 16px;
        }
    }
}

/* =========================================
   Cards de especialidades em destaque
========================================= */
.feature-cards {
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 1200px;
    margin: 84px auto 0;
    padding: 0 24px;

    .feature-card {
        display: flex;
        align-items: stretch;
        gap: 20px;

        .feature-card__image {
            flex: 0 0 600px;
            border-radius: 20px;
            box-shadow: var(--sombra-card);
            overflow: hidden;
        }

        .feature-card__image--wide {
            flex-basis: 672px;
        }

        .feature-card__image img {
            width: 100%;
            height: 100%;
            min-height: 480px;
            object-fit: cover;
        }

        .feature-card__text {
            position: relative;
            flex: 1;
            min-height: 480px;
            background-color: var(--cinza);
            border: 1px solid var(--borda-tan);
            border-radius: 20px;
            box-shadow: var(--sombra-card);
            overflow: hidden;
            display: flex;
            align-items: center;
        }

        .feature-card__bg-text {
            position: absolute;
            left: -12px;
            bottom: -67px;
            font-family: var(--font-decorative);
            font-style: italic;
            font-size: 116px;
            color: rgba(201, 146, 14, 0.12);
            white-space: nowrap;
            pointer-events: none;
        }

        .feature-card__deco {
            position: absolute;
            inset: 0;
            width: 170%;
            max-width: 170%;
            height: 170%;
            object-fit: cover;
            pointer-events: none;
            left: -85%;
            top: -91%;
        }

        .feature-card__content {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 20px;
            padding: 48px;
        }

        .feature-card__title {
            font-family: var(--font-display);
            font-weight: 700;
            font-size: 43px;
            line-height: 1.3;
            width: 100%;
        }
    }
}

.feature-card__desc {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 20px;
    line-height: 1.4;
    width: 100%;
}

@media (max-width: 1199px) {
    .feature-card {
        flex-direction: column;
    }

    .feature-card__image,
    .feature-card__image--wide {
        flex-basis: auto;
        width: 100%;
        height: 320px;
    }

    .feature-card__image img {
        min-height: 320px;
    }

    .feature-card__text {
        min-height: auto;
    }

    .feature-card__content {
        padding: 32px;
    }

    .feature-card__title {
        font-size: 32px;
    }
}

/* =========================================
   Sobre o Instituto
========================================= */
.about-institute {
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 1200px;
    margin: 120px auto 0;
    padding: 0 24px;
}

.about-institute__gallery {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    flex: 0 0 auto;
    width: 100%;
    max-width: 496px;
}

.about-institute__gallery-main {
    grid-column: 1 / -1;
    border-radius: 16px;
    overflow: hidden;
    height: 240px;
}

.about-institute__gallery-small {
    border-radius: 16px;
    overflow: hidden;
    height: 240px;
}

.about-institute__gallery-main img,
.about-institute__gallery-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-institute__selo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 36%;
    width: 130px;
    height: 130px;
}

.about-institute__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.about-institute__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 48px;
    line-height: 1.3;
    width: 100%;
}

.about-institute__desc {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 20px;
    line-height: 1.4;
    width: 100%;
}

@media (max-width: 1199px) {
    .about-institute {
        flex-direction: column;
        margin-top: 80px;
    }

    .about-institute__gallery {
        max-width: 100%;
    }
}

/* =========================================
   Conheça o Dr.
========================================= */
.doctor-bio {
    position: relative;
    overflow: hidden;
    background-color: #f7ede8;
    border-top: 1px solid var(--borda-tan);
    border-bottom: 1px solid var(--borda-tan);
    margin: 0;
    padding: 40px 24px 0;
}

.doctor-bio__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.doctor-bio__texture {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-bio__header,
.doctor-bio__body {
    position: relative;
    z-index: 1;
}

.doctor-bio__body {
    min-height: 800px;
}

.doctor-bio__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 130px;
    padding: 10px 20px;
}

.doctor-bio__header::before {
    content: '';
    position: absolute;
    top: -40px;
    bottom: -32px;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background-color: var(--bg-branco);
    z-index: -1;
}

.doctor-bio__eyebrow-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 32px;
}

.doctor-bio__eyebrow-sub {
    font-family: var(--font-body);
    font-size: 16px;
}

.doctor-bio__mini {
    display: flex;
    align-items: center;
    gap: 12px;
}

.doctor-bio__mini-photo {
    width: 65px;
    height: 65px;
    border-radius: 50px;
    object-fit: cover;
}

.doctor-bio__mini-name {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 18px;
}

.doctor-bio__mini-handle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
}

.doctor-bio__mini-handle img {
    width: 18px;
    height: 18px;
}

.doctor-bio__body {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.doctor-bio__r-deco {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 11.7%;
    right: 15.5%;
    height: 104%;
    opacity: 0.12;
    pointer-events: none;
}

.doctor-bio__photo-wrap {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 100%;
    max-width: 47%;
    aspect-ratio: 544 / 777;
}

.doctor-bio__photo {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 12px;
    z-index: 1;
}

.doctor-bio__photo-blur {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(30px);
    opacity: 0.15;
}

.doctor-bio__tag {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradiente-badge);
    border: 1px solid var(--borda-badge);
    border-radius: 29px;
    padding: 12px 30px;
    font-size: 15px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    z-index: 2;
}

.doctor-bio__tag img {
    width: 20px;
    height: 20px;
}

.doctor-bio__tag--1 {
    top: 37%;
    left: 10.6%;
    transform: translateX(-50%);
}

.doctor-bio__tag--2 {
    top: 55%;
    left: 78.1%;
    transform: translateX(-50%);
}

.doctor-bio__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.doctor-bio__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 56px;
    line-height: 1.3;
    width: 100%;
}

.doctor-bio__desc {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 20px;
    line-height: 1.4;
    max-width: 542px;
    width: 100%;
}

.doctor-bio__floor {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 140px;
    object-fit: cover;
    bottom: -3%;
    left: 0%;
}

@media (max-width: 1199px) {
    .doctor-bio__body {
        flex-direction: column;
        gap: 80px;
    }

    .doctor-bio__photo-wrap {
        max-width: 320px;
    }

    .doctor-bio__title {
        font-size: 40px;
    }

    .doctor-bio__tag {
        font-size: 13px;
        padding: 8px 16px;
    }

    .doctor-bio__tag--1 {
        left: 32%;
    }

    .doctor-bio__tag--2 {
        left: 68%;
    }

    .doctor-bio__desc {
        padding-bottom: 60px;
    }
}

/* =========================================
   Insights
========================================= */
.insights {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 1201px;
    margin: 120px auto 0;
    padding: 0 24px;
    text-align: center;
}

.insights__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 48px;
    line-height: 1.3;
    max-width: 652px;
    width: 100%;
}

.insights__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    align-items: start;
    text-align: left;
}

.insight-card__image {
    height: 240px;
    border-radius: 20px;
    overflow: hidden;
}

.insight-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.insight-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding: 20px 0;
}

.insight-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.insight-card__excerpt {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 991px) {
    .insights__grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Nossa estrutura
========================================= */
.structure {
    max-width: 1200px;
    margin: 120px auto 0;
    padding: 0 24px;
}

.structure__card {
    --card-px: 40px;
    background-color: var(--cinza);
    border: 1px solid var(--borda-tan);
    border-radius: 20px;
    box-shadow: var(--sombra-card);
    padding: 60px var(--card-px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.structure__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 48px;
    line-height: 1.3;
    max-width: 940px;
    width: 100%;
}

.structure__desc {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 20px;
    line-height: 1.4;
    max-width: 794px;
    width: 100%;
}

.structure__divider {
    display: block;
    width: calc(100% + 2 * var(--card-px));
    height: 1px;
    background-color: var(--borda-tan);
    margin: 20px 0;
    margin-left: calc(-1 * var(--card-px));
    margin-right: calc(-1 * var(--card-px));
}

.structure__swiper {
    width: calc(100% + 80px);
    margin-left: -40px;
    margin-right: -40px;
    padding-bottom: 62px;
}

.structure__photo {
    height: 197px;
    border-radius: 20px;
    box-shadow: var(--sombra-card);
    overflow: hidden;
}

.structure__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.structure__swiper .swiper-pagination {
    bottom: 0;
}

/* =========================================
   Localização
========================================= */
.location {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 943px;
    margin: 120px auto 0;
    padding: 0 24px;
    text-align: center;
}

.location__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 48px;
    line-height: 1.3;
    max-width: 784px;
    width: 100%;
}

.location__desc {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 20px;
    line-height: 1.4;
    max-width: 630px;
    width: 100%;
}

.location__map {
    width: 100%;
    margin-top: 20px;
    display: flex;
    gap: 20px;

    .div__frame {
        iframe {
            width: 100%;
            height: 450px;
            border: none;
            border-radius: 20px;
        }
    }
}

/* =========================================
   Contato
========================================= */
.contact-section {
    position: relative;
    overflow: hidden;
    background-color: #faf3f0;
    border-top: 1px solid var(--borda-tan);
    margin-top: 120px;
    padding: 100px 24px;
    display: flex;
    justify-content: center;
}

.contact-section__deco {
    position: absolute;
    top: 1%;
    left: -7%;
    width: 90%;
    max-width: none;
    transform: rotate(-24.3deg);
    pointer-events: none;
    z-index: 0;
    height: 140%;
}

.contact-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 692px;
    background-color: #fff;
    border: 1px solid var(--borda-tan);
    border-radius: 20px;
    box-shadow: var(--sombra-card);
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.contact-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 48px;
    line-height: 1.3;
    width: 100%;
}

.contact-card__desc {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 20px;
    line-height: 1.4;
    width: 100%;
}

@media (max-width: 767px) {
    .location__map {
        flex-direction: column;
    }

    .location__map iframe {
        height: 320px;
    }

    .contact-card {
        padding: 32px 20px;
    }

    .contact-card__title {
        font-size: 32px;
    }

    .clinic-intro {
        & .specialists {
            .specialist-card__img {
                width: 117%;
            }
        }
    }

    .feature-cards {
        margin-top: 0px;
    }

    .feature-cards {
        & .feature-card {
            .feature-card__image--wide {
                flex-basis: 470px;
            }
        }
    }

    .structure__card {
        --card-px: 20px;
        padding: 40px var(--card-px);
    }

    .structure__swiper {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
    }

    .structure__title {
        font-size: 32px;
    }
}

/* =========================================
   Ajustes finos de tipografia mobile
========================================= */
@media (max-width: 767px) {

    .clinic-intro__title,
    .about-institute__title,
    .insights__title,
    .location__title {
        font-size: 32px;
    }
}