/* ============================================================
   Edi Barbearia Tradicional — Paraíso, São Paulo
   Direção: as cores do próprio salão. Areia das paredes, madeira
   mel do piso, verde-garrafa das plantas e o vermelho-e-azul do
   poste de barbeiro. Fotografia em cor.
   ============================================================ */

:root {
  --tinta: #241d17;
  --tinta-suave: #3d342b;
  --texto-2: #6b5b42;
  --gesso: #f2e6cd;
  --gesso-fundo: #ecd9b4;
  --gesso-claro: #faf3e3;
  --linha: #d9c69f;
  --linha-escura: #3c5a4e;
  --verde: #24433a;
  --ambar: #e0a33f;
  --polo-vermelho: #b23a2c;
  --polo-azul: #33506b;
  --estrela: #c07c15;
  --display: "Fraunces", Georgia, serif;
  --corpo: "Libre Franklin", -apple-system, Helvetica, Arial, sans-serif;
  --raio: 6px;
  --larg: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--corpo);
  background: var(--gesso);
  color: var(--tinta);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--polo-azul);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--polo-vermelho); color: var(--gesso-claro); }

/* ---- Listra de barbeiro: o único acento de cor da página ---- */

.listra {
  height: 7px;
  background: repeating-linear-gradient(
    -55deg,
    var(--polo-vermelho) 0 12px,
    var(--gesso-claro) 12px 24px,
    var(--polo-azul) 24px 36px,
    var(--gesso-claro) 36px 48px
  );
}

.listra-topo { position: sticky; top: 0; z-index: 60; }

/* ---- Tipografia utilitária ---- */

.olho {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--polo-vermelho);
  display: block;
  margin-bottom: 1rem;
}

.titulo {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "opsz" 52;
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 22ch;
}

.secao { padding: 5.5rem 1.5rem; }

.miolo { max-width: var(--larg); margin: 0 auto; }

/* ---- Cabeçalho ---- */

.cabecalho {
  position: sticky;
  top: 7px;
  z-index: 50;
  background: color-mix(in srgb, var(--gesso) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linha);
}

.cabecalho-miolo {
  max-width: var(--larg);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.marca {
  font-family: var(--display);
  font-weight: 640;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.marca small {
  display: block;
  font-family: var(--corpo);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--texto-2);
}

.navega {
  display: flex;
  gap: 1.6rem;
  margin-inline: auto;
}

.navega a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--tinta-suave);
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.navega a:hover { color: var(--tinta); border-bottom-color: var(--polo-vermelho); }

.cabecalho .botao { padding: 0.6rem 1.1rem; font-size: 0.88rem; }

/* ---- Botões ---- */

.botao {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--corpo);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border-radius: var(--raio);
  border: 1.5px solid var(--tinta);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
}

.botao svg { flex: none; }

.botao-cheio {
  background: var(--polo-vermelho);
  color: var(--gesso-claro);
  border-color: var(--polo-vermelho);
  box-shadow: 0 2px 0 0 rgba(120, 33, 23, 0.45);
}

.botao-cheio:hover { transform: translateY(-2px); box-shadow: 0 5px 14px rgba(178, 58, 44, 0.4); }
.botao-cheio:active { transform: translateY(0); box-shadow: none; }

.botao-vazado { background: transparent; color: var(--tinta); }
.botao-vazado:hover { background: rgba(36, 29, 23, 0.06); }

.escuro .botao-cheio {
  background: var(--ambar);
  color: var(--tinta);
  border-color: var(--ambar);
  box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.4);
}

.escuro .botao-vazado { color: var(--gesso-claro); border-color: var(--gesso-claro); }
.escuro .botao-vazado:hover { background: rgba(244, 239, 230, 0.09); }

/* ---- Herói ---- */

.heroi { padding: 4.5rem 1.5rem 5.5rem; overflow: clip; }

.heroi-miolo {
  max-width: var(--larg);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.heroi h1 {
  font-family: var(--display);
  font-weight: 620;
  font-variation-settings: "opsz" 68, "WONK" 1;
  font-size: clamp(2.5rem, 5.6vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-bottom: 1.4rem;
}

.heroi h1 em {
  font-style: italic;
  font-weight: 500;
}

.heroi-texto p {
  font-size: 1.125rem;
  color: var(--tinta-suave);
  max-width: 34rem;
  margin-bottom: 2.1rem;
}

.heroi-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 2rem;
}

.nota-google {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--tinta-suave);
}

.nota-google strong {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 620;
  color: var(--tinta);
}

.estrelas { color: var(--estrela); letter-spacing: 0.1em; font-size: 0.95rem; }

/* Moldura da foto do herói: eco das molduras pretas da parede do salão */

.heroi-foto { position: relative; }

.heroi-foto figure {
  border: 10px solid var(--tinta);
  border-radius: 2px;
  box-shadow: 0 24px 48px -18px rgba(36, 29, 23, 0.45);
  background: var(--tinta);
}

.heroi-foto img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.02);
}

/* ---- Selo circular: reconstrução do decalque da vitrine ---- */

.selo {
  position: absolute;
  left: -74px;
  bottom: 44px;
  width: 148px;
  height: 148px;
  filter: drop-shadow(0 8px 16px rgba(36, 29, 23, 0.35));
}

.selo .anel { animation: girar 40s linear infinite; transform-origin: 50% 50%; }

@keyframes girar { to { transform: rotate(360deg); } }

/* ---- Faixa de serviços (tinta) ---- */

.faixa {
  background: var(--verde);
  color: var(--gesso);
  padding: 1.1rem 1.5rem;
}

.faixa-miolo {
  max-width: var(--larg);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem 1.1rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.faixa .ponto { color: var(--ambar); font-size: 1.3rem; line-height: 1; }

.faixa .detalhe {
  font-family: var(--corpo);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a3bcab;
}

/* ---- Serviços ---- */

.servicos-grade {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 3rem;
}

.servico {
  background: var(--gesso-claro);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.servico img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  transition: transform 0.45s ease;
}

.servico:hover img { transform: scale(1.03); }

/* Enquadra o rosto, que fica no terço superior da foto vertical */
.servico:first-child img { object-position: 50% 30%; }

.servico-corpo { padding: 1.5rem 1.5rem 1.7rem; }

.servico h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.servico p { font-size: 0.97rem; color: var(--texto-2); }

/* ---- O barbeiro (seção escura) ---- */

.escuro {
  background: var(--verde);
  color: var(--gesso);
}

.escuro .olho { color: var(--ambar); }
.escuro .titulo { color: var(--gesso-claro); }

.barbeiro-miolo {
  max-width: var(--larg);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.barbeiro-foto figure {
  border: 10px solid var(--gesso-claro);
  border-radius: 2px;
  transform: rotate(-1.2deg);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.55);
  background: var(--gesso-claro);
}

.barbeiro-foto img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

.barbeiro-foto figcaption {
  font-size: 0.8rem;
  color: var(--verde);
  padding: 0.5rem 0.2rem 0.1rem;
  font-style: italic;
  font-family: var(--display);
  font-weight: 460;
}

.barbeiro-texto p {
  color: #cfdfd2;
  margin-bottom: 1.2rem;
  max-width: 36rem;
}

.barbeiro-texto p strong { color: var(--gesso-claro); font-weight: 600; }

.barbeiro-provas {
  display: flex;
  gap: 2.5rem;
  margin: 2rem 0 2.4rem;
  flex-wrap: wrap;
}

.prova strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 620;
  color: var(--gesso-claro);
  line-height: 1.1;
}

.prova span { font-size: 0.85rem; color: #a3bcab; }

/* ---- O salão (galeria) ---- */

.galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "a b c"
    "a d c"
    "e d f";
  grid-auto-rows: 240px;
  gap: 1rem;
  margin-top: 3rem;
}

.galeria figure {
  overflow: hidden;
  border-radius: var(--raio);
  border: 1px solid var(--linha);
}

.galeria figure:nth-child(1) { grid-area: a; }
.galeria figure:nth-child(2) { grid-area: b; }
.galeria figure:nth-child(3) { grid-area: c; }
.galeria figure:nth-child(4) { grid-area: d; }
.galeria figure:nth-child(5) { grid-area: e; }
.galeria figure:nth-child(6) { grid-area: f; }

.galeria img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
  transition: transform 0.5s ease;
}

.galeria figure:hover img { transform: scale(1.035); }

/* ---- Avaliações ---- */

.avaliacoes { background: var(--gesso-fundo); }

.avaliacoes-topo {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.nota-grande {
  text-align: right;
}

.nota-grande strong {
  font-family: var(--display);
  font-size: 3.4rem;
  font-weight: 640;
  line-height: 1;
  display: block;
}

.nota-grande span { font-size: 0.9rem; color: var(--texto-2); }

.quadro-avaliacoes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  margin-top: 3rem;
}

.avaliacao {
  background: var(--gesso-claro);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  padding: 1.8rem 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.avaliacao blockquote {
  font-family: var(--display);
  font-weight: 480;
  font-size: 1.15rem;
  line-height: 1.5;
  flex: 1;
}

.avaliacao blockquote::before { content: "“"; color: var(--polo-vermelho); }
.avaliacao blockquote::after { content: "”"; color: var(--polo-vermelho); }

.avaliacao footer {
  font-size: 0.88rem;
  color: var(--texto-2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.avaliacao footer strong { color: var(--tinta); font-weight: 600; }

/* ---- FAQ ---- */

.faq-lista { margin-top: 3rem; max-width: 46rem; }

.faq-item {
  border-bottom: 1px solid var(--linha);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 0.2rem;
  font-family: var(--display);
  font-weight: 560;
  font-size: 1.18rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--corpo);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--polo-vermelho);
  transition: transform 0.25s ease;
  flex: none;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  padding: 0 2.5rem 1.4rem 0.2rem;
  color: var(--tinta-suave);
  max-width: 40rem;
}

.faq-item a { color: var(--polo-azul); font-weight: 600; }

/* ---- Visita / CTA final ---- */

.visita-miolo {
  max-width: var(--larg);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
}

.visita-texto .titulo { margin-bottom: 1.2rem; }

.visita-texto > p { color: #cfdfd2; max-width: 32rem; margin-bottom: 2.2rem; }

.visita-acoes { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.ficha {
  border: 1px solid var(--linha-escura);
  border-radius: var(--raio);
  padding: 2rem;
  align-self: start;
}

.ficha h3 {
  font-family: var(--corpo);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a3bcab;
  margin-bottom: 0.7rem;
}

.ficha h3:not(:first-child) { margin-top: 1.8rem; }

.ficha p, .ficha td { color: var(--gesso); font-size: 0.98rem; }

.ficha a { color: var(--gesso-claro); }

.ficha table { border-collapse: collapse; width: 100%; }

.ficha td { padding: 0.18rem 0; }

.ficha td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

.ficha .fechado { color: #a3bcab; }

/* ---- Rodapé ---- */

.rodape {
  background: var(--verde);
  color: #a3bcab;
  border-top: 1px solid var(--linha-escura);
  padding: 1.6rem 1.5rem;
}

.rodape-miolo {
  max-width: var(--larg);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

.rodape a { color: var(--gesso); text-decoration: none; }
.rodape a:hover { text-decoration: underline; }

/* ---- Botão flutuante de WhatsApp (só no celular) ---- */

.zap-flutuante {
  display: none;
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 70;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--polo-vermelho);
  color: var(--gesso-claro);
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(120, 33, 23, 0.45);
}

/* ---- Revelação ao rolar (script.js) ---- */

.revelar { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.revelar.visivel { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .selo .anel { animation: none; }
  .revelar { opacity: 1; transform: none; transition: none; }
  .botao, .galeria img, .servico img { transition: none; }
}

/* ---- Responsivo ---- */

@media (max-width: 960px) {
  .navega { display: none; }
  .cabecalho-miolo { justify-content: space-between; }

  .heroi-miolo, .barbeiro-miolo, .visita-miolo { grid-template-columns: 1fr; gap: 3rem; }

  .heroi { padding-top: 3rem; }
  .heroi-foto { max-width: 480px; }
  .selo { left: auto; right: -4px; bottom: -30px; width: 124px; height: 124px; }

  .servicos-grade { grid-template-columns: 1fr; max-width: 480px; }
  .quadro-avaliacoes { grid-template-columns: 1fr; }

  .galeria {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: "a b" "a c" "d e" "d f";
    grid-auto-rows: 200px;
  }

  .barbeiro-foto { max-width: 420px; }
}

@media (max-width: 600px) {
  .secao { padding: 4rem 1.25rem; }
  .heroi { padding-inline: 1.25rem; }
  .cabecalho .botao { display: none; }
  .zap-flutuante { display: flex; }
  .galeria {
    grid-template-columns: 1fr;
    grid-template-areas: "a" "b" "c" "d" "e" "f";
    grid-auto-rows: 230px;
  }
  .nota-grande { text-align: left; }
  .rodape { padding-bottom: 5.5rem; }
}
