/* ============================================
   FERMENTOU — Portfolio site
   ============================================ */

:root {
  --preto: #141210;
  --cinza-escuro: #2b2926;
  --creme: #f4ecd8;
  --terracota: #c1502e;
  --terracota-escuro: #8f3a21;
  --verde-claro: #eef5c8;
  --branco: #ffffff;
  --fonte-titulo: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --fonte-corpo: "Helvetica Neue", Arial, sans-serif;
  --espaco-secao: clamp(3rem, 8vw, 7rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--fonte-corpo);
  color: var(--preto);
  background: var(--creme);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
  color: var(--branco);
}

.site-header.is-solid {
  background: var(--preto);
}

.logo {
  font-family: var(--fonte-titulo);
  font-size: 1.1rem;
  line-height: 0.95;
  text-align: center;
  letter-spacing: 0.02em;
}

.logo a { color: inherit; }

.menu-toggle {
  background: none;
  border: none;
  color: var(--branco);
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 26px;
  height: 2px;
  background: currentColor;
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.contact-icon {
  color: var(--branco);
}
.contact-icon svg { width: 30px; height: 30px; }

/* Full-screen nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--preto);
  color: var(--creme);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-overlay ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.nav-overlay li {
  margin: 1.2rem 0;
}

.nav-overlay a {
  font-family: var(--fonte-titulo);
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.nav-overlay a.is-active {
  color: var(--terracota);
}

/* ---------- Hero / video section ---------- */

.hero-video {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #050505 0%, var(--cinza-escuro) 55%, #6b6862 100%);
}

.hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-video__placeholder-note {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-family: var(--fonte-titulo);
  letter-spacing: 0.3em;
  font-size: 1rem;
}

.hero-video__logos {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem) clamp(1.5rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 6vw, 5rem);
  opacity: 0.35;
}

.hero-video__logos img {
  filter: grayscale(1) brightness(2);
  margin: 0 auto;
}

/* ---------- Trabalhos / overlapping parallax images ---------- */

.trabalhos {
  position: relative;
  background: var(--preto);
}

.trabalho-item {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.trabalho-item__frame {
  position: relative;
  width: 100%;
  height: 100%;
  will-change: transform, opacity;
}

.trabalho-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trabalho-item__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3a3733;
  color: rgba(244, 236, 216, 0.5);
  font-family: var(--fonte-titulo);
  font-size: clamp(2rem, 6vw, 4rem);
}

.trabalho-item__label {
  position: absolute;
  left: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(1.25rem, 4vw, 3rem);
  color: var(--branco);
  font-family: var(--fonte-titulo);
  font-size: clamp(1rem, 2vw, 1.3rem);
  background: rgba(20,18,16,0.55);
  padding: 0.4rem 0.9rem;
}

/* ---------- Divider (mosaic-inspired) ---------- */

.divider-mosaico {
  height: clamp(10rem, 24vw, 18rem);
  background:
    repeating-linear-gradient(135deg, var(--terracota) 0 26px, var(--creme) 26px 30px),
    repeating-linear-gradient(45deg, var(--terracota-escuro) 0 26px, transparent 26px 30px);
  background-blend-mode: multiply;
}

/* ---------- Clientes ---------- */

.clientes {
  background: var(--verde-claro);
  padding: var(--espaco-secao) 0;
  text-align: center;
}

.clientes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.clientes__grid img {
  margin: 0 auto;
  max-height: 40px;
  filter: grayscale(1);
}

.clientes__icone {
  width: 40px;
  margin: 0 auto 1rem;
}

.clientes__texto {
  max-width: 30ch;
  margin: 0 auto 1.5rem;
  font-size: 0.85rem;
  color: #555;
}

.clientes__social {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.clientes__social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--preto);
  color: var(--branco);
  display: flex;
  align-items: center;
  justify-content: center;
}
.clientes__social svg { width: 22px; height: 22px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--preto);
  color: var(--creme);
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem);
  text-align: center;
  font-size: 0.85rem;
}

.site-footer a.whats {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--terracota);
  color: var(--branco);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* ---------- Páginas internas (Sobre / Contato / Trabalhos) ---------- */

.pagina-interna {
  padding: clamp(7rem, 14vw, 10rem) 0 var(--espaco-secao);
}

.pagina-interna h1 {
  font-family: var(--fonte-titulo);
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.pagina-interna p {
  max-width: 60ch;
  line-height: 1.6;
  color: #333;
}

/* Contato form */

.form-contato {
  max-width: 520px;
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.form-contato label {
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
}

.form-contato input,
.form-contato textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  background: var(--branco);
  font-family: inherit;
  font-size: 1rem;
}

.form-contato button {
  justify-self: start;
  background: var(--terracota);
  color: var(--branco);
  border: none;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  cursor: pointer;
}

.form-contato button:hover { background: var(--terracota-escuro); }

.contato__links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.contato__links a {
  border: 1px solid var(--preto);
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
}

/* Grid de trabalhos (página Trabalhos) */

.trabalhos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.trabalhos-grid__item {
  aspect-ratio: 4/3;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-family: var(--fonte-titulo);
  overflow: hidden;
}
.trabalhos-grid__item img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 640px) {
  .trabalhos-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .clientes__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trabalho-item__frame { transition: none !important; }
}
