:root {
    --color-bg: #070a08;
    --color-bg-soft: #0d130f;
    --color-text: #ddd7c5;
    --color-muted: #999483;
    --color-gold: #b8944f;
    --color-gold-light: #d2b56f;
    --color-border: rgba(184, 148, 79, 0.45);
    --navbar-height: 72px;
    --footer-height: 34px;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    padding-top: var(--navbar-height);
    padding-bottom: var(--footer-height);
    color: var(--color-text);
    background: var(--color-bg);
    font-family: Georgia, "Times New Roman", serif;
}

a {
    color: inherit;
}

/* Acessibilidade */

.skip-link {
    position: fixed;
    top: -100px;
    left: 1rem;
    z-index: 1100;
    padding: 0.65rem 1rem;
    color: #000;
    background: var(--color-gold-light);
}

.skip-link:focus {
    top: 0;
}

/* Navbar */

.site-navbar {
    min-height: var(--navbar-height);
    background: rgba(3, 5, 4, 0.97);
    border-bottom: 1px solid var(--color-border);
    transition:
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.site-navbar.is-scrolled {
    background: rgba(3, 5, 4, 0.995);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.45);
}

.site-navbar__container {
    padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.site-brand {
    display: inline-flex;
    gap: 0.85rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.site-brand__logo {
    display: block;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: contain;
}

.site-brand__name {
    color: var(--color-gold-light);
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    letter-spacing: 0.055em;
    white-space: nowrap;
}

.site-menu {
    gap: clamp(0.25rem, 1.5vw, 1.5rem);
}

.site-menu .nav-link {
    position: relative;
    padding: 0.65rem 0.75rem !important;
    color: var(--color-muted);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: color 160ms ease;
}

.site-menu .nav-link::after {
    position: absolute;
    right: 0.75rem;
    bottom: 0.35rem;
    left: 0.75rem;
    height: 1px;
    content: "";
    background: var(--color-gold-light);
    opacity: 0;
    transform: scaleX(0);
    transition:
        opacity 160ms ease,
        transform 160ms ease;
}

.site-menu .nav-link:hover,
.site-menu .nav-link:focus-visible,
.site-menu .nav-link.active {
    color: var(--color-gold-light);
}

.site-menu .nav-link:hover::after,
.site-menu .nav-link:focus-visible::after,
.site-menu .nav-link.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.navbar-toggler {
    border-color: var(--color-border);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(184, 148, 79, 0.22);
}

/* Estrutura principal */

.site-main {
    min-height: calc(
        100vh - var(--navbar-height) - var(--footer-height)
    );
}

/* Abertura cinematográfica */

.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: calc(
        100vh - var(--navbar-height) - var(--footer-height)
    );
    align-items: center;
    overflow: hidden;
    background: #09100c;
}

.hero__background {
    position: absolute;
    inset: 0;
    z-index: -3;
    background-color: #09100c;
    background-image: url("../img/abertura-desvelados.webp");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(
            90deg,
            rgba(3, 6, 4, 0.98) 0%,
            rgba(3, 6, 4, 0.84) 34%,
            rgba(3, 6, 4, 0.18) 70%,
            rgba(3, 6, 4, 0.35) 100%
        ),
        linear-gradient(
            0deg,
            rgba(3, 6, 4, 0.84) 0%,
            transparent 30%,
            rgba(3, 6, 4, 0.12) 100%
        );
}

.hero__container {
    width: 100%;
    padding-inline: clamp(1.5rem, 7vw, 8rem);
}

.hero__content {
    width: min(100%, 760px);
    padding-block: clamp(4rem, 10vh, 8rem);
    animation: hero-enter 800ms ease-out both;
}

.hero__project {
    display: inline-flex;
    gap: 0.75rem;
    align-items: center;
    color: var(--color-gold);
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero__project::before,
.hero__project::after {
    width: clamp(1.5rem, 4vw, 3.5rem);
    height: 1px;
    content: "";
    background: var(--color-border);
}

.hero h1 {
    max-width: 720px;
    margin: 1rem 0 0.8rem;
    color: var(--color-gold-light);
    font-size: clamp(3.1rem, 7.5vw, 7.2rem);
    font-weight: 400;
    line-height: 0.94;
    letter-spacing: 0.015em;
    text-wrap: balance;
    text-shadow: 0 0.2rem 1.4rem #000;
}

.hero__lead {
    max-width: 620px;
    margin: 1.6rem 0 2.2rem;
    color: #d5ceba;
    font-size: clamp(1rem, 1.7vw, 1.35rem);
    font-style: italic;
    line-height: 1.7;
    text-shadow: 0 0.15rem 0.8rem #000;
}

.hero__button {
    display: inline-flex;
    min-width: 250px;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    color: var(--color-gold-light);
    background: rgba(11, 20, 15, 0.72);
    border: 1px solid var(--color-gold);
    outline: 1px solid rgba(184, 148, 79, 0.25);
    outline-offset: 4px;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease;
}

.hero__button:hover,
.hero__button:focus-visible {
    color: #080a08;
    background: var(--color-gold-light);
    box-shadow: 0 0 1.5rem rgba(184, 148, 79, 0.28);
}

.hero__button:focus-visible {
    outline: 2px solid #fff0bd;
    outline-offset: 5px;
}

.hero__scroll {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    border: 1px solid rgba(184, 148, 79, 0.38);
    border-radius: 50%;
    text-decoration: none;
    transform: translateX(-50%);
}

.hero__scroll:hover,
.hero__scroll:focus-visible {
    color: var(--color-gold-light);
    border-color: var(--color-gold-light);
}

.hero__scroll span {
    margin-top: -0.25rem;
    font-size: 1.4rem;
}

/* Conteúdo abaixo da abertura */

.journey-intro,
.placeholder-page {
    display: flex;
    min-height: 48vh;
    max-width: 900px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-block: 5rem;
    text-align: center;
}

.section-kicker {
    color: var(--color-gold);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.journey-intro h2,
.placeholder-page h1 {
    margin: 0.8rem 0 1rem;
    color: var(--color-gold-light);
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 400;
}

.journey-intro p,
.placeholder-page p {
    max-width: 680px;
    color: var(--color-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Rodapé */

.site-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1020;
    display: grid;
    min-height: var(--footer-height);
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding-inline: clamp(1rem, 3vw, 2.5rem);
    color: var(--color-muted);
    background: rgba(3, 5, 4, 0.97);
    border-top: 1px solid var(--color-border);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-footer span:last-child {
    text-align: right;
}

.site-footer__ornament {
    padding-inline: 1rem;
    color: var(--color-gold);
}

/* Animações */

@keyframes hero-enter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablets e telas menores */

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.75rem 0 1rem;
        border-top: 1px solid rgba(184, 148, 79, 0.2);
    }

    .site-menu .nav-link {
        padding: 0.7rem 0 !important;
    }

    .site-menu .nav-link::after {
        right: auto;
        left: 0;
        width: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero__background {
        background-position: 65% center;
    }

    .hero__overlay {
        background:
            linear-gradient(
                90deg,
                rgba(3, 6, 4, 0.96),
                rgba(3, 6, 4, 0.62)
            ),
            linear-gradient(
                0deg,
                rgba(3, 6, 4, 0.9),
                transparent 45%
            );
    }

    .hero__container {
        padding-inline: 1.5rem;
    }

    .hero__button {
        width: min(100%, 310px);
    }
}

/* Celulares */

@media (max-width: 575.98px) {
    :root {
        --navbar-height: 64px;
        --footer-height: 32px;
    }

    .site-brand__logo {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .site-footer {
        grid-template-columns: 1fr auto;
    }

    .site-footer__ornament,
    .site-footer span:last-child {
        display: none;
    }
}

/* Redução de movimento */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}