/* Novos Passos v2 · mesma identidade da marca (azul-marinho, azul royal, Archivo), formatos novos nas seções.
   Carregado depois de styles.css. Sem cor ou tipografia fora da marca. */

/* ---------- divisa entre seções: uma linha fina com a marca de nível, sem hachura ---------- */
[data-step] { --slab: 1px; }
[data-step]::before { height: 1px; border: 0; opacity: 0.5; background: var(--edge-c, var(--royal)); }
[data-step]::after { display: none; }
.step-tag { top: 14px; }

/* ---------- topo: o filme da obra roda sozinho, em uma tela ---------- */
.hero3 { position: relative; height: 100svh; min-height: 560px; overflow: hidden; color: #fff; background: var(--navy-950); }
.h3-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 47% 50%; }
.hero3::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 13, 34, 0.62) 0, rgba(5, 13, 34, 0) 22%), linear-gradient(90deg, rgba(5, 13, 34, 0.86) 0, rgba(5, 13, 34, 0.55) 36%, rgba(5, 13, 34, 0) 66%), linear-gradient(0deg, rgba(5, 13, 34, 0.72) 0, rgba(5, 13, 34, 0) 26%); pointer-events: none; }
.h3-main { position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; width: min(100%, 760px); display: flex; flex-direction: column; justify-content: center; gap: clamp(1.6rem, 4svh, 2.8rem); padding: clamp(100px, 14svh, 140px) var(--gut) 5.5rem; }
.h3-hud { position: absolute; z-index: 2; left: var(--gut); right: var(--gut); bottom: 1.6rem; display: grid; grid-template-columns: 16ch minmax(0, 1fr) auto; align-items: center; gap: 1.2rem; font: 500 0.875rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.h3-bar { position: relative; height: 2px; background: rgba(255, 255, 255, 0.28); }
.h3-bar i { position: absolute; inset: 0; background: #fff; transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.h3-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: #fff; background: rgba(7, 19, 48, 0.6); border: 1px solid rgba(255, 255, 255, 0.4); cursor: pointer; font: 500 0.875rem/1 var(--mono); }
.h3-toggle:hover { border-color: #fff; }
.h3-note { position: absolute; z-index: 2; right: var(--gut); bottom: 4.4rem; max-width: 20rem; margin: 0; text-align: right; font-size: 0.875rem; line-height: 1.35; color: rgba(255, 255, 255, 0.78); }

/* ---------- canteiro 3D em tela cheia, com painel flutuante ---------- */
@media (min-width: 861px) {
	.obra3d { height: 100svh; min-height: 640px; padding: 0 !important; overflow: hidden; }
	.obra3d .o3-grid { display: block; max-width: none; height: 100%; padding: 0; }
	.o3-stage { position: absolute; inset: 0; height: auto; min-height: 0; border: 0; }
	.o3-head { position: absolute; z-index: 3; left: var(--gut); top: calc(var(--head) + 2.6rem); max-width: 26rem; pointer-events: none; text-shadow: 0 2px 18px rgba(5, 13, 34, 0.85); }
	.o3-head h2 { font-size: clamp(1.9rem, 1.2rem + 2vw, 3.2rem); }
	.o3-sub { display: none; }
	.o3-tools { right: var(--gut); top: calc(var(--head) + 1.2rem); }
	.o3-panel { position: absolute; z-index: 3; left: var(--gut); right: var(--gut); bottom: 1.2rem; display: grid; grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); grid-template-areas: "card bar" "card chips"; align-items: end; gap: 0.6rem 1.2rem; pointer-events: none; }
	.o3-panel > * { pointer-events: auto; }
	.o3-card { grid-area: card; min-height: 0; padding: 1rem 1.1rem 1.1rem; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(7, 19, 48, 0.88); }
	.o3-card h3 { font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.9rem); }
	.o3-card p { font-size: 0.95rem; }
	.o3-bar { grid-area: bar; padding: 0.5rem 0.8rem; background: rgba(7, 19, 48, 0.88); }
	.o3-chips { grid-area: chips; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; }
	.o3-chips button { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.3rem; min-height: 52px; padding: 0 0.6rem; font-size: 0.875rem; background: rgba(7, 19, 48, 0.88); }
	.o3-chips .is-on { background: var(--royal); }
	.o3-note { display: none; }
	.o3-hint { left: 50%; bottom: auto; top: calc(var(--head) + 1.2rem); transform: translateX(-50%); }
}

/* ---------- trena do orçamento nas cores da marca ---------- */
.trena input { background: linear-gradient(90deg, var(--sky) var(--f, 22%), rgba(255, 255, 255, 0.12) var(--f, 22%)); }
.trena input::-webkit-slider-thumb { background: #fff; box-shadow: none; }
.trena input::-moz-range-thumb { background: #fff; }

/* ---------- instagram: planta azul ---------- */
.insta { background: var(--royal); background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; }
.insta .btn { background: #fff; color: var(--navy-900); }

/* ---------- contato: placa de obra ---------- */
.placa { position: relative; width: min(100%, 1040px); margin: 0 auto; }
.placa-board { position: relative; z-index: 1; border: 1px solid var(--navy-800); background: #fff; box-shadow: 0 24px 60px -30px rgba(7, 19, 48, 0.5); }
.placa-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 2rem; padding: 1rem clamp(1rem, 3vw, 2rem); color: #fff; background: var(--navy-800); }
.placa-head .brand-mark { width: 40px; height: 40px; }
.placa-head p { font: 500 0.875rem/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); }
.placa-title { padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1rem, 3vw, 2rem) 0; max-width: 18ch; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.8rem); }
.placa-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: clamp(1.2rem, 2.6vw, 2rem) 0 0; border-top: 1px solid var(--line); }
.placa-rows div { padding: 1rem clamp(1rem, 3vw, 2rem); border-bottom: 1px solid var(--line); }
.placa-rows div:nth-child(odd) { border-right: 1px solid var(--line); }
.placa-rows dt { font: 500 0.875rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--royal); }
.placa-rows dd { margin: 0.45rem 0 0; font-size: 1.02rem; line-height: 1.4; }
.placa-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; padding: 1.1rem clamp(1rem, 3vw, 2rem) 1.3rem; }
.placa-legs { display: flex; justify-content: space-between; height: clamp(36px, 7svh, 80px); padding: 0 14%; }
.placa-legs i { width: 14px; background: var(--navy-800); }

@media (max-width: 860px) {
	.h3-video { object-position: 50% 50%; }
	.hero3::after { background: linear-gradient(180deg, rgba(5, 13, 34, 0.7) 0, rgba(5, 13, 34, 0) 18%, rgba(5, 13, 34, 0) 34%, rgba(5, 13, 34, 0.9) 62%, var(--navy-950) 100%); }
	.h3-main { width: 100%; justify-content: flex-end; gap: 1rem; padding: 0 var(--gut) 4.6rem; }
	.h3-main .hero-title { font-size: clamp(1.9rem, 1.1rem + 4.6vw, 2.9rem); }
	.h3-main .hero-lede { margin-top: 0.7rem; font-size: 0.98rem; }
	.h3-main .hero-actions { margin-top: 1rem; }
	.h3-main .link-line { display: none; }
	.h3-main .hero-proof li { padding-top: 0.7rem; } .h3-main .hero-proof span br { display: none; }
	.h3-hud { bottom: 1rem; grid-template-columns: 15ch minmax(0, 1fr) auto; gap: 0.7rem; letter-spacing: 0.04em; }
	.h3-toggle { width: 40px; height: 40px; }
	.h3-note { left: var(--gut); right: var(--gut); bottom: auto; top: calc(var(--head) + 0.5rem); max-width: none; text-align: left; text-shadow: 0 1px 6px rgba(5, 13, 34, 0.9); }
	.placa-rows { grid-template-columns: 1fr; }
	.placa-rows div:nth-child(odd) { border-right: 0; }
	.placa-rows div { padding-block: 0.6rem; } .placa-rows dd { margin-top: 0.25rem; font-size: 0.98rem; }
	.placa-title { font-size: clamp(1.7rem, 1.1rem + 3.4vw, 2.4rem); }
	.placa-legs { height: 22px; }
	.placa-head p { display: none; }
}
@media (max-width: 860px) and (max-height: 720px) {
	.h3-main .hero-lede, .h3-main .hero-proof span { display: none; }
	.placa-rows div:nth-child(n+3), .placa-legs, .placa-foot .link-line { display: none; }
	.placa-title { font-size: 1.6rem; padding-top: 0.8rem; } .placa-rows { margin-top: 0.7rem; } .placa-head { padding-block: 0.6rem; } .placa-foot { padding-block: 0.7rem 0.9rem; }
}
@media (min-width: 861px) { .o3-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(5, 13, 34, 0.7) 0, rgba(5, 13, 34, 0) 26%), linear-gradient(100deg, rgba(5, 13, 34, 0.6) 0, rgba(5, 13, 34, 0) 34%); pointer-events: none; opacity: 0; transition: opacity 0.8s; } .obra3d.is-ready .o3-stage::before { opacity: 1; } .o3-head h2 em { color: #fff; } }
.o3-card p { font-size: 1rem !important; }
.insta-handle, .insta-who, .insta small, .insta .insta-count, .insta [class*="seg"] { color: #fff !important; }

/* ---------- obras: três serviços, cada um com as suas fotos (troca só com opacidade e transform) ---------- */
.svc { background: var(--paper-2); --edge-c: var(--royal); z-index: 3; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.svc-tabs { display: grid; margin-top: clamp(1.4rem, 3vw, 2.4rem); border-top: 1px solid var(--line); }
.svc-tabs button { position: relative; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0.25rem 0.4rem; padding: 1.1rem 0; text-align: left; font: inherit; color: var(--ink-soft); background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: color 0.3s; }
.svc-tabs b { font: 500 0.875rem/1.9 var(--mono); color: var(--royal); }
.svc-tabs span { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.7rem); font-weight: 600; font-stretch: 108%; line-height: 1.1; letter-spacing: -0.02em; }
.svc-tabs small { grid-column: 2; font-size: 0.95rem; line-height: 1.4; }
.svc-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--royal); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.5s var(--ease); }
.svc-tabs button[aria-selected="true"] { color: var(--ink); }
.svc-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.svc-tabs button:hover { color: var(--ink); }
.svc-note { margin-top: 1rem; font-size: 0.875rem; color: var(--ink-soft); }
.svc-stage { position: relative; aspect-ratio: 16 / 11; max-height: 76svh; }
.svc-panel { position: absolute; inset: 0; display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.svc-panel[hidden] { display: none; }
.svc-f { position: relative; margin: 0; overflow: hidden; background: var(--concrete); }
.svc-f0 { grid-row: 1 / 3; }
.svc-f img { width: 100%; height: 100%; object-fit: cover; }
.svc-f figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0.9rem; font-size: 0.9rem; color: #fff; background: rgba(5, 13, 34, 0.82); }
.svc-f figcaption span { font-size: 0.875rem; color: rgba(255, 255, 255, 0.85); text-align: right; }
.svc-panel.is-on .svc-f { animation: svc-in 0.7s var(--ease) both; }
.svc-panel.is-on .svc-f1 { animation-delay: 0.07s; } .svc-panel.is-on .svc-f2 { animation-delay: 0.14s; }
@keyframes svc-in { from { opacity: 0; transform: translateY(18px); } }
@media (max-width: 860px) {
	.svc-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0.7rem; }
	.svc-side h2 { font-size: clamp(1.5rem, 1rem + 3vw, 2.2rem); }
	.svc-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 0.7rem; border-top: 0; }
	.svc-tabs button { grid-template-columns: 1fr; gap: 0.15rem; padding: 0.5rem 0.4rem 0.6rem; border: 0; border-bottom: 1px solid var(--line); }
	.svc-tabs b { line-height: 1.2; } .svc-tabs span { font-size: 0.95rem; letter-spacing: 0; }
	.svc-tabs small, .svc-note { display: none; }
	.svc-stage { aspect-ratio: auto; max-height: none; height: clamp(280px, 56svh, 640px); }
	.svc-panel { grid-template-columns: 1fr 1fr; grid-template-rows: 1.5fr 1fr; gap: 6px; }
	.svc-f0 { grid-row: 1; grid-column: 1 / 3; }
	.svc-f figcaption { padding: 0.4rem 0.55rem; } .svc-f figcaption span { display: none; }
}
@media (max-width: 860px) and (max-height: 720px) { .svc-stage { height: 50svh; } }

/* ---------- entrar na casa: ambientes mobiliados vistos de dentro ---------- */
.o3-rooms { position: absolute; z-index: 3; right: 10px; bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; font: 500 0.875rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0; transition: opacity 0.4s; }
.obra3d.is-ready .o3-rooms { opacity: 1; }
.o3-rooms span { padding: 0 0.3rem; text-shadow: 0 1px 8px rgba(5, 13, 34, 0.9); }
.o3-rooms button { min-height: 38px; padding: 0 0.8rem; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--navy-900); background: #fff; border: 1px solid #fff; cursor: pointer; transition: background-color 0.25s, color 0.25s; }
.o3-rooms button:hover { background: var(--sky); border-color: var(--sky); }
.o3-rooms button[aria-pressed="true"] { color: #fff; background: var(--royal); border-color: var(--royal); }
.o3-rooms [data-o3-exit] { color: #fff; background: rgba(7, 19, 48, 0.86); border-color: rgba(255, 255, 255, 0.5); }
.o3-stage.is-inside canvas { cursor: move; }
@media (min-width: 861px) { .o3-rooms { right: var(--gut); bottom: auto; top: calc(var(--head) + 1.2rem + 46px); } }
@media (max-width: 860px) { .o3-rooms { right: 6px; bottom: 6px; gap: 4px; } .o3-rooms span { display: none; } .o3-rooms button { min-height: 34px; padding: 0 0.5rem; } .o3-stage.is-inside .o3-tools { display: none; } }
.o3-head, .o3-card { transition: opacity 0.4s; }
.obra3d.is-inside .o3-head, .obra3d.is-inside .o3-card, .obra3d.is-inside .o3-stage::before { opacity: 0; pointer-events: none; }

/* ---------- celular: canteiro 3D com controles compactos e etiqueta menor ---------- */
@media (max-width: 860px) {
	.o3-stage { height: clamp(260px, 45svh, 560px); }
	.o3-tools { left: 6px; right: 6px; top: 6px; flex-wrap: nowrap; justify-content: flex-start; gap: 4px; overflow-x: auto; scrollbar-width: none; }
	.o3-tools::-webkit-scrollbar { display: none; }
	.o3-tools button { flex: none; min-height: 30px; padding: 0 0.45rem; font-size: 0.6875rem; letter-spacing: 0.04em; }
	.o3-tools .o3-z { width: 30px; font-size: 0.95rem; }
	.o3-rooms { left: 6px; right: 6px; bottom: 6px; justify-content: flex-start; gap: 4px; }
	.o3-rooms span { display: inline; padding: 0 0.2rem 0 0; font-size: 0.6875rem; }
	.o3-rooms button { min-height: 30px; padding: 0 0.55rem; font-size: 0.6875rem; }
	.o3-hint { display: none; }
	.o3-label { margin: -1.9rem 0 0 0.6rem; padding: 0.22rem 0.4rem; font-size: 0.625rem; letter-spacing: 0.06em; }
	.o3-label::before { left: calc(-0.6rem - 4px); top: calc(1.9rem - 4px); width: 8px; height: 8px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3); }
	.o3-label::after { left: -0.6rem; width: 0.6rem; height: calc(1.9rem - 100%); }
	.o3-bar { gap: 0.6rem; } .o3-play { width: 42px; height: 42px; }
	.o3-chips button { min-height: 36px; font-size: 0.8125rem; }
	.o3-card { height: auto; min-height: 6.6rem; padding-top: 0.5rem; }
	.o3-card h3 { font-size: 1.25rem; margin-top: 0.3rem; }
	.o3-card p { font-size: 0.92rem !important; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.o3-stage.is-inside .o3-tools { display: flex; }
	/* topo: texto mais legível sobre o vídeo */
	.hero3::after { background: linear-gradient(180deg, rgba(5, 13, 34, 0.78) 0, rgba(5, 13, 34, 0.1) 20%, rgba(5, 13, 34, 0.1) 30%, rgba(5, 13, 34, 0.92) 60%, var(--navy-950) 100%); }
	.h3-main .kicker { color: #fff; }
	.h3-note { font-size: 0.75rem; }
}
@media (max-width: 860px) and (max-height: 720px) { .o3-stage { height: 36svh; } .o3-card { min-height: 0; } .o3-card p { -webkit-line-clamp: 2; } }
@media (max-width: 480px) { .o3-tools { gap: 3px; } .o3-tools button { padding: 0 0.34rem; font-size: 0.625rem; letter-spacing: 0.02em; } .o3-tools .o3-z { width: 26px; } }
@media (max-width: 860px) { .o3-card p { font-size: 0.95rem !important; } }

/* ---------- celular: o vídeo fica em cima, recortado na casa; o texto vem embaixo, fora da imagem ---------- */
@media (max-width: 860px) {
	.h3-video { inset: 0 0 auto 0; height: 47svh; object-position: 50% 50%; }
	.hero3::after { background: linear-gradient(180deg, rgba(5, 13, 34, 0.8) 0, rgba(5, 13, 34, 0) 9svh, rgba(5, 13, 34, 0) 38svh, var(--navy-950) 47svh, var(--navy-950) 100%); }
	.h3-main { top: 45svh; justify-content: flex-start; gap: 0.9rem; padding: 0 var(--gut) 4.2rem; }
	.h3-main .kicker { margin-bottom: 0.6rem; }
	.h3-note { top: auto; bottom: calc(53svh + 0.5rem); text-shadow: 0 1px 6px rgba(5, 13, 34, 0.95); }
}
@media (max-width: 860px) and (max-height: 720px) {
	.h3-video { height: 42svh; } .hero3::after { background: linear-gradient(180deg, rgba(5, 13, 34, 0.8) 0, rgba(5, 13, 34, 0) 9svh, rgba(5, 13, 34, 0) 34svh, var(--navy-950) 42svh, var(--navy-950) 100%); }
	.h3-main { top: 41svh; } .h3-note { bottom: calc(58svh + 0.4rem); }
}
@media (max-width: 860px) { .h3-note { top: calc(var(--head) + 0.4rem); bottom: auto; } }
@media (max-width: 860px) and (max-height: 720px) { .h3-note { top: calc(var(--head) + 0.4rem); bottom: auto; } }
@media (max-width: 860px) and (min-height: 721px) { .h3-video { height: 44svh; } .h3-main { top: 42svh; gap: 0.75rem; } .hero3::after { background: linear-gradient(180deg, rgba(5, 13, 34, 0.8) 0, rgba(5, 13, 34, 0) 9svh, rgba(5, 13, 34, 0) 36svh, var(--navy-950) 44svh, var(--navy-950) 100%); } .h3-main .hero-lede { margin-top: 0.5rem; } .h3-main .hero-actions { margin-top: 0.8rem; } }
