@property --scrollbar-indicador {
    syntax: "<color>";
    inherits: true;
    initial-value: #d96e91;
}
@property --scrollbar-trilho {
    syntax: "<color>";
    inherits: true;
    initial-value: #f9f0e6;
}
:root {
    --creme: #f9f0e6;
    --marrom: #321800;
    --rosa: #d00078;
    --rosa-suave: #e9b3d0;
    --rosa-texto: #d96e91;
    --marrom-medio: #79563d;
    --sombra: 0 18px 45px rgba(50, 24, 0, 0.12);
    --fonte-corpo: "DM Sans", sans-serif;
    --fonte-titulo: "Playfair Display", Georgia, serif;
}

* {
    box-sizing: border-box;
}
.is-entering {
    transition: none !important;
    will-change: transform, opacity;
}
html {
    --scrollbar-indicador: var(--rosa-texto);
    --scrollbar-trilho: var(--creme);
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    scrollbar-width: auto;
    scrollbar-color: var(--scrollbar-indicador) var(--scrollbar-trilho);
    background-color: var(--creme);
}
html::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
html::-webkit-scrollbar-track,
html::-webkit-scrollbar-corner {
    background: var(--scrollbar-trilho);
}
html::-webkit-scrollbar-thumb {
    border: 2px solid var(--scrollbar-trilho);
    border-radius: 999px;
    background: var(--scrollbar-indicador);
}
html::-webkit-scrollbar-thumb:hover {
    background: var(--rosa);
}
html::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}
/* Usa os pseudo-elementos onde disponíveis, permitindo o hover do indicador. */
@supports selector(::-webkit-scrollbar) {
    html {
        scrollbar-width: auto;
        scrollbar-color: auto;
    }
}
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
        env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    color: var(--marrom);
    background: radial-gradient(
        ellipse at 50% 25%,
        #fff9f0 0,
        var(--creme) 70%
    );
    font-family: var(--fonte-corpo);
    -webkit-font-smoothing: antialiased;
}
body.no-scroll {
    overflow: hidden;
}
button,
a {
    -webkit-tap-highlight-color: transparent;
}
a {
    color: inherit;
}
button {
    font: inherit;
}
.page {
    width: min(100% - 48px, 1250px);
    margin: 0 auto;
}

/* Tela de carregamento */
.loading {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    place-items: center;
    color: var(--creme);
    background: var(--marrom);
    padding: 24px 0;
    transition: opacity 0.5s cubic-bezier(0.45, 0, 0.55, 1);
}
.loading.is-active {
    display: grid;
    touch-action: none;
    overscroll-behavior: none;
}
html.is-loading {
    scroll-behavior: auto;
    overscroll-behavior: none;
    --scrollbar-indicador: var(--marrom);
    --scrollbar-trilho: var(--marrom);
    background-color: var(--marrom);
}
html.is-loading-fading {
    transition:
        --scrollbar-indicador 0.5s cubic-bezier(0.45, 0, 0.55, 1),
        --scrollbar-trilho 0.5s cubic-bezier(0.45, 0, 0.55, 1),
        background-color 0.5s cubic-bezier(0.45, 0, 0.55, 1);
}
html.is-loading::-webkit-scrollbar-thumb:hover {
    background: var(--marrom);
}
.loading.is-hidden {
    opacity: 0;
    pointer-events: none;
}
.loading__content {
    display: grid;
    justify-items: center;
    text-align: center;
    width: 100%;
}
.loading__thread {
    display: block;
    width: 100%;
    height: auto;
    max-height: 371px;
    margin-bottom: 12px;
}
.loading__thread-path {
    visibility: hidden;
    fill: none;
    stroke: #d00078;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1 2;
    stroke-dashoffset: 1.01;
}
.loading__message {
    margin: 0 0 9px;
    font-family: var(--fonte-titulo);
    font-size: clamp(1.15rem, 3vw, 1.5rem);
}
.loading__brand {
    color: var(--rosa-suave);
    font-size: 0.82rem;
    letter-spacing: 0.13em;
}

/* Apresentação */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 54px 0 28px;
}
.hero__logo-wrapper {
    position: relative;
    display: grid;
    place-items: center;
    width: 150px;
    height: 150px;
    margin-bottom: 17px;
}
.hero__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}
.hero__logo-fallback {
    display: none;
    place-items: center;
    width: 100%;
    height: 100%;
    border: 2px solid #b98a6a;
    border-radius: 50%;
    background: #fff8ef;
}
.hero__logo-fallback svg {
    width: 65%;
    fill: none;
    stroke: var(--rosa-texto);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.hero__logo-fallback.is-visible {
    display: grid;
}
.hero__title {
    margin: 0;
    font: 700 clamp(2.2rem, 5vw, 3.35rem)/1.12 var(--fonte-titulo);
    letter-spacing: -0.035em;
}
.hero__name {
    margin: 10px 0 0;
    color: var(--rosa-texto);
    font: italic 500 clamp(1.3rem, 3vw, 1.75rem)/1.4 var(--fonte-titulo);
}
.hero__phrase {
    margin: 20px 0 0;
    font: 400 clamp(1.1rem, 2.5vw, 1.4rem)/1.5 var(--fonte-titulo);
}
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    top: 135px;
    width: 70px;
    height: 150px;
    opacity: 0.85;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}
.hero::before {
    left: 1.5%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 150'%3E%3Cg fill='none' stroke='%2379563d' stroke-width='1.5'%3E%3Cpath d='M45 145Q12 90 33 15M35 40L18 25M30 65L49 48M25 91L9 75M35 115L53 98'/%3E%3C/g%3E%3Cg fill='%23e58aa7'%3E%3Ccircle cx='17' cy='24' r='5'/%3E%3Ccircle cx='49' cy='47' r='5'/%3E%3Ccircle cx='8' cy='74' r='5'/%3E%3Ccircle cx='53' cy='97' r='5'/%3E%3Ccircle cx='33' cy='15' r='5'/%3E%3C/g%3E%3C/svg%3E");
}
.hero::after {
    right: 1.5%;
    transform: scaleX(-1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 150'%3E%3Cg fill='none' stroke='%2379563d' stroke-width='1.5'%3E%3Cpath d='M45 145Q12 90 33 15M35 40L18 25M30 65L49 48M25 91L9 75M35 115L53 98'/%3E%3C/g%3E%3Cg fill='%23e58aa7'%3E%3Ccircle cx='17' cy='24' r='5'/%3E%3Ccircle cx='49' cy='47' r='5'/%3E%3Ccircle cx='8' cy='74' r='5'/%3E%3Ccircle cx='53' cy='97' r='5'/%3E%3Ccircle cx='33' cy='15' r='5'/%3E%3C/g%3E%3C/svg%3E");
}

/* Botões de contato */
.contact-links {
    width: min(100%, 580px);
    margin: 0 auto;
    display: grid;
    gap: 17px;
    padding: 0 0 48px;
}
.contact-button {
    min-height: 61px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 15px 22px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    text-align: center;
    text-decoration: none;
    font: 500 clamp(0.98rem, 2.2vw, 1.16rem)/1.4 var(--fonte-titulo);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}
.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 22px #3218001a;
}
.contact-button:focus-visible,
button:focus-visible {
    outline: 3px solid var(--rosa-texto);
    outline-offset: 4px;
}
.contact-button svg {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.contact-button--whatsapp {
    color: #fff;
    background: var(--rosa);
}
.contact-button--whatsapp:hover {
    background: #b9006b;
}
.contact-button--instagram {
    color: var(--marrom);
    background: transparent;
    border-color: var(--marrom);
}
.contact-button--instagram:hover {
    background: #fff8f0;
}
.instagram-icon__dot {
    fill: currentColor;
    stroke: none;
}

/* Galeria */
.gallery {
    position: relative;
    width: min(100%, 1000px);
    margin-inline: auto;
    overflow: hidden;
    padding: 30px 26px 25px;
    border-radius: 18px;
    color: var(--creme);
    background: radial-gradient(ellipse at 50% 0%, #48250f, var(--marrom) 75%);
    box-shadow: var(--sombra);
}
.gallery__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 25px;
}
.gallery__heading h2 {
    margin: 0;
    font: 600 clamp(1.45rem, 3vw, 2rem)/1.3 var(--fonte-titulo);
}
.gallery__heading-icon {
    width: 30px;
    color: var(--rosa-suave);
    flex: 0 0 auto;
}
.gallery__heading-icon svg {
    width: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.gallery__heading::before {
    content: "✿";
    color: var(--rosa-suave);
    font-size: 1.7rem;
    transform: rotate(-15deg);
}
.carousel {
    position: relative;
}
.carousel__viewport {
    overflow: hidden;
    width: 100%;
    touch-action: pan-y pinch-zoom;
}
.carousel__track {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    min-height: 0;
    padding: 20px 0 24px;
    transition: transform 0.46s ease-in-out;
    will-change: transform;
}
.carousel.is-initializing .carousel__track,
.carousel.is-initializing .carousel__slide {
    transition: none !important;
}
.carousel.has-gsap .carousel__track {
    transition: none;
}
.carousel.has-gsap .carousel__slide {
    transition: none;
}
.carousel.has-gsap .carousel__dot {
    transition: background-color 0.2s ease;
}
.carousel__slide {
    position: relative;
    flex: 0 0 30%;
    aspect-ratio: 0.84;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 17px;
    background: #f2dfcc;
    cursor: pointer;
    opacity: 0.92;
    transform: scale(0.78);
    transition:
        transform 0.4s ease,
        opacity 0.4s ease,
        box-shadow 0.4s ease;
}
.carousel__slide.is-active {
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 14px 35px #0004;
    z-index: 1;
}
.carousel__slide.is-zoomable {
    cursor: zoom-in;
}
.carousel__slide > * {
    cursor: inherit;
}
.carousel__slide img {
    user-select: none;
    -webkit-user-drag: none;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: inherit;
    object-fit: cover;
}
.carousel__slide.is-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #f7e6d3, #d8b99b);
    color: var(--marrom);
}
.photo-placeholder {
    display: grid;
    place-items: center;
    gap: 12px;
    padding: 20px;
    text-align: center;
    font-family: var(--fonte-titulo);
}
.photo-placeholder svg {
    width: 64px;
    height: 64px;
    fill: none;
    stroke: #b96d8b;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.photo-placeholder span {
    font-size: 0.95rem;
}
.carousel__controls {
    display: grid;
    grid-template-columns: 56px 1fr 56px;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}
.carousel__arrow,
.lightbox__arrow,
.lightbox__close {
    display: grid;
    place-items: center;
    color: var(--rosa-suave);
    border: 1.5px solid currentColor;
    background: transparent;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}
.carousel__arrow {
    width: 54px;
    height: 48px;
    border-radius: 11px;
}
.carousel__arrow:active,
.lightbox__arrow:active,
.lightbox__close:active {
    color: var(--marrom);
    background: var(--rosa-suave);
}
@media (hover: hover) and (pointer: fine) {
    .carousel__arrow:hover,
    .lightbox__arrow:hover,
    .lightbox__close:hover {
        color: var(--marrom);
        background: var(--rosa-suave);
    }
}
.carousel__arrow svg,
.lightbox__arrow svg,
.lightbox__close svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.carousel__dots {
    min-width: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.carousel__dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #a48e7d;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}
.carousel__dot.is-active {
    background: var(--rosa);
    transform: scale(1.25);
}
.gallery__note {
    margin: 20px 0 0;
    color: #e6c6d4;
    text-align: center;
    font-size: 0.8rem;
}

/* Rodapé */
.footer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 72px 0 55px;
}
.footer::before {
    content: "──────  ♥  ──────";
    color: var(--rosa-texto);
    letter-spacing: 0.16em;
    margin-bottom: 20px;
}
.footer__brand {
    margin: 0;
    font: 500 1.35rem/1.4 var(--fonte-titulo);
}
.footer__phrase {
    margin: 5px 0 0;
    color: var(--rosa-texto);
    font: italic 1rem/1.5 var(--fonte-titulo);
}

/* Imagem ampliada */
.lightbox {
    overflow: hidden;
    position: fixed;
    inset: 0;
    z-index: 900;
    display: grid;
    place-items: center;
    padding: 25px;
    visibility: hidden;
    opacity: 0;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}
.lightbox.is-open {
    visibility: visible;
    opacity: 1;
}
.lightbox.has-gsap {
    transition: none;
}
.lightbox__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(24, 10, 1, 0.86);
    cursor: zoom-out;
}
.lightbox__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 12px;
    width: min(100%, 1000px);
    max-height: 92vh;
    max-height: 92svh;
}
.lightbox__media {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    display: grid;
    place-items: center;
    justify-self: center;
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    max-height: 78vh;
    max-height: 78svh;
    overflow: hidden;
    border-radius: 17px;
    box-shadow: 0 20px 60px #0006;
}
.lightbox__image {
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
    display: block;
    touch-action: pan-y pinch-zoom;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 78vh;
    max-height: 78svh;
    justify-self: center;
    border-radius: 17px;
    object-fit: contain;
}
.lightbox__image--neighbor {
    position: absolute;
    left: 50%;
    top: 50%;
    max-height: 100%;
    pointer-events: none;
}
.lightbox__close {
    position: absolute;
    top: -30px;
    right: -15px;
    z-index: 2;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 2px solid var(--rosa);
    border-radius: 50%;
    color: var(--rosa);
    background: var(--marrom);
    box-shadow: 0 4px 14px #0004;
}
.lightbox__arrow {
    position: relative;
    z-index: 2;
    width: 44px;
    height: 50px;
    border-radius: 10px;
}
.lightbox__arrow--previous {
    grid-column: 1;
    grid-row: 1;
}
.lightbox__arrow--next {
    grid-column: 3;
    grid-row: 1;
}
.lightbox__caption {
    grid-column: 1 / -1;
    margin: 2px 0 0;
    color: var(--creme);
    text-align: center;
}

@media (min-width: 1400px) {
    .hero {
        padding-top: 60px;
    }
}
@media (max-width: 760px) {
    .page {
        width: min(100% - 28px, 600px);
    }
    .hero {
        padding-top: 35px;
    }
    .hero__logo-wrapper {
        width: 120px;
        height: 120px;
        margin-bottom: 15px;
    }
    .hero::before,
    .hero::after {
        top: 85px;
        width: 36px;
        height: 90px;
        opacity: 0.55;
    }
    .hero::before {
        left: 0;
    }
    .hero::after {
        right: 0;
    }
    .hero__phrase {
        margin-top: 15px;
    }
    .contact-links {
        width: calc(100% - 8px);
        gap: 12px;
        padding-bottom: 30px;
    }
    .contact-button {
        min-height: 57px;
        padding: 13px 15px;
        gap: 10px;
    }
    .gallery {
        padding: 22px 15px 20px;
        border-radius: 15px;
    }
    .gallery__heading {
        margin-bottom: 18px;
    }
    .gallery__heading h2 {
        font-size: 1.35rem;
    }
    .gallery__heading::before {
        display: none;
    }
    .gallery__heading-icon {
        width: 24px;
    }
    .carousel__track {
        min-height: 0;
        padding: 0;
        gap: 0;
    }
    .carousel__slide,
    .carousel__slide.is-active {
        flex: 0 0 100%;
        aspect-ratio: 0.9;
        max-height: 520px;
        transform: scale(1);
    }
    .carousel__slide img {
        min-height: 0;
    }
    .carousel__controls {
        grid-template-columns: 44px 1fr 44px;
        gap: 8px;
        margin-top: 14px;
    }
    .carousel__arrow {
        width: 42px;
        height: 42px;
    }
    .carousel__dots {
        gap: 8px;
    }
    .carousel__dot {
        width: 9px;
        height: 9px;
    }
    .gallery__note {
        font-size: 0.72rem;
    }
    .footer {
        padding: 48px 0 35px;
    }
    .lightbox {
        padding: 15px;
    }
    .lightbox__dialog {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        gap: 5px;
    }
    .lightbox__arrow {
        width: 36px;
        height: 42px;
    }
    .lightbox__close {
        top: -32px;
        right: -3px;
        width: 38px;
        height: 38px;
    }
    .lightbox__image,
    .lightbox__media {
        max-height: 72vh;
        max-height: 72svh;
    }
}
/* Mantém a foto proporcional quando o layout de uma coluna abre em telas maiores. */
@media (min-width: 521px) and (max-width: 760px) {
    .gallery {
        max-width: 440px;
    }
}
@media (max-width: 390px) {
    .hero__title {
        font-size: 2rem;
    }
    .hero::before,
    .hero::after {
        opacity: 0.3;
    }
    .contact-button {
        font-size: 0.9rem;
    }
    .gallery__heading h2 {
        font-size: 1.2rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
