/* Silvia Paz Beauty — one page. Mobile first. */

/* Alternativas livres às fontes do manual até haver licença web:
   Cormorant no lugar da ARCHES (títulos), Mulish no lugar da CORBEL (texto e etiquetas). */
@font-face {
  font-family: "Cormorant"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("assets/fonts/cormorant.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url("assets/fonts/cormorant-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mulish"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("assets/fonts/mulish.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --marfim:    #FAF7F5; /* manual: fundo principal */
  --linho:     #E0D4CC; /* manual: areia, fundo secundário */
  --nude:      #FAF7F5; /* cartões sobre areia */
  --taupe:     #A68C80; /* manual: taupe, só detalhes */
  --caramelo:  #846A5E; /* taupe do manual escurecido para texto (4,5:1 sobre o fundo claro) */
  --chocolate: #5D4032; /* manual: castanho da marca, botões, secções escuras */
  --espresso:  #4A3329; /* castanho da marca escurecido: texto e sombras */
  --dourado:   #B8955A; /* acabamento: linhas, aros, relevo do símbolo; nunca texto sobre fundo claro */
  --ouro-claro: #E2C68E; /* dourado legível sobre o castanho */

  --serif: "Cormorant", "Cormorant Garamond", Didot, Georgia, serif;
  --sans: "Mulish", Corbel, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1rem, 5vw, 4rem);
  --section: clamp(4.5rem, 11vw, 9rem);
  --max: 76rem;
  --topbar: 4rem;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--topbar); }
body {
  margin: 0;
  background: var(--marfim);
  color: var(--espresso);
  font: 450 1rem/1.65 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
em { font-style: italic; }
[hidden] { display: none !important; }
/* Conteúdo à espera de dados da cliente: fica no HTML, escondido até ser preenchido */
.pendente, .todo { display: none !important; }

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

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--espresso); color: var(--marfim);
  padding: .75rem 1rem; text-decoration: none; font-weight: 500;
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Etiquetas e menus */
.label, .nav__list a, .card__meta dt, .contactos__lista dt, .btn, .nota {
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: .75rem;
}

/* ---------- Wordmark (SVG em texto) ---------- */
/* ---------- Logótipo ----------
   Nome «SÍLVIA PAZ» vectorizado do manual; «BEAUTY» e a tagline em texto real,
   nunca abaixo de 11 px, com as linhas douradas desenhadas em CSS. */
.wordmark { display: flex; flex-direction: column; align-items: center; margin: 0; font-weight: inherit; text-align: center; }
/* Nome «SÍLVIA PAZ» do manual, em vector; cor por currentColor */
.logo-nome { display: block; fill: currentColor; color: var(--chocolate); height: auto; }
.wordmark .logo-nome { width: min(100%, 21rem); }
.wordmark__beauty {
  margin: .9rem -.8em 0 0;
  font: 600 clamp(.75rem, 2.6vw, .875rem)/1 var(--sans); letter-spacing: .8em; text-transform: uppercase;
  color: var(--chocolate);
}
.wordmark__tag {
  display: flex; align-items: center; gap: .85rem; width: 100%; margin-top: .85rem;
  font: 600 clamp(.6875rem, 2.9vw, .8125rem)/1 var(--sans); letter-spacing: .28em; text-transform: uppercase;
  color: var(--chocolate); white-space: nowrap;
}
.wordmark__tag::before, .wordmark__tag::after { content: ""; flex: 1 1 1.25rem; min-width: 1rem; height: 1px; background: var(--dourado); }
.wordmark__tag::after { margin-left: -.28em; }

/* Peso e tamanho óptico fixos nos títulos (ignorado pelas fontes sem eixo opsz) */
.title, .hero__quote, .card__nome, .card__preco, .curso__nome, .curso__preco {
  font-optical-sizing: none;
  font-variation-settings: "opsz" 28;
}

.dark .logo-nome { color: var(--marfim); }
.dark .wordmark__beauty { color: var(--ouro-claro); }
.dark .wordmark__tag { color: var(--marfim); }

/* ---------- Botões ----------
   Pílula com aro de ouro, como as do rodapé. Em repouso, um brilho de verniz passa
   de vez em quando (só transform, sem custo de pintura). Hover: enche-se a ouro e o
   texto passa a espresso. Clique: afunda e abre uma gota de brilho no ponto tocado. */
.btn {
  --ouro: linear-gradient(120deg, #F3E1AA 0%, #CFA95F 24%, #9A7034 46%, #EBD08A 60%, #A9813F 80%, #E2C27C 100%);
  --tap: rgb(255 246 222 / .6);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 3.25rem; padding: .55rem 1.75rem;
  border: 1px solid transparent; border-radius: 999px;
  background: linear-gradient(160deg, #6B4A3A 0%, #4A3329 100%) padding-box, var(--ouro) border-box;
  color: #F7ECD8; text-decoration: none; line-height: 1.2; letter-spacing: .24em;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  box-shadow: 0 1px 0 rgb(255 236 200 / .18) inset, 0 -3px 8px rgb(0 0 0 / .28) inset, 0 12px 22px -14px rgb(74 51 41 / .85);
  transition: color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease), letter-spacing .45s var(--ease);
}
/* Enchimento a ouro (hover) */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: var(--ouro); background-size: 220% 100%; background-position: 100% 0;
  opacity: 0; transition: opacity .45s var(--ease), background-position 1.1s var(--ease);
}
/* Gota de brilho do clique */
.btn::after, .icon-btn::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: var(--x, 50%); top: var(--y, 50%); width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: radial-gradient(circle, var(--tap) 0%, rgb(255 246 222 / 0) 70%);
  opacity: 0; transform: scale(0);
}
.btn.is-tap::after, .icon-btn.is-tap::after { animation: sp-tap .65s var(--ease); }
@keyframes sp-tap {
  0%   { opacity: 1; transform: scale(0); }
  100% { opacity: 0; transform: scale(30); }
}
/* Brilho de verniz em repouso: uma faixa de luz que atravessa o botão */
.btn--brilho { background:
  linear-gradient(105deg, transparent 0 40%, rgb(255 244 220 / .32) 48%, rgb(255 244 220 / .08) 54%, transparent 62% 100%) padding-box,
  linear-gradient(160deg, #6B4A3A 0%, #4A3329 100%) padding-box, var(--ouro) border-box;
  background-size: 300% 100%, 100% 100%, 100% 100%;
  background-position: 120% 0, 0 0, 0 0;
  animation: sp-verniz 7s var(--ease) infinite;
}
@keyframes sp-verniz {
  0%, 62% { background-position: 120% 0, 0 0, 0 0; }
  100%    { background-position: -20% 0, 0 0, 0 0; }
}
.cards .card:nth-child(2) .btn--brilho { animation-delay: 1.2s; }
.cards .card:nth-child(3) .btn--brilho { animation-delay: 2.4s; }
.cards .card:nth-child(4) .btn--brilho { animation-delay: 3.6s; }
.topbar__cta.btn--brilho { animation-delay: 3s; }

/* Medalhão dourado com o calendário */
.btn__icone {
  display: grid; place-items: center; flex: none;
  width: 2.15rem; height: 2.15rem; margin-left: -1.2rem; border-radius: 50%;
  background: var(--ouro); color: var(--espresso);
  box-shadow: 0 1px 0 rgb(255 255 255 / .45) inset, 0 -2px 3px rgb(80 50 15 / .45) inset, 0 3px 8px -3px #000;
  transition: transform .5s var(--ease), background .4s var(--ease), color .4s var(--ease);
}
.btn__icone svg { width: 1.05rem; height: 1.05rem; }

@media (hover: hover) {
  .btn:hover {
    color: var(--espresso); letter-spacing: .27em; transform: translateY(-3px);
    box-shadow: 0 1px 0 rgb(255 255 255 / .4) inset, 0 -2px 6px rgb(80 50 15 / .3) inset, 0 18px 30px -14px rgb(74 51 41 / .75);
  }
  .btn:hover::before { opacity: 1; background-position: 0 0; }
  .btn:hover .btn__icone { background: var(--espresso); color: #E7CB8A; transform: rotate(-12deg) scale(1.06); }
}
.btn:focus-visible { outline: 2px solid var(--dourado); outline-offset: 3px; }
.btn:active { transform: translateY(0) scale(.96); transition-duration: .08s; }

.btn--sm { min-height: 2.75rem; padding: .45rem 1.15rem; font-size: .75rem; }
.btn--block { width: 100%; }

/* Contorno sobre claro: marfim com aro de ouro */
.btn--ghost {
  --tap: rgb(184 149 90 / .45);
  background: linear-gradient(var(--marfim), var(--marfim)) padding-box, var(--ouro) border-box;
  color: var(--chocolate);
  box-shadow: 0 1px 0 #fff inset, 0 10px 20px -14px rgb(74 51 41 / .5);
}
/* Sobre escuro: igual às pílulas do rodapé */
.btn--light {
  background: linear-gradient(160deg, #4A3329, #36241D) padding-box, var(--ouro) border-box;
  color: #E7CB8A;
  box-shadow: 0 1px 0 rgb(255 240 210 / .08) inset, 0 -2px 6px rgb(0 0 0 / .35) inset, 0 14px 24px -16px #000;
}
.btn--ghost .icon, .btn--light .icon {
  box-sizing: content-box; padding: .5rem; margin-left: -1.1rem; border-radius: 50%;
  background: var(--ouro); color: var(--espresso);
  box-shadow: 0 1px 0 rgb(255 255 255 / .45) inset, 0 -2px 3px rgb(80 50 15 / .45) inset, 0 3px 8px -3px rgb(0 0 0 / .6);
}

.icon { width: 1.15rem; height: 1.15rem; flex: none; transition: transform .45s var(--ease), background .4s var(--ease), color .4s var(--ease); }
@media (hover: hover) { .btn:hover .icon { transform: rotate(-12deg) scale(1.06); background: var(--espresso); color: #E7CB8A; } }

/* Ligações: o sublinhado dourado sobe e engrossa */
.link {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem;
  color: var(--chocolate); font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--dourado);
  text-decoration-thickness: 1px; text-underline-offset: .4em;
  transition: text-underline-offset .35s var(--ease), text-decoration-thickness .35s var(--ease), color .35s var(--ease);
}
.link .icon { transition: transform .45s var(--ease); }
@media (hover: hover) {
  .link:hover { text-underline-offset: .22em; text-decoration-thickness: 2px; color: var(--espresso); }
  .link:hover .icon { transform: scale(1.12) rotate(-6deg); }
}
.link:active { color: var(--espresso); text-decoration-thickness: 3px; }

/* ---------- Menu fixo ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--topbar);
  background: rgb(250 247 245 / .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(184 149 90 / .35);
}
.topbar__inner {
  height: 100%; width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto;
  display: flex; align-items: center; gap: .5rem;
}
.mono { fill: var(--chocolate); }
.dark .mono { fill: var(--dourado); }
.topbar__logo { display: flex; align-items: center; gap: .65rem; min-height: 2.75rem; margin-right: auto; text-decoration: none; }
/* Monograma que se enche de ouro com o scroll (--p de 0 a 1) */
.mono-progresso { position: relative; display: block; flex: none; height: 2.5rem; aspect-ratio: 532 / 898; }
.mono-progresso svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mono-progresso__ouro {
  clip-path: inset(calc((1 - var(--p, 0)) * 100%) 0 0 0);
  filter: drop-shadow(0 1px 0 rgb(74 50 20 / .35));
}
/* Fio dourado na base do menu */
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, #9A7034, #E9CF8E 45%, #B8955A 70%, #F3E1AA);
  transform-origin: left; transform: scaleX(var(--p, 0));
}
@supports (animation-timeline: scroll()) {
  .sp-scroll .mono-progresso__ouro { animation: sp-ouro-encher linear both; animation-timeline: scroll(root); }
  .sp-scroll .topbar::after { animation: sp-ouro-fio linear both; animation-timeline: scroll(root); }
}
@keyframes sp-ouro-encher { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sp-ouro-fio { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.topbar__nome { width: 7.25rem; }
.mono-progresso + .topbar__nome { padding-left: .65rem; border-left: 1px solid rgb(184 149 90 / .5); }
.topbar__cta { order: 2; }
.nav { order: 3; }

.nav__toggle {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; padding: 0;
  background: none; border: 0; color: var(--espresso); cursor: pointer;
}
.nav__toggle svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.5; }
.nav__toggle path { transform-box: fill-box; transform-origin: center; transition: transform .4s var(--ease), opacity .25s var(--ease); }
.nav__toggle .l2 { transform-origin: left center; }
.nav__toggle[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .l2 { opacity: 0; transform: scaleX(.2); }
.nav__toggle[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }
.nav__toggle:active svg { transform: scale(.9); }
.nav__toggle svg { transition: transform .15s var(--ease); }
.nav__list.is-open { animation: sp-menu .35s var(--ease); }
@keyframes sp-menu { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.nav__list {
  position: absolute; inset: var(--topbar) 0 auto;
  margin: 0; padding: .75rem var(--gutter) 1.5rem; list-style: none;
  background: var(--marfim); border-bottom: 1px solid rgb(184 149 90 / .35);
  box-shadow: 0 18px 30px -18px rgb(74 51 41 / .35);
  display: none;
}
.nav__list.is-open { display: block; }
.nav__list a {
  display: flex; align-items: center; min-height: 3.25rem;
  text-decoration: none; color: var(--espresso);
  border-bottom: 1px solid rgb(93 64 50 / .12);
}
.nav__list li:last-child a { border-bottom: 0; }

@media (min-width: 900px) {
  .nav { order: 1; }
  .nav__toggle { display: none; }
  .nav__list {
    position: static; display: flex; gap: 2rem; padding: 0; margin-right: 1.5rem;
    background: none; border: 0; box-shadow: none;
  }
  .nav__list a { border: 0; min-height: 2.75rem; position: relative; }
  .nav__list a::after {
    content: ""; position: absolute; left: 0; right: .3em; bottom: .55rem; height: 1px;
    background: var(--dourado); transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease);
  }
  .nav__list a:hover::after { transform: scaleX(1); }
  .mono-progresso { height: 2.75rem; }
  .topbar__nome { width: 8.75rem; }
}

/* ---------- Topo ---------- */
.hero { position: relative; background: var(--espresso); }
.hero__mark { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }
.hero__mark[data-stage="1"] { top: 15svh; }
.hero__mark[data-stage="2"] { top: 38svh; }

.hero__stage { position: relative; }
.hero__frame { position: relative; height: 100svh; min-height: 34rem; overflow: hidden; }
.sp-motion .hero__stage { height: 100svh; min-height: 34rem; overflow: hidden; }
.sp-motion .hero__frame { position: absolute; inset: 0; height: auto; min-height: 0; }
.hero__media, .hero__veil, .hero__shade { position: absolute; inset: 0; }
.hero__media img, .hero__media video {
  width: 100%; height: 100%; object-fit: cover; object-position: 76% 20%;
  transform-origin: 76% 30%;
}
/* Véu claro onde está o wordmark */
.hero__veil {
  background: linear-gradient(to top, rgb(250 247 245 / .96) 0%, rgb(250 247 245 / .85) 34%, rgb(250 247 245 / 0) 60%);
}
.hero__shade {
  background:
    linear-gradient(to top, rgb(74 51 41 / .92) 0%, rgb(74 51 41 / .6) 55%, rgb(74 51 41 / .45) 100%);
  opacity: 0;
}

.hero__brand {
  position: absolute; left: var(--gutter); right: var(--gutter);
  bottom: calc(9.25rem + env(safe-area-inset-bottom));
  margin-inline: auto; max-width: 30rem;
}
.hero__brand { display: grid; justify-items: center; gap: 1.25rem; }
.hero__mono { width: auto; height: 5.25rem; overflow: visible; }

.hero__cta {
  position: absolute; left: 0; right: 0; bottom: calc(1.75rem + env(safe-area-inset-bottom));
  display: flex; justify-content: center; padding-inline: var(--gutter);
}
.hero__cta { flex-direction: column; align-items: center; gap: .35rem; }
.hero__cta .btn { min-width: min(100%, 17rem); }
.hero__preco {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .06em; color: var(--chocolate);
  text-decoration: underline; text-decoration-color: var(--dourado); text-underline-offset: .35em;
}
.sp-io .hero__preco { transition: color .6s var(--ease); }
.sp-io .hero.is-stage-1 .hero__preco { color: var(--marfim); }
@supports (animation-timeline: scroll()) {
  .sp-sda .hero__preco { animation: sp-ink linear both; animation-timeline: scroll(root); animation-range: 4svh 24svh; }
}
@keyframes sp-ink { from { color: var(--chocolate); } to { color: var(--marfim); } }

.hero__statement {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 50%;
  transform: translateY(-50%);
  color: var(--marfim); text-align: left;
  opacity: 0; visibility: hidden;
}
.hero__quote {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.05rem, 8vw, 3.9rem); line-height: 1.12; letter-spacing: -.01em;
  text-wrap: balance; max-width: 22ch;
}
.hero__quote em { color: var(--ouro-claro); }

/* Régua dourada: a assinatura que liga o logótipo às secções */
.rule {
  display: block; width: 4.5rem; height: 1px; background: var(--dourado);
  margin-bottom: 1.5rem; transform-origin: left;
}
.rule--hero { width: 7rem; margin-bottom: 1.75rem; }

@media (min-width: 900px) {
  .hero__media img, .hero__media video { object-position: 50% 16%; }
  .hero__veil {
    background: linear-gradient(to right, rgb(250 247 245 / .92) 0%, rgb(250 247 245 / .7) 34%, rgb(250 247 245 / 0) 58%);
  }
  .hero__shade {
    background: linear-gradient(to right, rgb(74 51 41 / .9) 0%, rgb(74 51 41 / .72) 45%, rgb(74 51 41 / .4) 100%);
  }
  .hero__brand {
    left: max(var(--gutter), (100vw - var(--max)) / 2); right: auto; bottom: auto; top: 50%;
    width: min(40vw, 34rem); max-width: none; margin: 0; translate: 0 -50%;
  }
  .hero__mono { height: 7.5rem; }
  .hero__cta {
    left: max(var(--gutter), (100vw - var(--max)) / 2); right: auto; bottom: 3.5rem;
    justify-content: flex-start; align-items: flex-start; padding: 0;
  }
  .hero__statement { left: max(var(--gutter), (100vw - var(--max)) / 2); right: auto; width: min(52vw, 44rem); }
}

/* Estado estático (sem JS, reduced motion): frase numa faixa escura por baixo da foto */
html:not(.sp-motion) .hero__statement {
  position: relative; inset: auto; transform: none; opacity: 1; visibility: visible;
  padding: var(--section) var(--gutter); background: var(--espresso);
}
@media (min-width: 900px) {
  html:not(.sp-motion) .hero__statement { width: auto; padding-inline: max(var(--gutter), (100vw - var(--max)) / 2); }
}

/* Com movimento: secção alta e palco fixo enquanto o scroll conta a intro */
.sp-motion .hero { height: 170svh; }
.sp-motion .hero__stage { position: sticky; top: 0; }

/* A) CSS scroll-driven animations */
@supports (animation-timeline: scroll()) {
  .sp-sda .hero__media img,
  .sp-sda .hero__media video { animation: sp-zoom linear both; animation-timeline: scroll(root); animation-range: 0 70svh; }
  .sp-sda .hero__veil   { animation: sp-out linear both;   animation-timeline: scroll(root); animation-range: 0 25svh; }
  .sp-sda .hero__shade  { animation: sp-in linear both;    animation-timeline: scroll(root); animation-range: 4svh 42svh; }
  .sp-sda .hero__brand  { animation: sp-rise linear both;  animation-timeline: scroll(root); animation-range: 0 22svh; }
  .sp-sda .hero__statement { animation: sp-enter linear both; animation-timeline: scroll(root); animation-range: 27svh 50svh; }
  .sp-sda .rule--hero   { animation: sp-draw linear both;  animation-timeline: scroll(root); animation-range: 30svh 62svh; }
}
@keyframes sp-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes sp-out  { to { opacity: 0; } }
@keyframes sp-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes sp-rise {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-14vh); visibility: hidden; }
}
@keyframes sp-enter {
  from { opacity: 0; transform: translateY(calc(-50% + 2.5rem)); visibility: visible; }
  to   { opacity: 1; transform: translateY(-50%); visibility: visible; }
}
@keyframes sp-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* B) Fallback com IntersectionObserver: estados discretos com transições */
.sp-io .hero__media img, .sp-io .hero__media video { transition: transform 1.6s var(--ease); }
.sp-io .hero__veil, .sp-io .hero__shade { transition: opacity 1s var(--ease); }
.sp-io .hero__brand { transition: opacity .8s var(--ease), transform 1s var(--ease), visibility 0s 1s; }
.sp-io .hero__statement { transition: opacity 1s var(--ease), transform 1.1s var(--ease), visibility 0s 1.1s; transform: translateY(calc(-50% + 2.5rem)); }
.sp-io .rule--hero { transform: scaleX(0); transition: transform 1.2s .3s var(--ease); }

.sp-io .hero.is-stage-1 .hero__media img,
.sp-io .hero.is-stage-1 .hero__media video { transform: scale(1.04); }
.sp-io .hero.is-stage-1 .hero__veil { opacity: 0; }
.sp-io .hero.is-stage-1 .hero__shade { opacity: .75; }
.sp-io .hero.is-stage-1 .hero__brand { opacity: 0; transform: translateY(-14vh); visibility: hidden; }

.sp-io .hero.is-stage-2 .hero__media img,
.sp-io .hero.is-stage-2 .hero__media video { transform: scale(1.08); }
.sp-io .hero.is-stage-2 .hero__shade { opacity: 1; }
.sp-io .hero.is-stage-2 .hero__statement { opacity: 1; visibility: visible; transform: translateY(-50%); transition-delay: 0s; }
.sp-io .hero.is-stage-2 .rule--hero { transform: scaleX(1); }

/* ---------- Secções ---------- */
.section { padding-block: var(--section); }
.section__head { margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 40rem; }
.title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.35rem, 8.2vw, 4.4rem); line-height: 1.06; letter-spacing: -.015em;
  color: var(--espresso); text-wrap: balance;
}
.title em { color: var(--caramelo); }
.lead { margin-top: 1.25rem; color: var(--chocolate); max-width: 52ch; text-wrap: pretty; }
.todo { color: var(--chocolate); font-style: italic; }

/* Em fundo linho o caramelo não chega a 3:1, por isso o itálico passa a chocolate */
.servicos .title em, .contactos .title em { color: var(--chocolate); }

.dark { background: var(--chocolate); color: var(--marfim); }
.dark .title { color: var(--marfim); }
.dark .title em { color: var(--ouro-claro); }
.dark .lead, .dark .todo { color: var(--linho); }

/* Sobre */
.sobre__grid { display: grid; gap: 2.5rem; }
/* Foto da Silvia emoldurada: passe-partout marfim, aro dourado e uma segunda moldura
   desfasada atrás (feita com sombras, sem mexer no layout) */
.sobre__foto {
  --off: 10px;
  position: relative; aspect-ratio: 4 / 5; padding: 10px;
  background: #FFFFFF; border: 1px solid rgb(184 149 90 / .75);
  box-shadow:
    var(--off) var(--off) 0 -1px var(--marfim),
    var(--off) var(--off) 0 0 var(--dourado),
    0 22px 44px -26px rgb(74 51 41 / .55);
  margin: 0 var(--off) var(--off) 0;
}
.sobre__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.sobre__foto::after {
  content: ""; position: absolute; inset: 20px; pointer-events: none;
  border: 1px solid rgb(250 247 245 / .7);
}
@media (min-width: 900px) {
  .sobre__foto { --off: 18px; padding: 14px; }
  .sobre__foto::after { inset: 28px; }
}
.sobre__texto p { max-width: 52ch; text-wrap: pretty; }
.sobre__texto .title { margin-bottom: 1.5rem; }
.sobre__texto p + p { margin-top: 1rem; }
@media (min-width: 900px) {
  .sobre__grid { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
}

/* Serviços */
.servicos { background: var(--linho); }
.cards { display: grid; gap: 1rem; }
.card {
  display: flex; flex-direction: column; gap: 1rem;
  background: var(--nude); padding: 1.75rem 1.5rem 1.5rem;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgb(74 51 41 / .55); }
}
.card__foto {
  margin: -1.75rem -1.5rem .25rem; aspect-ratio: 4 / 3; overflow: hidden; background: var(--linho);
}
.card__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transition: transform .8s var(--ease); }
@media (hover: hover) { .card:hover .card__foto img { transform: scale(1.05); } }
.card__foto--vazia { display: grid; place-items: center; color: var(--chocolate); font-size: .75rem; font-weight: 600; letter-spacing: .2em; }
.card__nome { font-family: var(--serif); font-weight: 600; font-size: 1.8rem; line-height: 1.15; }
.card__desc { font-size: .9375rem; color: var(--espresso); }
.card__desc .todo { display: block; margin-top: .25rem; color: var(--espresso); }
.card__meta {
  display: flex; justify-content: space-between; align-items: end; gap: 1rem;
  margin-top: auto; padding-top: 1rem; border-top: 1px solid rgb(93 64 50 / .25);
}
.card__meta dt { font-size: .75rem; color: var(--espresso); }
.card__meta dd { font-weight: 500; }
.card__preco { font-family: var(--serif); font-size: 2rem; line-height: 1; font-weight: 500; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, 1fr); } }

/* Formações */
.selo-academy {
  display: block; width: 6.5rem; aspect-ratio: 944 / 1260; margin-bottom: 1.75rem;
  background: linear-gradient(150deg, #F3E1AA 0%, #CFA95F 30%, #9A7034 52%, #EBD08A 68%, #B8955A 100%);
  -webkit-mask: url("assets/brand/selo-academy.svg") center / contain no-repeat;
          mask: url("assets/brand/selo-academy.svg") center / contain no-repeat;
  filter: drop-shadow(0 6px 10px rgb(0 0 0 / .25));
}
@media (min-width: 900px) { .selo-academy { width: 8rem; } }
.formacoes__grid { display: grid; gap: 1rem; }
.cursos__nota { margin: 0 0 1.75rem; }
.cursos__lista { margin-bottom: 2.5rem; border-top: 1px solid rgb(184 149 90 / .45); }
.curso {
  display: grid; gap: .35rem; padding-block: 1.4rem;
  border-bottom: 1px solid rgb(184 149 90 / .45);
}
.curso__nome { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; line-height: 1.2; }
.curso__meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--linho); }
.curso__preco { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; color: var(--marfim); }
@media (min-width: 900px) {
  .formacoes__grid { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
  .formacoes .section__head { position: sticky; top: calc(var(--topbar) + 2rem); }
}

/* Galeria */
.grelha { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.grelha__item {
  aspect-ratio: 4 / 5; display: grid; place-items: center;
  background: var(--linho); color: var(--chocolate);
  font-size: .75rem; font-weight: 600; letter-spacing: .2em;
}
/* Trabalhos emoldurados: passe-partout marfim, aro dourado e um filete claro sobre a foto */
.grelha__item {
  position: relative; padding: 5px; overflow: hidden;
  background: #FFFFFF; border: 1px solid rgb(184 149 90 / .75);
  box-shadow: 0 12px 24px -18px rgb(74 51 41 / .6);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.grelha__item img { width: 100%; height: 100%; object-fit: cover; }
.grelha__item::after {
  content: ""; position: absolute; inset: 9px; pointer-events: none;
  border: 1px solid rgb(250 247 245 / .7);
}
@media (hover: hover) {
  .grelha__item:hover { transform: translateY(-4px); border-color: var(--dourado); box-shadow: 0 20px 34px -18px rgb(74 51 41 / .6); }
}
@media (min-width: 900px) {
  .grelha__item { padding: 8px; }
  .grelha__item::after { inset: 15px; }
}
.galeria__mais { margin-top: 1.5rem; }
@media (min-width: 900px) { .grelha { gap: 1.25rem; } }

/* Marcações */
.marcacoes { background: var(--marfim); border-top: 1px solid rgb(184 149 90 / .35); }
.agenda {
  position: relative; background: #fff; border: 1px solid var(--linho);
  min-height: 40rem;
}
.agenda__frame { width: 100%; height: 44rem; border: 0; }
.agenda__vazio {
  position: absolute; inset: 0; display: grid; place-content: center; gap: .5rem;
  padding: 2rem; text-align: center; color: var(--chocolate);
  background: repeating-linear-gradient(135deg, var(--marfim) 0 14px, #fff 14px 28px);
}
.agenda.is-live .agenda__vazio { display: none; }
.agenda:not(.is-live) { min-height: 22rem; }

/* Máscara da agenda: imita a página de marcações do Google Calendar embebida */
.agenda__vazio.demo {
  position: static; display: block; padding: 0; text-align: left;
  background: #fff; color: #3c4043; font-family: Roboto, Arial, system-ui, sans-serif; font-weight: 400;
}
.agenda:has(.demo) { min-height: 0; }
.demo__aviso {
  padding: .75rem 1rem; font-size: .8125rem; line-height: 1.5;
  background: var(--marfim); color: var(--chocolate); border-bottom: 1px dashed rgb(184 149 90 / .7);
  font-family: var(--sans);
}
.demo__corpo { display: grid; }
.demo__info { padding: 1.5rem 1.25rem 1.25rem; border-bottom: 1px solid #dadce0; }
.demo__avatar { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--espresso); margin-bottom: .75rem; }
.demo__avatar svg { height: 1.6rem; width: auto; fill: #E7CB8A; }
.demo__dono { font-size: .875rem; color: #5f6368; }
.demo__titulo { font-family: Roboto, Arial, sans-serif; font-weight: 400; font-size: 1.5rem; line-height: 1.3; color: #202124; margin: .15rem 0 .9rem; }
.demo__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .875rem; color: #3c4043; }
.demo__lista li { display: flex; align-items: center; gap: .6rem; }
.demo__lista svg { width: 1.15rem; height: 1.15rem; flex: none; fill: none; stroke: #5f6368; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.demo__agenda { padding: 1rem .75rem 1.5rem; min-width: 0; }
.demo__nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; margin-bottom: 1rem; }
.demo__seta {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: none;
  font-size: 1.6rem; line-height: 1; color: #3c4043; cursor: pointer;
}
.demo__seta:hover:not(:disabled) { background: #f1f3f4; }
.demo__seta:disabled { color: #bdc1c6; cursor: default; }
.demo__semana { font-size: 1.05rem; color: #202124; }
.demo__fuso { flex-basis: 100%; font-size: .75rem; color: #5f6368; padding-left: .5rem; }
.demo__dias { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .35rem; }
.demo__dia { display: grid; align-content: start; gap: .4rem; min-width: 0; }
.demo__data { display: grid; justify-items: center; margin-bottom: .3rem; color: #5f6368; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.demo__data strong { font-size: 1.35rem; font-weight: 400; color: #202124; letter-spacing: 0; }
.demo__hora {
  min-height: 2.75rem; padding: 0 .1rem; border: 1px solid #dadce0; border-radius: 4px; background: #fff;
  color: #1a73e8; font: 500 .8125rem/1 Roboto, Arial, sans-serif; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.demo__hora:hover { background: #f6fafe; border-color: #d2e3fc; }
.demo__hora:focus-visible { outline: 2px solid #1a73e8; outline-offset: 1px; }
.demo__sem { font-size: .75rem; color: #80868b; text-align: center; padding-top: .5rem; }
.demo__escolha { display: grid; gap: .75rem; justify-items: start; padding: .5rem .5rem 0; font-size: .9375rem; }
.demo__escolha[hidden] { display: none; }
.demo__escolhido { font-size: 1.15rem; color: #202124; padding: .75rem 1rem; border-left: 3px solid #1a73e8; background: #f6fafe; }
.demo__voltar {
  min-height: 2.75rem; padding: 0 1.25rem; border-radius: 4px; border: 1px solid #dadce0; background: #fff;
  color: #1a73e8; font: 500 .875rem Roboto, Arial, sans-serif; cursor: pointer;
}
@media (min-width: 760px) {
  .demo__corpo { grid-template-columns: 17rem 1fr; }
  .demo__info { border-bottom: 0; border-right: 1px solid #dadce0; padding: 2rem 1.5rem; }
  .demo__agenda { padding: 1.5rem 1.5rem 2rem; }
  .demo__dias { gap: .6rem; }
  .demo__hora { font-size: .875rem; }
}
.marcacoes__alt { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 1.5rem; }
.nota { letter-spacing: .18em; color: var(--chocolate); }

/* Contactos */
.contactos { background: var(--linho); }
.contactos__grid { display: grid; gap: .5rem; }
.contactos__lista { display: grid; gap: 0; }
.contactos__lista > div {
  display: grid; gap: .25rem; padding-block: 1.1rem;
  border-bottom: 1px solid rgb(93 64 50 / .2);
}
.contactos__lista > div:first-child { border-top: 1px solid rgb(93 64 50 / .2); }
.contactos__lista dt { font-size: .75rem; color: var(--chocolate); }
.contactos__lista dd { font-size: 1.0625rem; }
@media (min-width: 900px) {
  .contactos__grid { grid-template-columns: 1fr 1.2fr; gap: clamp(3rem, 7vw, 7rem); }
  .contactos__lista > div { grid-template-columns: 9rem 1fr; align-items: baseline; }
}

/* Rodapé */
.rodape { padding: clamp(3.5rem, 8vw, 6rem) 0 2.5rem; }
.rodape__inner { display: grid; justify-items: center; gap: 2rem; text-align: center; }
.rodape__logo { display: grid; justify-items: center; gap: 1.5rem; width: min(100%, 22rem); text-decoration: none; }
.rodape__logo .rodape__mono { width: auto; height: 8.5rem; overflow: visible; transition: transform .6s var(--ease); }
@media (hover: hover) { .rodape__logo:hover .rodape__mono { transform: translateY(-4px) scale(1.03); } }

/* Redes: pílulas com aro de ouro; no hover enchem-se a ouro com um brilho a passar */
.rodape__redes { flex-wrap: wrap; justify-content: center; gap: .75rem; }
.rede {
  --ouro: linear-gradient(120deg, #F3E1AA 0%, #CFA95F 24%, #9A7034 46%, #EBD08A 60%, #A9813F 80%, #E2C27C 100%);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .7rem;
  min-height: 3.25rem; padding: .5rem 1.4rem .5rem .5rem;
  border: 1px solid transparent; border-radius: 999px;
  background: linear-gradient(160deg, #4A3329, #36241D) padding-box, var(--ouro) border-box;
  color: #E7CB8A; text-decoration: none;
  font: 600 .75rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  box-shadow: 0 1px 0 rgb(255 240 210 / .08) inset, 0 -2px 6px rgb(0 0 0 / .35) inset, 0 14px 24px -16px #000;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.rede::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--ouro); background-size: 220% 100%; background-position: 100% 0;
  opacity: 0; transition: opacity .45s var(--ease), background-position 1.1s var(--ease);
}
.rede::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: var(--x, 50%); top: var(--y, 50%); width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: radial-gradient(circle, rgb(255 246 222 / .7) 0%, rgb(255 246 222 / 0) 70%);
  opacity: 0; transform: scale(0);
}
.rede.is-tap::after { animation: sp-tap .65s var(--ease); }
.rede__icone {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--ouro); color: var(--espresso);
  box-shadow: 0 1px 0 rgb(255 255 255 / .45) inset, 0 -2px 3px rgb(80 50 15 / .45) inset, 0 3px 8px -3px #000;
  transition: transform .5s var(--ease), background .4s var(--ease), color .4s var(--ease);
}
.rede__icone svg { width: 1.1rem; height: 1.1rem; }
@media (hover: hover) {
  .rede:hover {
    color: var(--espresso); transform: translateY(-3px);
    box-shadow: 0 1px 0 rgb(255 255 255 / .35) inset, 0 -2px 6px rgb(80 50 15 / .35) inset, 0 18px 28px -14px #000;
  }
  .rede:hover::before { opacity: 1; background-position: 0 0; }
  .rede:hover .rede__icone { background: var(--espresso); color: #E7CB8A; transform: rotate(-12deg) scale(1.05); }
}
.rede:focus-visible { outline: 2px solid var(--dourado); outline-offset: 3px; }
.rede:active { transform: translateY(0) scale(.96); transition-duration: .08s; }
.rodape__redes { display: flex; gap: .75rem; }
.icon-btn {
  display: grid; place-items: center; width: 3rem; height: 3rem;
  border: 1px solid rgb(184 149 90 / .6); border-radius: 50%; color: var(--dourado);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.icon-btn { position: relative; isolation: isolate; overflow: hidden; --tap: rgb(250 247 245 / .5);
  -webkit-tap-highlight-color: transparent; transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), box-shadow .45s var(--ease); }
@media (hover: hover) {
  .icon-btn:hover { background: var(--dourado); color: var(--espresso); transform: translateY(-2px);
    box-shadow: 0 0 0 3px var(--espresso), 0 0 0 4px rgb(184 149 90 / .6); }
  .icon-btn:hover svg { transform: rotate(-10deg) scale(1.08); }
}
.icon-btn svg { transition: transform .45s var(--ease); }
.icon-btn:active { transform: scale(.92); transition-duration: .08s; }
.icon-btn svg { width: 1.25rem; height: 1.25rem; }
.rodape__copy { font-size: .8125rem; color: var(--linho); letter-spacing: .08em; }
.rodape__credito { margin-top: -1.25rem; font-size: .8125rem; color: var(--linho); letter-spacing: .04em; }
.rodape__credito a {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  color: #E7CB8A; font-weight: 600; text-decoration: underline; text-decoration-color: rgb(184 149 90 / .6);
  text-underline-offset: .3em; transition: color .3s var(--ease), text-decoration-color .3s var(--ease);
}
@media (hover: hover) { .rodape__credito a:hover { color: var(--marfim); text-decoration-color: var(--marfim); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Intro animada: entra por cima da foto quando já está a tocar */
.hero__media video { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.hero__media video.is-on { opacity: 1; }

/* ---------- Aviso de cookies ----------
   «Não» e «Sim» do mesmo tamanho e com contraste equivalente (prática exigida pela CNPD). */
.cookies {
  position: fixed; z-index: 60; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom));
  max-width: 26rem; margin-inline: auto; padding: 1.1rem 1.2rem 1.2rem;
  background: var(--marfim); color: var(--espresso);
  border: 1px solid rgb(184 149 90 / .7); border-radius: 1.1rem;
  box-shadow: 0 18px 40px -18px rgb(74 51 41 / .6);
  animation: sp-cookies .5s var(--ease);
}
.cookies[hidden] { display: none; }
@keyframes sp-cookies { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.cookies__titulo { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.1; margin-bottom: .35rem; }
.cookies__texto { font-size: .875rem; line-height: 1.5; }
.cookies__texto a { color: var(--chocolate); font-weight: 600; text-decoration-color: var(--dourado); text-underline-offset: .2em; }
.cookies__botoes { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .9rem; }
.cookies__btn {
  min-height: 2.75rem; border-radius: 999px; cursor: pointer;
  font: 600 .8125rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--chocolate); background: var(--marfim); color: var(--chocolate);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.cookies__btn[data-consentimento="sim"] { background: var(--chocolate); color: var(--marfim); }
@media (hover: hover) {
  .cookies__btn[data-consentimento="nao"]:hover { background: var(--linho); }
  .cookies__btn[data-consentimento="sim"]:hover { background: var(--espresso); }
}
@media (min-width: 900px) { .cookies { left: auto; right: 1.5rem; bottom: 1.5rem; margin: 0; } }

.rodape__legal { margin-top: -1.25rem; font-size: .8125rem; color: var(--linho); }
.rodape__legal a, .rodape__cookies {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  color: var(--linho); font: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: rgb(226 198 142 / .5); text-underline-offset: .3em;
}
