html {
    scroll-behavior: smooth;
}

:root {
    --hp-gap-mobile: clamp(44px, 7vw, 64px);
    --hp-gap-desktop: clamp(84px, 8vw, 120px);
    --scroll-progress: 0;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Modelo de espacemento: mobile e web */
main > :is(section, footer) + :is(section, footer) {
    margin-top: var(--hp-gap-mobile) !important;
}

@media (min-width: 768px) {
    main > :is(section, footer) + :is(section, footer) {
        margin-top: var(--hp-gap-desktop) !important;
    }
}

main > :is(section, footer) {
    scroll-margin-top: 92px;
}


/* Borda em gradiente que respeita rounded + fundo realmente transparente */
.gradient-border {
    position: relative;
    background: transparent;
    /* o raio virá do próprio elemento (Tailwind rounded-*) */
}

.gradient-border::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    /* espessura da "borda" */
    border-radius: inherit;
    background: linear-gradient(45deg, #ffffff, #000000);
    /* máscara para mostrar só o anel (borda) e deixar o centro transparente */
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    /* Safari/Chromium */
    mask-composite: exclude;
    /* Firefox */
    pointer-events: none;
}

body.contact-confirm-open {
    overflow: hidden;
}

.contact-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 16px;
}

.contact-confirm-modal[hidden] {
    display: none;
}

.contact-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
}

.contact-confirm-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(10, 20, 15, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    padding: 18px;
}

.contact-confirm-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
    color: #fff;
}

.contact-confirm-description {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
}

.contact-confirm-actions {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.contact-confirm-btn {
    border-radius: 9999px;
    font-size: 13px;
    line-height: 1;
    font-weight: 500;
    padding: 10px 14px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.contact-confirm-btn:hover {
    opacity: 0.92;
}

.contact-confirm-btn:focus-visible {
    outline: 2px solid rgba(118, 251, 158, 0.6);
    outline-offset: 2px;
}

.contact-confirm-btn--ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.32);
}

.contact-confirm-btn--primary {
    background: #76fb9e;
    color: #052314;
    border-color: #76fb9e;
}
