/* CAOS Arquitetura — estilos do site estático (sem dependências externas) */

:root {
  --preto: #0a0a0a;
  --branco: #ffffff;
  --cinza-claro: #e4e4e4;
  --cinza: #9b9b9b;
  --fonte: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  --header-h: 72px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--branco);
  color: var(--preto);
  font-family: var(--fonte);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
button,
input,
textarea {
  font-family: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  z-index: 100;
  border-bottom: 1px solid var(--cinza-claro);
}

.wordmark {
  display: flex;
  align-items: center;
}

.wordmark img {
  display: block;
  height: 28px;
  width: auto;
}

.nav-desktop {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
}

.nav-desktop a {
  position: relative;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 4px;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--preto);
  transition: right 0.25s ease;
}

.nav-desktop a:hover::after {
  right: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--preto);
  width: 100%;
}

/* Menu overlay (mobile) */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--branco);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-overlay[hidden] {
  display: none;
}

.menu-overlay nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.menu-overlay a {
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Hero */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: var(--header-h) clamp(20px, 5vw, 56px) 0;
}

.hero-logo {
  width: min(90vw, 720px);
  height: auto;
  display: block;
}

.hero-tagline {
  margin-top: 24px;
  max-width: 32ch;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--preto);
}

/* Seções gerais */

main section {
  padding: 96px clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--cinza-claro);
}

main section h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.section-lead {
  margin-top: 16px;
  max-width: 48ch;
  font-size: 1.05rem;
  color: var(--cinza);
}

/* Projetos */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 8px;
}

.filtro {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cinza);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.filtro:hover,
.filtro.is-active {
  color: var(--preto);
  border-bottom-color: var(--preto);
}

.grid-projetos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px;
  background: var(--cinza-claro);
}

.projeto {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--branco);
}

.projeto[hidden] {
  display: none;
}

.projeto-placeholder {
  display: block;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #d8d8d8 0%, #f2f2f2 100%);
}

.projeto-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 4px;
}

.projeto-nome {
  font-weight: 700;
}

.projeto-categoria {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cinza);
}

/* Escritório */

.escritorio {
  max-width: 72ch;
}

.escritorio p {
  font-size: 1.1rem;
  margin-top: 24px;
}

.socios {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 48px;
}

.socio {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.socio-nome {
  font-weight: 700;
}

.socio-cargo {
  font-size: 0.85rem;
  color: var(--cinza);
}

/* Depoimentos */

.depoimento {
  margin: 48px 0 0;
  max-width: 68ch;
}

.depoimento p {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.4;
}

.depoimento footer {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.depoimento-nome {
  font-weight: 700;
}

.depoimento-cargo {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cinza);
}

/* Contato */

.contato-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  margin-top: 48px;
}

.form-contato {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 480px;
}

.form-contato label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cinza);
}

.form-contato input,
.form-contato textarea {
  font-size: 1rem;
  color: var(--preto);
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid var(--cinza-claro);
  background: transparent;
  resize: vertical;
}

.form-contato input:focus,
.form-contato textarea:focus {
  outline: none;
  border-bottom-color: var(--preto);
}

.form-contato button {
  align-self: flex-start;
  margin-top: 8px;
  padding: 12px 32px;
  background: var(--preto);
  color: var(--branco);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.contato-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1rem;
}

.contato-info a {
  text-decoration: underline;
}

.contato-info a.link-instagram,
.site-footer a.link-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.link-instagram svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  padding: 32px clamp(20px, 5vw, 56px);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cinza);
  border-top: 1px solid var(--cinza-claro);
}

.site-footer a:hover {
  color: var(--preto);
}

/* Responsivo */

@media (max-width: 720px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .contato-grid {
    grid-template-columns: 1fr;
  }
}
