/* Ajustes de composição do hero após a ampliação do título para todos os públicos. */
@media (min-width: 1001px) {
    /* Same content width and spacing as the neuromodulação and avaliação heroes, so the photo
       sits next to the title instead of at the far edge of the screen. */
    .pbmHero {
        grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
        gap: clamp(24px, 5vw, 80px);
        padding-left: max(24px, calc((100vw - 1160px) / 2));
        padding-right: max(24px, calc((100vw - 1160px) / 2));
    }

    .pbmHeroArt {
        width: min(100%, 440px);
        justify-self: center;
    }

    .pbmMechanism {
        grid-template-columns: 1.1fr .9fr;
        max-width: 1320px;
    }

    .pbmMechanismVisual {
        grid-template-columns: minmax(230px, .9fr) minmax(250px, 1fr);
        gap: 24px;
    }
}

.pbmHeroArt img {
    aspect-ratio: 4 / 5;
    height: 600px;
    object-fit: contain;
    object-position: center center;
    background: linear-gradient(145deg, #f4eaf6, #fff6df);
}

.pbmProfessionalLine {
    margin: 22px 0 0;
    color: #6f5f75;
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .01em;
}

.pbmCredentials {
    display: grid;
    gap: 3px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(88, 43, 120, .14);
    color: #76697b;
    font-size: .76rem;
    line-height: 1.5;
}

.pbmCredentials strong {
    color: #67427d;
    font-size: .8rem;
}

.pbmScienceArt {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 44% 44% 22px 22px;
    box-shadow: 0 24px 60px rgba(18, 6, 31, .28);
}

.pbmScienceArt img {
    display: block;
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: 36% center;
}

.pbmScienceArt figcaption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(47, 23, 71, .76);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.pbmCellStage {
    position: relative;
    min-height: 390px;
    display: grid;
    place-items: center;
}

@media (max-width: 1000px) {
    /* Keeps the single-column hero from growing wider than the phone screen. */
    .pbmHero {
        grid-template-columns: minmax(0, 1fr);
    }

    .pbmHero > * {
        min-width: 0;
        max-width: 100%;
    }

    .pbmMechanismVisual {
        height: auto;
        grid-template-columns: minmax(220px, .9fr) minmax(250px, 1fr);
        gap: 20px;
    }
}

.pbmInlineCta {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 900px;
    margin-top: -35px;
    margin-bottom: -75px;
    margin-inline: auto;
    padding: 24px clamp(20px, 4vw, 36px);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(76, 40, 94, .12);
}

.pbmInlineCta p {
    margin: 0;
    max-width: 480px;
    color: var(--pbm-plum);
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
}

.pbmInlineCta .btn {
    flex: 0 0 auto;
}

@media (max-width: 680px) {
    /* "Fotobiomodulação" is a long single word; this size fits a 360px phone. */
    .pbmHero h1 {
        font-size: clamp(2rem, 10.5vw, 4rem);
    }

    .pbmInlineCta {
        margin-top: 9px;
        margin-bottom: -35px;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

.pbmRelated {
    padding: 64px max(6vw, 24px) 100px;
    background: #fffdfa;
}

.pbmRelatedCard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px clamp(24px, 4vw, 42px);
    border-radius: 24px;
    background: var(--pbm-plum);
    color: #fff;
    text-decoration: none;
    transition: transform 200ms ease, background-color 200ms ease;
}

.pbmRelatedCard:hover {
    transform: translateY(-2px);
    background: var(--pbm-deep);
}

.pbmRelatedCard span {
    display: block;
    color: var(--pbm-gold);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.pbmRelatedCard h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 1.35rem;
}

.pbmRelatedCard p {
    margin: 0;
    max-width: 560px;
    color: rgba(255, 255, 255, .8);
    font-size: .95rem;
    line-height: 1.6;
}

.pbmRelatedCard svg {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 200ms ease;
}

.pbmRelatedCard:hover svg { transform: translateX(4px); }

@media (max-width: 680px) {
    .pbmRelated {
        padding: 44px 20px 70px;
    }

    .pbmRelatedCard {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .pbmProfessionalLine,
    .pbmCredentials {
        text-align: left;
    }

    .pbmHeroArt img {
        height: auto;
        object-fit: contain;
        object-position: center;
    }

    .pbmScienceArt img {
        height: 280px;
    }

    .pbmMechanismVisual {
        grid-template-columns: 1fr;
    }

    .pbmCellStage {
        min-height: 270px;
    }
}

/* Photo frame identical to the neuromodulação and avaliação pages: same arch, same height and the
   lilac halo offset behind it; the photo fills the frame instead of floating inside it. */
@media (min-width: 1001px) {
    .pbmHeroArt {
        width: min(100%, 488px);
    }

    .pbmHeroArt img {
        width: 100%;
        height: min(66svh, 620px);
        min-height: 490px;
        aspect-ratio: auto;
        object-fit: cover;
        object-position: center 18%;
        border-radius: 48% 48% 16px 16px / 34% 34% 16px 16px;
        background: none;
        box-shadow: 0 22px 54px rgba(86, 48, 121, .14);
    }

    .pbmHeroArt:before {
        inset: 20px -18px -18px 20px;
        bottom: auto;
        height: min(66svh, 620px);
        min-height: 490px;
        border-radius: 48% 48% 16px 16px / 34% 34% 16px 16px;
        background: var(--lavender, #e9dcf3);
        box-shadow: 0 28px 68px rgba(86, 48, 121, .17);
    }

    .pbmHeroArt .pbmNote {
        right: -28px;
        bottom: 28px;
    }

    /* "Fotobiomodulação" is one long word that cannot wrap: a slightly smaller title keeps a clear
       gap before the photo, like on the other pages. */
    .pbmHero h1 {
        font-size: clamp(2.4rem, 4.6vw, 4.5rem);
    }
}

/* Purple tag over the photo, same look as the neuromodulação and avaliação pages. */
.pbmHeroArt .pbmNote {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 16px;
    display: grid;
    gap: 5px;
    max-width: 230px;
    padding: 18px 20px;
    border-radius: 14px;
    color: #fff;
    background: var(--purple-dark, #57306a);
    box-shadow: 0 20px 46px rgba(50, 28, 59, .24);
}

.pbmHeroArt .pbmNote span {
    color: var(--yellow, #f6c75b);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.pbmHeroArt .pbmNote strong {
    font-size: .95rem;
    line-height: 1.35;
}

/* Same page-load entrance as the neuromodulação and avaliação pages: text rises in, then the photo. */
@keyframes pbm-hero-copy-in {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pbm-portrait-in {
    from { opacity: 0; transform: translateY(34px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.pbmHero .pbmHeroCopy {
    animation: pbm-hero-copy-in 700ms cubic-bezier(.23, 1, .32, 1) both;
}

.pbmHero .pbmHeroArt {
    animation: pbm-portrait-in 850ms 80ms cubic-bezier(.23, 1, .32, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    .pbmHero .pbmHeroCopy,
    .pbmHero .pbmHeroArt {
        animation: none;
    }
}
