/* Site da Lins Arquitetura: branco, fotos grandes, o azul do logo nos detalhes. */
:root {
    --azul: #475e88;
    --azul-escuro: #34476a;
    --cinza: #d2d3d5;
    --texto: #1c2028;
    --suave: #5b6270;
    --linha: #e6e7ea;
    --fundo: #ffffff;
    --rodape: #f4f5f7;
    --largura: 1240px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    color: var(--texto);
    background: var(--fundo);
    -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--fundo); line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); }
a:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; }
.faixa { max-width: var(--largura); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.pular { position: absolute; left: -9999px; top: 0; background: #fff; padding: .6rem 1rem; z-index: 20; }
.pular:focus { left: 1rem; top: 1rem; }

.cabecalho { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linha); }
.cabecalho .faixa { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; }
.marca img { width: 150px; height: auto; }
.menu { display: flex; gap: 1.8rem; }
.menu a { color: var(--texto); text-decoration: none; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; padding: .4rem 0; border-bottom: 1px solid transparent; }
.menu a:hover { border-bottom-color: var(--azul); }

.abertura { padding-top: clamp(3rem, 8vw, 6.5rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.abertura h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 300; letter-spacing: -.01em; margin: 0 0 1rem; color: var(--azul); }
.slogan { font-size: clamp(1.02rem, 1.8vw, 1.25rem); color: var(--suave); max-width: 46rem; margin: 0 0 1.5rem; font-weight: 300; }

.projetos-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--linha); padding-top: 1.6rem; margin-bottom: 1.6rem; }
h2 { font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--suave); margin: 0 0 1rem; }
.projetos-topo h2 { margin: 0; }
.filtros { display: flex; gap: .4rem; flex-wrap: wrap; }
.filtros a { text-decoration: none; color: var(--suave); font-size: .9rem; padding: .35rem .9rem; border: 1px solid var(--linha); border-radius: 999px; }
.filtros a:hover { color: var(--texto); border-color: var(--cinza); }
.filtros a[aria-current="true"] { color: #fff; background: var(--azul); border-color: var(--azul); }

.grade { list-style: none; padding: 0; margin: 0 0 4rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 2.4rem 1.6rem; }
.cartao { display: block; text-decoration: none; color: var(--texto); }
.cartao img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #eef0f3; transition: transform .5s ease, filter .5s ease; }
.cartao { overflow: hidden; }
.cartao:hover img { transform: scale(1.025); filter: brightness(1.04); }
@media (prefers-reduced-motion: reduce) { .cartao img { transition: none; } .cartao:hover img { transform: none; } }
.cartao-texto { display: grid; gap: .15rem; padding-top: .8rem; }
.cartao-titulo { font-size: 1.12rem; font-weight: 500; }
.cartao-categoria { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--azul); margin: 0; }
.vazio { color: var(--suave); }

.sobre { border-top: 1px solid var(--linha); padding-top: 2rem; padding-bottom: 4rem; }
.sobre p { max-width: 46rem; font-size: 1.08rem; font-weight: 300; }

.projeto { padding-top: 2rem; padding-bottom: 3rem; }
.voltar { margin: 0 0 1.5rem; }
.voltar a { text-decoration: none; color: var(--suave); font-size: .9rem; }
.projeto-topo { margin-bottom: 2rem; max-width: 52rem; }
.projeto-topo h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 300; margin: 0 0 .4rem; }
.projeto-descricao { color: var(--suave); font-size: 1.05rem; font-weight: 300; }
.galeria { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.6rem; }
.galeria a { display: block; cursor: zoom-in; }
.galeria img { width: 100%; background: #eef0f3; }
.vizinhos { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--linha); margin-top: 3rem; padding-top: 1.4rem; }
.vizinhos a { text-decoration: none; color: var(--texto); display: grid; gap: .1rem; font-size: 1.05rem; }
.vizinhos a span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--suave); }
.vizinhos .direita { text-align: right; }

.botao { display: inline-block; margin-top: 1rem; padding: .7rem 1.3rem; background: var(--azul); color: #fff; text-decoration: none; border-radius: 3px; font-size: .95rem; }
.botao:hover { background: var(--azul-escuro); }

.rodape { background: var(--rodape); border-top: 1px solid var(--linha); padding-top: 3rem; margin-top: 2rem; }
.rodape-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.rodape address { font-style: normal; display: grid; gap: .35rem; }
.rodape address a { color: var(--texto); text-decoration: none; }
.rodape address a:hover { text-decoration: underline; }
.redes, .parceiros { list-style: none; padding: 0; margin: 0 0 1.6rem; display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; }
.redes a { color: var(--texto); }
.parceiros img { height: 56px; width: auto; }
.assinatura { color: var(--suave); font-size: .85rem; padding-top: 2rem; padding-bottom: 2rem; margin: 0 auto; }

/* Galeria em tela cheia (galeria.js). */
.tela-cheia { position: fixed; inset: 0; z-index: 50; background: #0c0e12; display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.tela-cheia[hidden] { display: none; }
.tela-cheia img { max-width: 100%; max-height: 92vh; margin: auto; object-fit: contain; }
.tela-cheia button { background: none; border: 0; color: #fff; font-size: 2rem; width: 3.5rem; height: 3.5rem; cursor: pointer; }
.tela-cheia button:focus-visible { outline: 2px solid #fff; }
.tela-cheia .fechar { position: absolute; top: .5rem; right: .5rem; }
.tela-cheia .contador { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: #c9ccd2; font-size: .85rem; }

@media (max-width: 640px) {
    .faixa { padding-left: 16px; padding-right: 16px; }
    .cabecalho .faixa { min-height: 64px; }
    .marca img { width: 118px; }
    .menu { gap: 1rem; }
    .menu a { font-size: .72rem; letter-spacing: .1em; }
    .grade { gap: 2rem; }
    .galeria { gap: 1rem; }
    .tela-cheia { grid-template-columns: 1fr; }
    .tela-cheia .anterior, .tela-cheia .proxima { position: absolute; bottom: .5rem; }
    .tela-cheia .anterior { left: .5rem; }
    .tela-cheia .proxima { right: .5rem; }
}
