/* ============================================================
   Artefato Empreendimentos — v2
   Referência: Sirotov Architects concept
   ============================================================ */

:root {
  --bg:    #F2F0EB;
  --black: #111110;
  --mid:   #6b6b67;
  --rule:  #D8D6CF;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--black);
  font-family: 'Syne', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── Tipografia — classes utilitárias ── */
.label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
}

.display {
  font-size: clamp(45px, 7vw, 102px);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 0.93;
  color: var(--black);
}

.round-dot {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
}

.hero-dot {
  display: inline-block;
  width: 0.135em;
  height: 0.135em;
  background: var(--black);
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: 0.06em;
  margin-bottom: 0;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-dot.visible { opacity: 1; }

.hero-cursor {
  display: inline-block;
  width: 0.04em;
  height: 0.82em;
  background: var(--black);
  margin-left: 0.06em;
  position: relative;
  bottom: -0.05em;
  animation: cursor-blink 1.2s steps(1) infinite;
  transition: opacity 0.2s ease;
}

.hero-cursor.done { opacity: 0; }

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── NAV ── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  border-bottom: 0.5px solid var(--rule);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--mid);
}

.nav-left  { text-align: left; display: flex; align-items: center; }

.nav-logo {
  height: 20px;
  width: auto;
  display: block;
  filter: brightness(0);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--black); }

.nav-right { display: flex; align-items: center; }

/* ── Hamburger (oculto no desktop) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* X quando aberto */
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Menu mobile overlay ── */
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 999;
  padding: 100px 32px 48px;
  gap: 0;
}

.nav-mobile-menu.open { display: flex; }

.nav-mobile-link {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--black);
  text-decoration: none;
  text-transform: uppercase;
  padding: 20px 0;
  border-bottom: 0.5px solid var(--rule);
  transition: color 0.2s ease;
}

.nav-mobile-link:first-child { border-top: 0.5px solid var(--rule); }
.nav-mobile-link:hover { color: var(--mid); }

.nav-mobile-login {
  margin-top: 40px;
  border: none;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--mid);
}

.nav-erp {
  display: flex;
  align-items: center;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-erp:hover { color: var(--black); }

/* ── HERO ── */
.hero {
  display: flex;
  flex-direction: column;
}

/* Bloco A */
.hero-name {
  padding: 48px 48px 40px;
}

.hero-title-wrap {
  display: flex;
  align-items: flex-end;
  gap: 40px;
}

.hero-tag {
  font-size: 19.5px;
  font-weight: 400;
  color: var(--mid);
  line-height: 1.2;
  padding-bottom: 8px;
  white-space: nowrap;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  align-self: flex-end;
  margin-left: auto;
}

.hero-tag span {
  display: block;
}

/* Bloco B */
.hero-image {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 360px;
  overflow: hidden;
}

.hero-image img,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Imagens ocultas por padrão — reveladas via JS ao carregar */
.hero-image img,
.projeto-image img {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-image img.loaded,
.projeto-image img.loaded {
  opacity: 1;
}

.projeto-image img.loaded {
  filter: grayscale(1);
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.projeto-image:hover img.loaded {
  filter: grayscale(0);
}

/* Placeholder — bloco de cor sólida, sem texto */
.hero-image-placeholder,
.projeto-image-placeholder {
  position: absolute;
  inset: 0;
  background-color: #D9D5CC;
  transition: opacity 0.4s ease;
}

.hero-image-placeholder.hidden,
.projeto-image-placeholder.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Bloco C */
.hero-about {
  padding: 56px 48px 88px;
}

.section-index {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 0.5px solid var(--rule);
  padding-top: 14px;
  margin-bottom: 48px;
}

.index-num {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
}

.index-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
}

.hero-about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 840px;
}

.col-title {
  font-size: 16px;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 16px;
}

.about-col p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--black);
  max-width: 320px;
}

/* ── PROJETOS ── */
.projetos {
  padding-top: 0;
}

.projetos > .section-index {
  margin: 0 48px 64px;
}

.projeto {
  margin-bottom: 0;
}

/* Full-bleed */
.projeto--full .projeto-image {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
}

.projeto--full .projeto-image img {
  position: absolute;
  inset: 0;
  transition: filter 0.4s ease;
}

.projeto--full:hover .projeto-image img {
  filter: brightness(0.88);
}

/* Grid assimétrico */
.projeto--split .projeto-grid {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 0;
  width: 100%;
  height: 60vh;
  min-height: 360px;
}

.projeto--split-reverse .projeto-grid {
  grid-template-columns: 3fr 7fr;
}

.projeto-image--large,
.projeto-image--small {
  position: relative;
  overflow: hidden;
}

.projeto-image--large img,
.projeto-image--small img {
  position: absolute;
  inset: 0;
  transition: filter 0.4s ease;
}

.projeto--split:hover .projeto-image img {
  filter: brightness(0.88);
}

/* Placeholders internos para projetos */
.projeto-image-placeholder {
  position: absolute;
  inset: 0;
}

/* Meta linha */
.projeto-meta {
  display: flex;
  align-items: baseline;
  gap: 0;
  padding: 16px 48px;
  border-top: 0.5px solid var(--rule);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
}

.projeto-meta span {
  flex: none;
}

.projeto-meta span + span::before {
  content: '·';
  margin: 0 14px;
  color: var(--rule);
}

/* ── SERVIÇOS ── */
.servicos {
  padding: 0 0 96px;
}

.servicos > .section-index {
  margin: 0 48px 64px;
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.servico-card {
  padding: 36px 52px 40px 48px;
  border-top: 0.5px solid var(--rule);
  border-right: 0.5px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.25s ease;
}

.servico-card:hover {
  background: #EDEAE3;
}

.servico-card:nth-child(-n+3) { border-top: none; }
.servico-card:nth-child(3n)   { border-right: none; }

.servico-num {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--mid);
}

.servico-titulo {
  font-size: 19px;
  font-weight: 300;
  color: var(--black);
  line-height: 1.2;
}

.servico-desc {
  font-size: 12px;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.7;
}

/* ── CONTATO ── */
.contato {
  border-top: 0.5px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contato-esq {
  padding: 96px 64px 96px 48px;
  display: flex;
  flex-direction: column;
}

.contato-titulo {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 24px;
}

.contato-texto {
  font-size: 13px;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 48px;
}

.contato-dados {
  list-style: none;
  margin-top: auto;
}

.contato-dado {
  border-top: 0.5px solid var(--rule);
  padding: 16px 0;
}

.contato-dado-label {
  display: block;
  font-size: 9px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--mid);
  margin-bottom: 5px;
}

.contato-dado-valor {
  display: block;
  font-size: 14px;
  font-weight: 300;
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s;
}

.contato-dado-valor:hover { color: var(--mid); }

.contato-dir {
  padding: 96px 48px 96px 64px;
  border-left: 0.5px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-inputs {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 28px;
}

.form-input {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--black);
  background: transparent;
  border: none;
  border-bottom: 0.5px solid var(--rule);
  outline: none;
  padding: 14px 0;
  width: 100%;
  transition: border-bottom-color 0.25s ease;
}

.form-input::placeholder { color: var(--mid); font-weight: 300; }
.form-input:focus { border-bottom-color: var(--black); }

.form-textarea {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--black);
  background: #EDEAE3;
  border: none;
  outline: none;
  padding: 20px;
  min-height: 200px;
  resize: none;
  width: 100%;
  line-height: 1.75;
  margin-bottom: 8px;
}

.form-hint {
  display: block;
  font-size: 10px;
  font-weight: 300;
  color: var(--rule);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: var(--black);
  color: #ffffff;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease;
}

.btn-whatsapp:hover { background: #1e1e1c; }
.btn-whatsapp svg   { flex-shrink: 0; }

/* ── FOOTER ── */
.footer {
  padding: 48px 48px 56px;
  margin-top: 80px;
}

.footer-rule {
  border-top: 0.5px solid var(--rule);
  margin-bottom: 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--mid);
}

/* ── RESPONSIVO — tablet (≤ 768px) ── */
@media (max-width: 768px) {
  .nav {
    padding: 20px 24px;
  }

  .nav-links { gap: 20px; }

  .hero-name {
    padding: 32px 24px 28px;
  }

  .hero-title-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-tag { font-size: 12px; }

  .hero-image { height: 50vh; min-height: 280px; }

  .hero-about {
    padding: 40px 24px 64px;
  }

  .section-index {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-about-cols {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .projetos > .section-index {
    margin: 0 24px 48px;
  }

  .projeto--full .projeto-image {
    height: 56vw;
    min-height: 240px;
  }

  .projeto-meta {
    padding: 14px 24px;
    flex-wrap: wrap;
    gap: 4px;
  }

  .projeto--split .projeto-grid,
  .projeto--split-reverse .projeto-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .projeto--split .projeto-grid .projeto-image--small,
  .projeto--split-reverse .projeto-grid .projeto-image--small {
    height: 36vw;
    min-height: 160px;
  }

  .projeto--split .projeto-grid .projeto-image--large,
  .projeto--split-reverse .projeto-grid .projeto-image--large {
    height: 56vw;
    min-height: 240px;
  }

  .servicos { padding: 0 0 64px; }

  .servicos > .section-index {
    margin: 0 24px 48px;
  }

  .servicos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .servico-card:nth-child(-n+3) { border-top: 0.5px solid var(--rule); }
  .servico-card:nth-child(3n)   { border-right: 0.5px solid var(--rule); }
  .servico-card:nth-child(-n+2) { border-top: none; }
  .servico-card:nth-child(2n)   { border-right: none; }

  .servico-card { padding: 28px 24px 32px; }

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

  .contato-esq { padding: 64px 24px 48px; }

  .contato-dir {
    padding: 48px 24px 64px;
    border-left: none;
    border-top: 0.5px solid var(--rule);
  }

  .footer { padding: 40px 24px 48px; }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
  }
}

/* ── RESPONSIVO — mobile (≤ 480px) ── */
@media (max-width: 480px) {
  .nav {
    padding: 18px 20px;
  }

  .nav { flex-wrap: nowrap; }
  .nav-links, .nav-right { display: none; }
  .nav-hamburger { display: flex; }

  .display { font-size: clamp(36px, 11vw, 56px); }

  .hero-name { padding: 24px 20px 20px; }

  .hero-image { height: 60vw; min-height: 220px; }

  .hero-about { padding: 36px 20px 56px; }

  .projetos > .section-index { margin: 0 20px 40px; }

  .projeto-meta { padding: 12px 20px; font-size: 10px; }

  .servicos > .section-index { margin: 0 20px 40px; }

  /* Serviços em coluna única */
  .servicos-grid { grid-template-columns: 1fr; }

  .servico-card:nth-child(-n+2) { border-top: 0.5px solid var(--rule); }
  .servico-card:nth-child(2n)   { border-right: 0.5px solid var(--rule); }
  .servico-card:first-child     { border-top: none; }
  .servico-card                 { border-right: none; }

  .servico-card { padding: 24px 20px 28px; }

  .contato-esq { padding: 48px 20px 40px; }

  .contato-dir { padding: 40px 20px 56px; }

  .footer { padding: 32px 20px 40px; }
}
