:root {
    --bg: #0d0b0c;
    --bg2: #151112;
    --card: #1c1718;
    --text: #f7f1e7;
    --muted: #b8ada4;
    --gold: #e0a12a;
    --gold2: #ffcd68;
    --line: rgba(255, 255, 255, 0.12);
    --max: 1180px;
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(var(--max), calc(100% - 40px));
    margin: auto;
}

.section {
    padding: 120px 0;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--gold2);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    line-height: 1.08;
}

h1 {
    font-size: clamp(3.8rem, 8vw, 7.8rem);
    letter-spacing: -0.045em;
}

h1 em {
    color: var(--gold2);
    font-weight: 600;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    letter-spacing: -0.035em;
}

p {
    color: var(--muted);
}

/* ========================================
   LOADER
======================================== */

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: #080707;
    transition:
        opacity 0.7s ease,
        visibility 0.7s ease;
}

.page-loader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader span {
    width: 52px;
    height: 52px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   CABEÇALHO
======================================== */

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    padding: 18px 0;
    transition:
        padding 0.35s ease,
        background 0.35s ease,
        border-color 0.35s ease;
}

.site-header.scrolled {
    padding: 10px 0;
    background: rgba(10, 8, 9, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav-wrap,
.nav,
.brand {
    display: flex;
    align-items: center;
}

.nav-wrap {
    justify-content: space-between;
}

.brand {
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.nav {
    gap: 30px;
}

.nav a {
    color: #ddd4cc;
    font-size: 0.9rem;
    transition: color 0.25s ease;
}

.nav a:hover {
    color: var(--gold2);
}

.nav-cta {
    padding: 10px 18px;
    border: 1px solid rgba(255, 205, 104, 0.55);
    border-radius: 999px;
}

.menu-toggle {
    display: none;
    padding: 8px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px;
    background: #fff;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

/* ========================================
   HERO
======================================== */

.hero {
    position: relative;
    display: flex;
    min-height: 100svh;
    align-items: center;
    overflow: hidden;
}

.hero-bg,
.hero-noise {
    position: absolute;
    inset: 0;
}

.hero-bg {
    background:
        linear-gradient(
            90deg,
            rgba(5, 4, 5, 0.96) 0%,
            rgba(8, 6, 7, 0.72) 42%,
            rgba(8, 6, 7, 0.25) 100%
        ),
        url("../images/hero.webp") center / cover no-repeat;

    transform: scale(1.04);
    animation: heroZoom 16s ease-out both;
}

@keyframes heroZoom {
    to {
        transform: scale(1);
    }
}

.hero-noise {
    opacity: 0.12;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 90px;
}

.hero-content > p.hero-lead {
    max-width: 620px;
    margin: 28px 0;
    color: #d6ccc4;
    font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    min-height: 52px;
    padding: 0 25px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}

.btn-primary {
    color: #1b1205;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    box-shadow: 0 12px 35px rgba(224, 161, 42, 0.18);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 42px rgba(224, 161, 42, 0.3);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
    color: #111;
    background: #fff;
}

.scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    z-index: 3;
    display: flex;
    gap: 10px;
    align-items: center;
    color: #aaa;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.scroll-hint span {
    display: block;
    width: 1px;
    height: 32px;
    background: linear-gradient(var(--gold), transparent);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    50% {
        opacity: 0.25;
        transform: translateY(5px);
    }
}

/* ========================================
   SOBRE
======================================== */

.split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 92px;
    align-items: center;
}

.media-stack {
    position: relative;
    height: 650px;
}

.media-main {
    width: 78%;
    height: 90%;
    overflow: hidden;
    border-radius: var(--radius);
}

.media-small {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 48%;
    height: 45%;
    overflow: hidden;
    border: 8px solid var(--bg);
    border-radius: 20px;
}

.experience-badge {
    position: absolute;
    top: 4%;
    right: 4%;
    display: flex;
    width: 150px;
    height: 150px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #251605;
    background: linear-gradient(145deg, var(--gold2), #b87300);
    border-radius: 50%;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.3);
    transform: rotate(7deg);
}

.experience-badge strong,
.experience-badge small {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.experience-badge span {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
}

.copy p {
    font-size: 1.03rem;
}

.text-link {
    display: inline-flex;
    gap: 10px;
    margin-top: 14px;
    color: var(--gold2);
    font-weight: 700;
}

.text-link span {
    transition: transform 0.25s ease;
}

.text-link:hover span {
    transform: translateX(6px);
}

/* ========================================
   SERVIÇOS
======================================== */

.services {
    background: var(--bg2);
}

.section-head {
    display: flex;
    gap: 60px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 58px;
}

.section-head > p {
    max-width: 440px;
    margin: 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.service-card {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #211;
    border-radius: 20px;
}

.service-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(
        transparent 30%,
        rgba(7, 6, 6, 0.95)
    );
}

.service-card img {
    transition: transform 0.75s ease;
}

.service-card:hover img {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 28px;
}

.card-overlay span {
    color: var(--gold2);
    font-size: 0.75rem;
    font-weight: 700;
}

.card-overlay h3 {
    margin: 7px 0;
    font-size: 1.65rem;
}

.card-overlay p {
    margin: 0;
    color: #cfc4bc;
    font-size: 0.88rem;
}

.service-note {
    margin-top: 25px;
    padding: 19px 24px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.service-note strong {
    color: var(--text);
}

/* ========================================
   FRASE
======================================== */

.statement {
    position: relative;
    display: grid;
    min-height: 520px;
    place-items: center;
    overflow: hidden;
    text-align: center;
}

.statement-bg {
    position: absolute;
    inset: -20px;
    background:
        linear-gradient(
            rgba(9, 7, 8, 0.75),
            rgba(9, 7, 8, 0.86)
        ),
        url("../images/recording.webp") center / cover fixed;
}

.statement .container {
    position: relative;
}

.statement p {
    max-width: 980px;
    margin: 0 auto 22px;
    color: #fff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.25;
}

.statement span {
    color: var(--gold2);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ========================================
   LINHA DO TEMPO
======================================== */

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 150px;
    width: 1px;
    content: "";
    background: linear-gradient(
        transparent,
        var(--gold),
        transparent
    );
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 54px;
    padding: 35px 0;
}

.timeline-item::before {
    position: absolute;
    top: 48px;
    left: 144px;
    width: 13px;
    height: 13px;
    content: "";
    background: var(--gold2);
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(224, 161, 42, 0.12);
}

.year {
    color: var(--gold2);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.7rem;
}

.timeline h3 {
    font-size: 1.8rem;
}

.timeline p {
    margin: 9px 0 0;
}

/* ========================================
   METODOLOGIA
======================================== */

.feature {
    background: var(--bg2);
}

.feature-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.feature-copy > p:not(.eyebrow) {
    font-size: 1.05rem;
}

.feature-copy ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    padding: 0;
    margin: 28px 0 34px;
    list-style: none;
}

.feature-copy li::before {
    margin-right: 9px;
    color: var(--gold2);
    content: "✓";
}

.feature-media {
    position: relative;
    height: 650px;
}

.feature-media img {
    border-radius: var(--radius);
}

.floating-card {
    position: absolute;
    bottom: 35px;
    left: -45px;
    display: flex;
    max-width: 280px;
    padding: 24px 28px;
    flex-direction: column;
    background: rgba(22, 17, 18, 0.93);
    border: 1px solid var(--line);
    border-radius: 18px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.floating-card strong {
    color: var(--gold2);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.45rem;
}

.floating-card span {
    color: var(--muted);
}

/* ========================================
   GALERIA
======================================== */

.gallery {
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    grid-auto-rows: 330px;
    gap: 12px;
    padding: 0 12px;
}

.gallery-grid figure {
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
}

.gallery-grid figure img {
    transition: transform 0.8s ease;
}

.gallery-grid figure:hover img {
    transform: scale(1.06);
}

.g-wide {
    grid-column: span 2;
}

/* ========================================
   CONTATO
======================================== */

.contact {
    position: relative;
    overflow: hidden;
    background: #100c0d;
}

.contact-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 15% 50%,
            rgba(224, 161, 42, 0.15),
            transparent 35%
        ),
        radial-gradient(
            circle at 90% 20%,
            rgba(255, 205, 104, 0.07),
            transparent 28%
        );
}

.contact-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
}

.contact-copy p {
    font-size: 1.08rem;
}

.contact-chips {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.contact-chips span {
    padding: 8px 13px;
    color: #d4c9c0;
    font-size: 0.78rem;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.contact-form {
    padding: 34px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 22px;
}

.contact-form label {
    display: block;
    margin-bottom: 18px;
    color: #e7ddd4;
    font-size: 0.82rem;
    font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    color: #fff;
    background: #0f0c0d;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    outline: none;
    font: inherit;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(224, 161, 42, 0.1);
}

.contact-form select option {
    background: #161213;
}

.contact-form .btn {
    width: 100%;
}

.contact-form small {
    display: block;
    margin-top: 12px;
    color: #897f79;
    text-align: center;
}

.contact-form code {
    color: #bcae9f;
}

/* ========================================
   RODAPÉ
======================================== */

footer {
    padding: 28px 0;
    background: #090708;
    border-top: 1px solid var(--line);
}

.footer-wrap {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.footer-wrap .brand img {
    width: 38px;
    height: 38px;
}

.footer-wrap p {
    margin: 0;
    font-size: 0.78rem;
}

/* ========================================
   ANIMAÇÕES NA ROLAGEM
======================================== */

.reveal,
.reveal-left,
.reveal-right {
    opacity: 0;
    visibility: hidden;
    filter: blur(7px);

    transition:
        opacity 0.9s ease var(--reveal-delay, 0ms),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1)
            var(--reveal-delay, 0ms),
        filter 0.9s ease var(--reveal-delay, 0ms);

    will-change: opacity, transform, filter;
}

.reveal {
    transform: translate3d(0, 85px, 0) scale(0.97);
}

.reveal-left {
    transform: translate3d(-110px, 25px, 0);
}

.reveal-right {
    transform: translate3d(110px, 25px, 0);
}

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
    opacity: 1;
    visibility: visible;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
}

/* Efeito sequencial nos cards */

.cards-grid .service-card:nth-child(1),
.timeline .timeline-item:nth-child(1),
.gallery-grid figure:nth-child(1) {
    --reveal-delay: 0ms;
}

.cards-grid .service-card:nth-child(2),
.timeline .timeline-item:nth-child(2),
.gallery-grid figure:nth-child(2) {
    --reveal-delay: 100ms;
}

.cards-grid .service-card:nth-child(3),
.timeline .timeline-item:nth-child(3),
.gallery-grid figure:nth-child(3) {
    --reveal-delay: 200ms;
}

.cards-grid .service-card:nth-child(4),
.timeline .timeline-item:nth-child(4),
.gallery-grid figure:nth-child(4) {
    --reveal-delay: 300ms;
}

.timeline .timeline-item:nth-child(5) {
    --reveal-delay: 100ms;
}

.timeline .timeline-item:nth-child(6) {
    --reveal-delay: 200ms;
}

/* ========================================
   RESPONSIVO — TABLET
======================================== */

@media (max-width: 980px) {
    .section {
        padding: 90px 0;
    }

    .menu-toggle {
        z-index: 3;
        display: block;
    }

    .nav {
        position: fixed;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        background: rgba(9, 7, 8, 0.98);
        transform: translateX(100%);
        transition: transform 0.35s ease;
    }

    .nav.open {
        transform: translateX(0);
    }

    .nav a {
        font-size: 1.25rem;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .split,
    .feature-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 58px;
    }

    .media-stack,
    .feature-media {
        height: 560px;
    }

    .cards-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-head {
        align-items: flex-start;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .g-wide {
        grid-column: span 2;
    }

    .footer-wrap {
        flex-wrap: wrap;
    }

    .floating-card {
        left: 20px;
    }

    .statement-bg {
        background-attachment: scroll;
    }

    .reveal-left {
        transform: translate3d(-70px, 20px, 0);
    }

    .reveal-right {
        transform: translate3d(70px, 20px, 0);
    }
}

/* ========================================
   RESPONSIVO — CELULAR
======================================== */

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 28px), var(--max));
    }

    .section {
        padding: 72px 0;
    }

    .site-header .brand span {
        display: none;
    }

    .hero-content {
        padding-top: 70px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .scroll-hint {
        display: none;
    }

    .split {
        gap: 44px;
    }

    .media-stack {
        height: 450px;
    }

    .media-main {
        width: 88%;
    }

    .media-small {
        width: 52%;
        height: 38%;
    }

    .experience-badge {
        width: 112px;
        height: 112px;
    }

    .experience-badge span {
        font-size: 1.8rem;
    }

    .section-head {
        display: block;
    }

    .section-head > p {
        margin-top: 20px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        height: 430px;
    }

    .timeline::before {
        left: 16px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 3px;
        padding-left: 50px;
    }

    .timeline-item::before {
        top: 44px;
        left: 10px;
    }

    .year {
        font-size: 1.2rem;
    }

    .feature-copy ul {
        grid-template-columns: 1fr;
    }

    .feature-media {
        height: 480px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
    }

    .g-wide {
        grid-column: auto;
    }

    .contact-form {
        padding: 23px;
    }

    .footer-wrap {
        display: block;
        text-align: center;
    }

    .footer-wrap .brand {
        justify-content: center;
    }

    .footer-wrap p {
        margin-top: 9px;
    }

    .reveal,
    .reveal-left,
    .reveal-right {
        transform: translate3d(0, 60px, 0) scale(0.98);
    }

    .reveal.is-visible,
    .reveal-left.is-visible,
    .reveal-right.is-visible {
        transform: translate3d(0, 0, 0) scale(1);
    }
}