@import url("https://fonts.googleapis.com/css2?family=Allura&family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600&display=swap");

:root {
    --fundo: #0e0b0a;
    --fundo-secundario: #171210;
    --fundo-claro: #211916;

    --texto: #f8f5f2;
    --texto-secundario: #b7ada6;

    --destaque: #c97d73;
    --destaque-claro: #e5a39b;
    --destaque-escuro: #9f5c55;

    --borda: rgba(255, 255, 255, 0.12);
    --sombra: rgba(0, 0, 0, 0.35);

    --largura-maxima: 1400px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--fundo);
    color: var(--texto);
    font-family: "Inter", sans-serif;
    line-height: 1.6;
}

body,
button,
a {
    font-family: "Inter", sans-serif;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
    cursor: pointer;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

section {
    position: relative;
    scroll-margin-top: 0;
}

main {
    overflow: hidden;
}

/* Cabeçalho */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    padding: 1.25rem 6%;

    background: linear-gradient(
        to bottom,
        rgba(14, 11, 10, 0.96),
        rgba(14, 11, 10, 0.72),
        transparent
    );

    transition:
        background-color 0.3s ease,
        backdrop-filter 0.3s ease,
        box-shadow 0.3s ease;
}

.site-header.rolado {
    background-color: rgba(14, 11, 10, 0.86);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(14px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;

    color: var(--texto);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
}

.logo span:first-child {
    color: var(--destaque-claro);
    font-size: 1.4rem;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 1.7rem;
}

.nav-link {
    position: relative;

    color: var(--texto-secundario);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.07rem;
    text-decoration: none;
    text-transform: uppercase;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.nav-link::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: -0.5rem;
    left: 0;

    height: 1px;

    background-color: var(--destaque-claro);

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.ativo {
    color: var(--texto);
}

.nav-link:hover {
    transform: translateY(-2px);
}

.nav-link:hover::after,
.nav-link.ativo::after {
    transform: scaleX(1);
}

/* Elementos gerais */

.secao {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 100vh;
    min-height: 100svh;

    padding: 8rem 8%;
}

.secao-cabecalho {
    position: relative;
    z-index: 2;

    max-width: 780px;
    margin-bottom: 4rem;
}

.secao-cabecalho.centralizado {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.secao-etiqueta {
    margin: 0 0 1.2rem;

    color: var(--destaque-claro);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
}

.secao h2 {
    margin: 0 0 1.5rem;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(3.5rem, 7vw, 6.7rem);
    font-weight: 600;
    line-height: 0.92;
    letter-spacing: -0.08rem;
}

.secao-cabecalho > p:last-child {
    margin: 0;

    color: var(--texto-secundario);
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    line-height: 1.9;
}

/* Botões */

.botao-principal,
.botao-secundario {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    padding: 0.9rem 1.7rem;

    border-radius: 999px;

    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.botao-principal {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background-color: var(--destaque);
    color: var(--texto);

    box-shadow: 0 14px 35px rgba(201, 125, 115, 0.22);
}

.botao-principal:hover {
    background-color: var(--destaque-claro);

    box-shadow: 0 18px 45px rgba(201, 125, 115, 0.34);

    transform: translateY(-3px);
}

.botao-secundario {
    border: 1px solid var(--borda);
    background-color: rgba(255, 255, 255, 0.025);
    color: var(--texto);

    backdrop-filter: blur(8px);
}

.botao-secundario:hover {
    border-color: rgba(229, 163, 155, 0.5);
    background-color: rgba(255, 255, 255, 0.07);

    transform: translateY(-3px);
}

.botao-principal:active,
.botao-secundario:active {
    transform: translateY(0);
}

/* Hero */

.hero {
    position: relative;
    isolation: isolate;

    display: flex;
    align-items: center;

    min-height: 100vh;
    min-height: 100svh;

    padding: 8rem 7% 5rem;

    background-color: var(--fundo);
}

.hero::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            var(--fundo) 0%,
            var(--fundo) 20%,
            rgba(14, 11, 10, 0.98) 30%,
            rgba(14, 11, 10, 0.83) 43%,
            rgba(14, 11, 10, 0.54) 56%,
            rgba(14, 11, 10, 0.2) 72%,
            transparent 90%
        ),
        linear-gradient(
            to top,
            var(--fundo) 0%,
            rgba(14, 11, 10, 0.48) 13%,
            transparent 38%,
            transparent 72%,
            rgba(14, 11, 10, 0.42) 100%
        );

    pointer-events: none;
}

.hero-imagem {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;

    width: 72%;
    height: 100%;

    object-fit: cover;
    object-position: 70% 30%;

    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.15) 7%,
        rgba(0, 0, 0, 0.55) 18%,
        rgba(0, 0, 0, 0.9) 34%,
        black 48%,
        black 100%
    );

    mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.15) 7%,
        rgba(0, 0, 0, 0.55) 18%,
        rgba(0, 0, 0, 0.9) 34%,
        black 48%,
        black 100%
    );

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.hero-conteudo {
    position: relative;
    z-index: 2;

    width: 48%;
    max-width: 720px;
}

.hero-data {
    margin: 0 0 1.2rem;

    color: var(--destaque-claro);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25rem;
}

.hero h1 {
    margin: 0 0 1.7rem;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(4.5rem, 8vw, 8rem);
    font-weight: 600;
    line-height: 0.82;
    letter-spacing: -0.2rem;
}

.hero-descricao {
    max-width: 590px;
    margin: 0 0 2.5rem;

    color: var(--texto-secundario);
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    line-height: 1.85;
}

.hero-acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.indicador-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;

    color: var(--texto-secundario);
    font-size: 0.65rem;
    letter-spacing: 0.12rem;
    text-decoration: none;
    text-transform: uppercase;

    transform: translateX(-50%);
}

.indicador-scroll .seta {
    color: var(--destaque-claro);
    font-size: 1.25rem;

    animation: mover-seta 1.8s ease-in-out infinite;
}

@keyframes mover-seta {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(7px);
    }
}

/* História */

.historia {
    background:
        radial-gradient(
            circle at 78% 28%,
            rgba(201, 125, 115, 0.15),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #191310 0%,
            #120e0d 55%,
            var(--fundo) 100%
        );
}

.linha-do-tempo {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;

    width: 100%;
    max-width: var(--largura-maxima);
}

.momento {
    position: relative;

    min-height: 330px;
    padding: 2.2rem;

    overflow: hidden;

    border: 1px solid var(--borda);
    border-radius: 1.4rem;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.015)
        );

    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);

    transition:
        border-color 0.3s ease,
        background-color 0.3s ease,
        transform 0.3s ease;
}

.momento:hover {
    border-color: rgba(229, 163, 155, 0.4);
    background-color: rgba(255, 255, 255, 0.06);

    transform: translateY(-7px);
}

.momento-numero {
    position: absolute;
    top: 0.6rem;
    right: 1.2rem;

    color: rgba(255, 255, 255, 0.05);
    font-family: "Cormorant Garamond", serif;
    font-size: 7rem;
    font-weight: 700;
    line-height: 1;
}

.momento-data {
    position: relative;
    z-index: 1;

    margin: 0 0 1.1rem;

    color: var(--destaque-claro);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.13rem;
    text-transform: uppercase;
}

.momento h3 {
    position: relative;
    z-index: 1;

    margin: 0 0 1.2rem;

    font-family: "Cormorant Garamond", serif;
    font-size: 2.1rem;
    font-weight: 600;
    line-height: 1;
}

.momento > p:last-child {
    position: relative;
    z-index: 1;

    margin: 0;

    color: var(--texto-secundario);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Contagem */

.contagem {
    align-items: center;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(201, 125, 115, 0.13),
            transparent 42%
        ),
        var(--fundo);
}

.contadores {
    display: grid;
    grid-template-columns: repeat(6, minmax(115px, 1fr));
    gap: 1rem;

    width: 100%;
    max-width: 1200px;
}

.contador-item {
    padding: 2rem 1rem;

    border: 1px solid var(--borda);
    border-radius: 1.3rem;

    background: rgba(255, 255, 255, 0.035);

    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);

    transition:
        border-color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.contador-item:hover {
    border-color: rgba(229, 163, 155, 0.45);
    background-color: rgba(255, 255, 255, 0.06);

    transform: translateY(-6px);
}

.contador-item span {
    display: block;

    color: var(--texto);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 600;
    line-height: 0.9;
}

.contador-item p {
    margin: 0.9rem 0 0;

    color: var(--texto-secundario);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.13rem;
    text-transform: uppercase;
}

.contagem-observacao {
    margin: 2.5rem 0 0;

    color: var(--texto-secundario);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.35rem;
    font-style: italic;
}

/* Carta */

.carta {
    align-items: center;

    background:
        radial-gradient(
            circle at 30% 40%,
            rgba(201, 125, 115, 0.13),
            transparent 35%
        ),
        linear-gradient(
            160deg,
            var(--fundo-secundario),
            var(--fundo)
        );
}

.carta-caixa {
    width: 100%;
    max-width: 900px;
    padding: clamp(2rem, 6vw, 5rem);

    border: 1px solid var(--borda);
    border-radius: 1.8rem;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.018)
        );

    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);

    text-align: center;
}

.carta-caixa h2 {
    font-size: clamp(3.2rem, 7vw, 6rem);
}

.carta-introducao {
    max-width: 620px;
    margin: 0 auto 2.2rem;

    color: var(--texto-secundario);
    font-size: 1.05rem;
    line-height: 1.8;
}

.carta-conteudo {
    max-height: 0;
    margin-top: 0;

    overflow: hidden;

    opacity: 0;
    transform: translateY(12px);

    transition:
        max-height 0.8s ease,
        margin-top 0.5s ease,
        opacity 0.5s ease,
        transform 0.5s ease;
}

.carta-conteudo.aberta {
    max-height: 1100px;
    margin-top: 3rem;

    opacity: 1;
    transform: translateY(0);
}

.carta-texto {
    padding-top: 2.5rem;

    border-top: 1px solid var(--borda);

    color: #d8cfca;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 1.9;
    text-align: left;
}

.carta-texto p {
    margin: 0 0 1.5rem;
}

.assinatura {
    margin-top: 2.5rem !important;

    color: var(--destaque-claro);
    font-family: "Allura", cursive;
    font-size: 2.7rem;
    line-height: 1.1;
}

/* Memórias */

.memorias {
    display: block;
    min-height: auto;
    padding-top: 9rem;
    padding-bottom: 8rem;

    background:
        radial-gradient(
            circle at 15% 12%,
            rgba(201, 125, 115, 0.12),
            transparent 27%
        ),
        radial-gradient(
            circle at 88% 48%,
            rgba(201, 125, 115, 0.09),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            var(--fundo) 0%,
            #130f0e 45%,
            #0b0908 100%
        );
}

.memorias .secao-cabecalho {
    margin-bottom: 7rem;
}

.memorias-trilha {
    position: relative;

    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.memorias-caminho {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;

    width: 100%;
    height: 100%;

    overflow: visible;
    pointer-events: none;
}

.caminho-base,
.caminho-progresso {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4;
    stroke-dasharray: 1 18;
    vector-effect: non-scaling-stroke;
}

.caminho-base {
    stroke: rgba(255, 255, 255, 0.12);
}

.caminho-progresso {
    stroke: var(--destaque-claro);

    filter: drop-shadow(
        0 0 4px rgba(229, 163, 155, 0.35)
    );
}

.memoria-item {
    position: relative;
    z-index: 2;

    width: min(34%, 390px);
    margin: 0 0 7rem;

    opacity: 0;

    transition:
        opacity 0.8s ease,
        transform 0.9s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.memoria-item:last-of-type {
    margin-bottom: 2rem;
}

.memoria-item.lado-esquerdo {
    margin-right: auto;
    transform: translate(-70px, 70px) rotate(-2deg);
}

.memoria-item.lado-direito {
    margin-left: auto;
    transform: translate(70px, 70px) rotate(2deg);
}

.memoria-item.visivel {
    opacity: 1;
    transform: translate(0, 0) rotate(0);
}

.memoria-foto {
    position: relative;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1.5rem;

    background-color: var(--fundo-claro);

    box-shadow:
        0 28px 65px rgba(0, 0, 0, 0.35),
        0 0 0 8px rgba(255, 255, 255, 0.018);
}

.memoria-foto::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(14, 11, 10, 0.32),
            transparent 38%
        );

    pointer-events: none;
}

.memoria-foto img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        filter 0.5s ease,
        transform 0.7s ease;
}

.memoria-item:hover .memoria-foto img {
    transform: scale(1.035);
}

.fim-caminho {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin-top: 4rem;

    text-align: center;
}

.fim-caminho span {
    color: var(--destaque-claro);
    font-size: 2rem;
}

.fim-caminho p {
    margin: 0.6rem 0 0;

    color: var(--texto-secundario);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.45rem;
    font-style: italic;
}

/* Rodapé */

footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;

    padding: 2rem 7%;

    border-top: 1px solid var(--borda);

    background-color: #080706;
    color: var(--texto-secundario);

    font-size: 0.75rem;
}

/* Animações com JavaScript */

.js .revelar {
    opacity: 0;
    transform: translateY(35px);

    transition:
        opacity 0.75s ease,
        transform 0.75s ease;
}

.js .revelar.visivel {
    opacity: 1;
    transform: translateY(0);
}

/* Foco e acessibilidade */

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--destaque-claro);
    outline-offset: 5px;
}

/* Tablets */

@media (max-width: 1050px) {
    .site-header {
        padding-right: 4%;
        padding-left: 4%;
    }

    .site-header nav {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.68rem;
    }

    .hero {
        padding-right: 5%;
        padding-left: 5%;
    }

    .hero-imagem {
        width: 75%;
    }

    .hero-conteudo {
        width: 56%;
    }

    .linha-do-tempo {
        grid-template-columns: 1fr;
    }

    .momento {
        min-height: auto;
    }

    .contadores {
        grid-template-columns: repeat(3, 1fr);
    }

    .memoria-item {
    width: min(39%, 360px);
}
}

/* Celulares */

@media (max-width: 760px) {
    .site-header {
        justify-content: flex-start;

        padding: 0.9rem 0;

        background-color: rgba(14, 11, 10, 0.9);
        backdrop-filter: blur(12px);
    }

    .logo {
        display: none;
    }

    .site-header nav {
        justify-content: flex-start;
        gap: 1.15rem;

        width: 100%;
        padding: 0.3rem 1rem;

        overflow-x: auto;

        scrollbar-width: none;
    }

    .site-header nav::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        flex: 0 0 auto;

        font-size: 0.62rem;
        letter-spacing: 0.03rem;
        white-space: nowrap;
    }

    .hero {
        align-items: flex-end;

        min-height: 100svh;
        padding: 8rem 1.4rem 5rem;
    }

    .hero::before {
        background:
            linear-gradient(
                to top,
                var(--fundo) 0%,
                rgba(14, 11, 10, 0.95) 22%,
                rgba(14, 11, 10, 0.7) 50%,
                rgba(14, 11, 10, 0.25) 100%
            ),
            linear-gradient(
                to right,
                rgba(14, 11, 10, 0.65),
                transparent
            );
    }

    .hero-imagem {
        width: 100%;

        opacity: 0.88;

        object-position: 68% 28%;

        -webkit-mask-image: none;
        mask-image: none;
    }

    .hero-conteudo {
        width: 100%;
        max-width: 560px;
    }

    .hero h1 {
        font-size: clamp(4rem, 19vw, 6rem);
        letter-spacing: -0.12rem;
    }

    .hero-descricao {
        max-width: 95%;
    }

    .hero-acoes {
        flex-direction: column;
    }

    .botao-principal,
    .botao-secundario {
        width: 100%;
    }

    .indicador-scroll {
        display: none;
    }

    .secao {
        min-height: auto;
        padding: 7rem 1.4rem;
    }

    .secao h2 {
        font-size: clamp(3.4rem, 16vw, 5.2rem);
        letter-spacing: -0.06rem;
    }

    .linha-do-tempo {
        grid-template-columns: 1fr;
    }

    .contadores {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .contador-item {
        padding: 1.6rem 0.6rem;
    }

    .carta-caixa {
        padding: 2.2rem 1.3rem;
    }

    .memorias {
        padding: 7rem 1.1rem 6rem;
    }

    .memorias .secao-cabecalho {
        margin-bottom: 5rem;
    }

    .memorias-trilha {
        padding-right: 0.3rem;
        padding-left: 0.3rem;
    }

  .memoria-item {
    width: 68%;
    max-width: 320px;
    margin-bottom: 5.5rem;
    }

    .memoria-item.lado-esquerdo {
        margin-right: auto;
        transform: translate(-35px, 55px);
    }

    .memoria-item.lado-direito {
        margin-left: auto;
        transform: translate(35px, 55px);
    }

    .memoria-item.visivel {
        transform: translate(0, 0);
    }

    footer {
        flex-direction: column;
        align-items: center;

        text-align: center;
    }
}

/* Celulares pequenos */

@media (max-width: 390px) {
    .site-header nav {
        gap: 0.9rem;
    }

    .nav-link {
        font-size: 0.58rem;
    }

    .contador-item p {
        font-size: 0.62rem;
        letter-spacing: 0.06rem;
    }

    .memoria-item {
    width: 74%;
    }
}

/* Movimento reduzido */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .memoria-item {
        opacity: 1;
        transform: none !important;
    }
}