/* ==========================================================================
   Karine Baldez — estilos
   Organização: tokens → base → componentes → seções → responsivo
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --rose: #c9716f;
  --rose-d: #a85553;
  --blush: #f4d3d0;
  --pale: #fceceb;
  --wine: #6e1f2b;
  --wine-d: #4d121c;
  --ink: #3a2a2c;
  --line: #f0cdca;
  --line-strong: #e3c0bd;
  --wa: #25d366;
  --star: #f5a623;
  --r: 18px;
  --header-h: 68px;
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--wine);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { font-family: 'DM Sans', system-ui, sans-serif; color: var(--ink); background: #fff; line-height: 1.6; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { color: var(--wine); line-height: 1.15; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .5em; }
section { padding: 90px 0; }
[hidden] { display: none !important; }

.wrap { width: min(1140px, 100% - 40px); margin: auto; }
.tag { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-d); margin-bottom: .8em; font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Foco visível para teclado (nunca remover) */
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--wine); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; gap: 10px; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px; border: 1px solid transparent; border-radius: 99px;
  background: var(--wine); color: #fff; font-weight: 500; font-size: .95rem; cursor: pointer;
  transition: background .2s, transform .2s, border-color .2s;
}
.btn:hover { background: var(--wine-d); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--out { background: #fff; color: var(--wine); border-color: var(--line-strong); }
.btn--out:hover { background: var(--pale); }
.btn--light { background: #fff; color: var(--wine); }
.btn--light:hover { background: var(--pale); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .75); }
.btn--ghost:hover { background: rgba(255, 255, 255, .15); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Cabeçalho fixo ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--wine); color: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .15); }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; min-height: var(--header-h); gap: 20px; }
.brand img { height: 18px; width: auto; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a:not(.btn) { padding: 10px 14px; border-radius: 99px; font-size: .92rem; transition: background .2s; }
.nav a:not(.btn):hover { background: rgba(255, 255, 255, .12); }
.nav a[aria-current="true"] { background: rgba(255, 255, 255, .2); }
.nav .btn { min-height: 42px; padding: 8px 20px; margin-left: 8px; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; color: #fff; cursor: pointer; border-radius: 12px; }
.nav-toggle svg { width: 26px; height: 26px; margin: auto; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(120deg, #7a2a35 0%, #a24f55 60%, #c06a69 100%); color: #fff; padding: 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: end; min-height: 600px; }
.hero__txt { align-self: center; padding: 50px 0; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.8vw, 3.6rem); margin-bottom: .5em; }
.hero__txt p { max-width: 28em; margin-bottom: 1.8em; font-size: 1.1rem; }
.hero__pic { position: relative; }
.hero__pic > img:first-child { width: 100%; max-height: 640px; object-fit: cover; object-position: top; border-radius: 260px 260px 0 0; }
.hero__pic .seal { position: absolute; right: 4%; top: 36%; width: 96px; height: auto; }
.proof { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; font-size: .82rem; }
.proof a, .proof span { background: rgba(255, 255, 255, .18); padding: 8px 14px; border-radius: 10px; }
.proof a:hover { background: rgba(255, 255, 255, .28); }

/* ---------- Dores ---------- */
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 34px 0; }
.card { background: var(--pale); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px; }
.card .ico-sm { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #f6c9c6; color: var(--wine); margin-bottom: 14px; }
.card .ico-sm svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.05rem; margin-bottom: .4em; }
.card p { font-size: .92rem; }
.foot { display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.foot p { max-width: 32em; color: var(--rose-d); }

/* ---------- Sobre ---------- */
.sobre { background: var(--blush); position: relative; overflow: hidden; }
.sobre::before { content: "K"; position: absolute; left: -40px; top: -60px; font-size: 30rem; font-weight: 700; color: rgba(255, 255, 255, .35); line-height: 1; pointer-events: none; }
.sobre .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; position: relative; }
.pcard { position: relative; max-width: 380px; width: 100%; justify-self: center; border-radius: var(--r); overflow: hidden; box-shadow: 0 24px 60px rgba(110, 31, 43, .25); }
.pcard img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; object-position: top; }
.pcard figcaption { position: absolute; inset: auto 0 0 0; padding: 70px 22px 20px; color: #fff; background: linear-gradient(transparent, rgba(60, 15, 22, .9)); }
.pcard b { display: block; font-size: 1.15rem; }
.sobre p { margin-bottom: 1em; }
.sobre h2 { margin-bottom: .8em; }
.mark { height: 70px; width: auto; margin-bottom: 22px; }

/* ---------- Protocolos ---------- */
.prot .head { display: flex; justify-content: space-between; gap: 30px; align-items: end; flex-wrap: wrap; margin-bottom: 34px; }
.prot .head h2 { max-width: 14em; margin-bottom: .3em; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.p { display: flex; flex-direction: column; background: var(--pale); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.p:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(110, 31, 43, .14); }
.p__ico { display: grid; place-items: center; aspect-ratio: 3/2; background: var(--blush); color: var(--wine); }
.p__ico svg { width: 72px; height: 72px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.p__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p__body h3 { font-size: 1.05rem; }
.p__body p { font-size: .9rem; }
.p__cta { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; min-height: 44px; font-size: .88rem; font-weight: 700; color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.p--exam { grid-column: 1 / -1; flex-direction: row; background: #fff; border-color: var(--line-strong); }
.p--exam .p__ico { aspect-ratio: auto; width: 190px; flex: none; }
.p--exam .p__body { flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 26px; }
.p--exam h3 { font-size: 1.2rem; margin-bottom: .3em; }
.p--exam .btn { flex: none; }

/* ---------- Avaliações ---------- */
.head-row { display: flex; justify-content: space-between; gap: 20px; align-items: end; flex-wrap: wrap; margin-bottom: 30px; }
.score { display: flex; align-items: center; gap: 12px; color: var(--wine); }
.score b { font-size: 2.4rem; line-height: 1; }
.score a { text-decoration: underline; text-underline-offset: 3px; font-size: .92rem; display: inline-block; min-height: 44px; line-height: 44px; }
.stars { color: var(--star); letter-spacing: 2px; }
.how { padding: 70px 0; background: var(--blush); }
.how .steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; padding: 0; }
.how .steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.how .steps b { color: var(--wine); display: block; margin-bottom: 6px; font-size: 1.05rem; }
@media (max-width: 700px) { .how .steps { grid-template-columns: 1fr; } }
.rgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.rc { background: var(--pale); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.rc p { font-size: .94rem; margin: 10px 0 14px; white-space: pre-line; }
.rc p.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rc b { color: var(--wine); font-size: .92rem; }
.rc small { display: block; color: #6d5558; }
.rc .au { display: flex; align-items: center; gap: 12px; }
.rc .av { flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--wine); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.rc .av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc .more { background: none; border: 0; color: var(--wine); font-size: .88rem; font-weight: 700; cursor: pointer; text-decoration: underline; min-height: 44px; padding-right: 12px; }

/* ---------- Clínica ---------- */
.clin { background: var(--pale); }
.clin .head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 34px; }
.clin .head p { align-self: end; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stats div { background: #fff; border-radius: var(--r); padding: 26px; border: 1px solid var(--line); }
.stats b { display: block; font-size: 2rem; color: var(--rose-d); }

/* ---------- Local ---------- */
.local .box { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; }
.map { border-radius: var(--r); overflow: hidden; min-height: 340px; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }
.info { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.info > div { background: var(--pale); border-radius: var(--r); padding: 20px; border: 1px solid var(--line); font-size: .95rem; }
.info b { display: block; color: var(--wine); }
.info a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- FAQ ---------- */
.faq { background: var(--pale); }
.faq .wrap { max-width: 780px; }
details { background: #fff; border-radius: 14px; margin-bottom: 12px; border: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; color: var(--wine); padding: 18px 24px; min-height: 56px; border-radius: 14px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; flex: none; }
details[open] summary::after { content: "–"; }
details p { padding: 0 24px 20px; }

/* ---------- Contato ---------- */
.contato { text-align: center; }
.contato .logo { height: 42px; width: auto; margin: 0 auto 22px; }
.contato p { max-width: 34em; margin: 0 auto 1.8em; }

/* ---------- Blog ---------- */
.bhero { background: linear-gradient(120deg, #7a2a35 0%, #a24f55 60%, #c06a69 100%); color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden; }
.bhero::after { content: "K"; position: absolute; right: 4%; top: -70px; font-size: 24rem; font-weight: 700; color: rgba(255, 255, 255, .08); line-height: 1; pointer-events: none; }
.bhero .wrap { position: relative; z-index: 1; }
.bhero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: .45em; max-width: 18em; }
.bhero p { max-width: 36em; font-size: 1.1rem; }
.bhero .post__meta { font-size: .88rem; opacity: .9; }
.bhero__tag { display: inline-block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; background: rgba(255, 255, 255, .18); padding: 6px 14px; border-radius: 99px; margin-bottom: 1.1em; }
.crumbs { font-size: .85rem; margin-bottom: 26px; opacity: .92; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.blog--top { background: var(--pale); padding-top: 60px; }
.blog--rel, .home-blog { background: var(--pale); }
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.home-blog .bgrid, .blog--rel .bgrid { margin-top: 34px; }
.bcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.bcard:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(110, 31, 43, .14); }
.bcard__img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; background: var(--blush); }
.post__fig { margin-bottom: 1.8em; }
.post__fig img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--r); }
.post__fig figcaption { font-size: .75rem; color: var(--rose-d); margin-top: 6px; text-align: right; }
.bcard__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.bcard .tag { margin-bottom: .5em; }
.bcard h3 { font-size: 1.15rem; margin-bottom: .5em; }
.bcard p { font-size: .92rem; margin-bottom: .6em; }
.post { padding: 50px 0 70px; }
.wrap--post { width: min(780px, 100% - 40px); }
.post__meta { margin-bottom: 0; }
.post__lead { font-size: 1.2rem; color: var(--wine); margin-bottom: 1.4em; padding-left: 18px; border-left: 4px solid var(--rose); }
.post__body h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 1.6em 0 .5em; }
.post__body p, .post__body ul, .post__body ol { margin-bottom: 1.1em; font-size: 1.05rem; line-height: 1.75; }
.post__body ul, .post__body ol { padding-left: 1.4em; }
.post__body li { margin-bottom: .4em; }
.post__body li::marker { color: var(--rose); font-weight: 700; }
.post__body a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.post__cta { background: linear-gradient(120deg, #7a2a35 0%, #a24f55 100%); color: #fff; border-radius: var(--r); padding: 36px 30px; margin: 2.4em 0 1.4em; text-align: center; }
.post__cta .mark { height: 56px; margin: 0 auto 14px; filter: brightness(0) invert(1); opacity: .85; }
.post__cta h2 { color: #fff; font-size: 1.6rem; }
.post__cta p { margin-bottom: 1.4em; font-size: 1rem; }
.post__note { font-size: .82rem; color: var(--rose-d); }
.home-blog .head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
@media (max-width: 900px) { .bgrid { grid-template-columns: 1fr 1fr; } .bhero { padding: 40px 0 48px; } }
@media (max-width: 520px) { .bgrid { grid-template-columns: 1fr; } }

/* ---------- Rodapé ---------- */
footer { background: var(--wine); color: #f0d6d3; padding: 40px 0; font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
footer img { height: 38px; width: auto; }
footer a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- WhatsApp flutuante ---------- */
.wa { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); z-index: 40; transition: transform .2s; }
.wa:hover { transform: scale(1.07); }
.wa svg { width: 30px; fill: #fff; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  section { padding: 60px 0; }
  .nav-toggle { display: grid; }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: var(--wine); box-shadow: 0 14px 20px rgba(0, 0, 0, .2); display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 8px; border-radius: 8px; }
  .nav .btn { margin: 10px 0 0; }
  .hero__grid, .sobre .wrap, .clin .head, .local .box { grid-template-columns: 1fr; }
  .hero__grid { min-height: 0; }
  .hero__pic > img:first-child { max-height: 460px; }
  .cards4, .cards3, .rgrid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr; }
  .p--exam, .p--exam .p__body { flex-direction: column; align-items: flex-start; }
  .p--exam .p__ico { width: auto; aspect-ratio: 3/1; align-self: stretch; }
}
@media (max-width: 520px) {
  .cards4, .cards3, .rgrid { grid-template-columns: 1fr; }
  .sobre .wrap { gap: 40px; }
}

/* Respeita preferência por menos movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
