:root {
    --header-h: 112px;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    padding-top: var(--header-h);
}

section {
    scroll-margin-top: calc(var(--header-h) + 12px);
}

/* HERO: imagem P&B + overlay editorial */
.hero-wrap {
    position: relative;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05) brightness(.85);
    transform: scale(1.03);
    opacity: .28;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 11, 11, .82), rgba(11, 11, 11, .64));
}

/* Grain leve */
.grain:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
    opacity: .14;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Reveal animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .7s ease, transform .7s ease;
    will-change: opacity, transform;
}

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

.acc {
    overflow: hidden;
    height: 0;
    transition: height .35s ease;
}

.chev {
    transition: transform .25s ease;
}

.chev.open {
    transform: rotate(180deg);
}

/* Subtle float */
@keyframes floaty {

    0%,
    100% {
        transform: translateY(0);
    }

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

.floaty {
    animation: floaty 6s ease-in-out infinite;
}

/* Active nav underline */
.nav-active {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.imgText {
    text-shadow: 0 2px 16px rgba(0, 0, 0, .55);
}

.imgOverlayDark {
    background: linear-gradient(to top, rgba(0, 0, 0, .86), rgba(0, 0, 0, .26), rgba(0, 0, 0, 0));
}

.imgOverlayWash {
    background: rgba(0, 0, 0, .10);
}


/* ESCOPO (Modelo de planejamento) — mais “tchan” */
.scopeCol::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .04));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.scopeWatermark {
    position: absolute;
    right: -10px;
    top: -24px;
    font-weight: 900;
    font-size: 56px;
    letter-spacing: -.02em;
    color: rgba(0, 0, 0, .05);
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
}

.scopeItem:hover {
    background: rgba(0, 0, 0, .03);
}

.scopeChev {
    display: inline-block;
}

/* ESCOPO cards (compactos e clean) */
.scopeCard::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .04));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Modal (sucesso) */
.modalOverlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .22s ease;
}

.modalOverlay.modalHidden {
    display: none;
}

.modalOverlay.is-open {
    opacity: 1;
}

.modalDialog {
    width: 92%;
    max-width: 440px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
    transform: translateY(10px) scale(.98);
    opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
}

.modalOverlay.is-open .modalDialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}
