html {
    scroll-behavior: smooth;
}

/* ── Skip link (acessibilidade por teclado) ── */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: #7A1C1C;
    color: #FFFDF9;
    padding: 10px 20px;
    border-radius: 0 0 8px 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
}

/* ── Foco visível nas cores do ministério ── */
:focus-visible {
    outline: 2.5px solid #7A1C1C;
    outline-offset: 3px;
    border-radius: 4px;
}
:focus:not(:focus-visible) {
    outline: none;
}

/* Revelação ao rolar */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Range slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 4px;
    background: #E8E0D4;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #7A1C1C;
    border: 2px solid #FFFDF9;
    box-shadow: 0 0 0 1px #7A1C1C;
}

/* Card de profissional */
.prof-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prof-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 20px 40px rgba(122, 28, 28, 0.10);
}

.prof-card:active {
    transform: scale(1.02);
    box-shadow: 0 10px 24px rgba(122, 28, 28, 0.12);
}

/* Checkbox customizado */
.custom-check {
    display: none;
}

.check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid #E8E0D4;
    transition: all 0.2s;
    font-size: 0.82rem;
}

.check-label:hover {
    border-color: #7A1C1C;
    background: #F4EFE6;
}

.custom-check:checked+.check-label {
    border-color: #7A1C1C;
    background: #F4EFE6;
    color: #5C1414;
    font-weight: 600;
}

.check-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid #C0A8A8;
    background: white;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.custom-check:checked+.check-label .check-box {
    background: #7A1C1C;
    border-color: #7A1C1C;
}

.custom-check:checked+.check-label .check-box::after {
    content: '✓';
    color: white;
    font-size: 10px;
    font-weight: bold;
}

/* Avatar */
.avatar-ring {
    background: conic-gradient(from 0deg, #7A1C1C, #E05A5A, #7A1C1C);
    padding: 3px;
    border-radius: 50%;
}

.avatar-inner {
    background: #F4EFE6;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Divisória ornamental */
.ornament-divider {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ornament-divider::before,
.ornament-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #C0A0A0, transparent);
}

/* ── Logo Hero: efeito de destaque suave ── */
.logo-hero-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-hero {
    filter: drop-shadow(0 0 18px rgba(224, 90, 90, 0.40)) drop-shadow(0 0 40px rgba(122, 28, 28, 0.20));
    animation: pulso-logo 3s ease-in-out infinite;
    display: block;
    margin: 0 auto;
}

@keyframes pulso-logo {
    0%,
    100% {
        filter: drop-shadow(0 0 12px rgba(224, 90, 90, 0.30)) drop-shadow(0 0 30px rgba(122, 28, 28, 0.15));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 28px rgba(224, 90, 90, 0.55)) drop-shadow(0 0 55px rgba(122, 28, 28, 0.30));
        transform: scale(1.04);
    }
}

/* ── Modal de profissional ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 253, 249, 0.30);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.aberto {
    opacity: 1;
    pointer-events: all;
}

#modal-conteudo .avatar-ring {
    width: 120px;
    height: 120px;
}

.modal-card {
    background: #FFFDF9;
    border: 1px solid #E8E0D4;
    border-radius: 1.5rem;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 30px 80px rgba(122, 28, 28, 0.18);
    transform: scale(0.92);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.aberto .modal-card {
    transform: scale(1);
}

.modal-fechar {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #7A5C5C;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-fechar:hover {
    color: #7A1C1C;
}

/* ── Respeita preferência do sistema por menos animações ── */
/* ── Seletor de idioma ── */
.lang-btn {
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1.2;
}

/* ── Evita quebra do seletor em telas muito estreitas ── */
@media (max-width: 374px) {
    .lang-btn {
        font-size: 0.75rem !important;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
}

/* ── Modal de Compartilhamento ── */
.share-overlay {
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
}

.share-card {
box-shadow: 0 30px 80px rgba(92, 20, 20, 0.35);
}

/* Lista de recursos */
.share-text-list {
list-style: none;
padding: 0;
margin: 0;
}

.share-text-list li {
padding: 0.375rem 0;
border-bottom: 1px solid rgba(232, 224, 212, 0.4);
}

.share-text-list li:last-child {
border-bottom: none;
padding-bottom: 0;
}

/* Scroll suave no modal em mobile */
#modal-compartilhar-overlay .share-card {
scrollbar-width: thin;
scrollbar-color: #E8E0D4 transparent;
}

#modal-compartilhar-overlay .share-card::-webkit-scrollbar {
width: 5px;
}

#modal-compartilhar-overlay .share-card::-webkit-scrollbar-track {
background: transparent;
}

#modal-compartilhar-overlay .share-card::-webkit-scrollbar-thumb {
background: #E8E0D4;
border-radius: 8px;
}

/* Botão copiar: transição suave de feedback */
#btn-share-copy {
transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Responsivo: modal ocupa mais largura em telas muito pequenas */
@media (max-width: 374px) {
.share-card {
    border-radius: 1.25rem;
}
#modal-compartilhar-overlay {
    padding: 0.5rem;
}
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .logo-hero {
        animation: none;
        filter: drop-shadow(0 0 12px rgba(224, 90, 90, 0.30));
    }
    .prof-card {
        transition: none;
    }
    .modal-overlay,
    .modal-card {
        transition: none;
    }
    .share-overlay,
    .share-card {
        transition: none;
    }
    #btn-share-copy {
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}