/* ==========================================================
   Paloma Barbosa | Home Spa
   Base: tokens, reset, tipografia e componentes compartilhados
   Conceito: "O mesmo ritual, em qualquer endereço."
   Cores tiradas do cartão de visita da Paloma: papel rosa
   clarinho, tinta quase preta puxada para o lilás e o rosa
   dos ícones como acento raro.
   ========================================================== */

:root {
  /* papel */
  --paper: #F7ECEF;
  --paper-hi: #FCF6F7;
  --paper-deep: #EEDCE2;
  /* tinta */
  --ink: #241B27;
  --ink-soft: #5E4C5A;
  --rule: rgba(36, 27, 39, .16);
  --rule-strong: rgba(36, 27, 39, .42);
  /* acento (rosa do cartão) */
  --rose: #963A63;
  /* sobre tinta */
  --on-ink: #F7ECEF;
  --on-ink-soft: #B9A7B4;
  --rose-light: #E7A9C3;

  --serif: "Noto Serif Display", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", Futura, "Avenir Next", system-ui, sans-serif;

  --gutter: clamp(16px, 4.2vw, 64px);
  --section: clamp(88px, 13vw, 200px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --slow: 700ms;
  --fast: 260ms;

  --header-h: 72px;
  /* escala contida: um tamanho único para títulos de seção */
  --h2: clamp(2.25rem, 4.6vw, 4.5rem);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
blockquote { margin: 0; }

::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Tipografia ---------- */

.serif { font-family: var(--serif); }

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.01em;
}

.caps {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  line-height: 1.5;
}

/* O "|" do monograma P|B e do cartão: separador oficial da marca */
.bar {
  display: inline-block;
  margin: 0 .7em;
  font-weight: 300;
  opacity: .55;
}

.nw { white-space: nowrap; }
@media (max-width: 599px) {
  .stack-sm > .bar { display: none; }
  .stack-sm > .nw { display: block; }
}

/* Lista com o fio vertical da marca entre os itens.
   O fio do primeiro item de cada linha fica recortado,
   então nunca sobra um separador pendurado. */
.sep-list {
  --sep-gap: .5em;
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(var(--sep-gap) * -1);
  clip-path: inset(-.5em -2em -.5em var(--sep-gap));
}
.sep-list > li {
  position: relative;
  padding-left: var(--sep-gap);
}
.sep-list > li::before {
  content: "";
  position: absolute;
  left: calc(var(--sep-gap) / 2);
  top: .3em;
  bottom: .24em;
  width: 1px;
  background: currentColor;
  opacity: .28;
}

.lead {
  font-size: clamp(1.0625rem, 1.25vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34em;
}

/* ---------- Botões e links ---------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .9em;
  min-height: 56px;
  padding: 0 30px;
  border: 1px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.btn:hover { --btn-bg: var(--rose); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] {
  --btn-bg: var(--paper-deep);
  --btn-fg: var(--ink-soft);
  cursor: not-allowed;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn--on-ink { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn--on-ink:hover { --btn-bg: var(--rose-light); --btn-fg: var(--ink); }

.btn .arrow { transition: transform var(--fast) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
  text-decoration-color: var(--rule-strong);
  transition: text-decoration-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.link:hover { color: var(--rose); text-decoration-color: currentColor; }

/* ---------- Estrutura ---------- */

.wrap {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
}

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---------- Cabeçalho ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: transparent;
  color: var(--ink);
  transition: color var(--fast) var(--ease);
}
/* Fundo transparente: sobre as seções escuras o cabeçalho inverte as cores */
.site-header.is-on-dark { color: var(--on-ink); }
.site-header.is-on-photo .site-nav a:not(.btn),
.site-header.is-on-photo .site-nav li + li::before { text-shadow: 0 0 10px var(--paper), 0 0 3px var(--paper); }
.site-header.is-on-dark .btn { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.site-header.is-on-dark .btn:hover { --btn-bg: var(--rose-light); }
.site-header.is-on-dark .btn--ghost { background: transparent; color: var(--on-ink); border-color: rgba(247, 236, 239, .45); }
.site-header.is-on-dark .btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.site-header.is-on-dark .site-nav a:not(.btn):hover { color: var(--rose-light); }
.site-header.is-on-dark :focus-visible { outline-color: var(--rose-light); }

.brand-home {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.brand-home .monogram { width: 44px; height: auto; }
.brand-home .brand-name {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.site-nav ul { display: flex; align-items: center; }
.site-nav li + li::before {
  content: "|";
  margin: 0 1em;
  opacity: .4;
  font-weight: 300;
}
.site-nav a:not(.btn) {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 0;
  transition: color var(--fast) var(--ease);
}
.site-nav a:not(.btn):hover { color: var(--rose); }
.site-nav .btn { min-height: 44px; padding: 0 22px; }

@media (max-width: 899px) {
  .site-nav ul { display: none; }
  .brand-home .brand-name { display: none; }
}

/* ---------- Rodapé ---------- */

.site-footer {
  background: var(--ink);
  color: var(--on-ink);
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: 32px;
}
.site-footer a { color: inherit; }
.footer-sign { width: min(460px, 80vw); color: var(--on-ink); }
.footer-grid {
  margin-top: clamp(48px, 7vw, 96px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 36px;
}
.footer-col { grid-column: span 12; }
.footer-col .caps { color: var(--on-ink-soft); margin-bottom: 12px; }
.footer-col p, .footer-col li { font-size: 1rem; }
.footer-col li + li { margin-top: 6px; }
@media (min-width: 700px) {
  .footer-col { grid-column: span 4; }
}
.footer-base {
  margin-top: clamp(56px, 8vw, 104px);
  padding-top: 24px;
  border-top: 1px solid rgba(247, 236, 239, .16);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: .8125rem;
  color: var(--on-ink-soft);
}
.footer-base a { text-decoration: underline; text-underline-offset: .25em; text-decoration-color: rgba(247,236,239,.35); }
.footer-base a:hover { color: var(--rose-light); text-decoration-color: currentColor; }
.site-footer .link { text-decoration-color: rgba(247,236,239,.35); }
.site-footer .link:hover { color: var(--rose-light); }
.site-footer :focus-visible { outline-color: var(--rose-light); }

/* ---------- Barra fixa de agendamento (celular) ---------- */

.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  gap: 1px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: transparent;
  transform: translateY(110%);
  transition: transform 420ms var(--ease);
}
.dock:not(.is-visible) { visibility: hidden; transition: transform 420ms var(--ease), visibility 0s 420ms; }
.dock.is-visible { transform: none; visibility: visible; }
.dock .btn { flex: 1; min-height: 52px; padding: 0 16px; }
.dock .btn--ghost { flex: 0 0 auto; background: var(--paper); }
.dock .btn--ghost:hover { background: var(--ink); }
.dock.is-on-dark .btn { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.dock.is-on-dark .btn--ghost { background: var(--ink); color: var(--on-ink); border-color: rgba(247, 236, 239, .45); }
@media (min-width: 900px) { .dock { display: none; } }

/* ---------- Revelação suave ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

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