@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  color-scheme: light;
  --paper: #f5f6f6;
  --white: #fdfefe;
  --ink: #222a2f;
  --muted: #465359;
  --dark: #2d3940;
  --deep: #222c32;
  --accent: #435e6a;
  --light-tone: #e3eaed;
  --rule: #d7dddf;
  --display: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
img { max-width: 100%; display: block; }
figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid #527787; outline-offset: 5px; }
.wrap { width: min(100% - 6rem, 1256px); margin-inline: auto; }
.skip { position: absolute; top: 1rem; left: 1rem; z-index: 4; padding: .75rem; background: var(--white); transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }
.site-header { background: var(--white); }
.header-inner { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: block; width: 242px; flex: none; }
.brand img { width: 100%; height: 72px; object-fit: contain; object-position: left center; }
nav { display: flex; align-items: center; gap: clamp(1rem, 2.7vw, 2.75rem); }
nav a { font-size: .94rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
nav a:hover, .inline-link:hover { color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .76rem 1.35rem; border: 1px solid transparent; border-radius: 100px; background: var(--dark); color: var(--white); font-weight: 700; font-size: .95rem; line-height: 1.3; text-align: center; text-decoration: none; transition: background .18s, border .18s; }
.button:hover { background: #40535d; }
.button-small { min-height: 44px; white-space: nowrap; }
.button-light { color: var(--deep); background: var(--light-tone); }
.button-light:hover { background: var(--white); }
.button-outline { background: transparent; color: var(--dark); border-color: #819197; }
.button-outline:hover { background: var(--light-tone); border-color: var(--accent); }
.hero { position: relative; isolation: isolate; background: var(--paper); overflow: hidden; }
.hero-inner { display: flex; align-items: center; min-height: clamp(34rem, 47vw, 44rem); }
.hero-copy { width: min(53%, 34rem); padding-block: clamp(3.5rem, 5vw, 5rem); }
.eyebrow { color: var(--accent); font-size: .875rem; font-weight: 700; letter-spacing: .135em; line-height: 1.5; }
.contact .eyebrow { color: var(--light-tone); }
.hero-location { display: flex; align-items: center; gap: .62rem; }
.pin { width: 10px; height: 10px; display: inline-block; border: 1.5px solid currentColor; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .99; }
h1 { font-size: clamp(4rem, 7.1vw, 7.6rem); letter-spacing: -.027em; margin: 1.1rem 0 1.5rem; }
.hero h1 em { color: var(--accent); }
.hero-summary { max-width: 29rem; color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.24rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.9rem; }
.registry { color: var(--muted); font-size: .93rem; margin-top: 2.15rem; }
.hero-photo { position: absolute; inset: 0; z-index: -1; display: flex; justify-content: center; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--paper) 0%, rgb(245 246 246 / 96%) 22%, rgb(245 246 246 / 76%) 41%, transparent 64%); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.section { padding-block: clamp(3.75rem, 6vw, 6.4rem); }
.section-heading { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.section-heading > p { color: var(--muted); max-width: 28rem; padding-bottom: .18rem; justify-self: end; }
h2 { font-size: clamp(3rem, 5vw, 5.3rem); letter-spacing: -.018em; margin-top: .45rem; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 1rem; }
.topic { isolation: isolate; background: var(--white); border: 1px solid var(--rule); border-radius: 1rem; transition: border-color .18s; }
.topic:hover, .topic[open] { border-color: #82979f; }
.topic summary { cursor: pointer; min-height: 257px; padding: 1.35rem 1.2rem; list-style: none; display: flex; flex-direction: column; border-radius: 1rem; }
.topic summary::-webkit-details-marker { display: none; }
.topic-category { color: var(--accent); font-size: .875rem; font-weight: 700; letter-spacing: .055em; }
.topic h3 { font-size: clamp(1.9rem, 2.58vw, 2.8rem); margin: .72rem 0; }
.topic-intro { color: var(--muted); line-height: 1.45; margin-bottom: 1.15rem; }
.topic-toggle { margin-top: auto; display: flex; align-items: center; gap: .55rem; font-size: .875rem; font-weight: 700; }
.topic-toggle > span:first-child { color: var(--accent); display: grid; width: 25px; height: 25px; border: 1px solid #9dacb2; border-radius: 50%; place-items: center; line-height: 1; font-size: 1.1rem; }
.topic-toggle > span:first-child::before { content: '+'; }
.topic[open] .topic-toggle > span:first-child::before { content: '−'; }
.read-label::before { content: 'Ler sobre o tema'; }
.topic[open] .read-label::before { content: 'Recolher texto'; }
.topic-body { margin-inline: 1.2rem; padding-block: 1rem 1.3rem; border-top: 1px solid var(--rule); color: var(--muted); }
.topic-body p + p { margin-top: .65rem; }
.topic-body a { display: inline-block; margin-top: .7rem; color: var(--accent); font-size: .9rem; }
.procedures { border-top: 1px solid var(--rule); }
.procedures-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 1rem; }
.procedure-card { display: flex; flex-direction: column; gap: .85rem; padding: clamp(1.25rem, 3vw, 2rem); background: var(--white); border: 1px solid var(--rule); border-radius: 1rem; }
.procedure-card h3 { font-size: clamp(1.9rem, 2.58vw, 2.8rem); }
.procedure-card p { color: var(--muted); }
.procedure-card a { align-self: flex-start; margin-top: auto; padding-top: .25rem; color: var(--accent); font-size: .9rem; text-underline-offset: 4px; }
.procedure-details summary { cursor: pointer; list-style: none; min-height: 44px; }
.procedure-details summary::-webkit-details-marker { display: none; }
.procedure-details[open] .topic-toggle > span:first-child::before { content: '−'; }
.procedure-body { display: flex; flex-direction: column; gap: .85rem; margin-top: .45rem; }
.procedure-figure img { width: 100%; height: auto; border-radius: .65rem; }
.procedure-figure figcaption { margin-top: .45rem; color: var(--muted); font-size: .85rem; }
.about { background: #e9edee; }
.about-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 9vw, 9rem); align-items: center; }
.about-inner p:not(.eyebrow) { color: var(--muted); max-width: 30rem; margin-top: 1.2rem; }
.credentials { list-style: none; margin: 0; padding: 0; }
.credentials li { display: grid; gap: .2rem; border-top: 1px solid #c4cdd0; padding: 1rem 0; }
.credentials li:last-child { border-bottom: 1px solid #c4cdd0; }
.credentials strong { font-size: 1.14rem; }
.credentials span, .clinic-address { color: var(--muted); }
.clinic-address { justify-self: end; }
.inline-link { display: inline-block; font-weight: 700; margin-top: .45rem; text-underline-offset: 4px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gallery figure { background: var(--white); border: 1px solid var(--rule); border-radius: 1rem; overflow: hidden; }
.gallery img { width: 100%; height: auto; aspect-ratio: 2.45; object-fit: cover; }
.gallery figcaption { font-size: .94rem; font-weight: 600; padding: .75rem 1.2rem; }
.telemedicine { background: var(--white); border-top: 1px solid var(--rule); }
.telemedicine-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.telemedicine .button { margin-top: 1.25rem; }
.telemedicine-copy { color: var(--muted); max-width: 36rem; }
.telemedicine-copy p + p { margin-top: .85rem; }
.reviews { border-top: 1px solid var(--rule); }
.reviews-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.review-card { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; padding: clamp(1.25rem, 3vw, 2rem); background: var(--white); border: 1px solid var(--rule); border-radius: 1rem; }
.review-card h3 { font-size: clamp(1.9rem, 2.58vw, 2.8rem); }
.review-card p { color: var(--muted); }
.review-card blockquote { margin: 0; padding-left: .9rem; border-left: 2px solid var(--rule); }
.review-card .inline-link { margin-top: auto; padding-top: .25rem; }
.contact { background: var(--dark); color: var(--white); padding: clamp(3.2rem, 6vw, 5.3rem) 0; }
.contact-inner { display: grid; grid-template-columns: 1.35fr 1fr; align-items: end; gap: 1.8rem; }
.contact h2 + p { color: var(--light-tone); margin-top: .85rem; max-width: 33rem; }
.contact .button-outline { color: var(--white); border-color: #aab9bf; }
.contact .button-outline:hover { color: var(--deep); }
.contact-actions { justify-content: flex-end; margin-top: 0; }
footer { background: var(--deep); color: var(--light-tone); padding: 1.5rem 0 1.7rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.footer-inner p { font-size: .875rem; }
@media (max-width: 1090px) {
  .wrap { width: min(100% - 4rem, 1256px); }
  .topic-grid, .procedures-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic summary { min-height: 201px; }
  .brand { width: 210px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2.5rem); }
  .header-inner { flex-wrap: wrap; min-height: 0; padding-block: .55rem .85rem; gap: .55rem; }
  .brand { width: min(49%, 205px); }
  .brand img { height: 58px; }
  nav { order: 3; width: 100%; flex-wrap: wrap; justify-content: space-between; border-top: 1px solid var(--rule); padding-top: .7rem; gap: .4rem .75rem; }
  nav a { font-size: .875rem; }
  .header-cta { min-height: 40px; font-size: .85rem; padding-inline: .75rem; }
  .hero-inner { display: block; min-height: 0; }
  .hero-copy { width: 100%; padding: 1.25rem 0 1.15rem; }
  .hero h1 { font-size: clamp(2.75rem, 9vw, 4.5rem); margin: .5rem 0 .65rem; }
  .hero-summary { line-height: 1.4; }
  .hero .actions { gap: .5rem; margin-top: .8rem; }
  .hero .actions .button { min-height: 44px; padding: .55rem .75rem; font-size: .875rem; }
  .hero-photo { position: relative; z-index: auto; aspect-ratio: 1.15; max-height: 440px; margin: .75rem -1.25rem 0; }
  .hero-photo::after { background: linear-gradient(var(--paper), transparent 12%); }
  .hero-photo img { object-position: right top; }
  .hero .registry { margin-top: .65rem; line-height: 1.4; }
  .section-heading, .about-inner, .telemedicine-inner, .reviews-grid, .contact-inner, .procedures-grid { grid-template-columns: 1fr; gap: 1rem; }
  .section-heading > p, .clinic-address { justify-self: start; }
  .contact-actions { justify-content: flex-start; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: .65rem; }
}
@media (max-width: 465px) {
  .header-inner { gap: .4rem; }
  .brand { width: min(43%, 205px); }
  .brand img { height: 48px; }
  .header-cta { padding-inline: .55rem; }
  .hero-location { font-size: .8rem; letter-spacing: .1em; }
  .topic-grid, .gallery { grid-template-columns: 1fr; }
  .topic summary { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .topic { transition: none; }
}

.article-page { max-width: 48rem; }
.article-page h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
.article-page .article-intro { font-size: 1.2rem; }
.article-page p, .article-page ul { color: var(--muted); }
.article-page h2 { margin-block: 2rem .65rem; font-size: clamp(2.3rem, 4.5vw, 3.6rem); }
.article-page p + p { margin-top: .8rem; }
.article-page a:not(.button) { text-underline-offset: 4px; }
.article-page .article-contact { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.article-page .article-contact p { margin-bottom: 1rem; }
.article-page nav a { white-space: normal; text-decoration: underline; }
