/* ============================================================
   Hair Garden — estilos
   Para trocar a paleta, altere as variáveis em :root.
   ============================================================ */

:root {
  --verde: #3f5a2e;        /* cor principal */
  --verde-escuro: #2a3d20;
  --salvia: #93a672;       /* verde claro */
  --creme: #f8f4ee;        /* fundo */
  --creme-alt: #efe8dd;    /* fundo das seções alternadas */
  --rosa: #e8dcc4;         /* detalhe suave */
  --dourado: #a88f35;      /* destaque */
  --texto: #2b2b2b;
  --texto-suave: #5e5a55;
  --branco: #fff;

  --fonte-titulo: "Playfair Display", Georgia, serif;
  --fonte-texto: "Jost", "Segoe UI", system-ui, sans-serif;

  --raio: 14px;
  --sombra: 0 10px 30px rgba(31, 51, 40, .10);
  --largura: 1140px;
  --altura-topo: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--altura-topo); }

body {
  margin: 0;
  font-family: var(--fonte-texto);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--texto);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--fonte-titulo);
  font-weight: 500;
  line-height: 1.15;
  color: var(--verde-escuro);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; margin-top: 1.4em; margin-bottom: .2em; }

.container {
  width: 100%;
  max-width: var(--largura);
  margin: 0 auto;
  padding: 0 20px;
}

.sobretitulo {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dourado);
  margin: 0 0 .6em;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  padding: .85em 1.8em;
  border-radius: 999px;
  background: var(--verde);
  color: var(--branco);
  text-decoration: none;
  font-weight: 400;
  letter-spacing: .04em;
  border: 1px solid var(--verde);
  transition: background .25s, color .25s, transform .25s;
}
.btn:hover { background: var(--verde-escuro); transform: translateY(-2px); }
.btn--contorno { background: transparent; color: var(--verde); }
.btn--contorno:hover { background: var(--verde); color: var(--branco); }
.btn--pequeno { padding: .5em 1.3em; }

/* ---------- Cabeçalho ---------- */
.topo {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--altura-topo);
  z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.topo.rolou {
  background: rgba(248, 244, 238, .95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .06);
}
.topo__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.marca {
  font-family: var(--fonte-titulo);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--verde-escuro);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.marca img { height: 50px; width: auto; }

.menu { display: flex; align-items: center; gap: 1.8rem; }
.menu a:not(.btn) {
  text-decoration: none;
  font-size: .95rem;
  position: relative;
}
.menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--dourado);
  transition: width .25s;
}
.menu a:not(.btn):hover::after { width: 100%; }

.menu-btn {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 24px; height: 2px;
  margin: 5px 0;
  background: var(--verde-escuro);
  transition: transform .3s, opacity .3s;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .menu {
    position: fixed;
    top: var(--altura-topo); left: 0; right: 0;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.6rem 20px 2rem;
    background: var(--creme);
    box-shadow: 0 12px 20px rgba(0, 0, 0, .08);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform .3s, visibility .3s;
  }
  .menu.aberto { transform: none; visibility: visible; }
}

/* ---------- Capa ---------- */
.capa {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: center;
  padding: calc(var(--altura-topo) + 40px) 0 60px;
  overflow: hidden;
}
.capa__fundo {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 85% 20%, rgba(232, 220, 196, .95) 0, transparent 40%),
    radial-gradient(circle at 70% 85%, rgba(147, 166, 114, .45) 0, transparent 45%),
    var(--creme);
}
.capa__grade {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.capa__foto {
  aspect-ratio: 3 / 4;
  max-height: 620px;
  width: 100%;
  justify-self: end;
  border-radius: 999px 999px var(--raio) var(--raio);
  overflow: hidden;
  box-shadow: var(--sombra);
  outline: 1px solid var(--dourado);
  outline-offset: 12px;
}
.capa__foto { position: relative; }
.capa__foto > img, .capa__foto > .provisorio { width: 100%; height: 100%; object-fit: cover; }

/* Sequência de fotos: troca com fade e um leve zoom */
.capa__foto > .capa__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease, transform 6s ease-out;
}
.capa__foto > .capa__slide.ativo { opacity: 1; transform: scale(1); }
.capa__pontos {
  position: absolute;
  left: 0; right: 0; bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 1;
}
.capa__pontos button {
  width: 9px; height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--branco);
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: background .3s, width .3s;
}
.capa__pontos button.ativo { background: var(--branco); width: 22px; border-radius: 999px; }
@media (max-width: 860px) {
  .capa__grade { grid-template-columns: 1fr; }
  .capa__foto { max-width: 300px; justify-self: center; }
}
.capa__texto { font-size: 1.15rem; color: var(--texto-suave); max-width: 520px; }
.capa__acoes { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ---------- Seções ---------- */
.secao { padding: clamp(70px, 10vw, 120px) 0; }
.secao--alt { background: var(--creme-alt); }
.secao__cabecalho { text-align: center; margin-bottom: 3rem; }

/* Quadro provisório usado quando falta foto */
.provisorio {
  background:
    linear-gradient(135deg, rgba(147, 166, 114, .45), rgba(232, 220, 196, .85)),
    var(--creme-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--verde);
  font-family: var(--fonte-titulo);
  font-size: 1.2rem;
  font-style: italic;
  text-align: center;
  padding: 1rem;
}

/* ---------- Sobre ---------- */
.sobre {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.sobre__foto {
  aspect-ratio: 4 / 5;
  border-radius: 200px 200px var(--raio) var(--raio);
  overflow: hidden;
  box-shadow: var(--sombra);
}
.sobre__foto > * { width: 100%; height: 100%; object-fit: cover; }
.sobre__texto p { color: var(--texto-suave); }

.destaques {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--rosa);
  padding-top: 1.6rem;
}
.destaques strong {
  display: block;
  font-family: var(--fonte-titulo);
  font-size: 2.2rem;
  color: var(--verde);
  line-height: 1;
}
.destaques span { display: block; margin-top: .4rem; font-size: .85rem; line-height: 1.4; color: var(--texto-suave); }

@media (max-width: 860px) {
  .sobre { grid-template-columns: 1fr; }
  .sobre__foto { max-width: 420px; width: 100%; margin: 0 auto; }
}

/* ---------- Serviços ---------- */
.servicos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.6rem;
}
.servico-cat {
  background: var(--branco);
  border-radius: var(--raio);
  padding: 2rem 1.8rem;
  box-shadow: var(--sombra);
}
.servico-cat h3 {
  margin-top: 0;
  font-size: 1.8rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--rosa);
}
.servico-cat ul { list-style: none; padding: 0; margin: 0; }
.servico-cat li { padding: .9rem 0; border-bottom: 1px dashed var(--creme-alt); }
.servico-cat li:last-child { border-bottom: 0; }
.servico__linha { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.servico__nome { font-weight: 500; }
.servico__preco { color: var(--dourado); font-size: .9rem; white-space: nowrap; }
.servico__desc { margin: .2rem 0 0; font-size: .92rem; color: var(--texto-suave); }

/* ---------- Portfólio ---------- */
.filtros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-bottom: 2rem;
}
.filtro {
  font: inherit;
  font-size: .9rem;
  padding: .45em 1.2em;
  border-radius: 999px;
  border: 1px solid var(--salvia);
  background: transparent;
  color: var(--verde);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.filtro:hover, .filtro.ativo { background: var(--verde); border-color: var(--verde); color: var(--branco); }

.galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.galeria__item {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--raio);
  overflow: hidden;
  cursor: zoom-in;
  border: 0;
  padding: 0;
  background: none;
}
.galeria__item img,
.galeria__item video,
.galeria__item .provisorio {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.galeria__item:hover img,
.galeria__item:hover video { transform: scale(1.05); }
.galeria__legenda {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 1rem .9rem;
  background: linear-gradient(transparent, rgba(31, 51, 40, .75));
  color: var(--branco);
  font-size: .95rem;
  text-align: left;
  opacity: 0;
  transition: opacity .3s;
}
.galeria__item:hover .galeria__legenda,
.galeria__item:focus-visible .galeria__legenda { opacity: 1; }
@media (hover: none) { .galeria__legenda { opacity: 1; } }
.galeria__item[hidden] { display: none; }
@media (max-width: 600px) {
  .galeria { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .galeria__legenda { font-size: .8rem; padding: 2rem .6rem .6rem; }
  .galeria__item .provisorio { font-size: .95rem; }
}

.videos { margin-top: 3rem; }
.videos[hidden] { display: none; }
.videos__titulo { text-align: center; margin: 0 0 1.5rem; }

.portfolio__insta { text-align: center; margin-top: 2rem; color: var(--texto-suave); }
.portfolio__insta a { color: var(--verde); font-weight: 500; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 30, 24, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 900px; text-align: center; }
.lightbox img,
.lightbox video { max-height: 80vh; max-width: 100%; margin: 0 auto; border-radius: 8px; }
.lightbox [hidden] { display: none; }
.lightbox figcaption { color: var(--branco); margin-top: .8rem; }
.lightbox button {
  background: none;
  border: 0;
  color: var(--branco);
  cursor: pointer;
  font-size: 3rem;
  line-height: 1;
  padding: 10px 16px;
}
.lightbox__fechar { position: absolute; top: 10px; right: 10px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--ant { left: 4px; }
.lightbox__nav--prox { right: 4px; }

/* ---------- Depoimentos ---------- */
.depoimentos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}
.depoimento {
  margin: 0;
  background: var(--branco);
  border-radius: var(--raio);
  padding: 2rem;
  box-shadow: var(--sombra);
  position: relative;
}
.depoimento::before {
  content: "“";
  position: absolute;
  top: -.2rem; right: 1.2rem;
  font-family: var(--fonte-titulo);
  font-size: 5rem;
  color: var(--rosa);
  line-height: 1;
}
.depoimento__estrelas { color: var(--dourado); letter-spacing: .15em; }
.depoimento p { font-family: var(--fonte-titulo); font-size: 1.12rem; font-style: italic; margin: .6rem 0 1rem; }
.depoimentos__google { text-align: center; margin-top: 2rem; color: var(--texto-suave); }
.depoimentos__google a { color: var(--verde); font-weight: 500; }
.depoimento cite { font-style: normal; font-weight: 500; color: var(--verde); }
.depoimento cite span { font-weight: 300; font-size: .85rem; color: var(--texto-suave); }

/* ---------- Contato ---------- */
.contato {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: stretch;
}
.contato__info p { margin: 0; color: var(--texto-suave); }
.contato__info a:not(.btn) { color: var(--verde); }
.contato__info .btn { margin-top: 2rem; }
.horarios { list-style: none; padding: 0; margin: 0; max-width: 360px; }
.horarios li { display: flex; justify-content: space-between; gap: 1rem; color: var(--texto-suave); }
.contato__mapa {
  min-height: 380px;
  border-radius: var(--raio);
  overflow: hidden;
  box-shadow: var(--sombra);
}
.contato__mapa iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

@media (max-width: 860px) {
  .contato { grid-template-columns: 1fr; }
}

/* ---------- Rodapé ---------- */
.rodape { background: var(--verde-escuro); color: rgba(255, 255, 255, .8); padding: 1.6rem 0; font-size: .9rem; }
.rodape__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.rodape__inner { align-items: center; }
.rodape [data-marca-texto] { font-family: var(--fonte-titulo); font-size: 1.3rem; color: var(--branco); }
.rodape [data-marca-texto] img { height: 110px; width: auto; }

/* ---------- WhatsApp flutuante ---------- */
.whats-flutuante {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--branco);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  transition: transform .25s;
}
.whats-flutuante:hover { transform: scale(1.08); }
.whats-flutuante svg { width: 30px; height: 30px; }

/* ---------- Animação ao rolar ---------- */
.revelar { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.revelar.visivel { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .revelar { opacity: 1; transform: none; }
}
