/* ==========================================================================
   V3 Viabilidade - versão 2 (editorial, contínua, sem faixas nem cards)
   Fundo único; separação por espaço, linhas finas e tipografia.
   ========================================================================== */

:root {
    --bg: #0B1330;
    --ink: #F3EFE7;
    --muted: #A3ACC2;
    --gold: #C6A66B;
    --gold-soft: #DCC598;
    --line: rgba(198, 166, 107, 0.28);

    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'Manrope', system-ui, sans-serif;

    --wrap: 1180px;
    --gutter: clamp(1.25rem, 5vw, 3rem);
    --section: clamp(5rem, 12vw, 10rem);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

h1, h2, h3 {
    font-family: var(--font-head);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

p { color: var(--muted); max-width: 62ch; text-wrap: pretty; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: var(--section) 0; }

h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.9rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn svg { flex: none; }
.btn-primary { background: var(--gold); color: var(--bg); border: 1px solid var(--gold); }
.btn-primary:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn-ghost { color: var(--ink); border: 1px solid rgba(243, 239, 231, 0.35); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 3rem 0;
    background:
        linear-gradient(100deg, rgba(11, 19, 48, 0.97) 0%, rgba(11, 19, 48, 0.82) 42%, rgba(11, 19, 48, 0.25) 100%),
        url('images/hero-bg2.webp') center right / cover no-repeat;
}
.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 18vh;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-logo { width: clamp(190px, 24vw, 300px); margin-bottom: clamp(2.5rem, 7vw, 5rem); }
.hero h1 {
    font-size: clamp(2.3rem, 5vw, 4rem);
    max-width: 15ch;
    margin-bottom: 1.75rem;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 300; margin-bottom: 2.5rem; }

.hero-inner > * { animation: rise 1s var(--ease) both; }
.hero-inner > *:nth-child(2) { animation-delay: 0.1s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.2s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Processo (percurso horizontal) ---------- */
.process-grid { display: block; }
.process-intro { max-width: 40rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.process-intro h2 { margin-bottom: 1rem; }

.timeline {
    list-style: none;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
}
.timeline::before {
    content: '';
    position: absolute;
    top: 5px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), rgba(198, 166, 107, 0.12));
}
.timeline li { position: relative; padding-top: 2.25rem; }
.timeline li::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 6px var(--bg);
}
.step-n {
    display: block;
    font-family: var(--font-head);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--gold);
    margin-bottom: 0.35rem;
}
.timeline h3 { font-size: clamp(1.25rem, 1.9vw, 1.55rem); margin-bottom: 0.4rem; }
.timeline li p { font-size: 1rem; }

/* ---------- Valor (declaração) ---------- */
.statement { padding-top: 0; }
.statement-text {
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 2.7vw, 2.15rem);
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--ink);
    max-width: 24ch;
    max-width: 34ch;
    margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
    text-wrap: balance;
}
.statement-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 5vw, 5rem);
}

/* ---------- Portfólio (assimétrico) ---------- */
.portfolio-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.portfolio-head h2 { margin-bottom: 1.25rem; }

.mosaic {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: clamp(0.75rem, 1.6vw, 1.25rem);
    height: clamp(520px, 62vw, 760px);
}
.work { position: relative; overflow: hidden; border-radius: 3px; background: #0f1a42; }
.work:first-child { grid-row: 1 / span 2; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.work:hover img { transform: scale(1.04); }
.work::after {
    content: '';
    position: absolute;
    inset: 45% 0 0 0;
    background: linear-gradient(to top, rgba(6, 11, 31, 0.78), transparent);
}
.work h3 {
    position: absolute;
    z-index: 1;
    left: clamp(1rem, 2.4vw, 1.75rem);
    bottom: clamp(0.9rem, 2vw, 1.5rem);
    font-size: clamp(1.05rem, 1.8vw, 1.4rem);
    color: var(--ink);
}

/* ---------- Portal de Terrenos ---------- */
.portal-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2rem, 7vw, 6rem);
    align-items: end;
}
.portal-grid p { margin-bottom: 2rem; }

/* ---------- FAQ ---------- */
.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(2rem, 7vw, 6rem);
}
.faq-list details { border-bottom: 1px solid var(--line); padding: 1.35rem 0; }
.faq-list details:first-child { padding-top: 0; }
.faq-list summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    font-family: var(--font-head);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--gold); font-family: var(--font-body); font-weight: 300; }
.faq-list details[open] summary::after { content: '\2212'; }
.faq-list details p { margin-top: 0.9rem; }

/* ---------- CTA final ---------- */
.closing { text-align: center; padding-bottom: clamp(4rem, 9vw, 7rem); }
.closing h2 { max-width: 20ch; margin: 0 auto 2.25rem; font-size: clamp(2rem, 4vw, 3.1rem); }
.closing .actions { justify-content: center; }

/* ---------- Rodapé ---------- */
.footer { padding: 2rem 0 2.5rem; background: #060B1F; }
.footer p { font-size: 0.875rem; max-width: none; text-align: center; color: rgba(163, 172, 194, 0.7); }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
    .process-grid, .portal-grid, .faq-grid { grid-template-columns: 1fr; }
    .process-intro { position: static; }
    .statement-cols { grid-template-columns: 1fr; }
    .mosaic { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
    .work, .work:first-child { grid-row: auto; aspect-ratio: 4 / 3; }
    .hero {
        background:
            linear-gradient(to bottom, rgba(11, 19, 48, 0.9) 0%, rgba(11, 19, 48, 0.7) 60%, rgba(11, 19, 48, 0.95) 100%),
            url('images/hero-bg2.webp') center / cover no-repeat;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-inner > * { animation: none; }
    .work img { transition: none; }
}

/* ---------- Ajuste: FAQ com mais presença ---------- */
.portal-inner h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.faq-grid h2 { position: sticky; top: 4rem; align-self: start; }
.faq-list details { padding: 1.6rem 0; }
.faq-list details:first-child { padding-top: 1.6rem; }
.faq-list summary { font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.25; }
.faq-list summary::after { font-size: 1.75rem; line-height: 1; }
.faq-list details p { font-size: 1.0625rem; color: var(--muted); }
@media (max-width: 900px) { .faq-grid h2 { position: static; } }

/* ==========================================================================
   Ritmo e profundidade (sem faixas e sem linhas entre seções)
   ========================================================================== */
/* fundo contínuo que respira: azul sobe e desce de tom, sem corte seco */
main {
    background: linear-gradient(180deg,
        #0B1330 0%, #0F1A44 14%, #0B1330 30%, #0B1330 72%, #0F1A44 88%, #0B1330 100%);
}

/* brilho dourado discreto atrás de duas seções */
#como-funciona { position: relative; isolation: isolate; }
#como-funciona::before {
    content: '';
    position: absolute;
    z-index: -1;
    pointer-events: none;
    width: min(70vw, 900px);
    aspect-ratio: 1;
    background: radial-gradient(closest-side, rgba(198, 166, 107, 0.10), transparent);
}
#como-funciona::before { top: -10%; right: -15%; }

/* imagem como divisória: a declaração de valor vira uma faixa de foto escurecida */
.section.statement {
    position: relative;
    padding: clamp(6rem, 16vw, 13rem) 0;
    margin: clamp(2rem, 6vw, 5rem) 0 clamp(5rem, 12vw, 10rem);
    background:
        linear-gradient(rgba(8, 14, 38, 0.78), rgba(8, 14, 38, 0.78)),
        url('images/hero-bg2.webp') 20% 70% / cover no-repeat;
}
.section.statement::before, .section.statement::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 28%;
    pointer-events: none;
}
.section.statement::before { top: 0; background: linear-gradient(to bottom, #0B1330, transparent); }
.section.statement::after { bottom: 0; background: linear-gradient(to top, #0B1330, transparent); }
.section.statement .wrap { position: relative; z-index: 1; }

/* fechamento deliberado: tom bem mais escuro, com brilho dourado */
.section.closing {
    margin-top: clamp(2rem, 6vw, 5rem);
    padding-top: clamp(6rem, 14vw, 11rem);
    background:
        radial-gradient(ellipse 60% 55% at 50% 38%, rgba(198, 166, 107, 0.14), transparent 70%),
        linear-gradient(to bottom, #0B1330 0%, #060B1F 32%, #060B1F 100%);
}

@media (max-width: 900px) {
    .section.statement { background-position: 35% 60%; }
}

/* legibilidade sobre a foto */
.section.statement .statement-cols p { color: #C9D0E0; }

/* ---------- Portal de Terrenos: faixa de imagem própria, composição centrada ---------- */
.section.portal {
    position: relative;
    margin: clamp(5rem, 12vw, 10rem) 0 clamp(3rem, 8vw, 6rem);
    padding: clamp(6rem, 15vw, 12rem) 0;
    text-align: center;
    background:
        linear-gradient(rgba(8, 14, 38, 0.8), rgba(8, 14, 38, 0.8)),
        url('images/acqua.webp') center 40% / cover no-repeat;
}
.section.portal::before, .section.portal::after {
    display: block;
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 28%;
    pointer-events: none;
    width: auto;
    aspect-ratio: auto;
    z-index: 0;
}
.section.portal::before { top: 0; bottom: auto; background: linear-gradient(to bottom, #0B1330, transparent); }
.section.portal::after { bottom: 0; background: linear-gradient(to top, #0B1330, transparent); }
.portal-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.portal-inner h2 { max-width: 22ch; margin-bottom: 1.5rem; }
.portal-inner p { margin: 0 auto 2.25rem; color: #C9D0E0; }

/* o brilho decorativo não pode gerar rolagem horizontal */
main { overflow-x: clip; }

@media (max-width: 900px) {
    .timeline { grid-template-columns: 1fr; padding-left: 1.75rem; border-left: 1px solid var(--line); }
    .timeline::before { display: none; }
    .timeline li { padding-top: 0; }
    .timeline li::before { left: -2.2rem; top: 0.6rem; }
}

/* ---------- Vídeos do Instagram (embed) ---------- */
.videos { padding-top: 0; }
.videos-head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.videos-head h2 { margin-bottom: 1rem; }
.video-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 2rem);
}
.video-row iframe {
    width: 100%;
    aspect-ratio: 1 / 1.82;
    height: auto;
    border: 0;
    border-radius: 3px;
    background: #fff;
}
@media (max-width: 900px) {
    .video-row {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        margin: 0 calc(var(--gutter) * -1);
        padding: 0 var(--gutter);
    }
    .video-row iframe { flex: 0 0 82%; scroll-snap-align: center; }
}

/* ---------- Declaração de valor: foto da maquete de ponta a ponta ---------- */
.section.statement {
    display: flex;
    align-items: center;
    min-height: clamp(520px, 52vw, 700px);
    padding: clamp(4rem, 8vw, 6rem) 0;
    background:
        linear-gradient(90deg, #0B1330 0%, rgba(11, 19, 48, 0.94) 30%, rgba(11, 19, 48, 0.45) 58%, rgba(11, 19, 48, 0) 85%),
        url('images/maquete.webp') 72% center / cover no-repeat;
}
.section.statement .wrap { width: 100%; }
.section.statement .statement-text { max-width: 30ch; margin-bottom: 1.75rem; }
.section.statement .statement-cols { grid-template-columns: 1fr; gap: 1.1rem; max-width: 33rem; }
@media (max-width: 900px) {
    .section.statement {
        align-items: flex-end;
        padding: 16rem 0 3rem;
        background:
            linear-gradient(to top, #0B1330 0%, rgba(11, 19, 48, 0.92) 45%, rgba(11, 19, 48, 0.1) 80%),
            url('images/maquete.webp') 75% top / cover no-repeat;
    }
}
