/* Medicalt unificada. Manrope + DM Sans e símbolo preservados dos originais. */
:root {
  --wine: #88152e;
  --red: #c91032;
  --ink: #30272c;
  --paper: #fcfaf7;
  --soft: #f3eeea;
  --line: #e6deda;
  --muted: #70656a;
  --font-body: 'DM Sans', Arial, sans-serif;
  --font-heading: 'Manrope', Arial, sans-serif;
  --content-width: 75rem;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --section-space: clamp(3.5rem, 7vw, 6.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 2rem; scroll-behavior: smooth;}
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.7 var(--font-body); }
h1,h2,h3,p,figure { margin: 0; }
h1,h2,h3 { font-family: var(--font-heading); font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(2.5rem,4.3vw,3.875rem); line-height: 1.14; letter-spacing: -.045em; }
h2 { font-size: clamp(1.875rem,3vw,2.75rem); line-height: 1.25; letter-spacing: -.035em; }
h3 { font-size: 1.25rem; line-height: 1.4; }
a { color: inherit; text-decoration: none; }
button,input,select,textarea { font: inherit; }
a,button { touch-action: manipulation; }
button,summary { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.wrap { padding-inline: max(var(--gutter),calc((100% - var(--content-width))/2)); }
.section { padding-block: var(--section-space); }
.wine-text,h1 em { color: var(--wine); font-style: normal; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 20; padding: .75rem 1rem; background: var(--wine); color: white; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.eyebrow { display: flex; gap: .7rem; align-items: center; margin-bottom: 1.25rem; color: var(--wine); font-size: .75rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ''; flex: 0 0 1.5rem; height: 2px; background: var(--red); }
.brand-mark { color: var(--wine); font: 500 2rem/1 var(--font-heading); }
header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 6.5rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand img { width: min(14rem, calc(80vw - 6.4rem)); height: auto; object-fit: contain; }
.brand strong { font: 700 2rem/1.1 var(--font-heading); letter-spacing: -.04em; }
.brand small { display: block; margin-top: .35rem; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; }
nav { display: flex; gap: clamp(1rem,2vw,2rem); align-items: center; }
nav a,nav .team-nav-trigger { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .875rem; }
nav a:hover,nav .team-nav-trigger:hover,.top-link:hover { color: var(--wine); text-decoration: underline; text-underline-offset: .3em; }
nav .team-nav-trigger { border: 0; padding: 0; background: transparent; color: inherit; text-align: left; }
.mobile-contact { display: none; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 1.25rem; min-height: 3rem; padding: .875rem 1.25rem; border: 0; border-radius: .375rem; background: var(--wine); color: white; font-size: .875rem; font-weight: 600; line-height: 1.5; text-align: center; }
.cta:hover:not(:disabled) { background: #691023; }
.cta:disabled { background: #77676d; }
.menu-toggle { min-height: 2.75rem; padding: .5rem .75rem; background: transparent; border: 1px solid #a7989e; border-radius: .25rem; color: var(--ink); }
.hero { display: grid; grid-template-columns: 1.08fr 1fr; gap: 5%; align-items: center; padding-block: clamp(2.5rem,5vw,4.5rem); }
.hero > *, .solutions > *, .about > *, .expertise > *, .team > * { min-width: 0; }
.hero-copy > p { max-width: 30rem; margin-top: 1.75rem; color: var(--muted); font-size: 1.125rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 2rem; }
.text-link { display: inline-flex; align-items: center; gap: .75rem; min-height: 2.75rem; color: var(--wine); font-size: .875rem; text-decoration: underline; text-underline-offset: .4em; }
.text-link:hover { text-decoration-thickness: 2px; }
.hero-note { display: flex; gap: .65rem; align-items: center; margin-top: 1.5rem; color: var(--muted); font-size: .8125rem; }
.hero-note .brand-mark { font-size: 1.4rem; }
.hero-photo { width: 100%; height: clamp(25rem,35vw,31rem); object-fit: cover; object-position: 75% center; border-radius: .5rem .5rem 4rem .5rem; }
figcaption { margin-top: .65rem; color: var(--muted); font-size: .75rem; }
.ribbon { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; padding-block: 1.5rem; background: var(--soft); border-block: 1px solid var(--line); }
.ribbon > div { display: flex; gap: 1rem; align-items: center; font-size: .9375rem; }
.ribbon > div + div { border-left: 1px solid #d9cecc; padding-left: 1.5rem; }
.ribbon small { display: block; color: var(--muted); font-size: .8125rem; }
.about,.team { display: grid; grid-template-columns: .9fr 1fr; gap: 8%; align-items: start; }
.about { background: var(--soft); border-top: 1px solid var(--line); }
.about > div:last-child h2 { font-size: clamp(1.5rem,2.2vw,2rem); }
.about p,.team p { color: var(--muted); margin-top: 1.5rem; }
.about .origin-note { max-width: 20rem; font-size: .875rem; }
.principles { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--wine); font-size: .875rem; }
.solutions { display: grid; grid-template-columns: 1fr 1.1fr; gap: 8%; padding-block: var(--section-space); background: var(--wine); color: white; }
.solutions .eyebrow { color: #f3bac7; }
.solutions :focus-visible { outline-color: white; }
.solutions .eyebrow::before { background: #f3bac7; }
.solutions .intro { max-width: 27rem; margin-block: 1.5rem 2rem; color: #f1dbe1; }
.solution-note { margin-top: 3rem; max-width: 24rem; color: #f1dbe1; font-size: .875rem; border-left: 2px solid #f3bac7; padding-left: 1rem; }
.solution-row { display: grid; grid-template-columns: minmax(0,1fr); padding-block: 1.35rem; border-bottom: 1px solid #ad5369; }
.solution-row:first-child { padding-top: 0; }
.solution-row > span { padding-top: .2rem; color: #f3bac7; font-size: .8125rem; }
.solution-row h3 { margin-bottom: .5rem; }
.solution-row p { color: #f1dbe1; font-size: .9375rem; }
.expertise { display: grid; grid-template-columns: 1fr 1.1fr; gap: 8%; }
.expertise > div > p { color: var(--muted); max-width: 25rem; margin-block: 1.5rem; }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary { display: flex; align-items: center; gap: 1rem; list-style: none; padding: 1.5rem 0; font-size: 1.125rem; line-height: 1.4; }
summary::-webkit-details-marker { display: none; }
summary > span { font-size: .75rem; color: var(--wine); }
summary b { margin-left: auto; color: var(--wine); font-size: 1.5rem; font-weight: 400; }
details[open] summary b { transform: rotate(45deg); }
details p { margin: 0 0 1.5rem; color: var(--muted); font-size: .9375rem; }
.services-more { display: none; border-bottom: 0; }
.services-trigger { display: flex; align-items: center; gap: 1rem; width: 100%; border: 0; padding: 1.25rem 0; background: transparent; color: white; font-size: .9375rem; line-height: 1.4; text-align: left; }
.services-trigger b { margin-left: auto; color: #f3bac7; font-size: 1.5rem; font-weight: 400; }
.services-more summary { padding-block: 1.25rem; color: white; }
.services-more summary > span { color: inherit; font-size: .9375rem; }
.services-more summary b { color: #f3bac7; }
.services-more .less-label { display: none; }
.services-more[open] .more-label { display: none; }
.services-more[open] .less-label { display: inline; }
.services-more .solution-row p { margin: 0; color: #f1dbe1; }
.process { background: var(--soft); }
.steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 2rem; margin-top: 3rem; }
.step { border-top: 1px solid #cdbfbd; padding-top: 1.25rem; }
.step > span { color: var(--wine); font-size: .75rem; letter-spacing: .05em; }
.step h3 { margin-block: 1rem .75rem; }
.step:first-child h3 { white-space: nowrap; }
.step p { color: var(--muted); font-size: .9375rem; }
.team { border-bottom: 1px solid var(--line); }
.team .team-intro { margin-top: 0; color: var(--ink); font-size: 1.25rem; }
.team-trigger,.light-link { position: relative; display: inline-flex; align-items: center; gap: .75rem; min-height: 2.75rem; max-width: 100%; border: 0; padding: 0; background: transparent; font-size: clamp(1.125rem, 1.8vw, 1.25rem); font-weight: 500; text-align: left; text-decoration: none; }
.team-trigger { margin-top: 1rem; }
.team-trigger::after,.light-link::after { content: ""; position: absolute; right: 0; bottom: .2em; left: 0; height: 1px; background: currentColor; }
.team-trigger:hover::after,.light-link:hover::after { height: 2px; }
.team-trigger span[aria-hidden="true"],.light-link span[aria-hidden="true"] { font-size: 1.25em; line-height: 1; }
.contact-link-icon { flex: 0 0 auto; width: 1.25em; height: 1.25em; }
html { scrollbar-gutter: stable; }
html.team-dialog-open { overflow: hidden; }
.team-dialog {
  width: min(88rem, calc(100% - 3rem));
  max-width: none;
  max-height: calc(100dvh - 3rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1rem 4rem #30272c30;
  overflow: hidden;
}
.team-dialog[open] { display: flex; flex-direction: column; }
.team-dialog::backdrop { background: #30272c70; }
.team-dialog-heading { position: relative; padding: 2rem 5rem 1.5rem 2rem; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.team-dialog-heading .eyebrow { margin-bottom: .75rem; }
.team-dialog-heading h2 { font-size: clamp(1.875rem, 3.5vw, 3.5rem); font-weight: 700; }
#team-dialog-intro { color: var(--muted); margin-top: .5rem; font-size: 1.125rem; }
.team-close { position: absolute; top: 1.25rem; right: 1.25rem; display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0; border: 1px solid #a7989e; border-radius: .5rem; background: transparent; color: var(--wine); font-size: 2rem; line-height: 1; }
.team-close:hover { background: var(--soft); }
.team-dialog-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 1.5rem 2rem 2rem; overflow-y: auto; overscroll-behavior: contain; min-height: 0; scrollbar-color: #b8acb2 var(--soft); }
.team-dialog-list:focus-visible { outline-offset: -5px; }
.team-card { display: flex; align-items: center; gap: 1.25rem; min-width: 0; padding: 1.25rem; border: 1px solid #d0c5c9; border-radius: .625rem; background: #fff9; }
.team-avatar { flex: 0 0 4.5rem; width: 4.5rem; height: 4.5rem; display: grid; place-items: center; border-radius: 50%; background: #efdee2; color: var(--wine); font: 600 1.75rem/1 var(--font-heading); }
.team-card-copy { min-width: 0; }
.team-card h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; text-wrap: initial; }
.team-card p { font-size: .9375rem; line-height: 1.5; margin-top: .35rem; }
.team-specialty { color: var(--wine); }
.team-registration { color: var(--muted); }
@media (max-width: 75rem) {
  .team-dialog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 45rem) {
  .team-dialog { width: calc(100% - 1.5rem); max-height: calc(100dvh - 1.5rem); border-radius: .75rem; }
  .team-dialog-heading { padding: 1.25rem; padding-right: 4.5rem; }
  .team-dialog-heading .eyebrow { font-size: .625rem; letter-spacing: .08em; }
  #team-dialog-intro { font-size: .9375rem; }
  .team-close { top: .75rem; right: .75rem; width: 2.75rem; height: 2.75rem; }
  .team-dialog-list { grid-template-columns: minmax(0, 1fr); padding: 1rem; gap: .75rem; }
  .team-card { padding: 1rem; gap: 1rem; }
  .team-avatar { flex-basis: 3.25rem; width: 3.25rem; height: 3.25rem; font-size: 1.25rem; }
}
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; align-items: start; }
.contact > div > p { max-width: 27rem; margin-top: 1.5rem; color: var(--muted); }
form { padding: clamp(1.25rem,3vw,2rem); border: 1px solid var(--line); border-radius: .5rem; background: white; min-width: 0; }
label { display: block; margin-bottom: 1rem; font-size: .875rem; }
.optional { color: var(--muted); }
input,select,textarea { display: block; width: 100%; min-width: 0; margin-top: .4rem; min-height: 3rem; padding: .7rem .75rem; border: 1px solid #a7989e; border-radius: .25rem; background: white; color: var(--ink); font-size: 1rem; }
textarea { resize: vertical; }
input::placeholder,textarea::placeholder { color: #766970; opacity: 1; }
form .cta { width: 100%; }
.form-note { margin-top: .875rem; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.message { margin-top: .75rem; color: var(--wine); font-size: .875rem; overflow-wrap: anywhere; }
.message:empty { display: none; }
.email-link { text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; padding-block: 2rem; border-top: 1px solid var(--line); }
footer p { color: var(--muted); font-size: .8125rem; }
.top-link { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .875rem; }
@media (max-width: 64rem) {
  .services-more { display: block; }
  .services-more > summary,.services-trigger { display: none; }
  header { flex-wrap: wrap; }
  nav { order: 3; width: 100%; justify-content: center; }
  .steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ribbon { gap: 1rem; }
  .ribbon > div { gap: .75rem; }
  .ribbon > div + div { padding-left: 1rem; }
}
@media (max-width: 48rem) {
  header { gap: 1rem; min-height: 5.5rem; }
  .brand strong { font-size: 1.75rem; }
  .brand img { width: min(12rem, calc(80vw - 6.4rem)); }
  .brand small { font-size: .625rem; }
  header > .cta { display: none; }
  nav { align-items: stretch; flex-direction: column; gap: .25rem; }
  nav a,nav .team-nav-trigger { padding: .5rem 0; }
  .mobile-contact { display: inline-flex; }
  .hero,.solutions,.about,.contact,.expertise,.team { grid-template-columns: minmax(0,1fr); gap: 2.5rem; }
  .hero-photo { height: 23rem; }
  .hero-copy > p { max-width: none; font-size: 1.0625rem; }
  .ribbon { grid-template-columns: 1fr; gap: 1.25rem; }
  .ribbon > div + div { border: 0; padding: 0; }
  .steps { gap: 1.5rem; }
  .contact > div > p { max-width: none; }
  .solution-note { margin-top: 1.5rem; }
}
@media (width < 768px) {
  .hero-visual { display: none; }
}
@media (max-width: 30rem) {
  .steps { grid-template-columns: minmax(0,1fr); }
  .actions { align-items: stretch; flex-direction: column; }
  .hero-photo { height: 21rem; }
  h1 { font-size: clamp(2rem,9.8vw,2.5rem); }
}
/* Shared entry and exit motion for both dialogs. */
.team-dialog[open] { animation: modal-enter 240ms cubic-bezier(.2,.8,.2,1) both; }
.team-dialog[open]::backdrop { animation: backdrop-enter 240ms ease-out both; }
.team-dialog[open].is-closing { animation: modal-exit 180ms ease-in both; }
.team-dialog.is-closing::backdrop { animation: backdrop-exit 180ms ease-in both; }
@keyframes modal-enter {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes modal-exit {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(8px) scale(.985); }
}
@keyframes backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes backdrop-exit { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; }
}
@media print {
  body { font-size: 11pt; background: white; color: black; }
  header,.actions,.contact,.top-link { display: none; }
  .wrap { padding-inline: 0; }
  .section,.solutions,.hero { padding-block: 1.5rem; }
  .solutions { background: white; color: black; }
  .solutions p,.solutions .eyebrow,.solution-row > span { color: #333; }
  article { break-inside: avoid; }
}

/* Contact delivery and confirmation page. */
.form-honeypot { display: none; }
form[aria-busy="true"] .cta { opacity: .7; cursor: progress; }
.confirmation-main { min-height: 70vh; display: grid; place-items: center; }
.confirmation-card { width: min(100%, 42rem); padding: clamp(1.5rem,5vw,3.5rem); border: 1px solid var(--line); border-radius: .75rem; background: white; }
.confirmation-card h1 { font-size: clamp(2rem,5vw,3rem); }
.confirmation-card > p:not(.eyebrow) { margin-block: 1.5rem; color: var(--muted); }
.confirmation-card .cta { margin-top: .5rem; }

/* Desktop services dialog uses the same accessible dialog shell as the team. */
.services-dialog { width: min(72rem, calc(100% - 3rem)); }
#services-dialog-intro { color: var(--muted); margin-top: .5rem; font-size: 1.125rem; }
.services-dialog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: .625rem; background: white; }
.service-card h3 { color: var(--wine); font-weight: 600; }
.service-card p { margin-top: .75rem; color: var(--muted); font-size: .9375rem; }
.institutions { padding-top: clamp(2.5rem, 5vw, 4.5rem); background: var(--paper); }
.institutions h2 { max-width: 46rem; }
.institutions-intro { margin-top: 1rem; color: var(--muted); }
.institutions-marquee { margin-top: 1.25rem; padding-block: 1.25rem 2.5rem; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--paper); }
.institutions-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; list-style: none; margin: 0; padding: 0 clamp(1.25rem, 3vw, 3rem); }
.institutions-marquee.is-animated .institutions-track { display: flex; width: max-content; animation: institutions-scroll 40s linear infinite; }
.institutions-marquee.is-animated .institutions-list { flex: 0 0 auto; width: max(100vw, 72rem); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.institutions-copy { display: none; }
.institutions-marquee.is-animated .institutions-copy { display: grid; }
@keyframes institutions-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.institutions-list li { min-width: 0; text-align: center; }
.institution-logo { display: flex; align-items: center; justify-content: center; height: 8rem; margin-bottom: .625rem; }
.institution-logo img { width: 96%; max-width: 15.36rem; height: 5.76rem; object-fit: contain; }
.institution-logo-encore { position: relative; width: min(96%, 15.36rem); aspect-ratio: 650 / 225; overflow: hidden; transform: translateX(-8.4615%); }
.institution-logo-encore img { position: absolute; width: 157.5385%; max-width: none; height: auto; left: -23.8462%; top: -60.8889%; }
.institutions-list h3 { color: var(--wine); font-size: 1.2375rem; font-weight: 600; line-height: 1.45; }
.institutions-list p { margin-top: .625rem; color: var(--muted); font-size: .9625rem; }
@media (max-width: 64rem) {
  .institutions-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .institutions-marquee.is-animated .institutions-list { --institutions-gap: 4rem; width: max(100vw, 80rem); gap: var(--institutions-gap); padding-inline: calc(var(--institutions-gap) / 2); }
}
@media (max-width: 45rem) {
  .institutions-marquee.is-animated .institutions-list { --institutions-gap: 5rem; width: max(100vw, 84rem); }
}
@media (max-width: 30rem) {
  .institutions-list { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .institutions-marquee.is-animated .institutions-track { display: block; width: auto; animation: none; }
  .institutions-marquee.is-animated .institutions-list { width: auto; }
  .institutions-marquee.is-animated .institutions-copy { display: none; }
}
.about-dialog { width: min(60rem, calc(100% - 3rem)); background: var(--paper); }
#about-dialog-intro { color: var(--muted); margin-top: .5rem; font-size: 1.125rem; }
.about-dialog-list { display: block; padding: 2rem 2.5rem 2.5rem; }
.about-dialog-section + .about-dialog-section { margin-top: 2rem; padding-top: 2rem; }
.about-dialog-section h3 { display: flex; align-items: center; gap: .875rem; margin-bottom: 1rem; color: var(--wine); font-size: clamp(1.25rem, 2.5vw, 1.625rem); font-weight: 600; line-height: 1.3; }
.about-dialog-section h3::before { content: ""; flex: 0 0 .25rem; align-self: stretch; min-height: 1.5rem; border-radius: .125rem; background: var(--wine); }
.about-dialog-section p { max-width: 75ch; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.about-dialog-section p + p { margin-top: 1rem; }
@media (max-width: 45rem) {
  .services-dialog-list { grid-template-columns: minmax(0, 1fr); }
  .about-dialog-list { padding: 1.25rem; }
  .about-dialog-section + .about-dialog-section { margin-top: 1.5rem; padding-top: 1.5rem; }
}
