/* Déia Busatto Santos · Beauty Boutique
   Identidade: branco, linho e bege, com tons terrosos só como acento. Sem faixas marrons; o logo sempre inteiro, em branco ou bege. */
:root {
  --white: #FFFFFF;
  --linen: #F8F4EF;      /* fundo */
  --sand: #EFE6DB;       /* bege: degrau de tom e campos */
  --stone: #DCCDBB;
  --beige-logo: #A88B70; /* logo bege sobre fundo claro */
  --earth: #7B5D47;      /* acento: botões e destaques */
  --earth-deep: #654B39;
  --ink: #4A3A2F;        /* texto: marrom-terra escuro, nunca preto */
  --ink-soft: #7A6A5D;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(16px, 3vw, 40px);
  --bar-h: 84px;
  --section: clamp(112px, 14vw, 200px);

  --fs-display: clamp(46px, 6.6vw, 112px);
  --fs-h2: clamp(38px, 4.8vw, 78px);
  --fs-h3: clamp(26px, 2.3vw, 34px);
  --fs-body: 17px;
  --fs-small: 14px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* O logo nunca é recortado nem esticado: proporção fixa do desenho original */
.logo { display: block; height: auto; aspect-ratio: 538.08 / 547.88; fill: currentColor; }

.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;
}

::selection { background: var(--earth); color: var(--white); }
:focus-visible { outline: 2px solid var(--earth); outline-offset: 3px; }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 50;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 12px; }

/* ---------- Tipografia ---------- */
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-display);
  line-height: .98;
  letter-spacing: -.02em;
}
.display em { font-style: italic; font-weight: 300; color: var(--earth); }
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: -.02em;
}
.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.1;
  letter-spacing: -.01em;
}
.lede { font-size: 19px; line-height: 1.55; max-width: 34em; }
.note { font-size: var(--fs-small); color: var(--ink-soft); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px;
  background: var(--earth); color: var(--white);
  font-family: var(--sans); font-size: var(--fs-small); font-weight: 600; letter-spacing: .01em;
  text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--earth-deep); }
.btn:active { transform: scale(.97); }
.btn--small { min-height: 44px; padding: 0 20px; }
.btn--light { background: var(--white); color: var(--earth); }
.btn--light:hover { background: var(--sand); color: var(--earth-deep); }

/* ---------- Barra: transparente sobre as imagens (logo branco); clara depois da história (logo bege) ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  height: var(--bar-h);
  display: flex; align-items: center; gap: 32px;
  padding: 0 var(--gutter);
  color: var(--white);
  background: transparent;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.bar::before {
  /* película suave só atrás da barra para o branco ler sobre qualquer imagem */
  content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(40, 30, 24, .42), rgba(40, 30, 24, 0));
  transition: opacity .4s var(--ease);
}
.bar.is-light { background: var(--linen); color: var(--ink); }
.bar.is-light::before { opacity: 0; }
.bar__brand { margin-right: auto; color: inherit; text-decoration: none; }
.bar__logo { height: 64px; width: auto; color: var(--white); transition: color .4s var(--ease); }
.bar.is-light .bar__logo { color: var(--beige-logo); }
.bar__nav { display: flex; gap: 28px; font-size: var(--fs-small); font-weight: 500; }
.bar__nav a { text-decoration: none; position: relative; padding: 6px 0; }
.bar__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.bar__nav a:hover::after, .bar__nav a:focus-visible::after { transform: scaleX(1); }
.bar:not(.is-light) :focus-visible { outline-color: var(--white); }
.bar.is-light .btn--light { background: var(--earth); color: var(--white); }

/* Botão de menu (só no celular) */
.bar__menu {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; min-width: 44px; padding: 0 8px;
  border: 0; background: none; cursor: pointer;
  color: inherit; font-size: var(--fs-small); font-weight: 600;
}
.bar__menu-icon { position: relative; width: 20px; height: 12px; }
.bar__menu-icon::before,
.bar__menu-icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .25s var(--ease), top .25s var(--ease);
}
.bar__menu-icon::before { top: 1px; }
.bar__menu-icon::after { top: 9px; }
.bar__menu[aria-expanded="true"] .bar__menu-icon::before { top: 5px; transform: rotate(45deg); }
.bar__menu[aria-expanded="true"] .bar__menu-icon::after { top: 5px; transform: rotate(-45deg); }
html.menu-open .bar { background: var(--linen); color: var(--ink); }
html.menu-open .bar::before { opacity: 0; }
html.menu-open .bar__logo { color: var(--beige-logo); }
html.menu-open .bar .btn--light { background: var(--earth); color: var(--white); }

.menu {
  position: fixed; inset: 0; z-index: 25;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--bar-h) + 32px) var(--gutter) 40px;
  background: var(--linen); color: var(--ink);
  opacity: 0; transform: translateY(-12px);
  transition: opacity .25s var(--ease), transform .3s var(--ease);
  overscroll-behavior: contain;
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; transform: none; }
.menu nav { display: grid; gap: 4px; }
.menu nav a {
  display: flex; align-items: center; min-height: 56px;
  font-family: var(--serif); font-size: 40px; line-height: 1.1; text-decoration: none;
}
.menu nav a:active { color: var(--earth); }
.menu__logo { width: 120px; color: var(--beige-logo); }
html.menu-open { overflow: hidden; }

/* ---------- História em tela cheia ---------- */
.story { position: relative; background: #2b2420; }
.story__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.story__frame,
.story__text { position: absolute; inset: 0; }
.story__text { pointer-events: none; }
.story__poster,
.story__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story__canvas { opacity: 0; }
.story.is-ready .story__canvas { opacity: 1; }
.story.is-ready .story__poster { opacity: 0; }
/* película neutra para o texto branco ler sobre qualquer quadro */
.story__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(40, 30, 24, .55) 0%, rgba(40, 30, 24, 0) 38%),
              radial-gradient(ellipse at 50% 45%, rgba(40, 30, 24, .28), rgba(40, 30, 24, 0) 60%);
}

.story__index {
  position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%);
  display: grid; gap: 10px;
  font-size: var(--fs-small); color: rgba(255, 255, 255, .72);
}
.story__index li { transition: color .3s var(--ease), transform .3s var(--ease); }
.story__index li::before { content: "— "; opacity: 0; transition: opacity .3s var(--ease); }
.story__index li.is-active { color: var(--white); transform: translateX(4px); }
.story__index li.is-active::before { opacity: 1; }

.story__lines { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; padding: 0 var(--gutter); }
.line {
  grid-area: 1 / 1;
  font-family: var(--serif); font-weight: 300; color: var(--white);
  font-size: clamp(46px, 6.4vw, 108px); line-height: .98; letter-spacing: -.02em;
  text-align: center;
  opacity: 0;
}
.line em { font-style: italic; }

.story__room {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 6vh, 64px);
  color: var(--white); opacity: 0; pointer-events: none;
}
.story__room-name { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 5.6vw, 96px); line-height: 1; letter-spacing: -.02em; }
.story__room-line { margin-top: 12px; font-size: 18px; max-width: 32em; }

.story__cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px;
  font-size: var(--fs-small); font-weight: 500; color: var(--white);
}
.story__cue i { width: 2px; height: 40px; background: var(--white); transform-origin: top; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Lista estática dos ambientes (sem script ou com movimento reduzido) */
.story__list { background: var(--linen); }
.story__list li { position: relative; }
.story__list img { width: 100%; height: 100svh; object-fit: cover; }
.story__list h2,
.story__list p { position: absolute; left: var(--gutter); color: var(--white); }
.story__list h2 { bottom: 84px; font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 5.6vw, 96px); line-height: 1; }
.story__list p { bottom: 40px; font-size: 18px; }
.js-story .story__list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.js-story .story__list li { scroll-margin-top: 0; }

/* ---------- Serviços ---------- */
.servicos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px clamp(32px, 6vw, 112px);
  grid-template-areas: "media head" "media list";
  grid-template-rows: auto 1fr;
  padding: var(--section) var(--gutter);
}
.servicos__head { grid-area: head; }
.servicos__list { grid-area: list; display: grid; gap: 40px; align-content: start; }
.servicos__media { grid-area: media; position: sticky; top: calc(var(--bar-h) + 24px); height: calc(100svh - var(--bar-h) - 48px); overflow: hidden; background: var(--sand); }
.servicos__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity .6s var(--ease), transform 1.2s var(--ease);
}
.servicos__media img.is-on { opacity: 1; transform: scale(1); }
.servicos__list ul { display: grid; gap: 8px; }
.servicos__list li {
  display: grid; gap: 8px;
  padding: 24px 28px; margin-inline: -28px;
  transition: background-color .3s var(--ease);
}
.servicos__list li.is-on { background: var(--sand); }
.servicos__list li.is-on .h3 { color: var(--earth); }
.servicos__list li p { max-width: 32em; }

/* ---------- Agendar: campo bege, acento terroso só no botão ---------- */
.agendar {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: end;
  background: var(--sand);
  padding: var(--section) var(--gutter);
}
.agendar__main { display: grid; gap: 32px; justify-items: start; }
.agendar__info { display: grid; gap: 20px; font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.2; }
.agendar__info a { text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- Rodapé: logo inteiro em bege ---------- */
.foot { background: var(--linen); padding: clamp(72px, 9vw, 140px) var(--gutter) 32px; }
.foot__logo { width: min(320px, 60vw); margin: 0 auto; color: var(--beige-logo); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: clamp(56px, 7vw, 96px); font-size: var(--fs-small); color: var(--ink-soft); }

/* ---------- Celular e tablet ---------- */
@media (max-width: 900px) {
  :root { --bar-h: 72px; }
  .bar { gap: 8px; }
  .bar__nav { display: none; }
  .bar__menu { display: inline-flex; }
  .bar__logo { height: 54px; }

  .servicos { grid-template-columns: 1fr; grid-template-areas: "head" "media" "list"; gap: 32px; }
  .servicos__media { top: var(--bar-h); height: 40svh; z-index: 2; margin-inline: calc(var(--gutter) * -1); }
  .servicos__list li { padding: 20px 16px; margin-inline: -16px; }

  .agendar { grid-template-columns: 1fr; gap: 56px; }
}

/* Celular deitado (pouca altura): a mesma história em tela cheia, com barra e textos mais compactos */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --bar-h: 56px; }
  .bar__logo { height: 44px; }
  .btn--small { min-height: 40px; }
  .line { font-size: clamp(34px, 6vw, 72px); }
  .story__room { bottom: 18px; }
  .story__room-name { font-size: clamp(32px, 5.2vw, 60px); }
  .story__room-line { margin-top: 6px; font-size: 15px; }
  .story__index { font-size: 13px; gap: 6px; }
  .story__cue { bottom: 12px; }
  .story__cue i { height: 24px; }
}

/* ---------- Celular (só telefone, até 600px): a imagem horizontal aparece inteira num card 16:9, sem zoom;
   capítulo acima, frases e nome das salas abaixo, em texto escuro sobre o linho. iPad e desktop: tela cheia ---------- */
@media (max-width: 600px) {
  .story { background: var(--linen); }
  .story__stage {
    display: flex; flex-direction: column; justify-content: center; gap: 22px;
    padding: calc(var(--bar-h) + 12px) var(--gutter) 56px;
    background: var(--linen);
  }
  .story__index {
    order: -1; position: static; transform: none;
    display: flex; flex-wrap: wrap; gap: 6px 16px;
    color: var(--ink-soft);
  }
  .story__index li::before { display: none; }
  .story__index li.is-active { color: var(--earth); font-weight: 600; transform: none; }
  .story__frame {
    position: relative; inset: auto;
    width: 100%; aspect-ratio: 16 / 9;
    border-radius: 14px; overflow: hidden; background: var(--sand);
  }
  .story__shade { display: none; }
  .story__text { position: relative; inset: auto; display: grid; min-height: 7.5em; }
  .story__lines { position: static; grid-area: 1 / 1; display: grid; place-items: start; padding: 0; }
  .line { color: var(--ink); text-align: left; font-size: clamp(36px, 10.5vw, 52px); }
  .line em { color: var(--earth); }
  .story__room { position: static; grid-area: 1 / 1; color: var(--ink); }
  .story__room-name { font-size: clamp(36px, 10.5vw, 52px); }
  .story__room-line { font-size: var(--fs-body); color: var(--ink-soft); }
  .story__cue { color: var(--ink); bottom: 18px; }
  .story__cue i { background: var(--earth); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .story__cue i { animation: none; }
}
