:root {
    --site-header-height: 64px;
}

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
    background-color: var(--site-bg);
    -webkit-font-smoothing: antialiased;
}

main { display: block; }

.site-footer a,
.site-footer address,
.contact-item span { overflow-wrap: anywhere; }

.section { padding: 5rem 0; }
.section--tight { padding: 3rem 0; }
.section--surface { background-color: var(--site-surface); }

.section-title { margin-bottom: 2.25rem; }
.section-title h2 { margin-bottom: 0; }
.section-title h2 em,
.page-header h1 em { font-style: italic; font-weight: 600; color: var(--site-accent); }

.lead-text {
    font-size: 1.125rem;
    color: var(--site-muted);
    max-width: 60ch;
}

.img-cover { width: 100%; height: 100%; object-fit: cover; }
.ratio-photo { aspect-ratio: 3 / 2; overflow: hidden; background-color: var(--site-surface); border-radius: var(--site-radius-lg); }
.ratio-photo--tall { aspect-ratio: 4 / 5; }
.ratio-photo--leaf { border-radius: 6rem var(--site-radius) 6rem var(--site-radius); }
.ratio-photo--leaf-reverse { border-radius: var(--site-radius) 6rem var(--site-radius) 6rem; }
.ratio-photo img { transition: transform .6s ease; }
a:hover .ratio-photo img { transform: scale(1.04); }

.photo-caption { margin-top: .6rem; font-size: .875rem; color: var(--site-muted); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .ratio-photo img { transition: none; }
}

.masthead {
    position: relative;
    overflow: hidden;
    background-color: var(--site-bg);
}
.masthead__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 260px;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}
.masthead__logo img { height: 148px; width: auto; }
.masthead__place {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    margin-right: auto;
    padding-left: 2rem;
    border-left: 1px solid var(--site-beige);
    font-size: .9375rem;
    line-height: 1.45;
    color: var(--site-muted);
}
.masthead__place strong {
    font-family: var(--site-font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    font-style: italic;
    color: var(--site-text);
    margin-bottom: .2rem;
}
.masthead__place a { margin-top: .35rem; font-weight: 700; font-size: .875rem; color: var(--site-accent); }
.masthead__place a .bi { margin-right: .35rem; }
.masthead__feet {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    width: auto;
    max-width: none;
    mix-blend-mode: multiply;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 35%);
    mask-image: linear-gradient(to right, transparent 0, #000 35%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: var(--site-accent);
    transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(38, 53, 58, .18); }
.site-header .navbar { padding: 0; }
.site-header .container { gap: 1rem; }
.site-header .navbar > .container { position: relative; }
.site-header__mark {
    position: absolute;
    left: 50%;
    top: 50%;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -20%);
    transition: opacity .3s ease, transform .45s cubic-bezier(.22, 1, .36, 1);
}
.site-header__mark img { height: 40px; width: auto; display: block; }
.site-header.is-scrolled .site-header__mark { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
@media (min-width: 1200px) {
    .site-header__mark {
        position: static;
        flex-shrink: 0;
        width: 0;
        margin-right: -1rem;
        overflow: hidden;
        transform: translateY(6px);
        transition: width .4s cubic-bezier(.22, 1, .36, 1), margin .4s cubic-bezier(.22, 1, .36, 1), opacity .3s ease, transform .4s cubic-bezier(.22, 1, .36, 1);
    }
    .site-header.is-scrolled .site-header__mark { width: 86px; margin-right: 0; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .site-header__mark { transition: opacity .2s ease; } }
.site-header .navbar-nav { gap: .15rem; }
.site-header .nav-link {
    position: relative;
    color: #eef3f3;
    font-weight: 500;
    padding: 1.1rem .9rem;
    transition: color .2s ease;
}
.site-header .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: .45rem;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    border: 1px solid var(--site-beige);
    opacity: 0;
    transform: scale(.4);
    transition: opacity .2s ease, transform .2s ease;
}
.site-header .nav-link:hover { color: #fff; }
.nav-dot {
    position: absolute;
    left: 0;
    bottom: .45rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--site-beige);
    pointer-events: none;
    opacity: 0;
    transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), opacity .25s ease, width .25s ease;
}
.nav-dot.is-on { opacity: 1; }
.nav-dot.is-moving { width: 14px; margin-left: -4px; border-radius: 3px; }
[data-nav-dot].has-dot .nav-link::after { display: none; }
[data-nav-dot] { position: relative; }
@media (prefers-reduced-motion: reduce) {
    .nav-dot { transition: opacity .2s ease; }
}
.site-header .nav-link.active { color: #fff; }
.site-header .nav-link.active::after { opacity: 1; transform: scale(1); background-color: var(--site-beige); }
.btn-agendar {
    margin: .5rem 0 .5rem auto;
    background-color: var(--site-beige);
    color: var(--site-text);
    border: 0;
    padding: .6rem 1.25rem;
    white-space: nowrap;
}
.btn-agendar:hover { background-color: #d4c8ad; color: var(--site-text); }

.navbar-toggler {
    border: 0;
    padding: 1rem 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}
.navbar-toggler:focus { box-shadow: none; }

.offcanvas .nav-link {
    font-family: var(--site-font-heading);
    font-size: 1.625rem;
    font-weight: 600;
    padding: .55rem 0;
    border-bottom: 1px solid var(--site-border);
}
.offcanvas .nav-link.active { color: var(--site-accent); font-style: italic; }
.offcanvas.offcanvas-start {
    width: min(100vw, 420px);
    border-right: 0;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1), visibility .5s;
}
.offcanvas.offcanvas-start.hiding { transition-duration: .35s; transition-timing-function: cubic-bezier(.55, 0, 1, .45); }
.offcanvas-backdrop { background-color: var(--site-dark); transition: opacity .4s ease; }
.offcanvas-backdrop.show { opacity: .55; }
.offcanvas-header { padding: 1.25rem 1.5rem; }
.offcanvas-body { padding: .5rem 1.5rem 2rem; }
.offcanvas .nav-item,
.offcanvas__contact {
    opacity: 0;
    transform: translateX(-18px);
    transition: opacity .35s ease, transform .45s cubic-bezier(.22, 1, .36, 1);
}
.offcanvas.showing .nav-item,
.offcanvas.show:not(.hiding) .nav-item,
.offcanvas.showing .offcanvas__contact,
.offcanvas.show:not(.hiding) .offcanvas__contact { opacity: 1; transform: none; }
.offcanvas.showing .nav-item:nth-child(1), .offcanvas.show .nav-item:nth-child(1) { transition-delay: .08s; }
.offcanvas.showing .nav-item:nth-child(2), .offcanvas.show .nav-item:nth-child(2) { transition-delay: .13s; }
.offcanvas.showing .nav-item:nth-child(3), .offcanvas.show .nav-item:nth-child(3) { transition-delay: .18s; }
.offcanvas.showing .nav-item:nth-child(4), .offcanvas.show .nav-item:nth-child(4) { transition-delay: .23s; }
.offcanvas.showing .nav-item:nth-child(5), .offcanvas.show .nav-item:nth-child(5) { transition-delay: .28s; }
.offcanvas.showing .nav-item:nth-child(6), .offcanvas.show .nav-item:nth-child(6) { transition-delay: .33s; }
.offcanvas.showing .offcanvas__contact, .offcanvas.show .offcanvas__contact { transition-delay: .4s; }
.offcanvas__cta { margin-top: 2rem; }
.offcanvas.hiding .nav-item, .offcanvas.hiding .offcanvas__contact { transition-delay: 0s; transition-duration: .2s; }
@media (prefers-reduced-motion: reduce) {
    .offcanvas.offcanvas-start { transition: opacity .25s ease, visibility .25s; transform: none; opacity: 0; }
    .offcanvas.offcanvas-start.showing, .offcanvas.offcanvas-start.show:not(.hiding) { opacity: 1; }
    .offcanvas .nav-item, .offcanvas__contact { transform: none; transition: opacity .25s ease; }
}
.offcanvas__contact { margin-top: 1.5rem; font-size: .95rem; color: var(--site-muted); }
.offcanvas__contact div + div { margin-top: .5rem; }

.intro { padding: 4.5rem 0 5rem; }
.intro h1 { font-size: clamp(2.375rem, 4.5vw, 3.5rem); margin-bottom: 1.5rem; max-width: 16ch; }
.intro h1 em { font-style: italic; color: var(--site-accent); }
.intro__photo { position: relative; margin: 0 1.25rem 1.25rem 0; }
.intro__photo::before {
    content: "";
    position: absolute;
    inset: 1.25rem -1.25rem -1.25rem 1.25rem;
    border: 2px solid var(--site-beige);
    border-radius: 6rem var(--site-radius) 6rem var(--site-radius);
}
.intro__photo .ratio-photo { position: relative; }

@media (max-width: 991.98px) {
    .intro { padding: 2.5rem 0 3.5rem; }
    .masthead__place { display: none; }
    .masthead__inner { min-height: 0; justify-content: center; }
    .masthead__logo img { height: 94px; }
    .masthead__feet { opacity: .28; -webkit-mask-image: none; mask-image: none; height: 100%; left: 50%; right: auto; transform: translateX(-30%); }
}
@media (max-width: 1199.98px) {
    .site-header .navbar > .container { flex-wrap: nowrap; }
}

.page-header {
    background-color: var(--site-surface);
    padding: 3rem 0 2.75rem;
}
.page-header h1 { margin-bottom: 0; font-size: clamp(2.25rem, 4vw, 3.25rem); }
.page-header .breadcrumb { margin-bottom: .75rem; font-size: .875rem; }

.publicos { position: relative; overflow: hidden; }
.publicos__flor {
    position: absolute;
    left: -90px;
    bottom: -110px;
    width: 460px;
    opacity: .35;
    pointer-events: none;
}
.publicos .container { position: relative; }
.publicos__title { position: sticky; top: 6rem; }
.publicos__lista { list-style: none; padding: 0; margin: 0; }
.publicos__lista li { border-top: 1px solid var(--site-border); }
.publicos__lista li:last-child { border-bottom: 1px solid var(--site-border); }
.publicos__lista li {
    display: grid;
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    column-gap: 2rem;
    align-items: baseline;
    padding: 1.6rem 0;
}
.publicos__lista h3 {
    margin: 0;
    font-size: 1.875rem;
    font-style: italic;
    color: var(--site-accent);
}
.publicos__lista p { margin: 0; color: var(--site-muted); }
@media (max-width: 767.98px) {
    .publicos__title { position: static; }
    .publicos .row { --bs-gutter-y: 1.25rem; }
    .publicos__flor { opacity: .15; }
    .publicos__lista li { grid-template-columns: 1fr; padding: 1.25rem 0; }
    .publicos__lista h3 { font-size: 1.625rem; margin-bottom: .35rem; }
}

.servico {
    height: 100%;
    padding: 1.75rem;
    background-color: var(--site-surface);
    border-radius: var(--site-radius-lg);
}
.servico h2 { font-size: 1.75rem; margin-bottom: .75rem; color: var(--site-accent); }
.servico p { margin: 0; color: var(--site-muted); }

.article-nav { position: sticky; top: calc(var(--site-header-height) + 1.5rem); }
.article-nav h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.article-nav ul { list-style: none; padding: 0; margin: 0; }
.article-nav li a {
    display: block;
    padding: .7rem 0 .7rem 1rem;
    border-left: 2px solid var(--site-border);
    color: var(--site-muted);
    line-height: 1.4;
}
.article-nav li a:hover { color: var(--site-accent); text-decoration: none; border-left-color: var(--site-beige); }
.article-nav li a.active { color: var(--site-text); font-weight: 700; border-left-color: var(--site-accent); }

.rich-text { max-width: 68ch; }
.rich-text p { margin-bottom: 1.25rem; }
.rich-text > p:first-child { font-size: 1.1875rem; color: var(--site-text); }
.rich-text h2 { font-size: 1.875rem; margin: 2.25rem 0 1rem; }
.rich-text ul { padding-left: 1.25rem; margin-bottom: 1.5rem; }
.rich-text li { margin-bottom: .4rem; }
.rich-text li::marker { color: var(--site-beige); }
.rich-text .note {
    padding: 1.25rem 1.5rem;
    background-color: var(--site-surface);
    border-radius: var(--site-radius);
}

.credentials { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.credentials li {
    padding: .35rem .9rem;
    border: 1px solid var(--site-beige);
    border-radius: 2rem;
    font-size: .875rem;
    color: var(--site-text);
}

.contact-cta .contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--site-border);
    color: inherit;
}
.contact-cta .contact-item:first-child { border-top: 1px solid var(--site-border); }
.contact-cta .contact-item .bi { font-size: 1.35rem; color: var(--site-accent); }
.contact-cta .contact-item small { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--site-muted); }
.contact-cta .contact-item span { font-size: 1.0625rem; color: var(--site-text); }
a.contact-item:hover { text-decoration: none; }
a.contact-item:hover span { color: var(--site-accent); }

.map-embed { line-height: 0; }
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; }
@media (max-width: 767.98px) { .map-embed iframe { height: 300px; } }

.site-footer {
    background-color: var(--site-dark);
    color: #cfd9db;
    padding: 4.5rem 0 0;
    font-size: .9375rem;
}
.site-footer__logo { height: 76px; width: auto; }
.site-footer h4 {
    font-family: var(--site-font-body);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--site-beige);
    margin-bottom: 1.25rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: .5rem; }
.site-footer a { color: #eef2f2; }
.site-footer a:hover { color: #fff; }
.site-footer address { margin: 0; font-style: normal; }
.site-footer .social a {
    display: inline-flex;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    margin-right: .5rem;
    font-size: 1.1rem;
    transition: border-color .2s ease;
}
.site-footer .social a:hover { border-color: var(--site-beige); text-decoration: none; }
.site-footer .footer-bottom {
    margin-top: 3.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .8125rem;
    color: #b3c1c4;
}

.whats-float {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1035;
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background-color: #25d366;
    color: #fff;
    font-size: 1.9rem;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
    transition: transform .2s ease;
}
.whats-float:hover { color: #fff; transform: scale(1.06); text-decoration: none; }

.cookie-notice {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 1034;
    max-width: 420px;
    padding: 1rem 1.25rem;
    background-color: var(--site-dark);
    color: #eef2f2;
    border-radius: var(--site-radius);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
    font-size: .875rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}
.cookie-notice .btn { flex-shrink: 0; }

.gallery-item { position: relative; display: block; }
.gallery-item::after {
    content: "\F62C";    font-family: 'bootstrap-icons';
    position: absolute;
    right: .75rem; bottom: .75rem;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background-color: rgba(0, 0, 0, .55);
    color: #fff;
    border-radius: 50%;
    font-size: 1rem;
    opacity: 0;
    transition: opacity .2s ease;
}
.gallery-item:hover::after { opacity: 1; }

.lightbox .modal-content { background-color: rgba(0, 0, 0, .96); border: 0; height: 100%; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; color: #d0d0d0; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.lightbox__stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 4.5rem 2rem; min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 1.25rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
.lightbox__nav:hover { border-color: #fff; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

@media (max-width: 767.98px) {
    h2, .section-title h2 { font-size: 2rem; }
    .section-title { margin-bottom: 1.75rem; }
    .lead-text { font-size: 1.0625rem; }
    .servico { padding: 1.5rem 1.25rem; }
    .article-nav { position: static; }
    .page-header { padding: 2.25rem 0 2rem; }
    .site-footer { padding-top: 3rem; }
    .site-footer .row { --bs-gutter-y: 2rem; }
    .site-footer .footer-bottom { margin-top: 2.5rem; padding-bottom: 4.5rem; text-align: center; }}
@media (max-width: 575.98px) {
    .section { padding: 3.25rem 0; }
    .whats-float { width: 52px; height: 52px; font-size: 1.7rem; right: 1rem; bottom: 1rem; }
    .cookie-notice { left: .75rem; right: 4.75rem; bottom: .75rem; max-width: none; flex-direction: column; align-items: stretch; gap: .5rem; }
    .lightbox__stage { padding: 0 .5rem 4.5rem; }
    .lightbox__nav { top: auto; bottom: 1rem; transform: none; }
}

.consultorio-intro__lead { font-family: var(--site-font-heading); font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.3; color: var(--site-text); margin-bottom: 1.5rem; }
.consultorio-intro__fotos { position: relative; margin: 0 0 2.5rem 2.5rem; }
.consultorio-intro__fotos .ratio-photo--tall { aspect-ratio: 5 / 4; }
.consultorio-intro__detalhe {
    position: absolute;
    left: -2.5rem;
    bottom: -2.5rem;
    width: 42%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 6px solid var(--site-bg);
    border-radius: var(--site-radius-lg);
    box-shadow: 0 18px 40px rgba(38, 53, 58, .18);
}
@media (max-width: 575.98px) {
    .consultorio-intro__fotos { margin: 0 0 2rem 1rem; }
    .consultorio-intro__detalhe { left: -1rem; bottom: -2rem; width: 40%; border-width: 4px; }
}

.ambiente { color: inherit; text-decoration: none; }
.ambiente h3 { margin: 1.1rem 0 .35rem; font-size: 1.5rem; }
.ambiente p { margin: 0; color: var(--site-muted); max-width: 46ch; }
.ambiente:hover h3 { color: var(--site-accent); }
.ambiente__fotos { margin-left: .5rem; font-family: var(--site-font-body); font-size: .8rem; font-weight: 500; color: var(--site-muted); white-space: nowrap; }

.consultorio-mapa { overflow: hidden; border-radius: var(--site-radius-lg); }
