/*
Theme Name: Instituto Reabilis
Theme URI: https://institutoreabilis.com.br/
Author: Instituto Reabilis
Description: Tema institucional premium e responsivo do Instituto Reabilis.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: instituto-reabilis
*/

:root {
  --navy: #06284d;
  --navy-deep: #031b35;
  --navy-soft: #153b61;
  --gold: #c6a261;
  --gold-light: #e7ce9c;
  --ivory: #f2eadf;
  --paper: #eee7dc;
  --surface: #fbf7f0;
  --white: #ffffff;
  --ink: #10283f;
  --muted: #5e7183;
  --line: rgba(6, 40, 77, .14);
  --green: #18a66f;
  --green-dark: #108257;
  --content: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.reabilis-theme { padding: 0; }
body.reabilis-theme #wpadminbar { position: fixed; }
body.reabilis-theme.admin-bar .site-header { top: 32px; }
main { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, .button, .site-header nav, .brand strong { font-family: "Montserrat", "Segoe UI", Arial, sans-serif; }
#conteudo, #tratamentos, #especialistas, #instituto, #duvidas, #contato { scroll-margin-top: 96px; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 200; transform: translateY(-160%); background: var(--white); color: var(--navy); padding: 11px 15px; box-shadow: 0 8px 30px rgba(0,0,0,.18); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.topbar { display: flex; min-height: 34px; align-items: center; justify-content: center; gap: 32px; background: var(--navy-deep); color: rgba(255,255,255,.76); padding: 7px 24px; font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.topbar span + span { position: relative; }
.topbar span + span::before { position: absolute; top: 50%; left: -18px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); content: ""; }

.site-header { position: sticky; top: 0; z-index: 80; display: flex; min-height: 92px; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); background: rgba(246,240,230,.96); padding: 10px max(5vw, calc((100vw - var(--content)) / 2)); backdrop-filter: blur(16px); }
.brand { display: flex; min-width: 240px; align-items: center; gap: 13px; }
.brand > img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; }
.brand > span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { color: var(--navy); font-size: 18px; font-weight: 700; letter-spacing: .01em; }
.brand small { margin-top: 6px; color: #8b6a36; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.site-header > nav { display: flex; align-items: center; gap: 30px; }
.site-header > nav a { position: relative; color: #243c52; font-size: 14px; font-weight: 700; }
.site-header > nav a::after { position: absolute; right: 0; bottom: -9px; left: 0; height: 2px; background: var(--gold); content: ""; transform: scaleX(0); transition: transform .2s ease; }
.site-header > nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 9px; }

.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 11px; border: 0; border-radius: 8px; background: var(--green); color: var(--white); padding: 15px 24px; box-shadow: 0 13px 30px rgba(24,166,111,.24); font-size: 14px; font-weight: 700; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { background: var(--green-dark); box-shadow: 0 16px 36px rgba(24,166,111,.3); transform: translateY(-2px); }
.whatsapp-icon { flex: none; object-fit: contain; }
.header-cta { min-height: 46px; padding: 12px 18px; }

.mobile-menu { position: relative; display: none; }
.mobile-menu summary { display: grid; width: 44px; height: 44px; place-content: center; gap: 4px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); cursor: pointer; list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { width: 18px; height: 2px; background: var(--navy); transition: .2s; }
.mobile-menu[open] summary span:first-child { transform: translateY(6px) rotate(45deg); }
.mobile-menu[open] summary span:nth-child(2) { opacity: 0; }
.mobile-menu[open] summary span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu nav { position: absolute; top: 54px; right: 0; display: flex; min-width: 255px; flex-direction: column; gap: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px; box-shadow: 0 24px 55px rgba(3,27,53,.18); }
.mobile-menu nav > a:not(.button) { border-radius: 7px; padding: 12px 13px; font-size: 14px; font-weight: 650; }
.mobile-menu nav > a:not(.button):hover { background: var(--ivory); }
.mobile-menu .button { margin-top: 7px; }

.eyebrow { margin: 0 0 18px; color: #98733b; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow.light { color: var(--gold-light); }
.hero { display: grid; min-height: 710px; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); background: var(--navy); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 82px 6vw 70px max(7vw, calc((100vw - var(--content)) / 2)); color: var(--white); }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(48px, 4.4vw, 68px); font-weight: 700; letter-spacing: -.04em; line-height: 1.08; }
.hero-lead { max-width: 650px; margin: 28px 0 0; color: #dbe4eb; font-size: 19px; line-height: 1.72; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.text-link { border-bottom: 1px solid rgba(255,255,255,.65); color: var(--white); padding: 10px 0; font-family: "Montserrat", sans-serif; font-size: 14px; font-weight: 700; }
.text-link span { margin-left: 9px; color: var(--gold-light); }
.hero-trust { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 55px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 24px; }
.hero-trust div { display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,.15); padding: 0 22px; }
.hero-trust div:first-child { padding-left: 0; }
.hero-trust div:last-child { border-right: 0; }
.hero-trust strong { font-size: 14px; }
.hero-trust span { margin-top: 5px; color: #c6d2dc; font-size: 12px; }
.hero-visual { position: relative; min-height: 710px; overflow: hidden; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,40,77,.42), transparent 35%), linear-gradient(0deg, rgba(3,27,53,.5), transparent 45%); }
.hero-card { position: absolute; right: 34px; bottom: 34px; left: 34px; display: flex; align-items: end; justify-content: space-between; gap: 30px; border-top: 1px solid rgba(255,255,255,.58); color: var(--white); padding-top: 17px; }
.hero-card span { color: var(--gold-light); font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.hero-card strong { max-width: 310px; text-align: right; font-size: 18px; font-weight: 650; line-height: 1.4; }

.conversion-band { display: flex; align-items: center; justify-content: space-between; gap: 50px; background: var(--gold); padding: 28px max(7vw, calc((100vw - var(--content)) / 2)); }
.conversion-band > div { display: flex; flex-direction: column; }
.conversion-band strong { color: var(--navy-deep); font-size: 20px; }
.conversion-band span { margin-top: 4px; color: #3a352c; font-size: 15px; }
.conversion-band .button { background: var(--green); color: var(--white); box-shadow: 0 13px 28px rgba(16,130,87,.24); white-space: nowrap; }
.conversion-band .button:hover { background: var(--green-dark); }

.section { padding: 104px max(7vw, calc((100vw - var(--content)) / 2)); }
.section-heading { margin-bottom: 52px; }
.section-heading h2, .institute-copy h2, .faq-intro h2, .final-cta h2 { margin: 0; font-size: clamp(42px, 3.6vw, 56px); font-weight: 700; letter-spacing: -.035em; line-height: 1.12; }
.section-heading > p, .section-heading > div > p:last-child { color: var(--muted); }
.centered-heading { max-width: 850px; margin-right: auto; margin-left: auto; text-align: center; }
.centered-heading > p:last-child { max-width: 720px; margin: 22px auto 0; color: var(--muted); font-size: 17px; }
.split-heading { display: grid; grid-template-columns: 1.25fr .65fr; align-items: end; gap: 80px; }
.split-heading > div { max-width: 800px; }
.split-heading > p { max-width: 460px; margin: 0; font-size: 16px; line-height: 1.8; }
.section-cta { display: flex; align-items: center; flex-direction: column; gap: 10px; margin-top: 46px; text-align: center; }
.section-cta small { color: var(--muted); font-size: 12px; letter-spacing: .02em; }

.advantages { position: relative; background: radial-gradient(circle at 12% 15%, rgba(198,162,97,.18), transparent 28%), linear-gradient(135deg, #eee2d2 0%, #f5eee4 54%, #e7eef2 100%); }
.advantages::after { position: absolute; right: -120px; bottom: -160px; width: 360px; height: 360px; border: 1px solid rgba(6,40,77,.08); border-radius: 50%; content: ""; }
.advantage-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.advantage-grid article { min-height: 300px; border: 1px solid rgba(6,40,77,.12); border-radius: 12px; background: rgba(251,247,240,.82); padding: 30px; box-shadow: 0 18px 45px rgba(6,40,77,.06); backdrop-filter: blur(8px); }
.advantage-grid span, .treatment-card > span { color: #98733b; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.advantage-grid h3 { margin: 58px 0 16px; color: var(--navy); font-size: 22px; font-weight: 700; line-height: 1.3; }
.advantage-grid p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.78; }

.treatments { background: linear-gradient(145deg, #dfe8ee 0%, #eee6da 52%, #e5ddd2 100%); }
.treatment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.treatment-card { min-height: 300px; border: 1px solid var(--line); border-radius: 10px; background: rgba(251,247,240,.94); padding: 31px; box-shadow: 0 12px 32px rgba(6,40,77,.05); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.treatment-card:hover { border-color: rgba(198,162,97,.7); box-shadow: 0 20px 42px rgba(6,40,77,.08); transform: translateY(-4px); }
.treatment-card h3 { margin: 58px 0 15px; color: var(--navy); font-size: 23px; font-weight: 700; line-height: 1.25; }
.treatment-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.78; }

.specialists { background: var(--navy-deep); color: var(--white); }
.light-heading h2 { color: var(--white); }
.light-heading > p { color: #bdcad5; }
.featured-team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.professional-card { overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: #0a3158; }
.professional-card.featured { display: grid; min-height: 500px; grid-template-columns: 52% 48%; }
.professional-card.compact { display: grid; grid-template-rows: 300px auto; }
.professional-photo { position: relative; min-height: 100%; overflow: hidden; background: #d9d9d7; }
.professional-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.93) contrast(1.02); transition: transform .35s ease; }
.professional-card:hover .professional-photo img { transform: scale(1.02); }
.professional-photo.cleber img { object-position: center 22%; }
.professional-photo.bryan img { object-position: center 14%; }
.professional-photo.thalia img { object-position: center 18%; }
.professional-photo.luis img { object-position: center 17%; }
.professional-photo.leticia img { object-position: center 14%; }
.professional-photo.raquel img { object-position: center 13%; }
.professional-copy { display: flex; flex-direction: column; justify-content: center; padding: 34px; }
.professional-card.compact .professional-copy { justify-content: flex-start; min-height: 235px; padding: 24px; }
.professional-copy > span { color: var(--gold-light); font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.professional-copy h3 { margin: 13px 0 16px; font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.professional-card.compact h3 { font-size: 22px; }
.professional-copy p { margin: 0; color: #d0dae2; font-size: 14px; line-height: 1.78; }
.specialists .section-cta small { color: #9fb1c1; }

.institute { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); align-items: center; gap: 82px; background: linear-gradient(135deg, #eee3d5 0%, #f6efe5 55%, #e4ebef 100%); }
.institute-gallery { position: relative; min-height: 650px; }
.clinic-photo { position: absolute; overflow: hidden; border-radius: 11px; box-shadow: 0 24px 60px rgba(6,40,77,.15); }
.clinic-photo img { width: 100%; height: 100%; object-fit: cover; }
.clinic-photo-main { inset: 0 74px 78px 0; }
.clinic-photo-detail { right: 0; bottom: 0; width: 46%; height: 47%; border: 8px solid var(--paper); }
.institute-copy > p:not(.eyebrow) { margin: 26px 0 0; color: var(--muted); font-size: 17px; line-height: 1.82; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; border-top: 1px solid var(--line); padding-top: 25px; }
.principles div { display: flex; flex-direction: column; }
.principles strong { color: var(--navy); font-size: 14px; }
.principles span { margin-top: 5px; color: var(--muted); font-size: 13px; }
.institute-copy .section-cta { align-items: flex-start; }

.process { background: radial-gradient(circle at 90% 20%, rgba(198,162,97,.16), transparent 28%), #ece3d7; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; }
.process-grid li { display: grid; min-height: 235px; grid-template-columns: 42px 1fr; gap: 20px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); padding: 30px 34px 30px 0; }
.process-grid li + li { padding-left: 34px; }
.process-grid li:last-child { border-right: 0; }
.process-grid li > span { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: #8c672f; font-size: 12px; font-weight: 800; }
.process-grid h3 { margin: 5px 0 13px; color: var(--navy); font-size: 22px; font-weight: 700; line-height: 1.3; }
.process-grid p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.78; }

.faq { display: grid; grid-template-columns: .72fr 1.28fr; gap: 100px; background: linear-gradient(145deg, #dfe8ee, #eee5d8); }
.faq-intro > p:not(.eyebrow) { margin: 24px 0 28px; color: var(--muted); font-size: 16px; line-height: 1.78; }
.faq-list details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--navy); font-family: "Montserrat", sans-serif; font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: #98733b; font-size: 24px; font-weight: 400; transition: transform .2s; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 720px; margin: 15px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }

.final-cta { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 90px; background: var(--navy); color: var(--white); padding: 88px max(7vw, calc((100vw - var(--content)) / 2)); }
.final-cta h2 { color: var(--white); font-size: clamp(40px, 4vw, 60px); }
.final-cta > div:last-child > p { margin: 0 0 25px; color: #d2dde5; font-size: 17px; line-height: 1.75; }
.final-cta small { display: block; margin: 13px 0 0; color: #b1c1ce; font-size: 12px; }

footer { display: grid; grid-template-columns: 1.35fr 1.15fr .9fr .8fr; gap: 46px; background: var(--navy-deep); color: var(--white); padding: 66px max(7vw, calc((100vw - var(--content)) / 2)) 25px; font-size: 13px; }
footer strong { display: block; margin-bottom: 16px; color: var(--gold-light); font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
footer p { margin: 0 0 10px; color: #b6c5d1; line-height: 1.8; }
footer a { transition: color .2s; }
footer a:hover { color: var(--gold-light); }
.footer-brand img { width: 135px; height: 135px; border-radius: 10px; object-fit: cover; }
.footer-brand p { max-width: 255px; margin-top: 17px; }
.legal { display: flex; grid-column: 1 / 5; justify-content: space-between; gap: 20px; margin-top: 12px; border-top: 1px solid rgba(255,255,255,.13); padding-top: 21px; color: #8298aa; font-size: 10px; }

.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; min-height: 50px; align-items: center; gap: 9px; border-radius: 8px; background: var(--green); color: var(--white); padding: 13px 18px; box-shadow: 0 14px 34px rgba(3,27,53,.28); font-size: 12px; font-weight: 800; transition: transform .2s, background .2s; }
.whatsapp-float:hover { background: #0d7450; transform: translateY(-2px); }

@media (max-width: 1120px) {
  .site-header > nav { display: none; }
  .mobile-menu { display: block; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 650px; }
  .hero-visual { min-height: 620px; }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .split-heading { grid-template-columns: 1fr; gap: 25px; }
  .split-heading > p { max-width: 620px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .institute { grid-template-columns: 1fr; }
  .institute-gallery { min-height: 620px; }
  .institute-copy { max-width: 760px; }
  .institute-copy .section-cta { align-items: center; }
  .faq { grid-template-columns: 1fr; gap: 50px; }
  .faq-intro { max-width: 720px; }
  .final-cta { grid-template-columns: 1fr; gap: 38px; }
  footer { grid-template-columns: repeat(2, 1fr); }
  .legal { grid-column: 1 / 3; }
}

@media (max-width: 760px) {
  .topbar { min-height: 30px; padding: 7px 12px; font-size: 8px; letter-spacing: .09em; }
  .topbar span + span { display: none; }
  .site-header { min-height: 76px; padding: 7px 14px; }
  .brand { min-width: 0; gap: 8px; }
  .brand > img { width: 54px; height: 54px; }
  .brand strong { font-size: 14px; }
  .brand small { display: none; }
  .header-cta { width: 44px; min-height: 44px; padding: 11px; }
  .header-cta span { display: none; }
  .hero-copy { min-height: auto; padding: 66px 22px 52px; }
  .hero h1 { font-size: clamp(42px, 11.5vw, 52px); line-height: 1.03; }
  .hero-lead { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .text-link { align-self: center; }
  .hero-trust { grid-template-columns: 1fr; gap: 14px; margin-top: 42px; }
  .hero-trust div { border-right: 0; padding: 0; }
  .hero-visual { min-height: 470px; }
  .hero-card { right: 20px; bottom: 22px; left: 20px; align-items: flex-start; flex-direction: column; gap: 8px; }
  .hero-card strong { max-width: 290px; text-align: left; }
  .conversion-band { align-items: stretch; flex-direction: column; gap: 20px; padding: 29px 22px; text-align: center; }
  .conversion-band strong { font-size: 18px; }
  .section { padding: 78px 22px; }
  .section-heading h2, .institute-copy h2, .faq-intro h2, .final-cta h2 { font-size: clamp(35px, 9.5vw, 43px); }
  .advantage-grid { grid-template-columns: 1fr; }
  .advantage-grid article { min-height: 0; padding: 27px; }
  .advantage-grid h3 { margin-top: 34px; }
  .treatment-grid { grid-template-columns: 1fr; }
  .treatment-card { min-height: 245px; padding: 25px; }
  .treatment-card h3 { margin-top: 42px; }
  .section-cta .button { width: 100%; }
  .featured-team { grid-template-columns: 1fr; }
  .professional-card.featured { min-height: 0; grid-template-columns: 1fr; }
  .professional-card.featured .professional-photo { min-height: 450px; }
  .team-grid { grid-template-columns: 1fr; }
  .professional-card.compact { grid-template-rows: 410px auto; }
  .professional-card.compact .professional-copy { min-height: 0; }
  .professional-copy { padding: 29px 25px 34px; }
  .institute-gallery { min-height: 500px; }
  .clinic-photo-main { inset: 0 34px 66px 0; }
  .clinic-photo-detail { width: 56%; height: 40%; border-width: 6px; }
  .principles { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid li, .process-grid li + li { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); padding: 27px 0 30px; }
  .faq-intro .button { width: 100%; }
  .final-cta { padding: 75px 22px; }
  .final-cta .button { width: 100%; }
  footer { grid-template-columns: 1fr; padding: 58px 22px 94px; }
  .legal { grid-column: 1; align-items: flex-start; flex-direction: column; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 50px; justify-content: center; padding: 13px; }
  .whatsapp-float span { display: none; }
}

@media (max-width: 782px) {
  body.reabilis-theme.admin-bar .site-header { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
