/* Instituto Dr. Paulo Faria — liquid glass v2 */

:root {
  --teal: #1fa39b;
  --teal-2: #17b3a8;
  --teal-deep: #0c5f5b;
  --blue: #1b9ab3;
  --sun: #f5b335;
  --sun-deep: #e9961c;
  --ink: #12302f;
  --muted: #4d6866;
  --line: rgba(255, 255, 255, 0.6);
  --radius: 30px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: #eef8f7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }

/* ---------- Ambient background ---------- */
.ambient { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(120% 80% at 0% 0%, #d9f3f0 0%, transparent 60%),
    radial-gradient(90% 70% at 100% 20%, #fff1d2 0%, transparent 55%),
    linear-gradient(180deg, #f4fbfa 0%, #eaf6f5 100%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .6; will-change: transform;
  animation: float 22s var(--ease) infinite alternate; }
.orb.o1 { width: 42vmax; height: 42vmax; left: -12vmax; top: -10vmax; background: radial-gradient(circle at 30% 30%, #5fd3c8, var(--teal)); }
.orb.o2 { width: 34vmax; height: 34vmax; right: -10vmax; top: 18vh; background: radial-gradient(circle at 40% 40%, #ffd57a, var(--sun)); animation-delay: -7s; }
.orb.o3 { width: 30vmax; height: 30vmax; left: 30vw; bottom: -14vmax; background: radial-gradient(circle at 50% 50%, #8fdcf0, var(--blue)); opacity: .45; animation-delay: -13s; }
@keyframes float {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4vw, -3vh, 0) scale(1.06); }
  100% { transform: translate3d(-2vw, 4vh, 0) scale(.97); }
}
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Liquid glass material ---------- */
.glass {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.22) 45%, rgba(255,255,255,.32) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(185%);
  backdrop-filter: blur(18px) saturate(185%);
  box-shadow:
    inset 1.5px 1.5px 0 rgba(255,255,255,.85),
    inset -1px -1px 0 rgba(255,255,255,.35),
    inset 0 0 24px rgba(255,255,255,.25),
    0 1px 2px rgba(12,95,91,.06),
    0 24px 60px -24px rgba(12,95,91,.35);
}
/* rim light */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: linear-gradient(140deg, rgba(255,255,255,.95), rgba(255,255,255,.1) 35%, rgba(255,255,255,.05) 65%, rgba(255,255,255,.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
/* specular highlight that follows the pointer */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 30%) var(--my, 0%), rgba(255,255,255,.55), transparent 45%);
  opacity: .7; transition: opacity .4s var(--ease);
}
/* refraction layer (Chromium); harmless elsewhere */
.lens { position: absolute; inset: 0; border-radius: inherit; z-index: -2; pointer-events: none; overflow: hidden;
  -webkit-backdrop-filter: url(#liquid);
  backdrop-filter: url(#liquid); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255,255,255,.9); }
}

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: flex-end; gap: 10px; text-decoration: none; color: var(--blue); line-height: 1; }
.logo-text { display: inline-grid; }
.logo-text small { font-size: .72rem; font-weight: 500; letter-spacing: .02em; color: var(--blue); }
.logo-text strong { font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; color: var(--blue); }
.logo-text em { font-style: normal; font-size: .72rem; font-weight: 600; color: var(--sun-deep); justify-self: end; margin-top: 2px; }
.logo-text { position: relative; padding-bottom: 6px; }
.logo-smile { position: absolute; left: -2px; bottom: -6px; width: 58px; height: 12px; overflow: visible; }

/* ---------- Nav ---------- */
.nav-wrap { position: sticky; top: 14px; z-index: 50; padding: 0 16px; }
.nav {
  margin: 14px auto 0; max-width: 1180px; border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 22px; transition: padding .35s var(--ease), max-width .35s var(--ease);
}
.nav.scrolled { max-width: 1040px; padding-top: 7px; padding-bottom: 7px; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a {
  position: relative; text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--ink);
  padding: 9px 15px; border-radius: 999px; transition: background .25s var(--ease), color .25s;
}
.menu a:hover { background: rgba(255,255,255,.5); }
.menu a[aria-current="page"] { color: var(--teal-deep); background: rgba(255,255,255,.65); box-shadow: inset 0 0 0 1px rgba(255,255,255,.9); }
.menu .cta { color: #fff; background: linear-gradient(135deg, var(--teal-2), var(--teal-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 20px -8px rgba(12,95,91,.7); }
.menu .cta:hover { background: linear-gradient(135deg, var(--teal), var(--teal-deep)); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Layout & type ---------- */
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 96px 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: .76rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--teal-deep); }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--sun); }
h1, h2, h3 { margin: 0 0 16px; line-height: 1.08; letter-spacing: -.025em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.hl { background: linear-gradient(120deg, var(--teal) 0%, var(--blue) 60%, var(--teal-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.smile-word { position: relative; white-space: nowrap; }
.smile-word svg { position: absolute; left: 4%; right: 4%; width: 92%; bottom: -.22em; height: .38em; overflow: visible; }
.smile-word path { stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 1.4s .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--teal-2), var(--teal-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 14px 30px -12px rgba(12,95,91,.75); }
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 20px 36px -12px rgba(12,95,91,.8); }
.btn-glass { color: var(--ink); background: rgba(255,255,255,.45);
  -webkit-backdrop-filter: blur(12px) saturate(180%); backdrop-filter: blur(12px) saturate(180%);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.9), inset 0 0 0 1px rgba(255,255,255,.55), 0 10px 26px -14px rgba(12,95,91,.45); }
.btn-sun { color: #3b2600; background: linear-gradient(135deg, #ffd06a, var(--sun-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 14px 30px -12px rgba(233,150,28,.7); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Hero ---------- */
.hero { padding-top: 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: stretch; }
.hero-main { padding: clamp(32px, 5vw, 64px); }
.hero-main .lead { font-size: 1.1rem; color: var(--muted); max-width: 54ch; margin-top: 30px; }
.hero-side { display: grid; gap: 18px; grid-template-rows: 1fr auto; }
.hero-visual { display: grid; place-items: center; min-height: 300px; overflow: hidden; padding: 24px; }
.hero-visual .badge { position: absolute; left: 22px; bottom: 20px; font-size: .78rem; font-weight: 600; color: var(--teal-deep);
  padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.9); }
.bubble { position: relative; width: min(260px, 70%); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.95) 0 6%, transparent 7%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.15) 0 55%, rgba(31,163,155,.25) 75%, rgba(27,154,179,.45) 100%);
  box-shadow: inset 10px 14px 30px rgba(255,255,255,.85), inset -14px -18px 40px rgba(12,95,91,.35), 0 40px 70px -30px rgba(12,95,91,.55);
  -webkit-backdrop-filter: blur(6px) saturate(200%); backdrop-filter: blur(6px) saturate(200%);
  animation: bob 7s ease-in-out infinite; }
.bubble svg { position: absolute; inset: 0; margin: auto; width: 56%; height: 56%; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(-3deg); } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px; }
.chip { font-size: .82rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; color: var(--teal-deep);
  background: rgba(255,255,255,.55); box-shadow: inset 1px 1px 0 rgba(255,255,255,.95), inset 0 0 0 1px rgba(255,255,255,.6); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 10px; margin-top: 22px; }
.stat { padding: 22px 24px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: linear-gradient(transparent, rgba(12,95,91,.2), transparent); }
.stat b { display: block; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1; letter-spacing: -.03em; color: var(--teal-deep); }
.stat span { display: block; margin-top: 8px; font-size: .86rem; color: var(--muted); }

/* ---------- Section head ---------- */
.head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.head p { max-width: 46ch; color: var(--muted); margin: 0; }

/* ---------- Treatments ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { padding: 28px; transition: transform .45s var(--ease); }
.card:hover { transform: translateY(-6px); }
.card p { color: var(--muted); font-size: .94rem; margin: 0; }
.card.feature { grid-column: span 2; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
  background: linear-gradient(135deg, rgba(31,163,155,.85), rgba(12,95,91,.85)); color: #fff; }
.card.feature p { color: rgba(255,255,255,.85); }
.card.feature .icon { width: 72px; height: 72px; border-radius: 22px; }
.card.feature .icon svg { width: 36px; height: 36px; }
.icon { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,255,255,.35));
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 rgba(12,95,91,.1), 0 10px 20px -10px rgba(12,95,91,.5); }
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--teal-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon svg .sun { stroke: var(--sun-deep); }
.card.feature .icon { margin: 0; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; padding: clamp(30px, 5vw, 60px); }
.split .muted { font-size: 1.02rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  padding: 18px 20px; border-radius: 22px; background: rgba(255,255,255,.42);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.95), inset 0 0 0 1px rgba(255,255,255,.55); }
.steps li::before { content: counter(s, decimal-leading-zero); font-weight: 700; font-size: .85rem; color: var(--sun-deep);
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(245,179,53,.16); }
.steps strong { display: block; color: var(--teal-deep); }
.steps span { color: var(--muted); font-size: .92rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: 16px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px;
  background: linear-gradient(var(--sun), var(--teal), var(--blue)); }
.tl { position: relative; padding: 22px 24px; }
.tl::marker { content: none; }
.tl .dot { position: absolute; left: -26px; top: 28px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px rgba(31,163,155,.25), inset 0 0 0 4px var(--teal); }
.tl b { color: var(--sun-deep); font-size: .9rem; letter-spacing: .04em; }
.tl h3 { margin: 4px 0 6px; }
.tl p { margin: 0; color: var(--muted); }

/* ---------- Info cards ---------- */
.info-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.info { padding: 26px 28px; }
.info h3 { margin-bottom: 6px; }
.info p { margin: 0; color: var(--muted); }
.info a { text-decoration: none; }
.info a:hover { color: var(--teal-deep); }

/* ---------- CTA band ---------- */
.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: clamp(30px, 5vw, 56px);
  background: linear-gradient(120deg, rgba(31,163,155,.9), rgba(27,154,179,.85) 60%, rgba(12,95,91,.9)); color: #fff; }
.cta-band .eyebrow { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); margin: 0; }

/* ---------- Map ---------- */
.map { overflow: hidden; padding: 10px; }
.map iframe { width: 100%; height: 360px; border: 0; border-radius: calc(var(--radius) - 10px); display: block; }

/* ---------- Footer ---------- */
.footer { margin-top: 96px; padding: 0 16px 28px; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 36px clamp(24px, 4vw, 44px);
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.footer h4 { margin: 0 0 10px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep); }
.footer p, .footer a { color: var(--muted); font-size: .92rem; text-decoration: none; margin: 0 0 6px; display: block; }
.footer a:hover { color: var(--teal-deep); }
.footer-bottom { max-width: 1180px; margin: 16px auto 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: .8rem; color: var(--muted); padding: 0 8px; }

/* ---------- Floating WhatsApp ---------- */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #3ddc84, #128c4b); color: #fff;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.5), 0 16px 30px -10px rgba(18,140,75,.7); transition: transform .3s var(--ease); }
.wa:hover { transform: scale(1.06); }
.wa svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .card.feature { grid-column: span 1; grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav { border-radius: 28px; flex-wrap: wrap; padding: 10px 10px 10px 18px; }
  .menu { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 6px 0 4px; }
  .menu.open { display: flex; }
  .menu a { text-align: center; padding: 12px; }
  .section { padding-top: 72px; }
  .hero { padding-top: 28px; }
  .hero-visual { min-height: 240px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .bubble { animation: none; }
  .smile-word path { animation: none; stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .wa { transition: none; }
}