/* Danny Beauty — continuous dark editorial canvas.
   Palette from the brand manual: Merlot, Dijon/Pale Khaki gold, Moonbeam beige. */

/* Brand fonts from the manual, both free for commercial use:
   Ashfiana (Toufique Islam) and Patung (Khurasan) */
@font-face {
  font-family: "Ashfiana";
  src: url("../fonts/ashfiana.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Patung";
  src: url("../fonts/patung.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --fundo: #1c0a0e;
  --fundo-suave: #240e13;
  --texto: #f0e5d5;
  --texto-suave: #c7b4a3;
  --merlot: #5a1f27;
  --merlot-deep: #451821;
  --gold: #a3814a;
  --gold-light: #cdb88c;
  --linha: rgba(163, 129, 74, 0.32);
  --fonte-display: "Fraunces", serif;
  --fonte-corpo: "Raleway", sans-serif;
  --ease-suave: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--fonte-corpo);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--texto);
  background-color: var(--fundo);
  background-image:
    radial-gradient(90% 40% at 85% 0%, rgba(90, 31, 39, 0.4) 0%, transparent 60%),
    linear-gradient(180deg, var(--fundo) 0%, var(--fundo-suave) 55%, var(--fundo) 100%);
}

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

h1, h2 {
  font-family: var(--fonte-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.16;
  color: var(--texto);
}

.script {
  font-family: var(--fonte-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: 0.03em;
  color: var(--gold-light);
  line-height: 1.25;
}

.secao-num {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

a { color: var(--gold-light); }

/* ---------- botões ---------- */

.btn {
  display: inline-block;
  font-family: var(--fonte-corpo);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border-radius: 3px;
  min-height: 48px;
}

.btn-ouro {
  background:
    linear-gradient(var(--gold-light), var(--gold-light)) left / 0% 100% no-repeat,
    var(--gold);
  color: var(--merlot-deep);
  padding: 0.9rem 1.9rem;
  letter-spacing: 0.02em;
  transition:
    background-size 0.4s var(--ease-suave),
    transform 0.25s var(--ease-suave),
    box-shadow 0.25s var(--ease-suave);
}

.btn-ouro:hover,
.btn-ouro:focus-visible {
  background-size: 100% 100%, auto;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(10, 4, 5, 0.5);
}

.btn-ouro:active { transform: translateY(0); }

.btn-contorno {
  border: 1px solid rgba(240, 229, 213, 0.55);
  color: var(--texto);
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.25s var(--ease-suave);
}

.btn-contorno:hover,
.btn-contorno:focus-visible {
  background: var(--texto);
  color: var(--merlot-deep);
  border-color: var(--texto);
  transform: translateY(-2px);
}

/* ---------- topo (transparente, sem barra) ---------- */

.topo {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(18, 7, 9, 0.55) 0%, transparent 100%);
  transition: background 0.4s ease, padding 0.4s ease;
}

.topo.rolado {
  background: linear-gradient(180deg, rgba(18, 7, 9, 0.92) 0%, rgba(18, 7, 9, 0.75) 70%, transparent 100%);
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.topo-logo {
  display: block;
  line-height: 0;
}

.topo-logo-arte {
  display: block;
  width: 132px;
  height: 60px;
  background: linear-gradient(115deg, var(--gold) 20%, var(--gold-light) 55%, var(--gold) 85%);
  mask: url("../img/logo-stacked.png") no-repeat center / contain;
  -webkit-mask: url("../img/logo-stacked.png") no-repeat center / contain;
}

.topo-nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}

.topo-nav a {
  position: relative;
  color: var(--texto);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 600;
  padding: 0.75rem 0;
  text-shadow: 0 1px 8px rgba(10, 4, 5, 0.5);
}

.topo-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.45rem;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-suave);
}

.topo-nav a:hover::after,
.topo-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-topo {
  background: var(--gold);
  color: var(--merlot-deep);
  padding: 0.55rem 1.2rem;
  min-height: 0;
  font-size: 0.93rem;
  transition: background 0.3s, transform 0.25s var(--ease-suave);
}

.btn-topo:hover { background: var(--gold-light); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 48px;
  height: 48px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--texto);
  transition: transform 0.3s var(--ease-suave), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-midia {
  position: absolute;
  inset: 0;
}

.hero-midia picture,
.hero-midia img,
.hero-midia video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 30%;
}

.hero-midia img {
  animation: hero-vive 26s ease-in-out infinite alternate;
}

@keyframes hero-vive {
  from { transform: scale(1) translateX(0); }
  to { transform: scale(1.07) translateX(-1.6%); }
}

.hero-midia video {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-midia video.tocando { opacity: 1; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(24, 9, 12, 0.78) 6%, rgba(24, 9, 12, 0.35) 44%, rgba(24, 9, 12, 0) 68%),
    linear-gradient(0deg, var(--fundo) 0%, rgba(28, 10, 14, 0.45) 26%, rgba(28, 10, 14, 0) 55%),
    linear-gradient(180deg, rgba(24, 9, 12, 0.5) 0%, rgba(24, 9, 12, 0) 24%);
}

.hero .script { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }

.hero-conteudo {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 7.5rem clamp(1rem, 4vw, 3rem) clamp(3.5rem, 10vh, 7rem);
}

.hero h1 {
  font-family: var(--fonte-corpo);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.1vw, 1.6rem);
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--texto);
  max-width: 30rem;
  margin: 0.7rem 0 2rem;
}

.hero-acoes {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.hero-endereco {
  margin-top: clamp(2rem, 6vh, 4rem);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  font-weight: 600;
}

.hero-acoes .btn-ouro {
  padding: 1.1rem 2.3rem;
  font-size: 1.1rem;
}

.hero-acoes .btn-contorno {
  padding: 1.05rem 2.1rem;
  font-size: 1.1rem;
}

.hero-marca {
  font-family: "Ashfiana", var(--fonte-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 9.5vw, 8.5rem);
  line-height: 0.86;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--texto);
  margin-top: 0.6rem;
  white-space: nowrap;
}

.hero-marca span {
  font-family: "Patung", cursive;
  font-weight: 400;
  font-size: 0.3em;
  text-transform: none;
  color: var(--gold-light);
  margin-left: -0.5em;
  vertical-align: -0.05em;
}

/* ---------- seções ---------- */

section {
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 4vw, 3rem);
}

.secao-cab {
  max-width: 1150px;
  margin: 0 auto 2.6rem;
}

.secao-cab h2,
.terapia h2,
.sobre h2,
.contato h2 {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  margin-bottom: 0.6rem;
}

.secao-cab p:last-child {
  color: var(--texto-suave);
  max-width: 38rem;
}

/* ---------- serviços ---------- */

.servicos-lista {
  list-style: none;
  max-width: 1150px;
  margin: 0 auto;
  border-top: 1px solid var(--linha);
}

.servicos-lista li {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr auto;
  align-items: baseline;
  gap: 1rem 2.5rem;
  padding: 1.35rem 0.8rem;
  border-bottom: 1px solid var(--linha);
  transition: background 0.3s var(--ease-suave), padding-left 0.3s var(--ease-suave);
}

.servicos-lista li:hover {
  background: rgba(163, 129, 74, 0.07);
  padding-left: 1.4rem;
}

.servicos-lista h3 {
  font-family: var(--fonte-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--texto);
}

.servicos-lista p {
  color: var(--texto-suave);
  font-size: 0.97rem;
}

.servicos-lista a {
  font-weight: 700;
  font-size: 0.93rem;
  text-decoration: none;
  color: var(--gold-light);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color 0.25s, border-color 0.25s;
}

.servicos-lista a:hover {
  color: var(--texto);
  border-color: var(--texto);
}

/* ---------- terapia ---------- */

.terapia {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  max-width: 1150px;
  margin: 0 auto;
}

.terapia-foto img {
  border-radius: 4px;
  border: 1px solid var(--linha);
}

.terapia-texto p {
  color: var(--texto-suave);
  margin-bottom: 1rem;
}

.terapia-texto strong { color: var(--texto); }

.terapia-texto .btn { margin-top: 0.6rem; }

/* ---------- trabalhos (grade editorial) ---------- */

.galeria {
  max-width: 1150px;
  margin: 0 auto;
  padding-bottom: clamp(1.4rem, 3.5vw, 3rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.4vw, 1.8rem);
}

.galeria figure:nth-child(3n + 2) { transform: translateY(clamp(1.4rem, 3.5vw, 3rem)); }

.galeria figure {
  overflow: hidden;
  border-radius: 4px;
}

.galeria img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.7s var(--ease-suave);
}

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

.galeria-mais {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--linha);
  border-radius: 4px;
  text-decoration: none;
  background: rgba(163, 129, 74, 0.05);
  transition: background 0.35s, border-color 0.35s;
}

.galeria-mais:hover {
  background: rgba(163, 129, 74, 0.12);
  border-color: var(--gold);
}

.galeria-mais-titulo {
  font-family: var(--fonte-display);
  font-size: 1.5rem;
  font-weight: 550;
  color: var(--texto);
}

.galeria-mais-acao {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  transition: color 0.3s, border-color 0.3s;
}

.galeria-mais:hover .galeria-mais-acao {
  color: var(--texto);
  border-color: var(--texto);
}

/* ---------- sobre ---------- */

.sobre {
  position: relative;
  overflow: hidden;
  align-items: center;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  max-width: 1150px;
  margin: 0 auto;
}

.sobre::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -40px;
  width: 380px;
  height: 320px;
  background: var(--gold);
  mask: url("../img/symbol.png") no-repeat center / contain;
  -webkit-mask: url("../img/symbol.png") no-repeat center / contain;
  opacity: 0.08;
}

.arco {
  border-radius: 999px 999px 6px 6px;
  overflow: hidden;
  border: 1px solid var(--linha);
  padding: 10px;
  background: rgba(163, 129, 74, 0.06);
}

.arco img { border-radius: 989px 989px 4px 4px; }

.sobre-foto { max-width: 380px; justify-self: center; }

.sobre-texto { max-width: 46rem; }

.sobre p {
  color: var(--texto-suave);
  margin-bottom: 1rem;
}

.sobre strong { color: var(--texto); }

/* ---------- depoimentos ---------- */

.depoimentos .secao-cab { text-align: center; }

.depo-slider {
  position: relative;
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
  padding-top: 1rem;
}

.depo-aspas {
  display: block;
  font-family: var(--fonte-display);
  font-size: 5rem;
  line-height: 0.6;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.depo-palco { display: grid; }

.depo-item {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-suave);
  pointer-events: none;
}

.depo-item.ativa {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.depo-item p {
  font-family: var(--fonte-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.5;
  color: var(--texto);
  margin-bottom: 1.2rem;
}

.depo-item cite {
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-light);
}

.depo-pontos {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.8rem;
}

.depo-pontos button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(205, 184, 140, 0.3);
  cursor: pointer;
  transition: width 0.35s var(--ease-suave), background 0.3s;
}

.depo-pontos button.ativa {
  width: 26px;
  background: var(--gold);
}

/* ---------- contato ---------- */

.contato {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 1150px;
  margin: 0 auto;
}

.contato address {
  font-style: normal;
  font-size: 1.06rem;
  margin: 0.6rem 0 1rem;
}

.contato-horario {
  color: var(--texto-suave);
  margin-bottom: 1.2rem;
}

.contato-horario strong { color: var(--texto); }

.contato-links {
  list-style: none;
  margin-bottom: 1.6rem;
}

.contato-links a {
  display: inline-block;
  padding: 0.35rem 0;
  font-weight: 600;
}

.contato-foto img {
  width: 100%;
  border: 1px solid var(--linha);
  border-radius: 6px;
}

.contato-foto figcaption {
  margin-top: 0.8rem;
  text-align: right;
}

.contato-foto figcaption a {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-light);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}

.contato-foto figcaption a:hover {
  color: var(--texto);
  border-color: var(--texto);
}

/* ---------- rodapé ---------- */

.rodape {
  border-top: 1px solid var(--linha);
  color: var(--texto-suave);
  text-align: center;
  padding: 2.6rem 1rem 2.2rem;
  font-size: 0.94rem;
}

.rodape-logo {
  width: 170px;
  height: 78px;
  margin: 0 auto 1.2rem;
  background: linear-gradient(115deg, var(--gold) 20%, var(--gold-light) 55%, var(--gold) 85%);
  mask: url("../img/logo-stacked.png") no-repeat center / contain;
  -webkit-mask: url("../img/logo-stacked.png") no-repeat center / contain;
}

.rodape p { margin-bottom: 0.4rem; }

/* ---------- WhatsApp flutuante ---------- */

.zap-flutuante {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1faa53;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s var(--ease-suave), background 0.3s;
}

.zap-flutuante::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #1faa53;
  animation: pulso-zap 2.4s ease-out infinite;
}

.zap-flutuante:hover {
  background: #178a43;
  transform: scale(1.08);
}

@keyframes pulso-zap {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}

/* ---------- tela de carregamento ---------- */

.carregando {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--fundo);
  transition: opacity 0.55s ease, visibility 0.55s;
}

.carregando.saindo {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.carregando-logo {
  width: min(52vw, 230px);
  height: 108px;
  background: linear-gradient(115deg, var(--gold) 20%, var(--gold-light) 55%, var(--gold) 85%);
  mask: url("../img/logo-stacked.png") no-repeat center / contain;
  -webkit-mask: url("../img/logo-stacked.png") no-repeat center / contain;
  animation: logo-entra 0.9s var(--ease-suave) both;
}

@keyframes logo-entra {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: none; }
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s var(--ease-suave);
  transition-delay: var(--atraso, 0s);
}

.reveal-foto {
  opacity: 0;
  transform: translateY(18px) scale(0.975);
  transition: opacity 0.75s ease, transform 0.75s var(--ease-suave);
}

.reveal.visivel,
.reveal-foto.visivel {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .reveal-foto {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .zap-flutuante::before { animation: none; }

  .carregando { display: none; }

  .hero-midia img { animation: none; }
}

/* ---------- mobile ---------- */

@media (max-width: 860px) {
  .topo { gap: 0.8rem; }

  .topo-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(18, 7, 9, 0.96);
    border-bottom: 1px solid var(--linha);
    padding: 0.4rem 1.2rem 1rem;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease-suave), transform 0.3s var(--ease-suave), visibility 0.3s;
  }

  .topo-nav.aberto {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .topo-nav a { padding: 0.7rem 0; font-size: 1.02rem; }

  .topo-nav a::after { display: none; }

  .btn-topo { margin-left: auto; }

  .nav-toggle { display: block; }

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

  .hero::before {
    background:
      linear-gradient(0deg, var(--fundo) 4%, rgba(28, 10, 14, 0.55) 40%, rgba(28, 10, 14, 0.15) 65%, rgba(24, 9, 12, 0.45) 100%);
  }

  .hero-midia picture,
  .hero-midia img,
  .hero-midia video {
    object-position: center 18%;
  }

  .hero-conteudo { padding-bottom: 1rem; }

  .hero-marca { font-size: clamp(3.4rem, 16vw, 5.2rem); }

  .sobre-foto { order: -1; max-width: 320px; }

  .terapia-foto { order: -1; }

  .servicos-lista li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 1.2rem 0.4rem;
  }

  .servicos-lista li:hover { padding-left: 0.4rem; }

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

  .galeria figure:nth-child(3n + 2) { transform: none; }

  .galeria figure:nth-child(2n) { transform: translateY(clamp(1rem, 4vw, 1.8rem)); }
}
