/* Paleta extraída do PowerPoint (tons do bege EEECE1 escurecidos) */
:root {
  --fundo: #ffffff;
  --escuro: #1d1b14;      /* faixa central e rodapé */
  --texto: #4a4630;       /* título e serviços */
  --frase: #978f62;       /* frase de destaque */
  --claro: #c6bfa1;       /* textos sobre o fundo escuro */
  --dourado: #c5a059;     /* cor de destaque (do PowerPoint) */
  --altura-faixa: min(64vh, 38vw);
  --duracao: 900ms;       /* troca de imagem */
  --zoom: 1.06;           /* zoom lento sobre a foto */
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--fundo);
  color: var(--texto);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

p { margin: 0; }

/* Cabeçalho */
.topo {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: clamp(1.25rem, 3.5vh, 2.25rem) clamp(1rem, 3vw, 3rem) clamp(1rem, 2.5vh, 1.75rem);
}

/* Nome em serifada fina, "Arquitetura" em versalete espaçado */
.marca {
  margin: 0;
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-weight: 400;
}
.marca-nome {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 500;
  letter-spacing: .02em;
}
.marca-sub {
  margin-top: .5rem;
  padding-left: .15em;
  font-size: clamp(.75rem, 1.1vw, .95rem);
  letter-spacing: .42em;
  text-transform: uppercase;
}
/* Filete dourado sob o nome */
.marca-sub::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 2px;
  margin-top: .75rem;
  background: var(--dourado);
}


main { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* Faixa central */
.faixa {
  position: relative;
  display: flex;
  width: 100%;
  height: var(--altura-faixa);
  background: linear-gradient(to right, transparent 55%, var(--escuro) 55%);
}

/* A largura acompanha a proporção da foto atual, como nos slides */
.faixa-imagem {
  position: relative;
  flex: none;
  width: min(calc(var(--altura-faixa) * var(--proporcao, 2)), 68vw);
  height: 100%;
  overflow: hidden;
  transition: width var(--duracao) ease;
}

.foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--duracao) ease;
}
.foto.ativa { opacity: 1; z-index: 1; }

.foto.zoom { animation: zoom var(--tempo-zoom, 6s) linear forwards; }
.pausado .foto.zoom { animation-play-state: paused; }

@keyframes zoom {
  from { transform: scale(1); }
  to   { transform: scale(var(--zoom)); }
}

.faixa-texto {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem clamp(1rem, 3vw, 2.5rem);
  text-align: center;
  background: var(--escuro);
}

.projeto {
  align-self: stretch;
  text-align: right;
  color: var(--claro);
  font-size: clamp(.85rem, 1.15vw, 1rem);
}

.frase {
  max-width: 20ch;
  min-height: 3.75em;
  color: var(--dourado);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
}

.projeto, .frase { transition: opacity calc(var(--duracao) / 2) ease; }
.saindo { opacity: 0; }

/* Miniaturas sob a faixa */
.miniaturas {
  position: relative;
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .75rem clamp(1rem, 3vw, 3rem);
  scrollbar-width: thin;
  scroll-behavior: smooth;
}
.mini {
  flex: none;
  position: relative;
  width: clamp(5rem, 7vw, 6.5rem);
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  opacity: .45;
  filter: grayscale(.4);
  transition: opacity .35s, filter .35s;
}
.mini img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mini::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.4rem;
  height: 2px;
  background: var(--dourado);
  transform: scaleX(0);
  transition: transform .35s ease;
}
.mini:hover { opacity: .85; filter: none; }
.mini[aria-current="true"] { opacity: 1; filter: none; }
.mini[aria-current="true"]::after { transform: scaleX(1); }
.mini.inicio-projeto { margin-left: .75rem; }
.mini.inicio-projeto:first-child { margin-left: 0; }

/* Setas */
.nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  translate: 0 -50%;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: rgb(29 27 20 / .45);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .25s, background .25s;
}
.anterior { left: .75rem; }
.proxima { right: .75rem; }
.faixa:hover .nav, .nav:focus-visible { opacity: 1; }
.nav:hover { background: rgb(29 27 20 / .75); }

/* Serviços: linha entre as miniaturas e o Sobre mim */
.servicos {
  margin: clamp(2.5rem, 7vh, 4rem) auto 0;
  padding: 0 1rem;
  text-align: center;
}
.servicos-titulo {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.servicos-lista {
  margin-top: .55rem;
  color: var(--frase);
  font-size: clamp(.95rem, 1.4vw, 1.05rem);
}
.servicos-lista span { margin: 0 .45em; color: var(--dourado); }
/* filete vertical que conduz ao Sobre mim */
.servicos::after {
  content: "";
  display: block;
  width: 1px;
  height: clamp(2.5rem, 6vh, 3.5rem);
  margin: clamp(1.75rem, 4vh, 2.5rem) auto 0;
  background: #d9d4c1;
}

/* Sobre mim */
.sobre {
  max-width: 50rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vh, 2.5rem) clamp(1rem, 4vw, 2rem) clamp(1rem, 3vh, 2rem);
  text-align: center;
}

.sobre-titulo,
.sobre-assinatura {
  margin: 0;
  color: var(--frase);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .38em;
  text-transform: uppercase;
}

.sobre-titulo::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 2px;
  margin: .9rem auto 1.75rem;
  background: var(--dourado);
}

.sobre-texto {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--texto);
  text-wrap: pretty;
}

.sobre-assinatura { margin-top: 1.75rem; }

/* Rodapé */
.rodape {
  margin-top: clamp(2.5rem, 7vh, 4.5rem);
  padding: clamp(2.75rem, 7vh, 4.25rem) 1rem calc(clamp(2.5rem, 6vh, 3.75rem) + env(safe-area-inset-bottom, 0px));
  background: var(--escuro);
  color: var(--claro);
  text-align: center;
}
.rodape-chamada {
  margin: 0;
  color: var(--dourado);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.2;
}
.rodape-chamada::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 2px;
  margin: 1.1rem auto 1.4rem;
  background: var(--dourado);
}
.rodape-contatos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
}
.rodape a { color: inherit; text-decoration: none; }
.rodape a { transition: color .25s; }
.rodape a:hover { color: var(--dourado); }
/* Ícone do WhatsApp: segue a cor do texto (e fica dourado junto no hover) */
.contato-zap { display: inline-flex; align-items: center; gap: .5em; }
.contato-zap .icone { width: 1.05em; height: 1.05em; flex: none; color: var(--icone-zap, currentColor); }
.nav:focus-visible, .mini:focus-visible, .rodape a:focus-visible { outline: 2px solid var(--dourado); outline-offset: 3px; }


/* Celular / tablet em pé */
@media (max-width: 760px) {
  .topo { flex-direction: column; align-items: flex-start; }
  .servicos-titulo { font-size: .7rem; letter-spacing: .18em; }

  .faixa { flex-direction: column; height: auto; background: var(--escuro); }
  .faixa-imagem { width: 100%; height: auto; aspect-ratio: 2 / 1; }
  .faixa-texto { padding-block: 1.5rem 1.75rem; }
  .projeto { text-align: center; }
  .nav { opacity: 1; }
  .sep { display: none; }
  .rodape-contatos { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --duracao: 0ms; }
  .foto.zoom { animation: none; }
}
