/* Instituto Rosa — convertido do design "Instituto Rosa v4" (Claude Design) */
:root {
  --teal: #2E7B85;
  --rosa: #955073;
  --ink: #2B282A;
  --paper: #FFFFFF;
  --mist: #F1F0F0;
  --muted: #D6D3D4;
  --gutter: clamp(20px, 8.33vw, 120px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html.lenis, html.lenis body { height: auto }
.lenis.lenis-smooth { scroll-behavior: auto !important }

body { margin: 0; background: var(--paper); color: var(--ink); font-family: Lato, system-ui, sans-serif; -webkit-font-smoothing: antialiased }
a { color: var(--teal); text-decoration: none }
a:hover { color: var(--rosa) }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 4px; border-radius: 8px }
img { display: block }

[data-r] { opacity: 0; transform: translateY(32px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease) }
[data-r].in { opacity: 1; transform: none }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg) } 50% { transform: translateY(-18px) rotate(2deg) } }

.grid8 { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: 20px }
.h2 { margin: 0; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(44px, 4.6vw, 72px); line-height: 1.02; letter-spacing: -.015em; color: var(--teal); text-wrap: balance }
.lead { margin: 0; max-width: 520px; font-size: 17px; line-height: 1.6; color: var(--teal); text-wrap: pretty }

/* Botões */
.btn { display: inline-block; border-radius: 999px; transition: transform .35s var(--ease), background .3s, box-shadow .35s }
.btn-header { padding: 11px 20px; background: var(--rosa); color: #fff; font-size: 15px; font-weight: 700 }
.btn-header:hover { background: var(--ink); color: #fff }
.btn-cta { margin-top: 20px; padding: 16px 30px; background: var(--rosa); color: #fff; font-family: 'Instrument Serif', serif; font-size: 22px; box-shadow: 0 14px 30px rgba(149, 80, 115, .28) }
.btn-cta:hover { background: var(--ink); color: #fff; box-shadow: 0 18px 36px rgba(43, 40, 42, .25) }
.btn-footer { padding: 18px 30px; background: #fff; color: var(--ink); font-size: 18px }
.btn-footer:hover { background: var(--rosa); color: #fff }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; box-sizing: border-box; padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: box-shadow .5s, padding .5s, background .4s }
.logo { height: 44px; width: auto }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px) }
.nav-link { font-size: 15px; color: var(--teal); transition: color .3s }

main { overflow-x: clip }

/* Hero */
.hero-section { position: sticky; top: 0; height: 100vh; min-height: 600px; z-index: 0; overflow: hidden }
.hero { position: absolute; inset: 0; background: #fff; transform-origin: 50% 40% }
.hero-photo { position: absolute; top: 72px; bottom: 0; left: 0; right: 0; display: flex; align-items: flex-end; justify-content: center; overflow: hidden }
/* A foto encosta embaixo e cresce a partir da base: o excesso sai por cima, cortado
   pela borda do header, que o script.js pinta com a cor do fundo da foto naquela
   linha — assim o header parece continuação da foto. A altura é a maior entre o zoom
   e a que cobre a largura toda (1.791 = proporção da foto), para nunca sobrar faixa
   branca nas laterais em tela larga. */
.hero-frame {
  --hero-zoom: 1.15;
  position: relative; flex: none; aspect-ratio: 2400 / 1340;
  height: max(calc(100% * var(--hero-zoom)), calc(100vw / 1.791));
}
.hero-frame img { position: absolute; inset: 0; width: 100%; height: 100% }
/* Três camadas no desktop: foto, título (z-index 1) e o recorte da modelo (z-index 2),
   que tem as mesmas dimensões da foto e cobre exatamente os mesmos pixels. Nenhum
   ancestral até .hero cria contexto de empilhamento, então o título entra entre elas. */
.hero-cutout { z-index: 2; pointer-events: none }
/* Em tela estreita, cobrir a altura toda deixaria só o tronco da aluna: a foto fica
   com 64% da altura, e o espaço acima dela recebe a mesma cor do fundo (script.js).
   Ali o título fica embaixo, na frente da foto, e o recorte não é usado. */
@media (max-width: 700px) {
  .hero-frame { height: 64vh }
  .hero-cutout { display: none }
}
.hero-title { position: absolute; z-index: 1; left: 0; right: 0; bottom: 7vh; margin: 0; text-align: center; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(60px, 15vw, 300px); line-height: .86; letter-spacing: -.025em; color: var(--teal); white-space: nowrap; pointer-events: none }
/* No desktop o título vai para o meio da área visível da hero (abaixo do header), onde
   cruza o corpo da modelo; embaixo ele ficaria escondido atrás do Reformer.
   Centralizado descontando metade da própria altura em `em` (.48em numa linha, .95em
   nas duas do celular — medidos; o "mais" em outra fonte deixa a caixa mais alta que o
   line-height), e não com transform: translateY(-50%). O transform virava camada de GPU,
   e no Safari do iPhone ela aparecia como caixa preta atrás do título até o 1º toque. */
@media (min-width: 701px) {
  .hero-title { bottom: auto; top: calc(50% + 36px - .48em) }
  .br-sm { display: none }
}
/* No celular o título ocupa o espaço vazio entre o header e a foto (que tem 64vh e
   encosta embaixo), em duas linhas: "Sinta mais" / "liberdade". */
@media (max-width: 700px) {
  .hero-title { bottom: auto; top: calc((100% - 64vh + 72px) / 2 - .95em); font-size: clamp(56px, 25vw, 140px); line-height: .9 }
}
/* Quarta camada (z-index 3): o mesmo título só em contorno, mascarado pelo recorte da
   modelo. Fora dela a máscara é transparente e nada aparece; sobre ela, a letra que
   sumiria atrás do corpo vira só o traço. Posição e tamanho da máscara vêm do
   script.js, medidos no .hero-frame — sem eles a máscara fica com tamanho 0. */
.hero-outline {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  -webkit-mask-image: url(./assets/hero-recorte.webp); mask-image: url(./assets/hero-recorte.webp);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: var(--m-w, 0) var(--m-h, 0); mask-size: var(--m-w, 0) var(--m-h, 0);
  -webkit-mask-position: var(--m-x, 0) var(--m-y, 0); mask-position: var(--m-x, 0) var(--m-y, 0);
}
.hero-outline .hero-title { color: transparent; -webkit-text-fill-color: transparent; -webkit-text-stroke: 2px var(--teal) }
.hero-outline .hero-title .script { -webkit-text-stroke-color: var(--rosa) }
@media (max-width: 700px) { .hero-outline { display: none } }
.hero-title .script { font-family: 'Monotype Corsiva', 'Apple Chancery', 'URW Chancery L', cursive; font-style: italic; color: var(--rosa) }

.sheet { position: relative; z-index: 2; background: #fff; border-radius: 40px 40px 0 0; box-shadow: 0 -24px 60px rgba(43, 40, 42, .08) }

/* Viviane */
.sec-viviane { padding: clamp(110px, 14vw, 200px) var(--gutter) }
.viviane-grid { row-gap: 40px; align-items: center }
.circ { display: flex; justify-content: center }
.circ-1 { grid-column: 2/3; grid-row: 1; align-self: start }
.circ-2 { grid-column: 7/8; grid-row: 2; align-self: end }
.circ-img { width: min(150px, 100%); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 24px 50px rgba(43, 40, 42, .16) }
.circ-img img { width: 100%; height: 100%; object-fit: cover }
.viviane-text { grid-column: 3/7; grid-row: 1/3; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px }

/* Frase */
.sec-frase { background: var(--ink); color: #fff; padding: clamp(80px, 9vw, 130px) var(--gutter) }
.quote { grid-column: 1/-1; margin: 0; display: flex; flex-direction: column; gap: 44px }
.quote p { margin: 0; font-family: 'Instrument Serif', serif; font-size: clamp(40px, 4.8vw, 76px); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance }
.quote footer { font-size: 18px }

/* Carrossel */
.sec-carrossel { position: relative; height: 340vh; background: #fff }
.carrossel-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center }
.track { display: flex; align-items: center; gap: clamp(10px, 1.2vw, 18px); padding: 0 var(--gutter); will-change: transform }
.panel-wrap { flex: none; width: clamp(200px, 19vw, 300px); perspective: 700px; position: relative }
.panel { aspect-ratio: 4/5; border-radius: 30px; overflow: hidden; background: #E8E6E6; box-shadow: 0 30px 60px rgba(43, 40, 42, .16), 0 6px 16px rgba(43, 40, 42, .06); transition: transform .25s var(--ease); transform-origin: 50% 50% }
.panel video { width: 100%; height: 100%; object-fit: cover; display: block }
/* No celular o card de 200px com 10px de espaço ficava colado nos vizinhos, que o
   efeito 3D ainda amplia: card maior, espaço maior (e zoom menor, no script.js). */
@media (max-width: 700px) {
  .track { gap: 40px }
  .panel-wrap { width: 62vw }
}

/* Resultados */
.sec-resultados { background: #fff; position: relative; z-index: 3; margin-top: -100vh; border-radius: 40px 40px 0 0; box-shadow: 0 -24px 60px rgba(43, 40, 42, .08); padding: clamp(80px, 8vw, 120px) var(--gutter) clamp(40px, 4vw, 64px) }
.resultados-grid { row-gap: clamp(40px, 5vw, 72px) }
.cmp-fig { margin: 0; display: flex; flex-direction: column; gap: 18px }
.cmp { position: relative; aspect-ratio: 4/5; border-radius: 30px; overflow: hidden; background: var(--mist); box-shadow: 0 30px 60px rgba(43, 40, 42, .14), 0 6px 16px rgba(43, 40, 42, .06); transition: transform .6s var(--ease) }
.cmp-layer { position: absolute; inset: 0; background-size: cover; background-position: 50% 50% }
.cmp-before { clip-path: inset(0 calc((100 - var(--v)) * 1%) 0 0) }
.cmp-line { position: absolute; top: 0; bottom: 0; left: calc(var(--v) * 1%); width: 2px; margin-left: -1px; background: #fff; pointer-events: none }
.cmp-knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid #fff; box-shadow: 0 8px 24px rgba(43, 40, 42, .2); display: grid; place-items: center; color: var(--ink); font-size: 18px }
.tag { position: absolute; top: 16px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; pointer-events: none }
.tag-antes { left: 16px; background: rgba(255, 255, 255, .8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--ink) }
.tag-depois { right: 16px; background: var(--teal); color: #fff }
.cmp input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize }
.cmp-fig figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 6px }
.cap-title { font-family: 'Instrument Serif', serif; font-size: clamp(24px, 2vw, 30px); color: var(--teal) }
.cap-hint { font-size: 14px; color: var(--ink) }

/* Depoimentos */
.sec-depoimentos { background: #fff; position: relative; z-index: 3; padding: clamp(40px, 4vw, 64px) var(--gutter) }
/* Cards todos iguais: 3 por linha no desktop, 2 no tablet, 1 no celular. Flex com
   wrap centralizado, e não grid, para a última linha incompleta ficar no meio. */
.depo-grid { --cols: 3; --gap: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); perspective: 1400px }
.depo { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); box-sizing: border-box; background: var(--mist); border-radius: 24px; padding: clamp(24px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 20px; transition: transform .6s var(--ease), box-shadow .6s, opacity 1.1s }
.depo:hover { box-shadow: 0 24px 50px rgba(43, 40, 42, .12) }
.depo-head { display: flex; align-items: center; gap: 14px }
.av { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; background: rgba(127, 127, 127, .08) }
.depo-who { display: flex; flex-direction: column; gap: 4px }
.depo-name { font-size: 19px; color: var(--teal) }
.stars { font-size: 15px; letter-spacing: 3px; color: var(--teal) }
.depo p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink); text-wrap: pretty }
@media (max-width: 1000px) { .depo-grid { --cols: 2 } }
@media (max-width: 640px) { .depo-grid { --cols: 1 } }

/* Rodapé */
.site-footer { background: var(--ink); color: #fff; border-radius: 48px 48px 0 0; padding: 90px var(--gutter) 36px }
.footer-inner { display: flex; flex-direction: column; gap: 64px }
.footer-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; padding-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, .14) }
.footer-cta-text { display: flex; flex-direction: column; gap: 14px }
.footer-cta-text p { margin: 0; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -.01em; font-weight: 400 }
.serif-it { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--teal); font-size: 1.15em }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted) }
.eyebrow-sm { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted) }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 40px }
.fcol { display: flex; flex-direction: column; gap: 14px; font-size: 16px }
.fcol a { color: #fff; font-size: 16px }
.fcol a:hover { color: var(--muted) }
.fcol a.map-link { display: flex; flex-direction: column; gap: 10px; color: #fff; font-size: 15px; transition: transform .3s }
.fcol a.map-link:hover { transform: translateY(-4px); color: #fff }
.map-embed { display: block; width: 100%; height: 150px; border: 0; border-radius: 16px; pointer-events: none; background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) }
.map-cta { color: var(--muted); transition: color .3s }
.fcol a.map-link:hover .map-cta { color: #fff }
.footer-brand { font-size: clamp(56px, 12vw, 190px); font-weight: 900; letter-spacing: -.045em; line-height: .85 }
.footer-brand span { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: var(--teal) }
.copy { font-size: 14px; color: var(--muted) }

/* Botão flutuante */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 15px 22px; border-radius: 999px; background: var(--teal); color: #fff; font-weight: 700; font-size: 16px; box-shadow: 0 16px 40px rgba(43, 40, 42, .25); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .5s, transform .5s var(--ease), background .3s }
.fab:hover { background: var(--rosa); color: #fff }
.fab-ig { bottom: 84px; width: 52px; height: 52px; padding: 0; justify-content: center; background: var(--rosa) }
.fab-ig:hover { background: var(--ink); color: #fff }

@media (max-width: 860px) {
  [data-col] { grid-column: 1/-1 !important; grid-row: auto !important }
  [data-hide-sm] { display: none !important }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important }
  [data-r] { opacity: 1; transform: none }
}
