/* Liberty Fisioterapia · layout próprio sobre o modelo KEYD.
   Cores e fontes vêm de cliente.js (--p --c --a --e --f --s --ft --fx --fm) */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { background: var(--f); color: var(--e); font-family: var(--fx); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.ico { width: 22px; height: 22px; flex: none; }
.ico .a { stroke: var(--a); }
.ico .f { fill: var(--a); stroke: none; }
.ico.sm { width: 18px; height: 18px; }
.ico-wrap { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 18px 18px 18px 6px; background: var(--s); color: var(--p); flex: none; }
.ico-wrap .ico { width: 28px; height: 28px; }
.ico-wrap.sm { width: 38px; height: 38px; border-radius: 12px 12px 12px 4px; }
.ico-wrap.sm .ico { width: 21px; height: 21px; }

h1, h2, h3 { font-family: var(--ft); font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; }
h1 { font-size: clamp(40px, 5.4vw, 66px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 18px; max-width: 760px; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: normal; color: var(--p); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--c) 28%, transparent) 62%); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--a); }
.lead { font-size: 18px; opacity: .8; max-width: 560px; }
.head { margin-bottom: 40px; }
.head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.head h2 { margin-bottom: 0; }

.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--p); color: #fff; padding: 15px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px var(--p); background: color-mix(in srgb, var(--p) 88%, #000); }
.btn .ico { width: 20px; height: 20px; }
.btn .ico .a { stroke: currentColor; } .btn .ico .f { fill: currentColor; }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-ghost { background: #fff; color: var(--e); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--e) 14%, transparent); }
.btn-ghost:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--p), 0 12px 26px -16px var(--p); }
.btn-ghost .ico { color: var(--p); }
.btn-light { background: #fff; color: var(--p); }
.btn-light:hover { background: #fff; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0; }
.stars { color: #F2B01E; letter-spacing: 2px; }

/* topo */
.topbar { background: var(--e); color: color-mix(in srgb, #fff 82%, transparent); font-size: 13.5px; }
.topbar-in { display: flex; gap: 28px; justify-content: flex-end; align-items: center; height: 38px; }
.topbar-in > * { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.topbar .ico { width: 16px; height: 16px; color: var(--c); }
.topbar .ico .a { stroke: #8DC7FF; }
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--f) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--e) 8%, transparent); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-family: var(--fm); font-weight: 400; font-size: 32px; color: var(--p); letter-spacing: 0; }
.brand small { font-size: 10.5px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--c); margin: 2px 0 0 6px; }
.nav nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav nav a { text-decoration: none; opacity: .72; position: relative; }
.nav nav a:hover { opacity: 1; }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--c); transition: right .2s; }
.nav nav a:hover::after { right: 0; }

/* hero */
.hero { padding: 56px 0 96px; }
.hero-in { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 7px 14px 7px 10px; font-size: 14px; font-weight: 600; color: var(--p); box-shadow: 0 1px 0 color-mix(in srgb, var(--e) 6%, transparent), 0 8px 24px -16px var(--p); margin-bottom: 22px; }
.pill .ico { width: 18px; height: 18px; color: var(--c); }
.sub { font-size: 19px; opacity: .78; max-width: 540px; margin-top: 22px; }
.selos { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 28px; padding-top: 26px; border-top: 1px solid color-mix(in srgb, var(--e) 10%, transparent); }
.selos li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; opacity: .9; }
.selos li .ico { width: 26px; height: 26px; color: var(--p); }
.selos b { display: block; font-size: 15px; }
.hero-media { position: relative; padding: 20px 10px 30px 30px; }
.blob { position: absolute; inset: -6% -8% -4% -4%; width: 112%; height: 110%; z-index: 0; }
.blob path { fill: color-mix(in srgb, var(--c) 22%, var(--f)); }
.hero-img { position: relative; z-index: 1; aspect-ratio: 4/5; border-radius: 200px 200px 28px 28px; background: var(--s) center/cover; box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--e) 55%, transparent); }
.float { position: absolute; z-index: 2; background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.3); font-size: 14px; }
.float-top { top: 70px; left: -6px; display: grid; gap: 1px; }
.float-top b { font-family: var(--ft); font-size: 18px; }
.float-top small { opacity: .65; }
.float-bot { bottom: 52px; right: -10px; display: flex; align-items: center; gap: 10px; }
.float-bot .ico { color: var(--p); width: 26px; height: 26px; }
.float-bot b { color: var(--p); }

/* seções */
.sec { padding: 96px 0; }
.band { background: linear-gradient(180deg, var(--s), color-mix(in srgb, var(--s) 60%, var(--f))); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: #fff; border-radius: 24px; padding: 28px 26px 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 1px 0 color-mix(in srgb, var(--e) 6%, transparent); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px color-mix(in srgb, var(--p) 70%, transparent); }
.card .ico-wrap { margin-bottom: 6px; }
.card p { opacity: .72; font-size: 15px; flex: 1; }
.card a { color: var(--p); font-weight: 600; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.card a .ico { transition: transform .15s; } .card a:hover .ico { transform: translateX(3px); }
.conds { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 36px; }
.conds p { font-weight: 600; margin-right: 6px; }
.conds span { background: #fff; color: var(--p); padding: 8px 15px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }

/* equipe */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pro { background: #fff; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 color-mix(in srgb, var(--e) 6%, transparent); }
.pro-top { position: relative; height: 128px; background: linear-gradient(135deg, var(--p), var(--c)); margin-bottom: 72px; }
.pro-top::after { content: ""; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 22px solid color-mix(in srgb, #fff 10%, transparent); }
.pro-foto { position: absolute; left: 26px; bottom: -62px; width: 132px; height: 132px; border-radius: 50%; border: 5px solid #fff; background: var(--s) center 12%/cover; cursor: zoom-in; box-shadow: 0 14px 30px -16px rgba(0,0,0,.45); transition: transform .2s; z-index: 1; }
.pro-foto:hover { transform: scale(1.04); }
.pro-reg { align-self: flex-start; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--p); background: var(--s); padding: 4px 10px; border-radius: 999px; }
.pro-txt { padding: 0 26px 26px; display: flex; flex-direction: column; flex: 1; }
.pro-cargo { color: var(--c); font-weight: 600; font-size: 15px; margin-top: 6px; }
.pro ul { list-style: none; margin: 18px 0 22px; display: grid; align-content: start; gap: 8px; font-size: 15px; flex: 1; }
.pro li { display: flex; gap: 9px; align-items: flex-start; opacity: .88; }
.pro li .ico { width: 18px; height: 18px; color: var(--c); margin-top: 3px; }
.pro-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--e) 8%, transparent); }
.link { background: none; border: 0; color: var(--p); font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--p) 35%, transparent); }
.pro-ig { margin-left: auto; color: var(--p); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--s); }

/* fotos da clínica */
.mosaic { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: repeat(2, 300px); gap: 16px; }
.tile { position: relative; border: 0; border-radius: 24px; overflow: hidden; background: var(--s) center/cover; cursor: zoom-in; text-align: left; transition: transform .25s; }
.tile:first-child { grid-row: span 2; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--e) 80%, transparent)); }
.tile span { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; color: #fff; font-weight: 600; font-size: 15px; }
.tile:hover { transform: scale(1.015); }

/* sobre */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.sobre-foto { position: relative; aspect-ratio: 4/5; max-height: 600px; border-radius: 28px 28px 28px 120px; background: var(--s) center 20%/cover; box-shadow: 0 30px 60px -32px color-mix(in srgb, var(--e) 60%, transparent); }
.sobre-foto figcaption { position: absolute; right: -18px; bottom: 34px; background: #fff; border-radius: 18px; padding: 14px 18px; display: grid; justify-items: start; font-size: 13.5px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.3); }
.sobre-foto figcaption b { font-family: var(--ft); font-size: 30px; line-height: 1; }
.checks { list-style: none; margin: 26px 0 32px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: center; font-weight: 500; }

/* destaque */
.promo { background: var(--e); color: #fff; padding: 52px 0; position: relative; overflow: hidden; }
.promo::before { content: ""; position: absolute; left: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: color-mix(in srgb, var(--c) 30%, transparent); filter: blur(10px); }
.promo-in { position: relative; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.promo-in > div { flex: 1; min-width: 260px; }
.promo-ico { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 20px 20px 20px 6px; background: color-mix(in srgb, #fff 12%, transparent); color: #fff; }
.promo-ico .ico { width: 34px; height: 34px; } .promo-ico .a { stroke: #8DC7FF; }
.promo h2 { margin-bottom: 6px; font-size: clamp(26px, 3vw, 36px); }
.promo p { opacity: .78; max-width: 620px; }

/* avaliações */
.rating { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.rating b { font-family: var(--ft); font-size: 56px; line-height: 1; color: var(--p); }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.reviews blockquote { background: #fff; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 1px 0 color-mix(in srgb, var(--e) 6%, transparent); position: relative; }
.reviews p { flex: 1; font-size: 16px; }
.reviews footer { display: flex; align-items: center; gap: 12px; font-size: 13.5px; opacity: .85; }
.reviews footer b { display: block; font-size: 15px; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--s); color: var(--p); font-weight: 700; }

/* passos */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { background: #fff; border-radius: 24px; padding: 30px; position: relative; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 56px; right: -18px; width: 18px; height: 2px; background: var(--c); }
.steps small { display: block; margin: 18px 0 4px; font-weight: 600; color: var(--c); letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.steps p { opacity: .72; margin-top: 6px; }

/* onde */
.onde { align-items: stretch; }
.addr { font-size: 17px; margin: 6px 0 22px; }
.hours { width: 100%; border-collapse: collapse; background: #fff; border-radius: 18px; overflow: hidden; }
.hours th, .hours td { text-align: left; padding: 14px 20px; border-bottom: 1px solid color-mix(in srgb, var(--e) 6%, transparent); font-size: 15px; }
.hours th { font-weight: 600; }
.hours td { text-align: right; color: var(--p); font-weight: 600; }
.hours tr.off td { color: inherit; opacity: .5; font-weight: 400; }
.map { border-radius: 28px; overflow: hidden; min-height: 420px; background: var(--s); box-shadow: 0 30px 60px -36px color-mix(in srgb, var(--e) 60%, transparent); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* final e rodapé */
.final { background: linear-gradient(135deg, var(--p), color-mix(in srgb, var(--p) 60%, var(--c))); color: #fff; text-align: center; padding: 92px 0; }
.final-ico { display: inline-grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: color-mix(in srgb, #fff 14%, transparent); margin-bottom: 22px; }
.final-ico .ico { width: 36px; height: 36px; } .final-ico .a { stroke: #fff; }
.final h2 { margin: 0 auto 30px; }
.final h2 em { color: #fff; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--a) 55%, transparent) 62%); }
.foot { padding: 36px 0; font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 40px; height: 40px; border-radius: 50%; }
.foot-brand span { display: flex; flex-direction: column; line-height: 1; }
.foot-brand b { font-family: var(--fm); font-weight: 400; font-size: 28px; color: var(--p); }
.foot-brand small { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--c); font-weight: 600; margin-left: 5px; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; }
.foot-links .ico { color: var(--p); width: 20px; height: 20px; }
.credit { opacity: .6; }

.wa-float { position: fixed; right: 18px; bottom: 18px; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px -8px rgba(0,0,0,.4); z-index: 20; }
.wa-float .ico { width: 30px; height: 30px; } .wa-float .ico .f { fill: #fff; }

.viewer { margin: auto; border: 0; border-radius: 22px; padding: 0; max-width: min(92vw, 720px); max-height: 92vh; background: #fff; overflow: visible; }
.viewer::backdrop { background: color-mix(in srgb, var(--e) 78%, transparent); backdrop-filter: blur(3px); }
.viewer img { display: block; width: 100%; max-height: 82vh; object-fit: contain; border-radius: 22px 22px 0 0; background: #111; }
.viewer p { padding: 12px 18px; font-weight: 600; font-size: 15px; }
.viewer button { position: absolute; top: -14px; right: -14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; font-size: 24px; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.25); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 1000px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 380px repeat(3, 240px); }
  .tile:first-child { grid-row: auto; grid-column: span 2; }
}
@media (max-width: 900px) {
  .topbar-in { justify-content: center; } .topbar-in > :nth-child(2) { display: none; }
  .nav nav { display: none; }
  .nav-in .btn { margin-left: auto; }
  .hero { padding-top: 32px; }
  .hero-in, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { max-width: 480px; margin: 0 auto; width: 100%; }
  .reviews, .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .sec { padding: 68px 0; }
  .sobre-foto { max-width: 480px; width: 100%; margin: 0 auto; }
  .sobre-foto figcaption { right: 12px; }
}
@media (max-width: 620px) {
  .cards, .team { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 300px repeat(3, 190px); gap: 10px; }
  .topbar { font-size: 12.5px; } .topbar-in { gap: 16px; }
  .brand b { font-size: 28px; } .brand img { width: 40px; height: 40px; }
  .float-top { left: 0; top: 40px; } .float-bot { right: 0; bottom: 40px; }
  .viewer button { top: 8px; right: 8px; }
  .map, .map iframe { min-height: 320px; }
}
