/* ==========================================================================
   Clínica Joana Darc Beauty For You — estilos do site
   Estrutura: 1. Fontes · 2. Tokens · 3. Base · 4. Layout · 5. Componentes
              6. Seções · 7. Menu mobile · 8. Responsivo · 9. Movimento
   ========================================================================== */

/* 1. Fontes auto-hospedadas (subconjunto latin; gerado por scripts/fetch-fonts.mjs) */
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:400;font-display:swap;src:url(../fonts/cormorant-garamond-italic-latin.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 Garamond';font-style:normal;font-weight:400 500;font-display:swap;src:url(../fonts/cormorant-garamond-normal-latin.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:'Jost';font-style:normal;font-weight:300 500;font-display:swap;src:url(../fonts/jost-normal-latin.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:'Pinyon Script';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/pinyon-script-normal-latin.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}

/* 2. Tokens */
:root{
  /* Paleta aprovada */
  --marfim:#F7F0EC;
  --rose-po:#F1E6E1;
  --rose-nude:#C09091;
  --rose-profundo:#7E5253;
  --preto-nobre:#2B2627;
  --champanhe:#D9C4A0;
  --champanhe-linha:#B9975B;
  --rodape:#211D1E;

  /* Tons de apoio já usados no layout aprovado */
  --texto:#4A4142;          /* parágrafos */
  --texto-suave:#6A5E5F;    /* legendas, etiquetas */
  --linha:#E6D6CF;          /* bordas finas sobre marfim */
  --rose-borda:#B48889;     /* bordas e detalhes rosados */
  --placeholder:#EADBD4;    /* áreas reservadas (retrato, mapa) */
  --card:#FBF7F4;           /* fundo dos cards */
  --texto-claro:#E3D6D0;    /* texto sobre fundo escuro */
  --texto-claro-2:#CDBFB9;
  --texto-rodape:#A89A95;
  --linha-escura:#4A4142;
  --linha-rodape:#3A3334;

  /* Ajustes de contraste AA (ver docs/relatorio-validacao.md) */
  --rose-numeral:#AB8182;   /* era #B48889: numerais grandes (≥3:1) */
  --champanhe-texto:#876E42;/* era #B9975B: numeração 01–05 (≥4.5:1) */

  --serif:'Cormorant Garamond',serif;
  --sans:'Jost',sans-serif;
  --script:'Pinyon Script',cursive;

  --container:1200px;
  --header-h:104px;

  /* Movimento (quiet luxury): lento, suave e curto. Ver seção 10. */
  --ease-lux:cubic-bezier(.22,.61,.36,1);       /* saída suave: entradas e hovers */
  --ease-in-out-lux:cubic-bezier(.65,0,.35,1);  /* revelações (foto, linhas, preenchimentos) */
  --dur-xs:200ms;   /* microinterações */
  --dur-s:400ms;    /* hover/foco (200–400 ms) */
  --dur-m:700ms;    /* entradas de texto e blocos */
  --dur-l:1100ms;   /* revelação da foto do hero (teto: 1,2 s) */
  --rise:24px;      /* deslocamento vertical das entradas */

  /* Textura de papel: ruído estático (feTurbulence) em data URI, sem requisição extra.
     Escuro = pontos escuros (equivale a multiply); claro = pontos claros, para as seções escuras. */
  --papel:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
  --papel-escuro:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

/* 3. Base */
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:120px}
html.js-motion{scroll-padding-top:90px} /* cabeçalho compacto (70 px) ao navegar */
body{margin:0;min-height:100vh;overflow-wrap:break-word;background:var(--papel) var(--marfim);color:var(--preto-nobre);font-family:var(--sans);font-weight:300}
img{max-width:100%;height:auto}
picture{display:block}
a{color:var(--rose-profundo)}
a:hover{color:var(--preto-nobre)}
:focus-visible{outline:2px solid var(--rose-profundo);outline-offset:3px}
.jd-dark :focus-visible,.jd-footer :focus-visible{outline-color:var(--champanhe)}
.jd-skip{position:absolute;left:16px;top:-100px;z-index:100;padding:12px 20px;background:var(--preto-nobre);color:var(--marfim);text-decoration:none;font-size:14px;border-radius:999px}
.jd-skip:focus{top:12px;color:var(--marfim)}
.jd-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* 4. Layout */
.jd-container{max-width:var(--container);margin:0 auto}
.jd-stack{display:flex;flex-direction:column}
.jd-sec{padding:120px 24px}
.jd-sec--112{padding-top:112px;padding-bottom:112px}
.jd-g2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:72px;align-items:center}
.jd-g3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.jd-g4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.jd-ft{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:48px}
.jd-bg-po{background:var(--papel) var(--rose-po)}
.jd-dark{background:var(--papel-escuro) var(--preto-nobre);color:var(--marfim)}
.jd-intro{display:flex;flex-direction:column;gap:18px;max-width:720px}

/* 5. Componentes */

/* Eyebrow (sobretítulo) */
.jd-eyebrow{margin:0;font-size:12px;letter-spacing:.24em;text-transform:uppercase;color:var(--rose-profundo);font-weight:400}
.jd-eyebrow--light{color:var(--champanhe)}

/* Títulos */
.jd-h1,.jd-h2{margin:0;font-family:var(--serif);font-weight:400}
.jd-h1{font-size:68px;line-height:1.04;letter-spacing:-.01em}
.jd-h1 em{font-style:italic;color:var(--rose-profundo)}
.jd-h1 svg{vertical-align:top;margin-left:4px}
.jd-h2{font-size:54px;line-height:1.05}
.jd-h2--48{font-size:48px;line-height:1.08}
.jd-h2--52{font-size:52px;line-height:1.08;color:var(--preto-nobre)}

/* Parágrafos */
.jd-lead{margin:0;font-size:17px;line-height:1.8;color:var(--texto)}
.jd-lead--light{color:var(--texto-claro)}

/* Botões em pílula */
.jd-btn{position:relative;isolation:isolate;overflow:hidden;display:inline-flex;align-items:center;min-height:56px;padding:0 32px;font-size:14px;letter-spacing:.12em;text-transform:uppercase;font-weight:400;text-decoration:none;border-radius:999px}
.jd-btn--primary,.jd-btn--primary:hover{background:var(--preto-nobre);color:var(--marfim)}
.jd-btn--secondary{border:1px solid var(--preto-nobre);color:var(--preto-nobre);padding:0 28px}
.jd-btn__fill{display:none}
.jd-btn--champanhe,.jd-btn--champanhe:hover{color:var(--preto-nobre)}
.jd-btn--champanhe{justify-content:center;min-height:52px;padding:0 24px;background:var(--champanhe);color:var(--preto-nobre);font-size:13px;font-weight:500}
.jd-btn--sm{min-height:52px;padding:0 28px;font-size:13px}
.jd-btn--wide{padding:0 36px}
.jd-btn--header{gap:10px;min-height:44px;padding:0 20px;font-size:13px;letter-spacing:.08em;text-transform:none;white-space:nowrap}
.jd-btn-row{display:flex;flex-wrap:wrap;gap:14px;margin-top:8px}

/* Link de texto com ícone/seta */
.jd-link{font-size:14px;letter-spacing:.08em;min-height:44px;display:inline-flex;align-items:center;gap:8px;overflow-wrap:anywhere}

/* Card de tratamento */
.jd-card{position:relative;isolation:isolate;background:var(--card);border:1px solid var(--linha);border-radius:4px;padding:36px 32px;display:flex;flex-direction:column;gap:16px}
.jd-arrow{display:inline-block}
.jd-card__num{font-family:var(--serif);font-size:18px;color:var(--champanhe-texto)}
.jd-card__title{margin:0;font-family:var(--serif);font-weight:500;font-size:30px;line-height:1.1}
.jd-card__text{margin:0;font-size:15px;line-height:1.75;color:var(--texto);flex-grow:1}
.jd-card__tags{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--texto-suave)}
.jd-card--dark{background:var(--preto-nobre);color:var(--marfim);border:0;justify-content:space-between}
.jd-card--dark .jd-card__title{font-weight:400;line-height:1.15}
.jd-card--dark .jd-card__text{color:var(--texto-claro);flex-grow:0}
.jd-card__body{display:flex;flex-direction:column;gap:16px}
.jd-card__script{font-family:var(--script);font-size:30px;color:var(--champanhe);line-height:1}

/* Área reservada (retrato, mapa) */
.jd-placeholder{background:var(--placeholder);border:1px dashed var(--rose-borda);border-radius:4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:32px;text-align:center;color:var(--rose-profundo);overflow-wrap:anywhere}
.jd-placeholder__text{font-size:14px;line-height:1.6}

/* 6. Seções */

/* Cabeçalho */
.jd-header{position:sticky;top:0;z-index:10}
.jd-header::after{content:'';position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--linha)}
/* O desfoque fica num pseudo-elemento para não criar bloco de contenção
   para o menu mobile (position:fixed) dentro do cabeçalho. */
.jd-header::before{content:'';position:absolute;inset:0;z-index:-1;background:rgba(247,240,236,.94);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.jd-header__inner{max-width:var(--container);margin:0 auto;padding:22px 24px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px}
.jd-header__logo{display:flex;align-items:center;flex-shrink:0}
.jd-header__logo img{height:60px;width:auto;display:block}
.jd-header__actions{display:flex;align-items:center;gap:8px}
.jd-nav{display:flex;flex-wrap:wrap;gap:0 32px;font-size:13px;letter-spacing:.14em;text-transform:uppercase;font-weight:400}
.jd-nav a{color:var(--preto-nobre);text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.jd-nav a:hover{color:var(--rose-profundo)}
.jd-menu-btn{display:none}
.jd-nav .jd-nav__cta{display:none}

/* Hero */
.jd-hero{padding:96px 24px 112px}
.jd-hero__text{display:flex;flex-direction:column;gap:28px}
.jd-hero__lead{margin:0;font-size:19px;line-height:1.7;max-width:30em;color:var(--texto)}
.jd-hero__bullets{position:relative;display:flex;flex-wrap:wrap;gap:12px 28px;padding-top:24px;border-top:1px solid transparent;font-size:14px;color:var(--texto)}
.jd-hero__bullets span[aria-hidden]{color:var(--champanhe-linha)}
.jd-hero__figure{margin:0;position:relative}
.jd-hero__figure picture{overflow:hidden;border-radius:240px 240px 4px 4px}
.jd-hero__figure img{width:100%;aspect-ratio:4/5;object-fit:cover;object-position:78% 50%;display:block;border-radius:240px 240px 4px 4px}
.jd-hero__caption{position:absolute;left:-24px;bottom:40px;background:var(--marfim);padding:18px 22px;border:1px solid var(--linha);font-size:13px;line-height:1.5;max-width:220px}
.jd-hero__caption span{font-family:var(--serif);font-size:20px;font-style:italic;display:block}

/* Faixas rosadas (citação e CTA final) */
.jd-band{background:var(--rose-nude);text-align:center;padding:80px 24px}
.jd-band--cta{padding:104px 24px}
.jd-band__inner{max-width:860px;margin:0 auto;display:flex;flex-direction:column;gap:18px;align-items:center}
.jd-band__inner>*{max-width:100%}
.jd-band--cta .jd-band__inner{max-width:760px;gap:24px}
.jd-band__script{font-family:var(--script);font-size:34px;color:var(--preto-nobre);line-height:1}
.jd-band__quote{margin:0;font-family:var(--serif);font-size:38px;line-height:1.3;font-weight:400;color:var(--preto-nobre)}
.jd-band__author{font-size:12px;letter-spacing:.24em;text-transform:uppercase;color:var(--preto-nobre);font-weight:400}
.jd-band__text{margin:0;font-size:18px;line-height:1.7;color:var(--preto-nobre)}

/* Especialista */
.jd-specialist__portrait{aspect-ratio:4/5}
.jd-specialist__text{display:flex;flex-direction:column;gap:24px}
.jd-specialist__cred{font-size:14px;color:var(--texto-suave)}
.jd-values{position:relative;display:flex;flex-direction:column;border-top:1px solid transparent;margin:8px 0 0;padding:0}
.jd-values__item{position:relative;display:flex;gap:20px;padding:18px 0;border-bottom:1px solid transparent}
.jd-values__item dt{font-family:var(--serif);font-size:22px;font-style:italic;color:var(--rose-profundo);min-width:150px;overflow-wrap:anywhere}
.jd-values__item dd{margin:0;min-width:0;font-size:15px;line-height:1.6;color:var(--texto)}

/* Tratamentos */
.jd-sec-stack{display:flex;flex-direction:column;gap:56px}
.jd-sec-stack--48{gap:48px}

/* A clínica */
.jd-clinic__head{align-items:end}
.jd-gallery img{width:100%;aspect-ratio:9/16;object-fit:cover;display:block;border-radius:4px}
.jd-gallery picture:nth-child(even){margin-top:48px}
.jd-features{position:relative;gap:0;border-top:1px solid transparent}
.jd-features__item{padding:32px 32px 0 0;display:flex;flex-direction:column;gap:10px}
.jd-features__title{margin:0;font-family:var(--serif);font-size:26px;font-weight:400}
.jd-features__text{margin:0;font-size:15px;line-height:1.7;color:var(--texto-claro-2)}

/* Jornada */
.jd-steps{list-style:none;margin:0;padding:0}
.jd-steps li{position:relative;display:flex;flex-direction:column;gap:12px;padding-top:24px;border-top:1px solid transparent}
.jd-steps__num{font-family:var(--serif);font-size:40px;color:var(--rose-numeral);line-height:1}
.jd-steps__title{margin:0;font-family:var(--serif);font-size:24px;font-weight:400}
.jd-steps__text{margin:0;font-size:15px;line-height:1.7;color:var(--texto)}

/* Depoimentos */
.jd-quote{margin:0;background:var(--card);border:1px solid var(--linha);border-radius:4px;padding:36px 32px;display:flex;flex-direction:column;gap:20px}
.jd-quote__mark{font-family:var(--serif);font-size:64px;line-height:.5;color:var(--rose-numeral);height:28px}
.jd-quote blockquote{margin:0;font-family:var(--serif);font-size:22px;line-height:1.45;font-style:italic;flex-grow:1}
.jd-quote figcaption{font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:var(--texto-suave)}
.jd-link--start{align-self:flex-start}

/* Linhas divisórias desenhadas por pseudo-elementos (podem ser animadas em scaleX) */
.jd-hero__bullets::before,.jd-values::before,.jd-features::before,.jd-steps li::before,.jd-values__item::after{content:'';position:absolute;left:0;right:0;top:-1px;height:1px;background:var(--linha);transform-origin:left}
.jd-values__item::after{top:auto;bottom:-1px}
.jd-features::before{background:var(--linha-escura)}
.jd-steps li::before{background:var(--rose-borda)}

/* Localização */
.jd-location{align-items:stretch}
.jd-location__text{display:flex;flex-direction:column;gap:22px;justify-content:center}
.jd-location__address{font-style:normal;font-size:18px;line-height:1.7;color:var(--preto-nobre)}
.jd-location__hours{font-size:15px;line-height:1.7;color:var(--texto)}
.jd-location__map{min-height:420px}

/* Rodapé */
.jd-footer{background:var(--papel-escuro) var(--rodape);color:var(--texto-claro);padding:88px 24px 40px}
.jd-footer__brand{display:flex;flex-direction:column;gap:20px}
.jd-footer__brand picture{align-self:flex-start}
.jd-footer__brand img{height:72px;width:auto}
.jd-footer__about{margin:0;font-size:15px;line-height:1.7;color:var(--texto-claro-2);max-width:22em}
.jd-footer__col{display:flex;flex-direction:column;gap:12px;font-size:15px}
.jd-footer__col--address{line-height:1.7}
.jd-footer__col--social{gap:6px}
.jd-footer__title{margin:0;font-size:12px;letter-spacing:.24em;text-transform:uppercase;color:var(--champanhe);font-weight:300}
.jd-footer__col--social .jd-footer__title{margin-bottom:6px}
.jd-footer address{font-style:normal;color:var(--texto-claro)}
.jd-footer__wa{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 20px;border:1px solid var(--champanhe);color:var(--marfim);text-decoration:none;border-radius:999px;align-self:flex-start;font-size:14px}
.jd-footer__wa:hover{color:var(--champanhe)}
.jd-footer__social{color:var(--texto-claro);min-height:44px;display:inline-flex;align-items:center;overflow-wrap:anywhere}
.jd-footer__social:hover{color:var(--champanhe)}
.jd-footer__legal{border-top:1px solid var(--linha-rodape);padding-top:28px;display:flex;flex-direction:column;gap:14px;font-size:13px;line-height:1.7;color:var(--texto-rodape)}
.jd-footer__legal p{margin:0}
.jd-footer__legal a{color:var(--texto-claro-2)}
.jd-footer__legal a:hover{color:var(--champanhe)}

/* Botão flutuante de WhatsApp (só mobile/tablet) */
.jd-fab{display:none;position:fixed;right:18px;bottom:18px;z-index:50;width:60px;height:60px;border-radius:50%;background:var(--preto-nobre);color:var(--marfim);align-items:center;justify-content:center;box-shadow:0 8px 24px rgba(43,38,39,.3);transition:opacity .2s,transform .2s}
.jd-fab:hover{color:var(--champanhe)}
.jd-fab.is-hidden{opacity:0;transform:translateY(12px);pointer-events:none;visibility:hidden}

/* Páginas internas (404, política) */
.jd-page{padding:96px 24px 112px}
.jd-page__inner{max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:24px}
.jd-prose{font-size:17px;line-height:1.8;color:var(--texto)}
.jd-prose h2{margin:40px 0 8px;font-family:var(--serif);font-weight:500;font-size:30px;line-height:1.15;color:var(--preto-nobre)}
.jd-prose p,.jd-prose ul{margin:0 0 16px}
.jd-prose li{margin-bottom:6px}
.jd-prose strong{font-weight:500;color:var(--preto-nobre)}

/* 7. Menu mobile (gaveta) — até 1180px, onde os 5 links + botão não cabem numa linha */
@media (max-width:1180px){
  .jd-menu-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid var(--preto-nobre);border-radius:50%;background:transparent;color:var(--preto-nobre);cursor:pointer}
  .jd-menu-btn__bars,.jd-menu-btn__bars::before,.jd-menu-btn__bars::after{display:block;width:18px;height:1.5px;background:currentColor;position:relative;transition:transform .2s,background-color .2s}
  .jd-menu-btn__bars::before,.jd-menu-btn__bars::after{content:'';position:absolute;left:0}
  .jd-menu-btn__bars::before{top:-6px}
  .jd-menu-btn__bars::after{top:6px}
  .jd-menu-btn[aria-expanded="true"] .jd-menu-btn__bars{background:transparent}
  .jd-menu-btn[aria-expanded="true"] .jd-menu-btn__bars::before{transform:translateY(6px) rotate(45deg)}
  .jd-menu-btn[aria-expanded="true"] .jd-menu-btn__bars::after{transform:translateY(-6px) rotate(-45deg)}

  .jd-nav{position:fixed;top:var(--header-h);left:0;right:0;bottom:0;flex-direction:column;gap:0;padding:16px 24px 32px;background:var(--marfim);overflow-y:auto;overscroll-behavior:contain;font-size:14px;visibility:hidden;opacity:0;transform:translateY(-8px);transition:opacity .2s,transform .2s,visibility 0s .2s}
  .jd-nav.is-open{visibility:visible;opacity:1;transform:none;transition:opacity .2s,transform .2s}
  .jd-nav a:not(.jd-btn){min-height:56px;border-bottom:1px solid var(--linha)}
  .jd-nav .jd-nav__cta{display:inline-flex;align-self:flex-start;margin-top:24px}
  .jd-nav .jd-nav__cta,.jd-nav .jd-nav__cta:hover{color:var(--marfim)}
  html.jd-lock{overflow:hidden}
  html.jd-lock .jd-header{z-index:60}
}

/* 8. Responsivo */
@media (max-width:980px){
  .jd-g2,.jd-ft{grid-template-columns:minmax(0,1fr);gap:40px}
  .jd-g3{grid-template-columns:minmax(0,1fr)}
  .jd-g4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .jd-h1{font-size:44px}
  .jd-sec{padding-top:72px;padding-bottom:72px}
  .jd-fab{display:flex}
  .jd-btn--header{font-size:0;gap:0;padding:0 14px}
  .jd-btn--header svg{width:20px;height:20px}
  .jd-hero__caption{left:12px}
}
/* Jornada: 1 coluna em telas estreitas ("Acompanhamento" não cabe em 2) */
@media (max-width:560px){
  .jd-steps{grid-template-columns:minmax(0,1fr)}
}
/* 9. Movimento reduzido */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition-duration:0s !important;animation-duration:0s !important}
}

/* ==========================================================================
   10. Motion — camada de efeitos (quiet luxury)
   Regras: só transform, opacity e clip-path são animados; hover/foco 200–400 ms;
   entradas 600–1100 ms; nada acima de 1,2 s. Estados iniciais ocultos só existem
   com .js-motion no <html> e sem prefers-reduced-motion. Sem JS: tudo estático.
   Classes controladas por assets/js/motion.js:
     .motion-ready (html)      → dispara a entrada do hero (150 ms após o DOMContentLoaded)
     .is-scrolled (header)     → cabeçalho compacto ao rolar (transparente no topo)
     .rv / .rv-in (elemento)   → revelação ao rolar (some ao terminar)
     .rvg / .rvg-in (grupo)    → desenha a linha do grupo
   ========================================================================== */

/* 10.1 Cabeçalho que se transforma ao rolar (sentinela + IntersectionObserver).
   A caixa do cabeçalho não muda de altura (CLS 0): o fundo/borda aparecem por
   opacidade numa faixa de 70 px e logo/ações sobem por transform. */
.js-motion .jd-header{pointer-events:none}
.js-motion .jd-header .jd-header__inner>*{pointer-events:auto}
.js-motion .jd-header::before{bottom:auto;height:70px;opacity:0;transition:opacity var(--dur-s) var(--ease-lux)}
.js-motion .jd-header::after{bottom:auto;top:69px;opacity:0;transition:opacity var(--dur-s) var(--ease-lux)}
.js-motion .jd-header .jd-header__logo{transform-origin:left center}
.js-motion .jd-header .jd-header__logo,.js-motion .jd-header .jd-header__actions{transition:transform var(--dur-s) var(--ease-lux)}
.js-motion .jd-header.is-scrolled,.jd-lock.js-motion .jd-header{--header-h:70px}
.js-motion:not(.motion-ready) .jd-header::before,.js-motion:not(.motion-ready) .jd-header::after{animation:jd-show 1ms 3s forwards} /* plano B: sem motion.js, o fundo volta em 3 s */
.js-motion .jd-header.is-scrolled::before,.js-motion .jd-header.is-scrolled::after,
.jd-lock.js-motion .jd-header::before,.jd-lock.js-motion .jd-header::after{opacity:1}
.js-motion .jd-header.is-scrolled .jd-header__logo,.jd-lock.js-motion .jd-header .jd-header__logo{transform:translateY(-17px) scale(.7667)} /* 60 → 46 px */
.js-motion .jd-header.is-scrolled .jd-header__actions,.jd-lock.js-motion .jd-header .jd-header__actions{transform:translateY(-17px)}
@media (min-width:1181px){
  .js-motion .jd-header .jd-nav{transition:transform var(--dur-s) var(--ease-lux)}
  .js-motion .jd-header.is-scrolled .jd-nav{transform:translateY(-17px)}
}
.jd-sentinel{position:absolute;top:40px;left:0;width:1px;height:1px;pointer-events:none}

/* 10.2 Hover nos cards de tratamento (só em telas com mouse) */
.jd-card:not(.jd-card--dark)::before,.jd-card:not(.jd-card--dark)::after{content:'';position:absolute;inset:-1px;border-radius:inherit;opacity:0;pointer-events:none;transition:opacity var(--dur-s) var(--ease-lux)}
.jd-card:not(.jd-card--dark)::before{border:1px solid var(--champanhe-linha)}                 /* borda #E6D6CF → #B9975B */
.jd-card:not(.jd-card--dark)::after{z-index:-1;box-shadow:0 18px 40px -24px rgba(43,38,39,.25)} /* sombra por opacidade */
@media (hover:hover){
  .jd-card:not(.jd-card--dark){transition:transform var(--dur-s) var(--ease-lux)}
  .jd-card:not(.jd-card--dark):is(:hover,:focus-within){transform:translateY(-4px)}
  .jd-card:not(.jd-card--dark):is(:hover,:focus-within)::before,
  .jd-card:not(.jd-card--dark):is(:hover,:focus-within)::after{opacity:1}
  .jd-card .jd-arrow{transition:transform var(--dur-s) var(--ease-lux)}
  .jd-card:is(:hover,:focus-within) .jd-arrow{transform:translateX(4px)}
}

/* 10.3 Preenchimento deslizante nos botões em pílula (entra pela esquerda, sai pela direita).
   O texto fica acima da camada porque ela tem z-index:-1 dentro do isolamento do botão. */
@media (hover:hover){
  .jd-btn--primary::before,.jd-btn--champanhe::before{content:'';position:absolute;inset:0;z-index:-1;background:var(--texto);transform:scaleX(0);transform-origin:right;transition:transform var(--dur-s) var(--ease-in-out-lux)}
  .jd-btn--champanhe::before{background:#E8D8BB}
  .jd-btn--primary:is(:hover,:focus-visible)::before,
  .jd-btn--champanhe:is(:hover,:focus-visible)::before{transform:scaleX(1);transform-origin:left}
  /* Secundário: a camada escura carrega uma cópia clara do rótulo (aria-hidden), recortada
     junto com o fundo — cada parte do texto mantém contraste AA durante toda a transição.
     Duas camadas, só com transições (igual em todos os motores): --in entra pela esquerda
     no hover; --out cobre tudo ao sair e se recolhe para a direita. */
  .jd-btn__fill{display:flex;align-items:center;position:absolute;inset:0;padding:inherit;background:var(--preto-nobre);color:var(--marfim);pointer-events:none}
  .jd-btn__fill--in{clip-path:inset(0 100% 0 0)}
  .jd-btn__fill--out{clip-path:inset(0 0 0 100%);transition:clip-path var(--dur-s) var(--ease-in-out-lux)}
  .jd-btn--secondary:is(:hover,:focus-visible) .jd-btn__fill--in{clip-path:inset(0);transition:clip-path var(--dur-s) var(--ease-in-out-lux)}
  .jd-btn--secondary:is(:hover,:focus-visible) .jd-btn__fill--out{clip-path:inset(0);opacity:0;transition:none}
}

@media (prefers-reduced-motion:no-preference){

  /* 10.4 Entrada em cascata do hero (150 ms após o DOMContentLoaded, 120 ms entre itens) */
  .js-motion:not(.motion-ready) .jd-hero__text>*,
  .js-motion:not(.motion-ready) .jd-hero__caption{opacity:.001;animation:jd-show 1ms 3s forwards}   /* 3 s: plano B se o JS falhar */
  .js-motion:not(.motion-ready) .jd-hero__figure picture{clip-path:inset(100% 0 0 0);animation:jd-show 1ms 3s forwards}
  .motion-ready .jd-hero__text>*{animation:jd-rise var(--dur-m) var(--ease-lux) backwards}
  .motion-ready .jd-hero__text>:nth-child(1){animation-delay:150ms}
  .motion-ready .jd-hero__text>:nth-child(2){animation-delay:270ms}
  .motion-ready .jd-hero__text>:nth-child(3){animation-delay:390ms}
  .motion-ready .jd-hero__text>:nth-child(4){animation-delay:510ms}
  .motion-ready .jd-hero__text>:nth-child(5){animation-delay:630ms}
  .motion-ready .jd-h1 em{animation:jd-fade var(--dur-s) var(--ease-in-out-lux) 780ms backwards}  /* "você" por último */
  .motion-ready .jd-hero__bullets::before{animation:jd-draw 900ms var(--ease-in-out-lux) 630ms backwards}

  /* 10.5 Revelação da foto em arco: o recorte fica no <picture> (overflow:hidden + mesmo raio),
     então o arco se mantém em todos os navegadores. A imagem carrega normalmente (LCP). */
  .motion-ready .jd-hero__figure picture{animation:jd-clip-up var(--dur-l) var(--ease-in-out-lux) 150ms backwards}
  .motion-ready .jd-hero__figure img{animation:jd-zoom 1200ms var(--ease-lux) 150ms backwards}
  .motion-ready .jd-hero__caption{animation:jd-slide var(--dur-m) var(--ease-lux) 450ms backwards}

  /* 10.6 Revelação ao rolar (data-reveal / data-reveal-group) */
  .js-motion .rv{opacity:0;transform:translateY(var(--rise))}
  .js-motion .rv.rv-in{opacity:1;transform:none;will-change:opacity,transform;transition:opacity var(--dur-m) var(--ease-lux) var(--d,0ms),transform var(--dur-m) var(--ease-lux) var(--d,0ms)}

  /* 10.7 Linhas que se desenham junto com o bloco */
  .js-motion .jd-steps li.rv::before,.js-motion .jd-values__item.rv::after,
  .js-motion .rvg.jd-values::before,.js-motion .rvg.jd-features::before{transform:scaleX(0)}
  .js-motion .jd-steps li.rv-in::before,.js-motion .jd-values__item.rv-in::after,
  .js-motion .rvg-in.jd-values::before,.js-motion .rvg-in.jd-features::before{transform:scaleX(1);transition:transform 900ms var(--ease-in-out-lux) var(--d,0ms)}
}
/* Hero parte de opacity .001 (imperceptível), não 0: o navegador registra a pintura do texto
   e o LCP não é adiado pela animação. */
@keyframes jd-rise{from{opacity:.001;transform:translateY(var(--rise))}}
@keyframes jd-fade{from{opacity:.001}}
@keyframes jd-slide{from{opacity:.001;transform:translateX(16px)}}
@keyframes jd-clip-up{from{clip-path:inset(100% 0 0 0)}to{clip-path:inset(0)}}
@keyframes jd-zoom{from{transform:scale(1.08)}}
@keyframes jd-draw{from{transform:scaleX(0)}}
@keyframes jd-show{to{opacity:1;transform:none;clip-path:inset(0)}}

/* Movimento reduzido: sem deslocamentos nos hovers (cor e sombra mudam sem animação) */
@media (prefers-reduced-motion:reduce){
  .jd-card:not(.jd-card--dark):is(:hover,:focus-within),.jd-card:is(:hover,:focus-within) .jd-arrow{transform:none}
}
