/* ==========================================================================
   ARQSITE — LUXURY ARCHITECTURE PLATFORM & VISUAL BUILDER
   DESIGN SYSTEM INSPIRADO NA APPLE & CASAS EDITORIAIS INTERNACIONAIS
   ========================================================================== */

:root {
  --k: #09090B;
  --k-alt: #131316;
  --s: #ECD3B5;
  --s-claro: #F5EFEB;
  --v: #68001B;
  --g: #F5EFEB;
  --borda-fina: rgba(255, 255, 255, 0.12);
  --borda-escura: rgba(0, 0, 0, 0.08);
  --glow: rgba(236, 211, 181, 0.25);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --e: cubic-bezier(0.16, 1, 0.3, 1);
  --e-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --raio-lg: 28px;
  --raio-md: 18px;
  --raio-sm: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--k);
  color: #E2E2E6;
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: inherit;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.wrap {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

/* ==========================================================================
   BOTÕES & COMPONENTES MODERNOS ESTILO APPLE
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--s);
  color: var(--k);
  border: 1px solid var(--s);
  border-radius: 999px;
  padding: 14px 32px;
  font: 600 12px var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--e);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px var(--glow);
  background: #fff;
  border-color: #fff;
}

.btn.alt {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: var(--borda-fina);
  backdrop-filter: blur(12px);
}

.btn.alt:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn.claro {
  background: #FFFFFF;
  color: #000;
  border-color: #FFFFFF;
}

.btn.claro:hover {
  background: var(--s);
  border-color: var(--s);
  color: #000;
}

.btn.perigo {
  background: rgba(220, 38, 38, 0.15);
  color: #F87171;
  border-color: rgba(220, 38, 38, 0.3);
}

.btn.perigo:hover {
  background: #DC2626;
  color: #fff;
}

.btn.peq {
  padding: 9px 20px;
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   ANIMAÇÕES & REVEALS SUAVES
   ========================================================================== */

.js .rv {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--e) var(--d, 0s), transform 1s var(--e) var(--d, 0s);
}

.js .rv.in {
  opacity: 1;
  transform: none;
}

.js .mask {
  overflow: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.4s var(--e);
}

.js .mask.in {
  clip-path: inset(0 0 0 0);
}

.mask img {
  transform: scale(1.15);
  transition: transform 1.8s var(--e);
}

.mask.in img {
  transform: scale(1);
}

/* ==========================================================================
   LANDING PAGE ARQSITE (ALTA CONVERSÃO COM AIDA & ANIMAÇÕES APPLE)
   ========================================================================== */

.lp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.4s var(--e), backdrop-filter 0.4s var(--e), border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.lp-header.scrolled {
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(20px);
  border-color: var(--borda-fina);
}

.lp-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.marca {
  font: 600 28px var(--serif);
  color: #FFFFFF;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 3px;
}

.marca b {
  color: var(--s);
  font-weight: 400;
  font-style: italic;
}

.lp-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 36px);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.lp-nav a:hover {
  color: #fff;
}

/* HERO SECTION APPLE-STYLE */
.lp-hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  background: radial-gradient(circle at 50% 10%, rgba(236, 211, 181, 0.12) 0%, rgba(9, 9, 11, 0) 65%), #09090B;
  overflow: hidden;
}

.lp-hero:before {
  content: "";
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(104, 0, 27, 0.28) 0%, rgba(0,0,0,0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.lp-hero .wrap {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1040px;
}

.lp-tag-apple {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--borda-fina);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--s);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.lp-hero h1 {
  font-size: clamp(44px, 6.5vw, 92px);
  line-height: 1.04;
  margin: 0 auto 28px;
  max-width: 18ch;
  color: #FFFFFF;
}

.lp-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--s);
}

.lp-hero-sub {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
  max-width: 44ch;
  margin: 0 auto 38px;
  color: rgba(255, 255, 255, 0.72);
}

.lp-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.lp-social-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.lp-avatars {
  display: flex;
  margin-right: -6px;
}

.lp-avatars span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--k);
  background: #333;
  margin-left: -8px;
  display: inline-block;
  background-size: cover;
  background-position: center;
}

/* SHOWCASE INTERATIVO DOS 4 TEMAS DA REFERÊNCIA */
.lp-showcase {
  margin-top: 60px;
  position: relative;
}

.lp-tabs-temas {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.lp-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--borda-fina);
  color: rgba(255, 255, 255, 0.7);
  padding: 10px 22px;
  border-radius: 999px;
  font: 500 13px var(--sans);
  cursor: pointer;
  transition: all 0.3s;
}

.lp-tab-btn.on, .lp-tab-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.lp-mockup-frame {
  position: relative;
  border-radius: 24px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--borda-fina);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.lp-mockup-inner {
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  position: relative;
  aspect-ratio: 16 / 9;
}

.lp-mockup-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s var(--e);
}

/* SEÇÃO: CONTRASTE DE VALOR (ANTES VS DEPOIS) */
.lp-secao {
  padding: clamp(90px, 12vw, 160px) 0;
  position: relative;
}

.lp-secao-titulo {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 80px);
}

.lp-secao-titulo h2 {
  font-size: clamp(38px, 5.5vw, 76px);
  color: #FFFFFF;
  margin-bottom: 18px;
}

.lp-secao-titulo p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.lp-comparativo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.lp-card-comp {
  padding: clamp(30px, 4vw, 50px);
  border-radius: var(--raio-lg);
  border: 1px solid var(--borda-fina);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lp-card-comp.ruim {
  background: rgba(239, 68, 68, 0.02);
  border-color: rgba(239, 68, 68, 0.15);
}

.lp-card-comp.bom {
  background: linear-gradient(180deg, rgba(236, 211, 181, 0.07), rgba(255, 255, 255, 0.02));
  border-color: rgba(236, 211, 181, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lp-card-comp h3 {
  font-size: 28px;
  margin-bottom: 18px;
}

.lp-card-comp ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.lp-card-comp li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* BENTO GRID DE RECURSOS APPLE */
.lp-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.lp-bg-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--borda-fina);
  border-radius: var(--raio-lg);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--e), border-color 0.4s;
}

.lp-bg-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
}

.lp-bg-card.span-8 { grid-column: span 8; }
.lp-bg-card.span-4 { grid-column: span 4; }
.lp-bg-card.span-6 { grid-column: span 6; }
.lp-bg-card.span-12 { grid-column: span 12; }

.lp-bg-icon {
  font-size: 34px;
  margin-bottom: 20px;
}

.lp-bg-card h3 {
  font-size: clamp(26px, 3.2vw, 38px);
  margin-bottom: 14px;
  color: #FFFFFF;
}

.lp-bg-card p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* DEPOIMENTOS */
.lp-depoimentos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.lp-dep-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--borda-fina);
  border-radius: var(--raio-md);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.lp-dep-card p {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.lp-dep-autor {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lp-dep-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--s);
  color: #000;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 16px;
}

/* PREÇO / OFERTA COM RISCO ZERO */
.lp-preco-box {
  background: radial-gradient(circle at 50% 0%, rgba(236, 211, 181, 0.15) 0%, rgba(255, 255, 255, 0.02) 60%);
  border: 1px solid rgba(236, 211, 181, 0.35);
  border-radius: var(--raio-lg);
  padding: clamp(40px, 6vw, 80px) 30px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

.lp-preco-valor {
  font: 500 clamp(72px, 12vw, 150px) / 1 var(--serif);
  color: var(--s);
  margin: 18px 0;
}

.lp-preco-valor small {
  font-size: 20px;
  font-family: var(--sans);
  color: rgba(255, 255, 255, 0.6);
  margin-left: 8px;
}

.lp-preco-beneficios {
  list-style: none;
  padding: 0;
  margin: 32px auto 44px;
  max-width: 460px;
  text-align: left;
}

.lp-preco-beneficios li {
  padding: 12px 0;
  border-bottom: 1px solid var(--borda-fina);
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lp-preco-beneficios li:before {
  content: "✓";
  color: var(--s);
  font-weight: bold;
}

/* FAQ ACCORDION */
.lp-faq details {
  border: 1px solid var(--borda-fina);
  border-radius: var(--raio-md);
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s;
}

.lp-faq details[open] {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.lp-faq summary {
  padding: 22px 28px;
  cursor: pointer;
  font: 500 20px var(--serif);
  color: #FFFFFF;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lp-faq summary::-webkit-details-marker { display: none; }

.lp-faq summary:after {
  content: "+";
  font-family: var(--sans);
  font-size: 24px;
  color: var(--s);
  transition: transform 0.3s;
}

.lp-faq details[open] summary:after {
  transform: rotate(45deg);
}

.lp-faq details p {
  padding: 0 28px 24px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* ==========================================================================
   CONSTRUTOR VISUAL DE SITE (EDITOR DRAG & DROP)
   ========================================================================== */

.ed-wrap {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background: #111114;
}

.ed-bar {
  height: 64px;
  background: #18181C;
  border-bottom: 1px solid var(--borda-fina);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 40;
  flex: none;
}

.ed-bar-left, .ed-bar-center, .ed-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ed-voltar {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}
.ed-voltar:hover { color: #fff; }

.ed-sep {
  width: 1px;
  height: 20px;
  background: var(--borda-fina);
}

.ed-site-nome {
  font-weight: 600;
  font-size: 14px;
  color: #FFFFFF;
}

.ed-badge-status {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ADE80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.ed-badge-status.alerta {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.3);
}

.ed-field-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.ed-field-group select {
  background: #222228;
  border: 1px solid var(--borda-fina);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}

.ed-devices {
  display: flex;
  background: #222228;
  border-radius: 8px;
  padding: 2px;
}

.ed-dev-btn {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.ed-dev-btn.on {
  background: #33333E;
  color: #fff;
}

.ed-corpo {
  display: flex;
  flex: 1;
  min-height: 0;
  height: calc(100vh - 64px);
  max-height: calc(100vh - 64px);
  overflow: hidden;
  position: relative;
}

.ed-sidebar {
  width: 320px;
  background: #16161A;
  border-right: 1px solid var(--borda-fina);
  display: flex;
  flex-direction: column;
  flex: none;
  height: 100%;
  min-height: 0;
  z-index: 20;
}

.ed-sidebar-top {
  padding: 20px;
  border-bottom: 1px solid var(--borda-fina);
}

.ed-sidebar-top h3 {
  font: 600 16px var(--sans);
  color: #FFFFFF;
  margin: 0 0 6px;
}

.ed-sidebar-top p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  line-height: 1.4;
}

.ed-blocos-lista {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ed-item-bloco {
  background: #1F1F24;
  border: 1px solid var(--borda-fina);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: grab;
  transition: all 0.2s;
}

.ed-item-bloco:hover {
  background: #26262D;
  border-color: rgba(255, 255, 255, 0.25);
}

.ed-item-bloco.arrastando {
  opacity: 0.4;
}

.ed-item-bloco.sobre {
  border-color: var(--s);
  transform: scale(1.02);
}

.ed-item-bloco.oculta {
  opacity: 0.5;
}

.ed-ib-handle {
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
  cursor: grab;
}

.ed-ib-icone { font-size: 16px; }

.ed-ib-info {
  flex: 1;
  min-width: 0;
}

.ed-ib-info b {
  display: block;
  font: 500 13px var(--sans);
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ed-ib-acoes {
  display: flex;
  gap: 4px;
}

.ed-btn-acao {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.6);
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 12px;
}

.ed-btn-acao:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ed-btn-acao.perigo:hover {
  color: #F87171;
}

.ed-sidebar-footer {
  padding: 14px;
  border-top: 1px solid var(--borda-fina);
}

.w-100 { width: 100%; }

.ed-canvas-wrap {
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow-y: scroll !important;
  overflow-x: hidden;
  background: #0D0D10;
  display: block;
  padding: 30px 20px 240px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--s) #18181C;
}

.ed-canvas-wrap::-webkit-scrollbar {
  width: 10px;
}
.ed-canvas-wrap::-webkit-scrollbar-track {
  background: #141418;
}
.ed-canvas-wrap::-webkit-scrollbar-thumb {
  background: #33333E;
  border-radius: 5px;
  border: 2px solid #141418;
}
.ed-canvas-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--s);
}

.ed-canvas-container {
  transition: width 0.35s var(--e);
  background: #000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  position: relative;
  margin: 0 auto 120px auto;
  max-width: 100%;
}

/* Ferramentas em cima de cada bloco no Canvas */
.ed-bloco-secao {
  position: relative;
}

.ed-bloco-tools {
  position: absolute;
  top: 12px;
  right: 20px;
  z-index: 30;
  display: flex;
  gap: 6px;
  background: rgba(18, 18, 22, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--borda-fina);
  border-radius: 999px;
  padding: 4px 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  opacity: 0.15;
  transition: opacity 0.25s;
}

.ed-bloco-secao:hover .ed-bloco-tools {
  opacity: 1;
}

.ed-bt-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--s);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 6px;
}

.ed-bloco-tools button {
  background: transparent;
  border: 0;
  color: #fff;
  padding: 2px 6px;
  font-size: 11px;
  cursor: pointer;
  border-radius: 4px;
}

.ed-bloco-tools button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.ed-bloco-tools button.perigo:hover {
  color: #F87171;
}

/* Edição de Texto no Canvas */
.ed-editable {
  outline: none;
  transition: background 0.2s, box-shadow 0.2s;
  border-radius: 4px;
}

.ed-editable:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(236, 211, 181, 0.35);
  cursor: text;
}

.ed-editable:focus {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 2px var(--s);
}

/* Botão de Trocar Imagem */
.ed-btn-trocar-foto {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 25;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 14px;
  font: 500 12px var(--sans);
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.2s, transform 0.2s;
}

.ed-bloco-secao:hover .ed-btn-trocar-foto,
.ambiente-card:hover .ed-btn-trocar-foto,
.bento-card-destaque:hover .ed-btn-trocar-foto,
.hs:hover .ed-btn-trocar-foto,
.hero-bloco:hover .ed-btn-trocar-foto {
  opacity: 1;
}

.ed-btn-trocar-foto:hover {
  transform: scale(1.05);
  background: #000;
  border-color: #fff;
}

/* MODAIS DO EDITOR */
.ed-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ed-modal.on { display: flex; }

.ed-modal-box {
  background: #18181C;
  border: 1px solid var(--borda-fina);
  border-radius: var(--raio-lg);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
  padding: 28px;
}

.ed-modal-box.ed-modal-lg { max-width: 880px; }

.ed-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.ed-modal-header h3 {
  font: 600 22px var(--sans);
  color: #FFFFFF;
  margin: 0;
}

.ed-modal-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.ed-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.ed-card-bloco {
  background: #202026;
  border: 1px solid var(--borda-fina);
  border-radius: var(--raio-md);
  padding: 20px;
  cursor: pointer;
  transition: all 0.25s;
}

.ed-card-bloco:hover {
  background: #2A2A33;
  border-color: var(--s);
  transform: translateY(-2px);
}

.ed-cb-icon { font-size: 28px; margin-bottom: 8px; }
.ed-card-bloco b { display: block; font: 600 16px var(--sans); color: #fff; margin-bottom: 6px; }
.ed-card-bloco p { font-size: 13px; color: rgba(255, 255, 255, 0.6); margin: 0; line-height: 1.4; }

/* TABS MODAL IMAGEM */
.ed-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--borda-fina);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.ed-tab-btn {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.6);
  font: 500 13px var(--sans);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
}

.ed-tab-btn.on { background: #2A2A33; color: #fff; }

.ed-tab-content { display: none; }
.ed-tab-content.on { display: block; }

.ed-dropzone {
  border: 2px dashed var(--borda-fina);
  border-radius: var(--raio-md);
  padding: 44px 20px;
  text-align: center;
  cursor: pointer;
}

.ed-dropzone:hover { border-color: var(--s); }
.ed-dz-icon { font-size: 38px; margin-bottom: 10px; }
.ed-dropzone b { display: block; font-size: 16px; margin-bottom: 6px; color: #fff; }
.ed-dropzone p { font-size: 13px; color: rgba(255, 255, 255, 0.5); margin: 0 0 16px; }

.ed-img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
}

.ed-img-item {
  border-radius: var(--raio-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  background: #000;
}

.ed-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.ed-img-item:hover img { transform: scale(1.08); }
.ed-img-item:hover { border-color: var(--s); }

.ed-img-item span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.75);
  font-size: 10px;
  padding: 4px 6px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* TOAST */
.ed-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 120;
  background: #18181C;
  border: 1px solid var(--borda-fina);
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s var(--e);
  pointer-events: none;
}

.ed-toast.on { opacity: 1; transform: none; }
.ed-toast.ok { border-color: #22C55E; color: #4ADE80; }
.ed-toast.erro { border-color: #EF4444; color: #F87171; }

/* ==========================================================================
   ESTILOS GERAIS DOS SITES DOS ARQUITETOS (PUBLICO & CANVAS)
   ========================================================================== */

.site {
  min-height: 100vh;
  position: relative;
  color: #000;
  background: #fff;
}

/* HEADER PÚBLICO INTELIGENTE */
.sh {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px clamp(20px, 4vw, 56px);
  transition: background 0.4s var(--e), padding 0.4s var(--e), border-color 0.4s;
  color: inherit;
}

.sh a { font: 500 24px var(--serif); display: flex; align-items: center; gap: 10px; max-width: min(420px, 55vw); }
.sh a img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
}
.sh nav { display: flex; align-items: center; gap: 28px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

body.sc .sh, .sh.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  padding-block: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.sh-preview {
  position: relative !important;
  background: rgba(0, 0, 0, 0.3) !important;
}

/* Botão flutuante "Editar meu site!" — só aparece para o dono logado */
.btn-editar-meu-site {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ac, #B8860B);
  color: var(--ac-ink, #000);
  font: 600 13px var(--sans);
  letter-spacing: 0.04em;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.28);
  transition: transform 0.25s var(--e), box-shadow 0.25s;
  text-decoration: none;
}
.btn-editar-meu-site:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}
@media (max-width: 600px) {
  .btn-editar-meu-site {
    bottom: 18px;
    right: 18px;
    padding: 12px 16px;
    font-size: 12px;
  }
}

/* HERO DOS SITES — altura controlada para a foto NÃO tampando tudo */
.hs {
  position: relative;
  height: clamp(380px, 62vh, 620px);
  min-height: 340px;
  max-height: 78vh;
  display: flex;
  align-items: flex-end;
  background: #000;
  color: #FFFFFF;
  overflow: hidden;
  isolation: isolate;
}

.hs.baixo {
  height: clamp(260px, 42vh, 400px);
  min-height: 240px;
  max-height: 50vh;
}

.hs-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  will-change: transform;
  z-index: 0;
}

.hs:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.48) 0%,
    rgba(0, 0, 0, 0.18) 42%,
    rgba(0, 0, 0, 0.78) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hs-in {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(72px, 11vh, 110px) clamp(20px, 4vw, 56px) clamp(24px, 4.5vh, 48px);
}

.hero-top-badge span {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--s);
  margin-bottom: 14px;
}

.hs h1 {
  font-size: clamp(32px, 4.6vw, 66px);
  margin: 0 0 14px;
  max-width: 22ch;
  line-height: 1.05;
}

.hs p {
  font-size: clamp(14px, 1.3vw, 17px);
  max-width: 52ch;
  line-height: 1.55;
  opacity: 0.9;
  margin: 0 0 20px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hs .cta {
  display: inline-flex;
  align-items: center;
  border: 1px solid #FFFFFF;
  padding: 14px 34px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFFFF;
  transition: all 0.35s;
}

.hs .cta:hover {
  background: #FFFFFF;
  color: #000;
}

.hero-social-proof {
  display: flex;
  flex-direction: column;
}

.hsp-num { font: 600 20px var(--serif); color: var(--s); }
.hsp-txt { font-size: 11px; opacity: 0.7; letter-spacing: 0.05em; text-transform: uppercase; }

.hero-float-card {
  position: absolute;
  right: clamp(20px, 4vw, 56px);
  bottom: clamp(26px, 5vh, 52px);
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  color: #000;
  padding: 14px 18px;
  border-radius: var(--raio-md);
  max-width: 190px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.hero-float-card b {
  display: block;
  font: 500 26px var(--serif);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-float-card p {
  font-size: 12px;
  margin: 0;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.75);
}

.rolar {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  z-index: 2;
}

/* SEÇÃO PADRÃO (SS) */
.ss {
  padding: clamp(70px, 11vw, 140px) 0;
  position: relative;
}

.rot {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.8;
}

.sw {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

/* BLOCO: MANIFESTO */
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}

.man-stats {
  display: flex;
  gap: 36px;
}

.man-stat-it b {
  display: block;
  font: 500 clamp(44px, 6vw, 78px) var(--serif);
  line-height: 1;
}

.man-stat-it span {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.man-right h2 {
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.15;
  margin-bottom: 22px;
}

.man-right p {
  font-size: 17px;
  line-height: 1.7;
  opacity: 0.8;
  margin: 0 0 30px;
}

/* BLOCO: BENTO STATS (APPLE STYLE) */
.bento-bloco h2 {
  font-size: clamp(36px, 5.2vw, 68px);
  margin-bottom: clamp(30px, 5vw, 60px);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.bento-card {
  border-radius: var(--raio-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--borda-escura);
  background: rgba(0, 0, 0, 0.02);
  min-height: 180px;
}

.bento-card-destaque {
  grid-column: span 2;
  grid-row: span 2;
  background-size: cover;
  background-position: center;
  color: #fff;
  border: 0;
  position: relative;
  min-height: 420px;
}

.bcd-in {
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.bcd-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.bcd-in h3 {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
}

.bento-stat b {
  font: 500 clamp(40px, 5vw, 60px) var(--serif);
  line-height: 1;
}

.bs-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

.bento-stat p {
  font-size: 13px;
  opacity: 0.75;
  margin: 10px 0 0;
  line-height: 1.4;
}

/* BLOCO: GALERIA DE PROJETOS */
.cab {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(34px, 5vw, 64px);
}

.cab h2 {
  font-size: clamp(38px, 5.5vw, 76px);
}

.fil {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fil button {
  background: transparent;
  border: 1px solid currentColor;
  padding: 8px 20px;
  border-radius: 999px;
  font: 600 11px var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}

.fil button.on, .fil button:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

.grade-projetos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: clamp(24px, 4vw, 48px);
}

.projeto-card-real, .projeto-card-fake {
  display: block;
  text-decoration: none;
  border-radius: var(--raio-md);
  overflow: hidden;
  transition: transform 0.4s var(--e);
}

.projeto-card-real:hover {
  transform: translateY(-6px);
}

.pcf-img {
  aspect-ratio: 16 / 11;
  background-size: cover;
  background-position: center;
  border-radius: var(--raio-md);
  position: relative;
  overflow: hidden;
  background-color: #111;
}

.pcf-badge-3d {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  color: var(--s);
  border: 1px solid var(--s);
  padding: 4px 10px;
  border-radius: 999px;
  font: 600 10px var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.projeto-card-real h3, .projeto-card-fake h3 {
  font-size: clamp(22px, 2.6vw, 32px);
  margin: 16px 0 6px;
}

.projeto-card-real small, .projeto-card-fake small {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* BLOCO: AMBIENTES */
.ambientes-bloco h2 {
  font-size: clamp(36px, 5.2vw, 68px);
  margin-bottom: clamp(30px, 5vw, 60px);
}

.ambientes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.ambiente-card {
  position: relative;
}

.ac-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--raio-md);
  background-size: cover;
  background-position: center;
  background-color: #222;
  position: relative;
  margin-bottom: 16px;
  overflow: hidden;
}

.ambiente-card h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.ambiente-card p {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.75;
  margin: 0;
}

/* BLOCO: VÍDEO & PASSEIO 3D */
.video-container-card {
  border-radius: var(--raio-lg);
  background-size: cover;
  background-position: center;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  padding: clamp(30px, 6vw, 70px);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.vc-in {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.vc-in h2 {
  font-size: clamp(34px, 5vw, 64px);
  margin: 10px 0 16px;
}

.vc-in p {
  font-size: 17px;
  opacity: 0.85;
  margin: 0 0 28px;
}

.vc-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 28px 12px 14px;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
}

.vc-play-btn:hover {
  background: #fff;
  color: #000;
}

.play-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: currentColor;
  color: #000;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.vc-play-btn:hover .play-icon {
  background: #000;
  color: #fff;
}

/* BLOCO: PROCESSO / MÉTODO */
.processo-bloco h2 {
  font-size: clamp(36px, 5.2vw, 68px);
  margin-bottom: clamp(34px, 5vw, 64px);
}

.processo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.processo-card {
  padding: 30px;
  border-radius: var(--raio-md);
  border: 1px solid var(--borda-escura);
  background: rgba(0, 0, 0, 0.02);
}

.pc-num {
  font: 500 48px var(--serif);
  line-height: 1;
  display: block;
  margin-bottom: 14px;
  opacity: 0.5;
}

.processo-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.processo-card p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.75;
  margin: 0;
}

/* BLOCO: SOBRE O ESCRITÓRIO */
.sobre-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}

.sobre-img-box {
  aspect-ratio: 4 / 5;
  border-radius: var(--raio-lg);
  background-size: cover;
  background-position: center;
  position: relative;
}

.sobre-txt-box h2 {
  font-size: clamp(36px, 5.2vw, 68px);
  margin-bottom: 22px;
}

.sobre-bio {
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 30px;
}

.sobre-meta {
  display: flex;
  gap: 30px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-top: 1px solid currentColor;
  padding-top: 20px;
  opacity: 0.8;
}

/* BLOCO: CONTATO & CONVERSÃO */
.fale {
  text-align: center;
}

.fale h2 {
  font-size: clamp(38px, 6vw, 84px);
  max-width: 18ch;
  margin: 0 auto 16px;
}

.fale p {
  font-size: 18px;
  max-width: 44ch;
  margin: 0 auto 36px;
  opacity: 0.8;
}

.cont {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* BOTÃO FLUTUANTE WHATSAPP */
.btn-whatsapp-flutuante {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #FFFFFF;
  padding: 14px 22px;
  border-radius: 999px;
  font: 600 13px var(--sans);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s var(--e);
}

.btn-whatsapp-flutuante:hover {
  transform: translateY(-3px) scale(1.03);
}

/* RODAPÉ DO SITE */
.sf-publico, .sf-preview {
  padding: 36px 0;
  border-top: 1px solid var(--borda-escura);
  font-size: 13px;
}

/* ==========================================================================
   VARIAÇÃO DE TEMAS BESPOKE (OS 4 TEMAS DAS REFERÊNCIAS DO USUÁRIO)
   ========================================================================== */

/* Temas usam --bg / --fg quando o usuário personaliza (alto contraste garantido) */
.site {
  background: var(--bg, #EBE5DE);
  color: var(--fg, #1A1816);
}

/* 1. TEMA: ABOVE THE REST (REFERÊNCIA 1) */
.t-above {
  background: var(--bg, #EBE5DE);
  color: var(--fg, #1A1816);
}
.t-above .bento-card, .t-above .processo-card {
  background: color-mix(in srgb, var(--bg, #EBE5DE) 88%, #000 12%);
  border-color: rgba(26, 24, 22, 0.08);
}
.t-above .btn.claro {
  background: var(--fg, #1A1816);
  color: var(--bg, #EBE5DE);
  border-color: var(--fg, #1A1816);
}
.t-above .btn.claro:hover {
  background: #000;
}
.t-above .fil button.on, .t-above .fil button:hover {
  background: var(--fg, #1A1816);
  color: var(--bg, #EBE5DE);
  border-color: var(--fg, #1A1816);
}
.t-above .sh { color: var(--fg, #1A1816); }

/* 2. TEMA: BENTO APPLE (REFERÊNCIA 2) */
.t-bento {
  background: var(--bg, #F7F8FA);
  color: var(--fg, #0F1115);
}
.t-bento h1, .t-bento h2, .t-bento h3 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.t-bento .bento-card, .t-bento .processo-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.t-bento .btn.claro {
  background: var(--fg, #0F1115);
  color: #fff;
  border-color: var(--fg, #0F1115);
}

/* 3. TEMA: ARC & CLAY (REFERÊNCIA 3) */
.t-clay {
  background: var(--bg, #F9F6F0);
  color: var(--fg, #2A1A14);
}
.t-clay .bento-card, .t-clay .processo-card {
  background: color-mix(in srgb, var(--bg, #F9F6F0) 90%, #000 10%);
  border-color: rgba(56, 36, 28, 0.08);
}
.t-clay .btn.claro {
  background: var(--ac, #9B442B);
  color: var(--ac-ink, #fff);
  border-color: var(--ac, #9B442B);
}
.t-clay .btn.claro:hover {
  filter: brightness(0.9);
}

/* 4. TEMA: NOIR ATELIER (REFERÊNCIA 4) */
.t-noir {
  background: var(--bg, #0C0C0E);
  color: var(--fg, #F5EBE1);
}
.t-noir .bento-card, .t-noir .processo-card {
  background: color-mix(in srgb, var(--bg, #0C0C0E) 85%, #fff 15%);
  border-color: rgba(255, 255, 255, 0.08);
}
.t-noir .btn.claro {
  background: var(--ac, #D4AF37);
  color: var(--ac-ink, #000);
  border-color: var(--ac, #D4AF37);
}
.t-noir .btn.claro:hover {
  background: #FFFFFF;
  color: #000;
  border-color: #fff;
}
.t-noir .fil button.on, .t-noir .fil button:hover {
  background: var(--ac, #D4AF37);
  color: var(--ac-ink, #000);
  border-color: var(--ac, #D4AF37);
}
.t-noir .sh { color: var(--fg, #F5EBE1); }
.t-noir body.sc .sh, .t-noir .sh.scrolled {
  background: rgba(12, 12, 14, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 5. TEMA: EDITORIAL / VINHO */
.t-editorial {
  background: var(--bg, #3D0A14);
  color: var(--fg, #F6EDE1);
}
.t-editorial .bento-card, .t-editorial .processo-card {
  background: color-mix(in srgb, var(--bg, #3D0A14) 88%, #000 12%);
  border-color: rgba(255, 255, 255, 0.08);
}
.t-editorial .btn.claro {
  background: var(--ac, #C9A227);
  color: var(--ac-ink, #000);
  border-color: var(--ac, #C9A227);
}

/* ==========================================================================
   PÁGINA DO PROJETO & TOUR 3D
   ========================================================================== */
.meta {
  display: flex;
  gap: 30px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 50px 0 20px;
  opacity: 0.8;
}

.desc {
  font: 400 clamp(20px, 2.5vw, 32px) / 1.4 var(--serif);
  max-width: 36ch;
  margin: 0 0 40px;
}

.tour3d {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #000;
  color: var(--s);
  border: 1px solid var(--s);
  border-radius: var(--raio-md);
  padding: clamp(24px, 4vw, 44px);
  text-decoration: none;
  margin: 20px 0 60px;
  transition: all 0.4s var(--e);
}

.tour3d:hover {
  background: var(--s);
  color: #000;
  transform: translateY(-3px);
}

.tour3d b {
  font: 500 clamp(26px, 3.8vw, 48px) var(--serif);
}

.tour3d span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 10px 22px;
  border-radius: 999px;
}

.gal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-bottom: 80px;
}

.gal figure {
  margin: 0;
  border-radius: var(--raio-md);
  overflow: hidden;
  background: #000;
}

.gal figure:nth-child(3n+1) {
  grid-column: span 2;
}

.gal img {
  width: 100%;
  display: block;
  cursor: zoom-in;
}

.prox {
  display: block;
  border-top: 1px solid currentColor;
  padding: clamp(40px, 6vw, 80px) 0;
  text-decoration: none;
}

.prox small {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}

.prox h2 {
  font-size: clamp(36px, 6vw, 80px);
  transition: transform 0.4s var(--e);
}

.prox:hover h2 {
  transform: translateX(20px);
}

/* LIGHTBOX */
#lb {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

#lb.on { display: flex; }

#lb img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 8px;
}

#lb button {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 38px;
  cursor: pointer;
}

/* ==========================================================================
   PAINEL DO ARQUITETO & TELAS DE LOGIN
   ========================================================================== */
.topo {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #141418;
  border-bottom: 1px solid var(--borda-fina);
}

.topo .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.status {
  padding: 16px 22px;
  border-radius: var(--raio-md);
  border: 1px solid var(--borda-fina);
  margin: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.04);
}

.banner-editor-callout {
  background: linear-gradient(135deg, rgba(236, 211, 181, 0.12), rgba(104, 0, 27, 0.25));
  border: 1px solid rgba(236, 211, 181, 0.35);
  border-radius: var(--raio-lg);
  padding: 28px 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 24px 0 34px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.bec-txt h3 {
  font: 600 22px var(--sans);
  color: #FFFFFF;
  margin: 0 0 6px;
}

.bec-txt p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  max-width: 56ch;
}

.tabs {
  display: flex;
  gap: 24px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--borda-fina);
}

.tabs a {
  padding: 12px 0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.tabs a.on {
  color: #fff;
  border-bottom: 2px solid var(--s);
  margin-bottom: -1px;
}

.f label {
  display: block;
  margin: 20px 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.f input, .f select, .f textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--borda-fina);
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  font: inherit;
  transition: border-color 0.25s;
}

.f input:focus, .f select:focus, .f textarea:focus {
  outline: none;
  border-color: var(--s);
}

.tm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 12px 0 24px;
}

.tm-card {
  border: 1px solid var(--borda-fina);
  border-radius: var(--raio-md);
  overflow: hidden;
  background: #18181C;
  cursor: pointer;
  transition: all 0.3s;
}

.tm-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
}

.tm-card.on {
  border-color: var(--s);
  box-shadow: 0 0 0 2px var(--s);
}

.tm-thumb {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: #000;
}

.tm-info {
  padding: 14px;
}

.tm-info b { display: block; font-size: 14px; margin-bottom: 4px; color: #fff; }
.tm-info span { font-size: 11px; opacity: 0.65; display: block; line-height: 1.3; }

.lista {
  display: grid;
  gap: 14px;
}

.lista .it {
  display: flex;
  gap: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--borda-fina);
  border-radius: var(--raio-md);
  padding: 14px;
  align-items: center;
  transition: all 0.25s;
}

.lista .it:hover {
  background: rgba(255, 255, 255, 0.06);
}

.lista img, .lista .sem {
  width: 140px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--raio-sm);
  background: #222;
  flex: none;
}

.lista .inf { flex: 1; min-width: 0; }
.lista .inf b { font-size: 16px; color: #fff; }
.lista .inf small { opacity: 0.7; font-size: 12px; display: block; margin-top: 4px; }

/* TELAS DE AUTENTICAÇÃO */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.auth-l {
  background: radial-gradient(circle at 30% 30%, rgba(104, 0, 27, 0.4), rgba(9, 9, 11, 0.95)), #09090B;
  color: #fff;
  padding: clamp(30px, 6vw, 70px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--borda-fina);
}

.auth-l h2 {
  font-size: clamp(36px, 5vw, 68px);
  color: var(--s);
  max-width: 14ch;
}

.auth-r {
  display: grid;
  place-items: center;
  padding: clamp(30px, 5vw, 60px);
  background: #111114;
}

.auth-r > div {
  width: 100%;
  max-width: 420px;
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE & TABLETS)
   ========================================================================== */
@media (max-width: 900px) {
  .manifesto-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card-destaque { grid-column: span 1; grid-row: span 1; }
  .sobre-wrap { grid-template-columns: 1fr; }
  .lp-bento-grid { grid-template-columns: 1fr; }
  .lp-bg-card.span-8, .lp-bg-card.span-4, .lp-bg-card.span-6, .lp-bg-card.span-12 { grid-column: 1 / -1; }
  .lp-comparativo-grid { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-l { display: none; }
  .sh nav { display: none; }
  .ed-sidebar { display: none; }
}

/* ==========================================================================
   COR DE DESTAQUE DO ARQUITETO  (--ac vem do site.php / do construtor visual)
   Tudo que usa var(--s) dentro do site passa a seguir a cor escolhida.
   ========================================================================== */
.site {
  --ac: #B8860B;
  --ac-ink: #000;
  --s: var(--ac);
  --glow: color-mix(in srgb, var(--ac) 30%, transparent);
}

.site .rot,
.site .hsp-num,
.site .man-stat-it b,
.site .bento-stat b,
.site .pc-num,
.site .hero-float-card b,
.site .bs-label,
.site .pcf-badge-3d { color: var(--ac); }

.site .hero-top-badge span { color: var(--ac); }
.site .pcf-badge-3d { border-color: var(--ac); }
.site .bcd-tag { background: var(--ac); color: var(--ac-ink); }

.site .btn.claro,
.site .hs .cta,
.site .fil button.on,
.site .fil button:hover,
.site .play-icon,
.site .btn-peq.claro {
  background: var(--ac);
  border-color: var(--ac);
  color: var(--ac-ink);
}

.site .btn.claro:hover,
.site .hs .cta:hover {
  background: color-mix(in srgb, var(--ac) 80%, #000);
  border-color: color-mix(in srgb, var(--ac) 80%, #000);
  color: var(--ac-ink);
}

.site .tour3d { border-color: var(--ac); color: var(--ac); }
.site .prox:hover h2,
.site .sh nav a:not(.btn):hover { color: var(--ac); }
.site .sobre-meta { border-top-color: var(--ac); }
.site .bento-card:hover,
.site .processo-card:hover { border-color: var(--ac); }

/* Hero menor no celular / telas baixas: o projeto aparece logo abaixo */
@media (max-width: 900px) {
  .hero-float-card { display: none; }
  .rolar { display: none; }
}
@media (max-height: 640px) {
  .hs { min-height: 340px; }
}

/* ===== CTA Monte seu projeto (sites novos e antigos) ===== */
.hs .cta.cta-sec{
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
  margin-left: 10px;
}
.hs .cta.cta-sec:hover{
  background: rgba(255,255,255,.12);
  border-color: #fff;
  color: #fff;
}
.planta-cta-bloco{
  position: relative;
  padding: 72px 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, color-mix(in srgb, var(--ac) 22%, transparent), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 40%, rgba(255,255,255,.04), transparent 55%),
    var(--bg, #0c0a10);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.planta-cta-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.planta-cta-copy{ max-width: 560px; }
.planta-cta-copy h2{
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
  margin: 10px 0 12px;
  letter-spacing: -0.02em;
}
.planta-cta-copy p{
  opacity: .72;
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}
.planta-cta-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.planta-cta-actions .btn{
  min-height: 48px;
  padding: 12px 22px;
  font-weight: 700;
}
.btn-planta-flutuante{
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--ac, #6410c9);
  color: var(--ac-ink, #fff);
  font: 600 13px system-ui, sans-serif;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .15s, filter .15s;
}
.btn-planta-flutuante:hover{
  filter: brightness(1.08);
  transform: translateY(-2px);
  color: var(--ac-ink, #fff);
}
@media (max-width: 700px){
  .planta-cta-inner{ flex-direction: column; align-items: flex-start; }
  .hs .cta.cta-sec{ margin-left: 0; margin-top: 10px; }
  .btn-planta-flutuante span:last-child{ display: none; }
  .btn-planta-flutuante{ padding: 14px; bottom: 88px; }
}

/* VITRINE DE MODELOS (capturas reais) */
.vt{display:grid;grid-template-columns:minmax(0,1fr);gap:22px}
.vt-palco{position:relative;padding-right:clamp(0px,7vw,110px)}
.vt-barra{height:30px;display:flex;align-items:center;gap:6px;padding:0 14px 8px}
.vt-barra i{width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.18)}
.vt-barra span{margin-left:12px;font:500 12px var(--sans);color:rgba(255,255,255,.5);background:rgba(255,255,255,.06);padding:4px 14px;border-radius:99px}
.lp-mockup-inner{aspect-ratio:16/10}
.lp-mockup-inner img{object-position:top}
.vt-cel{position:absolute;right:0;bottom:-26px;width:clamp(120px,17vw,230px);aspect-ratio:500/1082;border-radius:30px;border:7px solid #1b1b20;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.65);background:#000}
.vt-cel img{width:100%;height:100%;object-fit:cover;object-position:top;transition:opacity .5s var(--e)}
.vt-info{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;margin-top:18px}
.vt-rot{font:600 11px var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--s)}
.vt-info b{color:#fff;font-size:20px}
.vt-info>span:not(.vt-rot){font-size:14px;color:rgba(255,255,255,.65);max-width:560px}
.vt-acoes{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:10px}
.vt-lista{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin-top:30px}
.vt-item{border:1px solid var(--borda-fina);background:rgba(255,255,255,.03);border-radius:14px;padding:0;overflow:hidden;cursor:pointer;color:rgba(255,255,255,.75);text-align:left;transition:transform .3s var(--e),border-color .3s}
.vt-item[hidden]{display:none}
.vt-item img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;object-position:top}
.vt-item span{display:block;padding:9px 12px;font:600 13px var(--sans)}
.vt-item:hover{transform:translateY(-3px);border-color:rgba(255,255,255,.3)}
.vt-item.on{border-color:var(--s);box-shadow:0 0 0 3px color-mix(in srgb, var(--s) 30%, transparent);color:#fff}
@media(max-width:700px){.vt-palco{padding-right:0}.vt-cel{width:96px;right:6px;bottom:-14px;border-width:4px;border-radius:16px}}

/* ---------- topo da página inicial no celular: menu ☰ ---------- */
.lp-menu{display:none;width:44px;height:44px;border-radius:12px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.04);position:relative;cursor:pointer;flex:0 0 auto}
.lp-menu i{position:absolute;left:12px;right:12px;height:2px;border-radius:2px;background:#fff;transition:transform .3s,opacity .3s,top .3s}
.lp-menu i:nth-child(1){top:14px}.lp-menu i:nth-child(2){top:21px}.lp-menu i:nth-child(3){top:28px}
.menu-aberto .lp-menu i:nth-child(1){top:21px;transform:rotate(45deg)}.menu-aberto .lp-menu i:nth-child(2){opacity:0}.menu-aberto .lp-menu i:nth-child(3){top:21px;transform:rotate(-45deg)}
.lp-cta-m{display:none!important}
@media (max-width: 860px){
  .lp-header .wrap{height:64px;gap:10px}
  .lp-header .marca{font-size:24px;margin-right:auto}
  .lp-menu{display:block}
  .lp-cta-m{display:inline-flex!important;padding:10px 14px!important;font-size:12px!important}
  .lp-header.menu-aberto{background:#09090b}
  .lp-nav{position:absolute;top:64px;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;padding:8px 16px 18px;background:#09090b;border-bottom:1px solid rgba(255,255,255,.1);
    font-size:17px;opacity:0;visibility:hidden;transform:translateY(-8px);box-shadow:0 30px 60px rgba(0,0,0,.6);transition:opacity .25s,transform .25s,visibility .25s}
  .lp-nav.aberto{opacity:1;visibility:visible;transform:none}
  .lp-nav a{padding:14px 4px;border-bottom:1px solid rgba(255,255,255,.07);color:rgba(255,255,255,.85)}
  .lp-nav a.btn{margin-top:14px;justify-content:center;border-bottom:0}
}
@media (max-width: 340px){.lp-cta-m{display:none!important}}

/* ---------- topo do painel no celular ---------- */
.topo-nav{display:flex;align-items:center;gap:18px}
.topo-nome{font-size:13px;color:rgba(255,255,255,.8);max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.so-cel{display:none}
@media (max-width: 700px){
  .topo .wrap{height:58px;gap:10px}
  .topo .marca{font-size:22px}
  .topo-nav{gap:12px}
  .topo-nome,.so-pc{display:none}
  .so-cel{display:inline}
  .topo-nav .btn{padding:9px 13px;font-size:12px;white-space:nowrap}
}

/* ---------- abas do painel no celular: rolam para o lado em vez de estourar a tela ---------- */
@media (max-width: 700px){
  .pn .tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;gap:6px;margin-left:-18px;margin-right:-18px;padding-left:18px;padding-right:18px}
  .pn .tabs::-webkit-scrollbar{display:none}
  .pn .tabs a{flex:0 0 auto;white-space:nowrap}
}
