/* Edi Garcia — Massoterapia & Estética
   Layout: secções alternam entre ameixa escura (neon discreto) e pérola rosada;
   texto alinhado à esquerda, um único momento "neon" no arco do hero. */
:root {
  --ameixa: #2a1030;      /* fundo escuro principal */
  --ameixa-2: #3a1743;    /* superfícies elevadas no escuro */
  --vinho: #7a2448;       /* blusa da Edi, faixas e detalhes */
  --neon: #ff86cf;        /* rosa neon, usado com contenção */
  --lilas: #c7a3f2;       /* violeta suave, segundo brilho */
  --perola: #fbf2f6;      /* fundo claro */
  --perola-2: #f4e6ee;
  --tinta: #2b1630;       /* texto em fundo claro */
  --tinta-2: #6d5673;     /* texto secundário em fundo claro */
  --luz: #fbf2f6;         /* texto em fundo escuro */
  --luz-2: rgba(251, 242, 246, .72);
  --linha-escura: rgba(251, 242, 246, .14);
  --linha-clara: rgba(43, 22, 48, .12);

  --f-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-texto: "DM Sans", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;

  --t-xs: .875rem;   /* 14, só legendas e notas */
  --t-s: 1rem;       /* 16 */
  --t-m: 1.0625rem;  /* 17 */
  --t-l: 1.3125rem;  /* 21 */
  --t-xl: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --t-2xl: clamp(2.4rem, 1.4rem + 4vw, 4rem);
  --t-hero: clamp(3rem, 1rem + 6.4vw, 7rem);

  --raio: 18px;
  --gutter: clamp(18px, 5vw, 64px);
  --max: 1220px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ameixa);
  color: var(--luz);
  font-family: var(--f-texto);
  font-weight: 400;
  font-size: var(--t-m);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.04; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 6px; }
.envolve { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
[hidden] { display: none !important; }
.claro { background: var(--perola); color: var(--tinta); color-scheme: light; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botões ---------- */
.btn {
  --bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .85em 1.6em;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 var(--t-s)/1 var(--f-texto); letter-spacing: 0;
  text-decoration: none; cursor: pointer;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .4s, border-color .4s, color .4s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-neon {
  background: linear-gradient(135deg, #ff9bd7 0%, #e963b5 55%, #b84ba6 100%);
  color: #2a0c2a;
  box-shadow: 0 0 0 1px rgba(255, 170, 220, .5) inset, 0 8px 28px -10px rgba(255, 110, 200, .55);
}
.btn-neon:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 200, 235, .8) inset, 0 0 22px rgba(255, 120, 205, .45), 0 14px 34px -12px rgba(255, 110, 200, .7); }
.btn-linha { border-color: var(--linha-escura); color: var(--luz); }
.btn-linha:hover { border-color: rgba(255, 134, 207, .6); color: #fff; box-shadow: 0 0 18px -4px rgba(255, 134, 207, .35); }
.claro .btn-linha { border-color: var(--linha-clara); color: var(--tinta); }
.claro .btn-linha:hover { border-color: var(--vinho); box-shadow: none; }
.btn:active { transform: translateY(0) scale(.98); }

/* ---------- Cabeçalho ---------- */
.topo {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .5s var(--ease), backdrop-filter .5s, box-shadow .5s;
}
.topo .envolve { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.topo.solido { background: rgba(42, 16, 48, .94); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--linha-escura); }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.marca .lotus { width: 34px; height: auto; }
.marca .palavra { width: 128px; height: auto; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a:not(.btn) { text-decoration: none; font-size: var(--t-s); color: var(--luz-2); position: relative; padding: 6px 0; transition: color .3s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--neon); box-shadow: 0 0 8px var(--neon); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav a:not(.btn):hover { color: var(--luz); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding: .7em 1.3em; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--linha-escura); background: transparent; color: var(--luz); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), opacity .3s; }
.menu-btn span:nth-child(1) { top: 18px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-aberto .menu-btn span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-aberto .menu-btn span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 6px; padding: 100px var(--gutter) 40px;
    background: radial-gradient(120% 70% at 80% 0%, #4a1d52 0%, var(--ameixa) 60%);
    opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
  }
  .nav a:not(.btn) { font-family: var(--f-display); font-size: 2.6rem; color: var(--luz); transform: translateY(16px); opacity: 0; transition: transform .6s var(--ease), opacity .6s; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 26px; opacity: 0; transform: translateY(16px); transition: transform .6s var(--ease) .3s, opacity .6s .3s; }
  .menu-aberto .nav { opacity: 1; visibility: visible; }
  .menu-aberto .nav a { opacity: 1 !important; transform: none !important; }
  .menu-aberto .nav a:nth-child(2) { transition-delay: .06s; }
  .menu-aberto .nav a:nth-child(3) { transition-delay: .12s; }
  .menu-aberto .nav a:nth-child(4) { transition-delay: .18s; }
  .menu-aberto .topo { background: transparent; box-shadow: none; backdrop-filter: none; }
  .menu-aberto { overflow: hidden; }
}

/* ---------- Revelação ao fazer scroll ---------- */
.js .revela { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: var(--atraso, 0s); }
.js .revela.visivel { opacity: 1; transform: none; filter: none; }

/* ---------- Grão (textura) ---------- */
.grao::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Rodapé ---------- */
.rodape { background: #200b25; color: var(--luz-2); padding: 64px 0 36px; font-size: var(--t-s); }
.rodape .grelha { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.rodape .logo { width: 210px; opacity: .95; }
.rodape h3 { font-family: var(--f-texto); font-weight: 500; font-size: var(--t-s); color: var(--luz); margin-bottom: 14px; letter-spacing: .02em; }
.rodape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rodape a { text-decoration: none; transition: color .3s; }
.rodape a:hover { color: var(--neon); }
.rodape .fim { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--linha-escura); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--t-xs); }
@media (max-width: 760px) { .rodape .grelha { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .revela { opacity: 1; transform: none; filter: none; }
}
