html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    overflow-x: clip;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.nav-link {
    color: #58634b;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid transparent;
    transition: color 240ms ease, border-color 240ms ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #7e572e;
}

.nav-link.nav-link-active {
    color: #7e572e;
    border-bottom-color: #7e572e;
    font-weight: 700;
}

.section-with-rupestre {
    --rupestre-parallax-y: 0px;
    --rupestre-opacity: 0.24;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.section-with-rupestre::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: var(--rupestre-opacity);
    background-image: url('../img/rupestre.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: contrast(1.45) brightness(0.98) saturate(1.04) sepia(0.08);
    transform: translate3d(0, var(--rupestre-parallax-y), 0) scale(1.1);
    transform-origin: center;
    will-change: transform;
    transition: transform 120ms linear;
}

.section-with-rupestre::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: var(--section-overlay, rgba(248, 241, 231, 0.72));
}

.section-with-rupestre.bg-surface {
    --section-overlay: rgba(248, 241, 231, 0.72);
}

.section-with-rupestre.bg-surface-container-low {
    --section-overlay: rgba(239, 228, 213, 0.72);
}

.section-with-rupestre > * {
    position: relative;
    z-index: 2;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.tonal-shift-no-border {
    border: none !important;
}

.glass-effect {
    backdrop-filter: blur(16px);
}

.manuscript-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.manuscript-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.filter-btn.is-active {
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(88, 99, 75, 0.35), 0 6px 14px rgba(88, 99, 75, 0.16);
    transform: translateY(-1px);
}

.indicacao-filter-btn.is-active,
.calendar-filter-btn.is-active {
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(88, 99, 75, 0.35), 0 6px 14px rgba(88, 99, 75, 0.16);
    transform: translateY(-1px);
}

.indicacao-card,
.curiosity-card,
.calendar-card,
.study-tip-card {
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.indicacao-card:hover,
.curiosity-card:hover,
.calendar-card:hover,
.study-tip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(66, 60, 47, 0.12);
}

.badge-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(88, 99, 75, 0.12);
    color: #4c563f;
}

#historical-map {
    min-height: 22rem;
}

.historical-location-item {
    cursor: pointer;
}

.historical-location-item:hover {
    background: rgba(219, 231, 200, 0.38);
}

.section-has-scroll-indicator {
    position: relative;
}

.hero-responsive {
    isolation: isolate;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    color: #58634b;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 20px rgba(88, 99, 75, 0.18);
    animation: hero-float 2.2s ease-in-out infinite;
    z-index: 20;
}

.hero-scroll-indicator:hover {
    background: rgba(219, 231, 200, 0.92);
}

.section-scroll-indicator {
    bottom: 0.9rem;
}

.hero-responsive > .hero-scroll-indicator {
    bottom: 0.4rem;
}

.hero-title-one-line {
    display: block;
    width: max-content;
    margin-inline: auto;
    text-align: center;
    line-height: 0.95;
    white-space: nowrap;
    max-inline-size: 100%;
    font-size: clamp(1.55rem, 7.5vw, 7rem);
}


@keyframes hero-float {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms ease, transform 700ms ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 700ms ease, transform 700ms ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 600ms ease, transform 600ms ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    .section-with-rupestre::before {
        background-position: center top;
        transform: translate3d(0, var(--rupestre-parallax-y), 0) scale(1.06);
    }

    .hero-responsive {
        min-height: 72vh;
        padding-bottom: 7rem;
    }

    .hero-title-one-line {
        font-size: clamp(1.28rem, 7.1vw, 2.55rem);
    }

    .hero-scroll-indicator {
        bottom: 0.35rem;
        width: 2.45rem;
        height: 2.45rem;
    }

}

@media (max-width: 420px) {
    nav a {
        font-size: 0.8rem;
    }

    nav .tracking-tight {
        letter-spacing: -0.01em;
    }
}

