/* Leila Brunetta Arquitetura — estilo do site
   Cores e medidas espelham o site original (Semplice). Ajuste os tokens em :root. */
:root {
  --texto: #292a2c;
  --preto: #000;
  --cinza: #888;
  --cinza-claro: #aaa;
  --cinza-legenda: #999;
  --fundo: #fff;
  --fundo-suave: #f5f5f5;
  --rodape-fundo: #e6e3df;
  --rodape-texto: #54534a;
  --rodape-rotulo: #7f7a70;
  --whats: #25d366;
  --topo: 70px;
  --largura: 1170px;
  --margem: 30px;
  --fonte: "Open Sans", Arial, sans-serif;
  --fonte-titulo: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--topo); }
body {
  margin: 0; background: var(--fundo); color: var(--texto);
  font: 400 18px/30px var(--fonte);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  padding-top: var(--topo);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 30px; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
figure { margin: 0; }
.container { width: 100%; max-width: calc(var(--largura) + 2 * var(--margem)); margin: 0 auto; padding: 0 var(--margem); }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- topo ---------- */
.topo { position: fixed; inset: 0 0 auto; height: var(--topo); background: rgba(255,255,255,.97); z-index: 50;
  transition: box-shadow .3s; }
.topo.rolou { box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.topo__in { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.topo__logo img { width: 170px; }
.topo__nav { display: flex; gap: 30px; font-size: 15px; line-height: 15px; }
.topo__nav a { color: var(--cinza); transition: color .25s; }
.topo__nav a:hover, .topo__nav a[aria-current] { color: var(--preto); }

/* ---------- revelar ao rolar ---------- */
.js .revela { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.js .revela.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .revela { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- sobre (home) ---------- */
.sobre__linha { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.sobre__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.sobre__linha--direita .sobre__foto { order: 2; }
.sobre__texto { padding: 60px 15.7%; }
.sobre__texto--centro { text-align: center; padding: 60px 6%; }
.sobre__titulo { font-family: var(--fonte-titulo); font-size: clamp(32px, 3.3vw, 60px); line-height: 1.05; color: var(--preto); margin-bottom: 30px; }
.sobre__texto--centro p { max-width: 872px; margin-left: auto; margin-right: auto; font-size: 16px; line-height: 27px; }
.assinatura { width: 210px; margin-top: 60px; }
.sobre__texto--centro .assinatura { margin: 60px auto 0; }

/* ---------- lista de projetos (masonry) ---------- */
.lista { padding-top: 0; padding-bottom: 90px; }
.grade { display: flex; gap: 12px; align-items: flex-start; }
.grade__col { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card { display: block; text-align: center; }
.card__foto { position: relative; display: block; overflow: hidden; }
.card__foto img { width: 100%; transition: transform 1.2s cubic-bezier(.2,.6,.2,1); }
.card__hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(0,0,0,.5); color: #fff; font-size: 24px; line-height: 1.2; opacity: 0; transition: opacity .4s; }
.card:hover .card__hover, .card:focus-visible .card__hover { opacity: 1; }
.card:hover .card__foto img { transform: scale(1.03); }
.card__nome { display: block; margin-top: 14px; font-size: 14px; line-height: 20px; color: var(--preto); }
.card__local { display: block; font-size: 11px; line-height: 20px; letter-spacing: 1px; color: var(--cinza-legenda); }

/* ---------- página de projeto ---------- */
.pg-projeto { padding-top: 0; }
.capa { position: relative; height: 100vh; height: 100svh; min-height: 420px; overflow: hidden; background: #ddd; }
.capa__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.capa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.05) 40%, rgba(0,0,0,.18)); }
.capa__titulo { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 0 20px; color: #fff; font-family: var(--fonte); font-size: clamp(44px, 7vw, 130px); line-height: 1; letter-spacing: -.01em;
  animation: surge 1.4s ease both .2s; }
.capa__seta { position: absolute; z-index: 1; left: 50%; bottom: 24px; transform: translateX(-50%); color: #fff; opacity: .85; animation: flutua 2.4s ease-in-out infinite; }
@keyframes surge { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes flutua { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

.projeto { padding-top: 110px; padding-bottom: 60px; display: flex; flex-direction: column; gap: 30px; }
.projeto__texto { max-width: 670px; margin: 50px auto; width: 100%; }
.projeto__texto:first-child { margin-top: 0; }
.projeto__titulo { font-family: var(--fonte); font-size: clamp(36px, 4vw, 70px); line-height: 1.14; margin-bottom: 30px; color: var(--texto); }
.projeto__img img { width: 100%; }
.projeto__par { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.projeto__par img { width: 100%; height: 100%; object-fit: cover; }

.navproj { display: flex; justify-content: space-between; gap: 30px; padding-top: 60px; padding-bottom: 80px; }
.navproj a { display: flex; flex-direction: column; font-size: 28px; line-height: 38px; color: var(--preto); transition: opacity .25s; }
.navproj a:hover { opacity: .6; }
.navproj span { font-size: 14px; line-height: 19px; letter-spacing: 1px; text-transform: uppercase; color: var(--cinza-claro); }
.navproj__prox { text-align: right; align-items: flex-end; }

.relacionados { background: var(--fundo-suave); padding: 60px 0 90px; }
.relacionados h2 { font-size: 32px; line-height: 62px; color: var(--preto); margin-bottom: 0; }
.relacionados__grade { gap: 30px; }
.relacionados__grade .grade__col { gap: 22px; }
.mini img { transition: opacity .3s; }
.mini:hover img { opacity: .8; transform: none; }
.mini .card__nome { font-size: 13px; margin-top: 10px; }

/* ---------- contato ---------- */
.contato { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; padding-top: 120px; padding-bottom: 120px; }
.contato h1 { font-family: var(--fonte-titulo); font-size: clamp(34px, 3vw, 50px); line-height: 1.04; color: var(--preto); margin-bottom: 30px; }
.contato__texto p { margin-bottom: 30px; }
.contato__dados { font-size: 16px; line-height: 27px; }
.contato__dados a:hover { color: var(--preto); text-decoration: underline; text-underline-offset: 3px; }
.contato .assinatura { width: 185px; margin-top: 50px; }
.contato__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.erro { padding: 160px 30px; text-align: center; }
.erro h1 { font-size: 40px; margin-bottom: 20px; }
.erro a { text-decoration: underline; }

/* ---------- rodapé ---------- */
.rodape { background: var(--rodape-fundo); color: var(--rodape-texto); font-size: 16px; line-height: 27px; padding: 80px 0 60px; }
.rodape__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.rodape strong { font-weight: 700; color: var(--rodape-texto); }
.rodape__grid p:not(:first-child) strong, .rodape .rodape__rotulo { color: var(--rodape-rotulo); }
.rodape__rotulo { margin-right: .35em; }
.rodape__mapa a { font-weight: 700; color: var(--rodape-texto); }
.rodape a:hover { color: var(--preto); }
.rodape__copy { font-size: 14px; line-height: 26px; color: var(--texto); margin-top: 60px; }

/* ---------- WhatsApp ---------- */
.whats { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--whats); color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: transform .3s, opacity .4s; }
.whats:hover { transform: scale(1.08); }
.js .whats.espera { opacity: 0; transform: scale(.6); pointer-events: none; }

/* ---------- tablet ---------- */
@media (max-width: 1000px) {
  .sobre__texto { padding: 50px 9%; }
  .relacionados__grade { gap: 16px; }
}

/* ---------- celular ---------- */
@media (max-width: 760px) {
  :root { --topo: 60px; --margem: 20px; }
  body { font-size: 16px; line-height: 27px; }
  .topo__logo img { width: 140px; }
  .topo__nav { gap: 18px; font-size: 14px; }

  .sobre__linha { grid-template-columns: 1fr; }
  .sobre__linha--direita .sobre__foto { order: 0; }
  .sobre__texto, .sobre__texto--centro { padding: 50px var(--margem) 60px; }
  .sobre__titulo { font-size: 32px; }
  .assinatura { width: 170px; margin-top: 40px; }

  .grade { flex-direction: column; align-items: stretch; gap: 28px; }
  .grade__col { display: contents; }
  .card__hover { display: none; }

  .projeto { padding-top: 60px; gap: 16px; }
  .projeto__texto { margin: 30px auto; }
  .projeto__par { grid-template-columns: 1fr; gap: 16px; }
  .navproj { padding-top: 40px; padding-bottom: 50px; }
  .navproj a { font-size: 20px; line-height: 28px; }
  .relacionados { padding: 40px 0 60px; }
  .relacionados h2 { font-size: 24px; line-height: 48px; }
  .relacionados__grade { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .relacionados__grade .card__foto img { aspect-ratio: 4 / 5; object-fit: cover; }

  .contato { grid-template-columns: 1fr; padding-top: 50px; padding-bottom: 60px; gap: 40px; }
  .contato__foto { order: -1; }

  .rodape { padding: 50px 0 40px; }
  .rodape__grid { grid-template-columns: 1fr; gap: 26px; }
  .rodape__copy { margin-top: 36px; }
  .whats { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}
@media (max-width: 380px) {
  .topo__logo img { width: 120px; }
  .topo__nav { gap: 12px; font-size: 13px; }
}
