/* =========================================================
   A Maga — Espaço de Beleza | Lucieli Maciel
   Design system + layout
   ========================================================= */

:root {
  /* cores */
  --bg:          #17131c;
  --bg-2:        #1d1724;
  --surface:     #221b29;
  --surface-2:   #2c2334;
  --line:        rgba(183, 155, 212, .14);

  --violet-deep: #5e3570;
  --violet:      #7b4a93;
  --lilac:       #b79bd4;
  --gold:        #d8b06a;
  --gold-soft:   #e8bf96;

  --text:        #f6f1f9;
  --text-muted:  #a99db4;

  /* tipografia */
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ui:      "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  --script:  "Parisienne", "Brush Script MT", cursive;

  /* medidas */
  --wrap: 1240px;
  --gut: clamp(20px, 5vw, 64px);
  --r-lg: 26px;
  --r-md: 18px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 300; margin: 0; line-height: 1.04; }
p { margin: 0 0 1.1em; }

::selection { background: var(--gold); color: #1a1420; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* fundo com grade fina, igual à referência */
.grid-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 7) 100%;
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

/* ---------- tipografia utilitária ---------- */
.eyebrow {
  font-family: var(--script);
  font-size: clamp(26px, 3vw, 38px);
  color: var(--gold-soft);
  line-height: 1;
  margin-bottom: .35em;
}

.kicker {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.display-xl { font-size: clamp(46px, 8.4vw, 104px); letter-spacing: -.015em; }
.display-lg { font-size: clamp(38px, 6vw, 76px); letter-spacing: -.01em; }
.display-md { font-size: clamp(30px, 4.2vw, 52px); }

.gold { color: var(--gold-soft); }
.lead { color: var(--text-muted); max-width: 54ch; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--ui);
  font-size: 13px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 18px 34px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold { background: var(--gold-soft); color: #241a2b; }
.btn-gold:hover { background: #f2d0ae; }

.btn-ghost { border-color: rgba(232,191,150,.4); color: var(--gold-soft); }
.btn-ghost:hover { border-color: var(--gold-soft); background: rgba(232,191,150,.08); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  padding: 18px 0;
  transition: background-color .35s ease, backdrop-filter .35s ease, padding .35s ease;
}
.site-header.is-stuck {
  background: rgba(23,19,28,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo svg { width: 44px; height: 44px; flex: 0 0 auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: var(--display);
  font-size: 23px; letter-spacing: .16em; text-transform: uppercase;
}
.logo-sub {
  font-size: 8.5px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-soft); margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted); transition: color .2s ease;
}
.nav a:hover { color: var(--gold-soft); }
.header-cta { padding: 13px 26px; }

.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 10px; color: var(--text);
}
.menu-toggle span {
  display: block; width: 26px; height: 1.5px; background: currentColor;
  margin: 5px 0; transition: transform .3s ease, opacity .3s ease;
}
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(150px, 18vh, 210px) 0 clamp(70px, 9vh, 110px);
  overflow: hidden;
}
.hero .wrap {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(30px, 5vw, 70px); align-items: center;
}
.hero-copy { max-width: 620px; }
.hero h1 { margin-bottom: .3em; }
.hero .lead { margin-bottom: 2.2em; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 34px; font-size: 14px; color: var(--text-muted);
}
.hero-badge strong { color: var(--gold-soft); font-weight: 400; font-size: 17px; }
.stars { color: var(--gold); letter-spacing: 2px; }

/* retrato em elipse com aura */
.hero-figure {
  position: relative; justify-self: center; margin: 0;
  width: 100%; max-width: 460px; aspect-ratio: 1 / 1.16;
}
.hero-figure::before,
.hero-figure::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
/* aura violeta difusa */
.hero-figure::before {
  inset: -14%;
  background: radial-gradient(closest-side, rgba(123,74,147,.85), rgba(94,53,112,.28) 66%, transparent 78%);
  filter: blur(14px);
}
/* anel dourado concêntrico */
.hero-figure::after {
  inset: -22px;
  border: 1px solid rgba(232,191,150,.42);
}
.hero-figure img {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 16%;
  border-radius: 50%;
}

/* ---------- marquee ---------- */
.marquee {
  background: var(--gold-soft);
  color: #241a2b;
  padding: 17px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 42px;
  padding-right: 42px;
  animation: slide 38s linear infinite;
  will-change: transform;
}
.marquee span { font-family: var(--display); font-size: clamp(21px, 2.4vw, 30px); }
.marquee i { font-style: normal; font-size: 16px; opacity: .55; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- seção "O Ritual da Maga" (scrub) ---------- */
.ritual { position: relative; height: 320vh; background: var(--bg); }
.ritual-sticky {
  position: sticky; top: 0; height: 100vh;
  overflow: hidden;
  display: grid; place-items: center;
}
.ritual-media { position: absolute; inset: 0; }
.ritual-media video,
.ritual-media img.ritual-fallback {
  width: 100%; height: 100%; object-fit: cover;
}
.ritual-media img.ritual-fallback { display: none; }
.ritual.no-video .ritual-media video { display: none; }
.ritual.no-video .ritual-media img.ritual-fallback { display: block; }

.ritual-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(23,19,28,.94) 0%, rgba(23,19,28,.72) 34%, rgba(23,19,28,.15) 62%, rgba(23,19,28,.5) 100%),
    linear-gradient(to bottom, rgba(23,19,28,.75), transparent 26%, transparent 72%, rgba(23,19,28,.9));
}

.ritual-content {
  position: relative; z-index: 3;
  width: 100%; max-width: var(--wrap);
  margin-inline: auto; padding-inline: var(--gut);
}
.ritual-copy { max-width: 470px; }
.ritual-steps { position: relative; min-height: 210px; margin-top: 26px; }
.ritual-step {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.ritual-step.is-active { opacity: 1; transform: none; }
.ritual-step h3 { font-size: clamp(26px, 3.2vw, 40px); margin-bottom: .35em; }
.ritual-step p { color: var(--text-muted); margin: 0; }
.ritual-step .step-n {
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 14px;
}

.ritual-hint {
  position: absolute; left: 50%; bottom: 34px; z-index: 3;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-muted);
  transition: opacity .4s ease;
}
.ritual-hint svg { width: 18px; height: 18px; color: var(--gold); }
.ritual-hint.is-hidden { opacity: 0; }

.ritual-progress {
  position: absolute; left: 0; bottom: 0; z-index: 4;
  height: 2px; width: 0;
  background: linear-gradient(to right, var(--violet), var(--gold-soft));
}

/* ---------- blocos de seção ---------- */
.section { padding: clamp(80px, 11vh, 140px) 0; position: relative; }
.section-head { margin-bottom: clamp(40px, 6vh, 68px); }
.section-head .kicker { display: block; margin-bottom: 18px; }
.section-head .lead { margin-top: 22px; }

.head-split { display: grid; grid-template-columns: 150px 1fr; gap: 30px; align-items: start; }
.head-split .kicker { padding-top: 14px; margin: 0; }

/* ---------- serviços ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.service {
  position: relative; display: block;
  border-radius: var(--r-md); overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface);
  isolation: isolate;
}
.service img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.3,1), filter .5s ease;
}
.service:hover img { transform: scale(1.06); }
.service::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(23,19,28,.93) 4%, rgba(23,19,28,.45) 40%, transparent 70%);
}
.service-body {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 22px 22px 24px;
}
.service-arrow {
  width: 19px; height: 13px; color: var(--gold-soft);
  margin-bottom: 12px;
  transition: transform .35s ease;
}
.service:hover .service-arrow { transform: translate(4px, -4px); }
.service h3 { font-size: 26px; margin-bottom: 4px; }
.service p { font-size: 13.5px; color: var(--text-muted); margin: 0; line-height: 1.45; }
.service .price {
  display: inline-block; margin-top: 10px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-soft);
}
.services-note {
  margin-top: 34px; font-size: 14px; color: var(--text-muted);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

/* ---------- sobre ---------- */
.about-grid {
  display: grid; grid-template-columns: .95fr 1.05fr;
  gap: clamp(34px, 5vw, 76px); align-items: center;
}
.about-figure { position: relative; }
.about-figure img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 3 / 4; object-fit: cover; }
.about-quote {
  font-family: var(--display); font-size: clamp(24px, 2.9vw, 36px);
  line-height: 1.25; color: var(--text); margin-bottom: 1em;
}
.about-stats {
  display: flex; gap: clamp(24px, 4vw, 54px); flex-wrap: wrap;
  margin-top: 40px; padding-top: 34px; border-top: 1px solid var(--line);
}
.stat { display: flex; align-items: baseline; gap: 12px; }
.stat b {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(42px, 5vw, 64px); color: var(--gold-soft); line-height: .9;
}
.stat span {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-muted); max-width: 11ch; line-height: 1.35;
}

/* ---------- método (pilares) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 38px 32px 34px;
  transition: border-color .3s ease, transform .3s ease, background-color .3s ease;
}
.pillar:hover { border-color: rgba(232,191,150,.35); transform: translateY(-4px); background: var(--surface-2); }
.pillar .num {
  font-family: var(--display); font-size: 44px; color: var(--violet);
  line-height: 1; display: block; margin-bottom: 20px;
}
.pillar h3 { font-size: 28px; margin-bottom: .4em; }
.pillar p { color: var(--text-muted); font-size: 15px; margin: 0; }

/* ---------- galeria ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 218px;
  gap: 16px;
}
.gallery figure { margin: 0; border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.3,1); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery .tall { grid-row: span 2; }
.gallery .big { grid-column: span 2; grid-row: span 2; }

/* ---------- depoimentos ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 34px 30px;
  display: flex; flex-direction: column;
}
.review .stars { font-size: 15px; margin-bottom: 18px; }
.review blockquote {
  margin: 0 0 24px; font-family: var(--display); font-size: 21px;
  line-height: 1.4; flex: 1;
}
.review cite { font-style: normal; font-size: 13px; letter-spacing: .1em; color: var(--text-muted); }

/* ---------- equipe ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.member { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface); }
.member img { width: 100%; height: 100%; object-fit: cover; }
.member::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(23,19,28,.92) 6%, transparent 55%);
}
.member-body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 26px; }
.member h3 { font-size: 27px; margin-bottom: 2px; }
.member p { font-size: 13px; color: var(--gold-soft); margin: 0; letter-spacing: .05em; }

/* ---------- CTA final ---------- */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta .display-lg { margin-bottom: .55em; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 30px; font-size: 14px; color: var(--text-muted); }

/* ---------- footer ---------- */
.site-footer { background: #241f27; padding: clamp(60px, 8vh, 92px) 0 34px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: clamp(28px, 4vw, 56px);
}
.footer-grid h4 {
  font-family: var(--ui); font-size: 12px; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft);
  margin-bottom: 22px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.footer-grid a, .footer-grid address {
  font-size: 15px; color: var(--text-muted); font-style: normal; line-height: 1.6;
  transition: color .2s ease;
}
.footer-grid a:hover { color: var(--gold-soft); }
.footer-tag { font-size: 15px; color: var(--text-muted); margin-top: 18px; max-width: 32ch; }
.footer-bottom {
  margin-top: clamp(46px, 6vh, 72px); padding-top: 26px;
  border-top: 1px solid rgba(183,155,212,.1);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted);
}

/* botão flutuante WhatsApp */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #0b3d20;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.42);
  transition: transform .25s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 29px; height: 29px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars, .reviews, .team { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 0 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 8px;
    padding: 96px var(--gut) 40px;
    background: rgba(23,19,28,.97);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-105%);
    transition: transform .4s cubic-bezier(.3,.8,.3,1);
  }
  .nav a { font-size: 17px; padding: 12px 0; }
  .nav .header-cta { margin-top: 16px; }
  .menu-open .nav { transform: none; }
  .menu-toggle { display: block; z-index: 2; }

  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 330px; }
  .about-grid { grid-template-columns: 1fr; }
  .head-split { grid-template-columns: 1fr; gap: 12px; }
  .head-split .kicker { padding: 0; }

  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .gallery .big { grid-column: span 2; grid-row: span 2; }

  .ritual { height: 260vh; }
  .ritual-veil {
    background:
      linear-gradient(to bottom, rgba(23,19,28,.9) 0%, rgba(23,19,28,.55) 40%, rgba(23,19,28,.93) 100%);
  }
  .ritual-copy { max-width: none; }
  .ritual-steps { min-height: 240px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; justify-content: center; }
  .gallery { grid-auto-rows: 150px; }
  .marquee span { font-size: 20px; }
}
