@tailwind base;
@tailwind components;
@tailwind utilities;

/* ════════════════════════════════════════════════════════════════
   UNIQUE PLÁSTICA AVANÇADA — Design System aplicado (DESIGN.md)
   Lipo Ultra HD Ugraft 360º — landing de tráfego pago
   Editorial de luxo médico · Playfair itálico + Montserrat · ouro/creme/preto
   ════════════════════════════════════════════════════════════════ */

/* ─── 3. Tipografia — fontes locais (woff2) ─── */
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url('fonts/montserrat-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: 'Montserrat'; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url('fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat'; font-style: italic; font-weight: 300 400; font-display: swap;
  src: url('fonts/montserrat-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: 'Montserrat'; font-style: italic; font-weight: 300 400; font-display: swap;
  src: url('fonts/montserrat-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/playfair-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: 'Playfair Display'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/playfair-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ─── 2. Tokens :root canônico (sem alterar valores) ─── */
:root {
  --brand:        #C5A572;
  --brand-alt:    #B8935A;
  --brand-darker: #8B7047;
  --brand-light:  #D4B987;
  --brand-glow:   rgba(197, 165, 114, 0.30);
  --accent:       #D4AF37;
  --accent-gold:  #D4AF37;  /* alias p/ paridade com Mommy Makeover */

  --white:        #FFFFFF;
  --black:        #0A0A0A;
  --bg-cream:     #FAF8F5;
  --bg-alt:       #FDFBF7;
  --bg-alt-2:     #F8F6F1;
  --text-dark:    #2C2C2C;
  --text-darker:  #1A1A1A;
  --text-gray:    #6B6B6B;
  --text-gray-lt: #9E9E9E;
  --border:       #E8E5DF;
  --border-soft:  #E8E5DF;  /* alias p/ paridade com Mommy Makeover */
  --border-gold:  rgba(197, 165, 114, 0.22);

  --sp-xs: clamp(0.5rem, 1vw, 0.75rem);
  --sp-sm: clamp(1rem, 2vw, 1.5rem);
  --sp-md: clamp(2rem, 4vw, 3rem);
  --sp-lg: clamp(3rem, 6vw, 5rem);
  --sp-xl: clamp(5rem, 10vw, 8rem);

  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce:  cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);

  --gradient-gold: linear-gradient(135deg, var(--brand-darker) 0%, var(--brand) 50%, var(--brand-light) 100%);
  --error:       #E27575;
  --error-light: #E8A8A8;

  --container: 1400px;
}

/* ─── 4. Reset e base ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: clamp(0.9375rem, 1.05vw, 1.0625rem);
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--bg-alt);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

::selection { background: var(--brand); color: var(--white); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

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

/* ─── Tipografia: classes canônicas ─── */
.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.85rem, 6.6vw, 6.25rem);
  font-weight: 400; font-style: italic;
  line-height: 1.08; letter-spacing: -0.02em;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  font-weight: 500; line-height: 1.2;
  color: var(--text-darker);
}
.section-title--light { color: var(--white); }
.manifesto-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 400; font-style: italic;
  line-height: 1.8; letter-spacing: 0.005em;
}

/* ─── 5. Botões ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  position: relative;
  padding: clamp(1rem, 2vw, 1.25rem) clamp(2.5rem, 5vw, 3.5rem);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-align: center;
  border: none; border-radius: 9999px; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn-primary {
  color: var(--white);
  font-weight: 700; letter-spacing: 0.06em;
  background: linear-gradient(120deg, #7A5A23 0%, #906E2B 38%, #A58546 72%, #B8924E 100%);
  background-size: 200% 100%; background-position: 0% 50%;
  box-shadow: 0 12px 34px -16px rgba(144,110,43,.4), inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .55s var(--ease), box-shadow .6s ease, background-position .9s ease;
}
/* brilho contínuo (sheen) que passa em loop — igual ao botão da VSL */
.btn-primary::before {
  content: ''; position: absolute; top: -2px; bottom: -2px; left: -60%; width: 42%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%);
  transform: translateX(0) skewX(-22deg); animation: sheen 4.5s ease-in-out infinite;
}
.btn-primary > .lbl { position: relative; z-index: 2; }
.btn-primary .ico { position: relative; z-index: 2; display: inline-flex; transition: transform .35s ease; }
.btn-primary .ico svg { width: 19px; height: 19px; display: block; }
.btn-primary:hover { transform: translateY(-3px); background-position: 100% 50%; box-shadow: 0 20px 48px -20px rgba(165,133,70,.45), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover .ico { transform: translateX(5px); }
.btn-primary:active { transform: translateY(-1px) scale(.99); }
@keyframes sheen { 0% { transform: translateX(0) skewX(-22deg); opacity: 0; } 8% { opacity: 1; } 38% { transform: translateX(430%) skewX(-22deg); opacity: 1; } 46%, 100% { transform: translateX(430%) skewX(-22deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .btn-primary::before { display: none; } }
.btn:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 4px; }
.btn-large, .btn-hero {
  padding: clamp(1.125rem, 2.5vw, 1.5rem) clamp(3rem, 6vw, 4rem);
  font-size: clamp(1rem, 1.8vw, 1.125rem);
}
.btn--full { width: 100%; }
.btn--ghost { background: transparent; color: var(--brand-darker); border: 1px solid var(--brand); box-shadow: none; animation: none; }
.btn--ghost:hover { background: var(--brand); color: var(--white); }
/* Ghost sobre fundo escuro */
.btn--ghost-light { background: transparent; color: var(--brand-light); border: 1px solid rgba(212,185,135,.5); box-shadow: none; animation: none; }
.btn--ghost-light:hover { background: rgba(197,165,114,.12); border-color: var(--brand); color: var(--white); }

/* ─── 6. Eyebrow / section-tag ─── */
.section-tag {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--brand-darker); margin-bottom: var(--sp-sm);
}
.section-tag::before, .section-tag::after { content: ""; width: 28px; height: 1px; background: var(--brand); }
.section-tag--light { color: var(--brand-light); }
.section-tag--center { justify-content: center; }

/* ─── 7. Header fixo ─── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  padding: clamp(14px, 2vw, 22px) 0; background: transparent; border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), backdrop-filter .35s var(--ease), padding .35s var(--ease), border-color .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(10,10,10,0.72);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border-gold); padding: 10px 0;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-header__logo img { height: clamp(28px, 3.5vw, 40px); width: auto; filter: brightness(0) invert(1); transition: transform .4s var(--ease); }
.site-header__logo:hover img { transform: scale(1.04); }
.site-header__cta { display: none; }
@media (min-width: 720px) { .site-header__cta { display: inline-flex; padding: 0.7rem 1.6rem; font-size: 0.8rem; } }

/* ─── 8. Footer escuro ─── */
.rodape { padding: clamp(64px, 9vw, 110px) 0 clamp(28px, 3.5vw, 40px); background: linear-gradient(180deg, #0A0A0A 0%, #050505 100%); color: rgba(255,255,255,0.7); text-align: center; }
.rodape__inner { display: flex; flex-direction: column; align-items: center; gap: clamp(22px, 2.6vw, 32px); }
.rodape__logo img { height: clamp(36px, 4.5vw, 56px); width: auto; opacity: .92; filter: brightness(0) invert(1); }
.rodape__redes { margin: 0; font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.66); letter-spacing: .02em; }
.rodape__redes-icons { display: flex; justify-content: center; gap: 14px; margin-top: 14px; }
.rodape__social { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease); }
.rodape__social img { width: 18px; height: 18px; filter: brightness(0) invert(1); opacity: .85; transition: opacity .3s var(--ease); }
.rodape__social:hover { transform: translateY(-3px); border-color: var(--brand); background: rgba(197,165,114,.08); }
.rodape__social:hover img { opacity: 1; }
.rodape__divisor { width: 100%; max-width: 280px; height: 1px; background: linear-gradient(90deg, transparent, rgba(197,165,114,.4), transparent); }
.rodape__info { font-size: 12px; line-height: 1.7; color: rgba(255,255,255,.5); letter-spacing: .02em; }
.rodape__contato { display: flex; flex-direction: column; align-items: center; gap: 6px; font-style: normal; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.6); }
.rodape__contato a { transition: color .3s var(--ease); }
.rodape__contato a:hover { color: var(--brand-light); }
.rodape__copy { margin: 0; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.4); }

/* ─── 9. LGPD (variante escura) ─── */
.lgpd-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 32px;
  background: rgba(10,10,10,.65);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid rgba(197,165,114,.15);
  animation: slideUpLgpd .5s cubic-bezier(.22,1,.36,1) forwards;
}
.lgpd-banner[hidden] { display: none; }
.lgpd-content { font-size: .8rem; line-height: 1.5; color: rgba(255,255,255,.75); flex: 1; min-width: 0; }
.lgpd-content a { color: var(--brand); font-weight: 500; border-bottom: 1px solid rgba(197,165,114,.3); }
.lgpd-buttons { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.lgpd-accept, .lgpd-reject, .lgpd-manage { padding: 8px 20px; border: none; border-radius: 9999px; font-family: 'Montserrat', sans-serif; font-weight: 500; font-size: .75rem; letter-spacing: .03em; white-space: nowrap; cursor: pointer; transition: all .2s; }
.lgpd-accept { background: var(--brand); color: #0a0a0a; }
.lgpd-accept:hover { background: var(--brand-light); transform: translateY(-1px); }
.lgpd-reject { background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.12); }
.lgpd-manage { background: transparent; color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.08); }
@media (max-width: 640px) { .lgpd-banner { flex-direction: column; align-items: stretch; padding: 16px 18px; gap: 12px; } .lgpd-buttons { justify-content: center; } }

/* ─── 11. Animações ─── */
@keyframes gradientShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes titleReveal { from { opacity: 0; transform: translateY(30px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes subtitleReveal { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes ctaReveal { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
@keyframes kenBurns { 0% { transform: scale(1) translate(0,0); } 100% { transform: scale(1.1) translate(-2%,-2%); } }
@keyframes scrollLeft  { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scrollRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes slideUpLgpd { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pulseHalo { 0%,100% { box-shadow: 0 0 0 0 rgba(197,165,114,.5); } 50% { box-shadow: 0 0 0 22px rgba(197,165,114,0); } }
@keyframes floatBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Reveal no scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }

/* ─── 12. Acessibilidade / movimento reduzido ─── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  [class*="marquee"], [class*="carousel-track"] { animation: none; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ════════════════════════════════════════════════════════════════
   13. PADRÕES DE SEÇÃO — específicos da peça (usando tokens da marca)
   ════════════════════════════════════════════════════════════════ */

.section { position: relative; padding: var(--sp-xl) 0; }
.section--cream { background: var(--bg-cream); }
.section--alt { background: var(--bg-alt-2); }
.section--dark { background: var(--black); color: rgba(255,255,255,.82); }
.section__head { max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section__lead { margin-top: var(--sp-sm); color: var(--text-gray); font-size: clamp(1rem, 1.3vw, 1.125rem); }
.section--dark .section__lead { color: rgba(255,255,255,.7); }

/* HERO */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--black); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: kenBurns 18s var(--ease) alternate infinite; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 110% 75% at 50% 35%, rgba(140,100,25,.50) 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 50% 5%, rgba(160,115,30,.22) 0%, transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.40) 0%, rgba(0,0,0,.48) 30%, rgba(0,0,0,.82) 65%, rgba(0,0,0,.98) 100%);
}
.hero__inner { position: relative; z-index: 2; text-align: center; padding-top: clamp(3.25rem, 8.5vh, 6.5rem); padding-bottom: clamp(1.75rem, 5vh, 3.5rem); max-width: 980px; margin: 0 auto; }
.hero__title { color: var(--white); margin: 0.25rem 0 0.9rem; text-wrap: balance; }
.hero__title em { color: var(--brand-light); font-style: italic; }
.hero__subtitle { font-family: 'Montserrat', sans-serif; font-weight: 300; font-size: clamp(0.88rem, 1.8vw, 1.2rem); line-height: 1.5; letter-spacing: .02em; color: rgba(255,255,255,.85); max-width: 660px; margin-left: auto; margin-right: auto; }
.hero__cta { margin-top: clamp(1.25rem, 3vw, 2rem); display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.6); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; animation: floatBob 2.6s ease-in-out infinite; }
.hero__scroll span { width: 1px; height: 38px; background: linear-gradient(180deg, var(--brand), transparent); }

/* MANIFESTO / O QUE É */
.manifesto { text-align: center; max-width: 920px; margin: 0 auto; }
.manifesto .manifesto-text { color: var(--text-darker); }
.manifesto .manifesto-text em { color: var(--brand-darker); }
.split { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; } .split--reverse .split__media { order: 2; } }
.split__media { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.14); border: 1px solid var(--border-gold); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; transition: transform 1.2s var(--ease); }
.split__media:hover img { transform: scale(1.05); }
.split__body p + p { margin-top: 1.1rem; }
.split__body .section-title { margin-top: 1rem; }
.lead-paragraph { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--text-gray); margin-top: 1.3rem; }

/* TECNOLOGIAS — grid de cards com imagem */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.tech-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease); }
.tech-card:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(0,0,0,.12); border-color: var(--border-gold); }
.tech-card__media { aspect-ratio: 16/11; overflow: hidden; }
.tech-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tech-card:hover .tech-card__media img { transform: scale(1.07); }
.tech-card__body { padding: clamp(1.25rem, 2vw, 1.6rem); }
.tech-card__name { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(1.3rem, 2vw, 1.6rem); color: var(--text-darker); margin-bottom: .5rem; }
.tech-card__name sup { font-size: .5em; color: var(--brand-darker); }
.tech-card__text { font-size: .95rem; color: var(--text-gray); line-height: 1.65; }

/* GALERIA marquee (Antes x Depois) */
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: clamp(1rem, 2vw, 1.5rem); }
.marquee__track { display: flex; gap: clamp(1rem, 2vw, 1.5rem); width: max-content; }
.marquee--left .marquee__track { animation: scrollLeft 42s linear infinite; }
.marquee--right .marquee__track { animation: scrollRight 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { position: relative; flex: 0 0 auto; width: clamp(260px, 32vw, 420px); aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; border: 1px solid rgba(197,165,114,.18); }
.marquee__item img { width: 100%; height: 100%; object-fit: cover; }
.marquee__tag { position: absolute; left: 12px; bottom: 12px; z-index: 2; font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #fff; background: rgba(10,10,10,.55); backdrop-filter: blur(6px); padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(197,165,114,.4); }

/* DIFERENCIAIS / INDICAÇÕES — lista com check dourado */
.feature-list { display: grid; grid-template-columns: 1fr; gap: clamp(.9rem, 1.6vw, 1.15rem); max-width: 920px; margin: 0 auto; }
@media (min-width: 760px) { .feature-list--2 { grid-template-columns: 1fr 1fr; } }
.feature-item { display: flex; gap: 16px; align-items: flex-start; padding: clamp(1rem, 1.8vw, 1.35rem) clamp(1.1rem, 2vw, 1.5rem); background: var(--white); border: 1px solid var(--border); border-radius: 14px; transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease); }
.section--dark .feature-item { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); }
.feature-item:hover { transform: translateY(-3px); border-color: var(--border-gold); box-shadow: 0 18px 44px rgba(0,0,0,.08); }
.feature-item__icon { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gradient-gold); color: #fff; margin-top: 2px; box-shadow: 0 6px 16px rgba(139,112,71,.3); }
.feature-item__icon svg { width: 16px; height: 16px; }
.feature-item__text { font-size: clamp(.95rem, 1.2vw, 1.05rem); line-height: 1.6; color: var(--text-dark); }
.section--dark .feature-item__text { color: rgba(255,255,255,.85); }

/* MÉTODO CPI — passos */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); counter-reset: step; }
.step { position: relative; padding: clamp(1.5rem, 2.5vw, 2rem); background: rgba(10,10,10,.025); border: 1px solid var(--border); border-radius: 16px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: clamp(2rem, 4vw, 3rem); color: var(--brand-darker); display: block; margin-bottom: .6rem; }
.step__title { font-weight: 600; color: var(--text-darker); margin-bottom: .4rem; font-size: 1.05rem; }
.step__text { font-size: .92rem; color: var(--text-gray); line-height: 1.6; }
/* fundo escuro mantém o tratamento branco original (Método CPI) */
.section--dark .step { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); }
.section--dark .step::before { color: var(--brand-light); }
.section--dark .step__title { color: var(--white); }
.section--dark .step__text { color: rgba(255,255,255,.66); }

/* VÍDEO */
.video-wrap { position: relative; max-width: 1000px; margin: 0 auto; border-radius: 18px; overflow: hidden; border: 1px solid var(--border-gold); box-shadow: 0 40px 90px rgba(0,0,0,.4); }
.video-wrap video { width: 100%; display: block; }

/* NÚMEROS / PROVA SOCIAL */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); text-align: center; }
.stat__num { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1; color: var(--brand-darker); }
.section--dark .stat__num { color: var(--brand-light); }
.stat__label { margin-top: .5rem; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-gray); }
.section--dark .stat__label { color: rgba(255,255,255,.6); }

/* NOSSA ESTRUTURA — mosaico de fotos da clínica */
.estrutura-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.75rem, 1.5vw, 1.25rem); margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 760px) { .estrutura-grid { grid-template-columns: repeat(3, 1fr); } }
.estrutura-item { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--border-gold); aspect-ratio: 4/3; }
.estrutura-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.estrutura-item:hover img { transform: scale(1.06); }
/* 1ª foto = banner de largura total; as demais formam grade uniforme (3 col desktop / 2 col mobile) sem buracos */
.estrutura-item--1 { grid-column: 1 / -1; aspect-ratio: 16 / 6; }
/* destaque: primeira e quarta ocupam 2 colunas no desktop, criando ritmo */
@media (min-width: 760px) {
}

/* DEPOIMENTOS */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.testi { background: var(--white); border: 1px solid var(--border); border-radius: 18px; padding: clamp(1.5rem, 2.5vw, 2.2rem); display: flex; flex-direction: column; gap: 1rem; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.testi:hover { transform: translateY(-5px); box-shadow: 0 26px 60px rgba(0,0,0,.1); }
.testi__stars { color: var(--brand); letter-spacing: 3px; font-size: 1.1rem; }
.testi__text { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.7; color: var(--text-darker); }
.testi__person { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.testi__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brand-light); }
.testi__name { font-weight: 600; color: var(--text-darker); font-size: .95rem; }
.testi__from { font-size: .8rem; color: var(--text-gray-lt); }

/* CTA FINAL */
.cta-final { position: relative; text-align: center; background: var(--black); overflow: hidden; }
.cta-final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(197,165,114,.20), transparent 60%); }
.cta-final__inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.cta-final__title { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.15; color: var(--white); }
.cta-final__title em { color: var(--brand-light); }
.cta-final__text { margin-top: 1.2rem; color: rgba(255,255,255,.72); font-size: clamp(1rem, 1.4vw, 1.2rem); }
.cta-final__btn { margin-top: clamp(2rem, 4vw, 2.75rem); }

/* ════════ FORMULÁRIO-QUIZ (Agendar / MQL) ════════ */
.oferta__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.oferta__sub { color: rgba(255,255,255,.72); margin-top: var(--sp-sm); max-width: 560px; margin-inline: auto; }
.quiz { margin-top: clamp(2rem, 4vw, 3rem); background: var(--white); border-radius: 20px; border: 1px solid var(--border-gold); padding: clamp(1.5rem, 3vw, 2.5rem); text-align: left; box-shadow: 0 30px 80px rgba(10,10,10,.35); }
.quiz__progress-label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: .55rem; }
.quiz__progress { height: 6px; border-radius: 999px; background: var(--bg-alt-2); overflow: hidden; }
.quiz__bar { height: 100%; background: var(--gradient-gold); border-radius: 999px; transition: width .4s var(--ease); }
.quiz__step, .quiz__form { margin-top: clamp(1.5rem, 3vw, 2rem); animation: quizIn .4s var(--ease) both; }
@keyframes quizIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.quiz__question { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(1.3rem, 2.6vw, 1.9rem); color: var(--text-darker); line-height: 1.25; }
.quiz__help { margin-top: .4rem; font-size: .85rem; color: var(--text-gray); }
.quiz__options { display: grid; gap: .7rem; margin-top: clamp(1.2rem, 2.5vw, 1.6rem); }
.quiz__option { display: flex; align-items: center; gap: .85rem; width: 100%; text-align: left; padding: clamp(.9rem, 2vw, 1.1rem) clamp(1rem, 2.5vw, 1.3rem); border: 1.5px solid var(--border); border-radius: 12px; background: var(--bg-alt); color: var(--text-dark); font-size: clamp(.92rem, 1.2vw, 1rem); transition: border-color .25s var(--ease), background .25s var(--ease), transform .15s var(--ease); }
.quiz__option:hover { border-color: var(--brand-light); }
.quiz__option:active { transform: scale(.99); }
.quiz__option-mark { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); transition: border-color .25s var(--ease), background .25s var(--ease); position: relative; }
.quiz__option.is-active { border-color: var(--brand); background: rgba(197,165,114,.1); }
.quiz__option.is-active .quiz__option-mark { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 3px var(--white); }
.quiz__nav { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; margin-top: clamp(1.5rem, 3vw, 2rem); }
.quiz__back { margin-right: auto; color: var(--text-gray); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.quiz__back:hover { color: var(--text-darker); }
.quiz__field { margin-top: 1.1rem; }
.quiz__field label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-darker); margin-bottom: .4rem; }
.quiz__field input { width: 100%; padding: .9rem 1.1rem; border: 1.5px solid var(--border); border-radius: 12px; background: var(--bg-alt); font: inherit; color: var(--text-dark); transition: border-color .25s var(--ease); }
.quiz__field input:focus { outline: none; border-color: var(--brand); }
.quiz__error { display: none; margin-top: .35rem; font-size: .8rem; color: var(--error); }
.quiz__field.is-invalid input { border-color: var(--error); }
.quiz__field.is-invalid .quiz__error { display: block; }
.quiz__checkbox { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1.2rem; font-size: .85rem; color: var(--text-gray); }
.quiz__checkbox input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--brand); flex: 0 0 auto; }
.quiz__checkbox a { color: var(--brand-darker); text-decoration: underline; }
.quiz__checkbox.is-invalid { color: var(--error); }
.quiz__final { text-align: center; padding: clamp(1rem, 3vw, 2rem) 0; }
.quiz__final-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(197,165,114,.15); color: var(--brand-darker); margin-bottom: 1.2rem; }
.quiz__final-titulo { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--text-darker); }
.quiz__final-texto { margin-top: .9rem; color: var(--text-gray); max-width: 480px; margin-inline: auto; }

/* ════════════════════════════════════════════════════════════════
   CAMADA DE REFINAMENTO EDITORIAL  (aditiva · NÃO altera layout nem copy)
   #1 tipografia premium · #2 grão de filme · #3 reveal blur-in · #4 ouro/hairline
   Acrescentada em 2026-06-30. Para reverter: remover este bloco do final do arquivo.
   ════════════════════════════════════════════════════════════════ */

/* ─── #1 Tipografia editorial ─── */
/* sem viúvas/órfãs: títulos equilibrados, parágrafos sem palavra solta na última linha */
h1, h2, h3,
.hero-title, .section-title, .section-title--light, .cta-final__title,
.quiz__question, .quiz__final-titulo, .step__title, .tech-card__name {
  text-wrap: balance;
}
p, li, blockquote,
.lead-paragraph, .hero__subtitle, .section__lead, .testi__text,
.feature-item__text, .step__text, .oferta__sub, .quiz__final-texto {
  text-wrap: pretty;
}
/* algarismos oldstyle proporcionais + ligaduras nos elementos serifados/display */
.hero-title, .section-title, .section-title--light, .cta-final__title,
.stat__num, .quiz__final-titulo {
  font-feature-settings: "onum" 1, "pnum" 1, "liga" 1, "dlig" 1, "kern" 1;
}
/* kerning óptico nos grandes títulos display (mais couture) */
.hero-title { letter-spacing: -0.012em; }
.cta-final__title { letter-spacing: -0.008em; }

/* ─── #4 Detalhes em ouro / hairline ─── */
/* underline dourado que cresce no hover dos contatos do rodapé */
.rodape__contato a {
  background-image: linear-gradient(var(--brand-light), var(--brand-light));
  background-size: 0% 1px;
  background-position: 0 1.15em;
  background-repeat: no-repeat;
  transition: color .3s var(--ease), background-size .45s var(--ease);
}
.rodape__contato a:hover { background-size: 100% 1px; }
/* costura editorial: hairline de ouro no topo das seções escuras */
.section--dark { box-shadow: inset 0 1px 0 var(--border-gold); }

/* ─── #3 Reveal com blur-in (longhands p/ preservar os transition-delay do stagger) ─── */
.reveal {
  filter: blur(7px);
  transition-property: opacity, transform, filter;
  transition-duration: 1s;
  transition-timing-function: var(--ease);
}
.reveal.is-visible { filter: blur(0); }

/* ─── #2 Grão de filme (textura editorial impressa, monocromática, ~4%) ─── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* respeita quem prefere menos movimento: sem blur-in (o grão é estático, mantém) */
@media (prefers-reduced-motion: reduce) {
  .reveal { filter: none; transition: none; }
}

/* ════════════════════════════════════════════════════════════════
   AJUSTES (feedback do cliente 2026-06-30) — aditivos, não alteram layout/copy
   ════════════════════════════════════════════════════════════════ */
/* 1. Logo centralizado no header em telas mobile (o CTA já é display:none abaixo de 720px) */
@media (max-width: 719px) {
  .site-header__inner { justify-content: center; }
}
/* 2. "Role" do hero: centralização robusta via margem automática.
      (o translateX(-50%) conflitava com a animação floatBob, jogando o indicador p/ a direita) */
.hero__scroll {
  left: 0;
  right: 0;
  margin-inline: auto;
  width: -moz-fit-content;
  width: fit-content;
  transform: none;
}
/* 3. Emblema "MÉTODO CPI" (branco, transparente) na seção escura do método */
.cpi-emblema {
  display: block;
  width: clamp(150px, 19vw, 215px);
  height: auto;
  margin: 0 auto clamp(1rem, 2vw, 1.6rem);
  opacity: .95;
}
/* 4. Frase de destaque do Método CPI */
.cpi-frase {
  text-align: center;
  max-width: 720px;
  margin: clamp(2.2rem, 4vw, 3.2rem) auto 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.4;
  color: var(--brand-light);
  text-wrap: balance;
}

/* Método CPI — conteúdo oficial completo (definição + 4 fases + 7 pilares + resultados) */
.cpi-tagline { font-style: italic; color: var(--brand-light); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.cpi-subtitulo { text-align: center; font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--white); margin: clamp(2.6rem, 5vw, 4rem) 0 clamp(1.6rem, 3vw, 2.2rem); text-wrap: balance; }
.section--dark .feature-item__text { color: rgba(255,255,255,.82); }
.cpi-resultados { max-width: 900px; margin: 0 auto; }
