:root {
  color-scheme: light;
  --ink: #10263b;
  --muted: #455f71;
  --blue: #12647c;
  --wash: #edf4f7;
  --line: #d2e0e7;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 1rem/1.65 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #36a8c4; outline-offset: 4px; }
img { display: block; max-width: 100%; }
p, figure, h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -.045em; }
h1 { font-size: clamp(3rem, 5.5vw, 5.25rem); }
h2 { font-size: clamp(2.2rem, 4.1vw, 3.7rem); }
h3 { font-size: 1.16rem; line-height: 1.35; }
em { font-weight: 400; color: var(--blue); }
.wrap { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.skip { position: absolute; top: 0; left: 1rem; padding: .6rem 1rem; background: white; z-index: 5; transform: translateY(-110%); }
.skip:focus { transform: none; }
.header { background: #fff; }
.bar, .brand, nav, .actions, .footer, .footer div { display: flex; align-items: center; }
.bar { justify-content: space-between; gap: 1.2rem; min-height: 5.2rem; padding-block: .7rem; }
.brand { gap: .7rem; font-weight: 650; line-height: 1.3; text-decoration: none; flex-shrink: 0; }
.brand small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.mark { width: 2rem; height: 2rem; border-radius: .35rem; background: repeating-linear-gradient(to bottom,#1883a2 0 3px,transparent 3px 5px); }
nav { gap: clamp(.8rem, 2vw, 1.8rem); flex-wrap: wrap; }
nav a { font-size: .9rem; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .65rem 1.1rem; background: var(--blue); border: 1px solid transparent; color: white; border-radius: .35rem; text-decoration: none; font-size: .94rem; font-weight: 640; }
.button:hover { background: #104c60; color: #fff; }
.outline { background: transparent; color: var(--ink); border-color: #9db6c3; }
.actions { flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.hero { background: radial-gradient(ellipse at 70% 50%, #dbeaf0, transparent 75%), var(--wash); }
.hero-layout { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(2rem, 5vw, 4.25rem); }
.eyebrow { font-size: .875rem; color: var(--blue); font-weight: 720; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .95rem; }
.intro { font-size: 1.1rem; }
.hero-copy .intro { max-width: 33rem; margin-top: 1.35rem; color: var(--muted); }
.portrait { position: relative; overflow: hidden; border-radius: .65rem; background: #c8d9e3; }
.portrait img { width: 100%; height: auto; }
figcaption { position: absolute; bottom: .9rem; left: .9rem; padding: .6rem .85rem; background: #fff; border-radius: .25rem; font-size: .9rem; line-height: 1.35; }
figcaption span { display: block; color: var(--muted); }
.contact-strip { background: #fff; border-bottom: 1px solid var(--line); }
.strip-inner { display: grid; grid-template-columns: repeat(3,1fr); padding-block: 1rem; }
.strip-inner a { padding: .25rem 1.5rem; text-decoration: none; border-left: 1px solid var(--line); }
.strip-inner a:first-child { padding-left: 0; border: 0; }
.strip-inner a:hover strong { text-decoration: underline; }
.strip-inner small { display: block; color: var(--muted); font-size: .875rem; }
.section { padding-block: clamp(3.3rem, 7vw, 6.25rem); }
.section-head { display: grid; grid-template-columns: 1.45fr 1fr; gap: 1rem 3rem; align-items: end; margin-bottom: 2rem; }
.section-head > p, .areas p, .service-grid p, .about p { color: var(--muted); }
.specialty-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(1rem, 4vw, 3.5rem); align-items: start; }
.knee-photo { width: 100%; height: auto; aspect-ratio: 1.25; object-fit: cover; border-radius: .6rem; }
details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
details:first-child { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-size: 1.15rem; font-weight: 640; }
details p { margin-top: .6rem; }
.topic-links { display: flex; flex-wrap: wrap; list-style: none; gap: .5rem; padding: 0; margin: 1rem 0; }
.topic-links a { display: block; font-size: .875rem; color: var(--blue); background: var(--wash); padding: .34rem .65rem; border-radius: .3rem; }
.plain, .research a { color: var(--blue); font-weight: 600; }
.service-band { background: var(--wash); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.8rem; }
.service-grid article, .research { border: 1px solid var(--line); background: white; border-radius: .55rem; padding: clamp(1.1rem, 2.5vw, 1.8rem); }
.service-grid p, .about p:not(.eyebrow), .booking p:not(.eyebrow) { margin-top: .8rem; }
.about, .booking-layout { display: grid; grid-template-columns: 1.35fr .85fr; align-items: center; gap: clamp(1.5rem, 5vw, 5rem); }
.research a, .address a { display: block; margin-top: .65rem; width: fit-content; }
.credential { font-size: .93rem; }
.booking { background: var(--ink); color: white; }
.booking .eyebrow { color: #9ed4e2; }
.light { background: #fff; color: var(--ink); }
.on-dark { background: transparent; border-color: #85acbd; }
.address { border-left: 1px solid #647f91; padding-left: 1.35rem; }
address { font-style: normal; margin-top: .55rem; }
.footer { justify-content: space-between; gap: .8rem 2rem; padding-block: 1.25rem; font-size: .9rem; }
.footer div { gap: .65rem 1.4rem; flex-wrap: wrap; }
@media (max-width: 900px) {
  .bar { flex-wrap: wrap; }
  nav { order: 1; width: 100%; padding-bottom: .3rem; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 2rem); }
  .hero-layout, .section-head, .specialty-layout, .service-grid, .about, .booking-layout { grid-template-columns: 1fr; }
  .knee-photo { aspect-ratio: 1.6; }
  .strip-inner { grid-template-columns: 1fr; gap: .45rem; }
  .strip-inner a, .strip-inner a:first-child { padding: .28rem 0; border: 0; }
  .address { border-left: 0; border-top: 1px solid #647f91; padding: 1rem 0 0; }
  .footer { flex-wrap: wrap; }
}
@media (max-width: 389px) { .top-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Identidade visual da clínica */
:root {
  --ink: #102633;
  --muted: #49616e;
  --blue: #087265;
  --sea: #bafa9e;
  --dark: #091b29;
  --wash: #f0f6f4;
  --line: #d5e4e2;
  --serif: system-ui, sans-serif;
}
body { background: #fbfdfc; }
h1, h2 { font-weight: 630; letter-spacing: -.065em; }
h1 { font-size: clamp(3.25rem, 6.5vw, 6.25rem); }
h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
em { font-style: normal; font-weight: inherit; }
.header { background: var(--dark); color: white; border-bottom: 1px solid #294250; }
.brand small { color: #a8bec9; }
.mark { background: repeating-linear-gradient(165deg, var(--sea) 0 2px, transparent 3px 6px); border-radius: 50%; }
.header nav a { color: #e2edf0; }
.header .button, .hero .button:not(.outline), .booking .light, .mobile-dock .button { background: var(--sea); color: var(--dark); }
.header .button:hover, .hero .button:not(.outline):hover, .booking .light:hover, .mobile-dock .button:hover { background: #d4ffbe; }
.button { border-radius: .6rem; }
.hero {
  color: white;
  background: radial-gradient(ellipse at 78% 48%, #164759, transparent 64%), var(--dark);
  overflow: hidden;
}
.hero-layout { padding-block: clamp(2.4rem, 6vw, 5.3rem); grid-template-columns: 1.24fr .76fr; }
.hero .eyebrow, .hero em { color: var(--sea); }
.hero-copy .intro { color: #c3d8e0; }
.hero .outline { color: #eef7fa; border-color: #69808c; }
.hero-media { display: grid; gap: .85rem; min-width: 0; }
.portrait { border-radius: 1.2rem; }
.portrait img { aspect-ratio: 1.14; object-fit: cover; object-position: center 38%; }
figcaption { background: #091b29; color: white; border-radius: .55rem; }
figcaption span { color: #bed6e1; }
.video-launch {
  position: relative;
  display: grid;
  grid-template-columns: 6rem 1fr;
  align-items: center;
  gap: .85rem;
  padding: .55rem;
  min-width: 0;
  color: white;
  background: #132f3e;
  border: 1px solid #375663;
  border-radius: .85rem;
  text-decoration: none;
}
.video-launch:hover { background: #224858; }
.video-launch img { width: 100%; height: auto; border-radius: .45rem; }
.video-launch strong, .video-launch small { display: block; }
.video-launch small { color: #c4d9e2; font-size: .88rem; }
.play-icon { position: absolute; left: 2.58rem; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--sea); color: var(--dark); font-size: .75rem; }
.contact-strip { background: #edf7f3; }
.strip-inner a:hover { color: var(--blue); }
.specialty-layout { align-items: stretch; }
.knee-photo { border-radius: 1rem; }
.areas { border: 1px solid var(--line); border-radius: 1rem; background: white; overflow: hidden; }
.areas details { padding: 1rem 1.25rem; }
.areas details:first-child { border-top: 0; }
.areas details:last-child { border-bottom: 0; }
.areas details[open] { background: #f5faf7; }
.areas summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.areas summary::-webkit-details-marker { display: none; }
.areas summary::after { content: "+" / ""; font-size: 1.5rem; color: var(--blue); line-height: 1; }
.areas details[open] summary::after { content: "−" / ""; }
.topic-links a { background: white; border: 1px solid var(--line); }
.topic-links a:hover { border-color: var(--blue); }
.service-band { background: var(--dark); color: white; }
.service-band .eyebrow { color: var(--sea); }
.service-grid article { background: #132f3e; border-color: #355462; border-radius: 1rem; }
.service-grid p { color: #cbdae2; }
.location { background: var(--wash); }
.location-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 1rem; }
.map { display: block; width: 100%; min-height: 23rem; height: 100%; border: 1px solid var(--line); border-radius: 1rem; background: #e0ebe6; }
.location-card { align-content: center; padding: clamp(1.4rem, 4vw, 3rem); background: white; border: 1px solid var(--line); border-radius: 1rem; }
.directions { display: grid; justify-items: start; gap: .65rem; margin-top: 1.2rem; }
.copy-address { background: transparent; padding: 0; border: 0; color: var(--blue); font: inherit; text-decoration: underline; cursor: pointer; }
#mensagem-morada { margin-top: .45rem; color: var(--muted); }
#mensagem-morada:empty { margin: 0; }
.booking { background: #0e443d; }
.booking .eyebrow { color: var(--sea); }
.mobile-dock { display: none; }
.video-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .2rem .2rem .7rem; }
.video-bar h2 { font-size: 1.1rem; letter-spacing: 0; }
.video-bar button { color: white; background: transparent; border: 1px solid #8499a5; border-radius: .4rem; padding: .55rem .7rem; cursor: pointer; }
@media (max-width: 680px) {
  .hero-layout, .location-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.5rem, 9.1vw, 4.2rem); }
  .hero-layout { gap: 1.6rem; }
  .portrait img { aspect-ratio: 1.32; }
  .map { min-height: 16rem; }
  .top-cta { display: none; }
  body { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom)); }
  .mobile-dock { display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: stretch; gap: .6rem; position: fixed; inset: auto 0 0; z-index: 2; padding: .5rem 1rem calc(.5rem + env(safe-area-inset-bottom)); background: var(--dark); color: white; text-align: center; border-top: 1px solid #395363; }
  .mobile-dock > a:first-child { padding: .55rem .25rem; }
}
@media (max-width: 680px) {
  .location-card { grid-row: 1; }
}

:root {
  --ink: #102742;
  --blue: #185a92;
  --sea: #a5e4f7;
  --dark: #102742;
  --wash: #edf5fb;
  --line: #d4e4ef;
}
.hero { background: radial-gradient(ellipse at 78% 48%, #21567d, transparent 66%), var(--dark); }
.header .button:hover, .hero .button:not(.outline):hover, .booking .light:hover, .mobile-dock .button:hover { background: #cfedfa; }
.contact-strip, .areas details[open] { background: #f1f7fb; }
.video-launch, .service-grid article { background: #183552; border-color: #45647e; }
.video-launch:hover { background: #234a6f; }
.booking { background: #173a5a; }
.map { background: #e4eef7; }
.article-hero { background: var(--dark); color: white; padding-block: clamp(2.5rem, 7vw, 6rem); }
.article-hero .eyebrow { color: var(--sea); }
.article-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: 1.25rem; }
.article-body { max-width: 49rem; padding-block: 2.5rem; overflow-wrap: anywhere; }
.article-body h2, .article-body h3, .article-body h4 { font-size: 1.4rem; margin-top: 1.5rem; letter-spacing: -.02em; }
.article-body p, .biografia p { margin-block: .85rem; }
.article-body img { max-height: 32rem; width: auto; height: auto; margin: 1.2rem auto; border-radius: .6rem; }
.article-body a { color: var(--blue); }
.article-actions { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; max-width: 49rem; padding-bottom: 3rem; }
.about { align-items: start; }
.research { margin-top: 1.6rem; }
.reviews { background: #f9fcff; }
.reviews-layout { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 1.5rem; }
.reviews p:not(.eyebrow) { color: var(--muted); margin: .9rem 0; }
.review-qr { text-align: center; max-width: 19rem; justify-self: center; }
.review-qr img { width: min(100%, 11rem); height: auto; margin: auto; border-radius: .5rem; }
.player { position: fixed; inset: auto 1rem 1rem auto; z-index: 6; width: min(27rem, calc(100% - 1rem)); max-height: 100dvh; overflow: auto; padding: .7rem; background: var(--dark); color: white; border: 1px solid #6788a8; border-radius: .8rem; box-shadow: 0 12px 45px #081b3b60; }
.player.player-large:has(video:not([hidden])) { width: min(48rem, calc(100% - 1rem)); }
.player video { display: block; width: 100%; max-height: 72dvh; background: #000; }
.player [hidden] { display: none; }
.player .video-bar { flex-wrap: wrap; gap: .55rem; }
.player-tools { display: flex; flex-wrap: wrap; gap: .35rem; }
.player-tools button { min-height: 2.5rem; }
#mover-video { cursor: grab; touch-action: none; }
#mover-video:active { cursor: grabbing; }
@media (max-width: 680px) {
  .reviews-layout { grid-template-columns: 1fr; }
  .review-qr { justify-self: start; text-align: left; }
  .review-qr img { margin-left: 0; }
  .player { right: .5rem; bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
  .player video { max-height: 62dvh; }
}

:root {
  --metal-light: #f0f7fc;
  --metal-mid: #dcebf6;
  --metal-blue: #b5d0e6;
  --metal-edge: #afc9df;
  --blue-action: #174d7d;
}
.header {
  background: linear-gradient(110deg, #f8fcff, var(--metal-mid));
  color: var(--ink);
  border-color: var(--metal-edge);
}
.brand {
  display: inline-flex;
  justify-content: center;
  background: linear-gradient(135deg, #326d9b, #234e76);
  border: 1px solid #35688f;
  border-radius: .55rem;
  padding: .35rem .65rem;
}
.brand img { width: clamp(6.5rem, 10vw, 8.25rem); height: auto; }
.header nav a { color: var(--ink); }
.hero, .article-hero {
  color: var(--ink);
  background: linear-gradient(112deg, #f3f9fd 0%, var(--metal-mid) 52%, var(--metal-blue) 100%);
}
.hero .eyebrow, .hero em, .article-hero .eyebrow,
.service-band .eyebrow, .booking .eyebrow { color: var(--blue-action); }
.hero-copy .intro, .service-grid p { color: var(--muted); }
.header .button, .hero .button:not(.outline), .booking .light, .mobile-dock .button {
  color: white;
  background: var(--blue-action);
}
.header .button:hover, .hero .button:not(.outline):hover, .booking .light:hover, .mobile-dock .button:hover {
  color: white;
  background: #123b62;
}
.hero .outline, .booking .on-dark { color: var(--blue-action); border-color: #6d95b3; }
.hero .outline:hover, .booking .on-dark:hover { color: white; }
.hero-media .portrait figcaption { background: #f5fbff; color: var(--ink); }
.hero-media .portrait figcaption span { color: var(--muted); }
.video-launch, .service-grid article { background: #f5faff; color: var(--ink); border-color: var(--metal-edge); }
.video-launch:hover { background: #e6f2fb; }
.video-launch small { color: var(--muted); }
.play-icon { background: var(--blue-action); color: white; }
.service-band, .booking { background: linear-gradient(120deg, var(--metal-light), var(--metal-mid)); color: var(--ink); }
.booking .address { border-color: var(--metal-edge); }
.mobile-dock { background: var(--metal-light); color: var(--ink); border-color: var(--metal-edge); }
.bio-more { margin-top: 1.15rem; border: 1px solid var(--metal-edge); border-radius: .65rem; padding: 0 1rem; }
.bio-more summary { padding: .65rem 0; color: var(--blue-action); }
.bio-more .bio-close, .bio-more[open] .bio-open { display: none; }
.bio-more[open] .bio-close { display: inline; }
.review-qr > figcaption {
  position: static;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .45rem;
  margin: .5rem auto 0;
  padding: .25rem .6rem;
  width: fit-content;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.review-qr > figcaption img { width: 1.5rem; height: 1.5rem; margin: 0; border-radius: 0; }
@media (max-width: 680px) {
  .review-qr > figcaption { margin-left: 0; }
}
