/* Clínica Porto — site institucional. Tokens vindos do Claude Design. */
:root {
  --ink: #100F0D;
  --muted: #71685E;
  --brand: #A59889;        /* acento: ícones, bordas, detalhes */
  --brand-strong: #766A5D; /* fundos com texto branco (contraste AA) */
  --line: #E9E5E1;
  --soft: #F1F0ED;
  --white: #fff;
  --serif: 'Spectral', Georgia, serif;
  --sans: 'Public Sans', system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: 28px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--muted); text-decoration: none; }
a:hover { color: var(--ink); }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--muted); outline-offset: 2px; }
h1, h2, h3, h4 { text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 88px 0; }
.section--tight { padding: 48px 0 72px; }
.section--soft { background: var(--soft); }
.section__head { max-width: 680px; margin-bottom: 40px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; margin: 0 0 18px; }
.h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; margin: 0 0 14px; }
.h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.2; margin: 0 0 18px; }
.h3 a { color: var(--ink); }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 14px; }
.note { font-size: 14px; color: var(--muted); margin: 20px 0 0; }
.label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }

/* botões */
.btn { display: inline-block; background: var(--brand-strong); color: #fff; padding: 14px 26px; border-radius: 3px; font-weight: 600; font-size: 16px; line-height: 1.3; text-align: center; transition: background .15s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: 11px 20px; font-size: 15px; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--soft); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--brand); padding: 13px 24px; }
.btn--ghost:hover { background: var(--soft); color: var(--ink); }
.btn--block { display: block; width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 36px; }
.link-light { color: #fff; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 2px; }
.link-light:hover { color: #fff; border-color: #fff; }

/* header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(180%) blur(6px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.header__logo img { height: 44px; width: auto; }
.header__nav { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.header__nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.header__nav .btn { color: #fff; }
.header__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.header__toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); padding-top: 22px; }
.crumbs span[aria-current] { color: var(--ink); }

/* hero */
.hero { position: relative; min-height: 580px; display: flex; align-items: center; overflow: hidden; background: var(--ink); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,15,13,.78) 0%, rgba(16,15,13,.58) 50%, rgba(16,15,13,.2) 100%); }
.hero__in { position: relative; width: 100%; padding-top: 96px; padding-bottom: 96px; }
.hero__in > * { max-width: 680px; }
.hero__kicker { color: var(--soft); font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 18px; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 5vw, 60px); line-height: 1.08; color: #fff; margin: 0 0 22px; }
.hero__sub { font-size: 20px; line-height: 1.55; color: var(--soft); margin: 0 0 14px; max-width: 560px; }
.hero__facts { font-size: 15px; color: #fff; opacity: .9; margin: 0; font-variant-numeric: tabular-nums; }
.hero .cta-row { margin-top: 32px; }

/* busca + grade de especialidades */
.finder__field { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 0 16px; margin-bottom: 20px; color: var(--muted); max-width: 640px; }
.finder__field:focus-within { border-color: var(--muted); }
.finder__field input { flex: 1; border: 0; outline: 0; padding: 15px 0; font-family: var(--sans); font-size: 16px; color: var(--ink); background: transparent; min-width: 0; }
.finder__empty { padding: 28px 0 0; }
.finder__empty p { color: var(--muted); margin: 0 0 16px; }
.esp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); padding: 1px 0 0 1px; }
.esp-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; padding: 24px 22px; border: 1px solid var(--line); margin: -1px 0 0 -1px; transition: background .15s; }
.esp-card:hover { background: var(--soft); }
.esp-card .ico { flex: none; margin-top: 2px; color: var(--brand); }
.esp-card__name { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.esp-card__blurb { display: block; font-size: 15px; color: var(--muted); line-height: 1.45; }
.esp-card__count { display: block; font-size: 13px; color: var(--muted); margin-top: 8px; font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* profissionais */
.prof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.prof-grid--compact { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.prof-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s; }
.prof-card:hover { border-color: var(--brand); }
.prof-card__link { position: absolute; inset: 0; z-index: 1; }
.prof-card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.prof-card h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.2; margin: 0 0 4px; }
.prof-card__esp { color: var(--muted); font-size: 15px; margin: 0; }
.prof-card__foco { font-size: 14px; color: var(--ink); margin: 4px 0 0; }
.prof-card__reg { font-size: 13px; color: var(--muted); margin: 10px 0 0; font-variant-numeric: tabular-nums; }
.prof-card__dias { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.prof-card__more { margin-top: auto; padding-top: 14px; font-size: 15px; font-weight: 600; color: var(--muted); }
.prof-card:hover .prof-card__more { color: var(--ink); }
.avatar { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); }
.avatar--mono { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--soft), var(--line)); }
.avatar--mono span { font-family: var(--serif); font-size: 44px; font-weight: 500; color: var(--brand-strong); letter-spacing: .04em; }
.prof-card--compact { flex-direction: row; align-items: stretch; }
.prof-card--compact .avatar { width: 88px; aspect-ratio: auto; flex: none; }
.prof-card--compact .avatar--mono span { font-size: 26px; }
.prof-card--compact .prof-card__body { padding: 16px 18px; }
.prof-card--compact h3 { font-size: 18px; }
.prof-card--compact .prof-card__more { padding-top: 10px; font-size: 14px; }
.prof-group { margin-top: 44px; }
.prof-group:first-child { margin-top: 12px; }

/* diferenciais */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 36px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.feat .ico { color: var(--brand); margin-bottom: 16px; }
.feat h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 0 0 8px; line-height: 1.25; }
.feat p { color: var(--muted); font-size: 16px; margin: 0; line-height: 1.5; }

/* como agendar */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { display: flex; gap: 16px; }
.steps li > span { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--brand); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 19px; color: var(--brand-strong); }
.steps h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 4px 0 6px; }
.steps p { color: var(--muted); font-size: 16px; margin: 0; }

/* contato */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 44px; margin-top: 12px; }
.contact-list { display: grid; gap: 20px; font-size: 16px; align-content: start; }
.contact-list strong { display: block; font-weight: 600; }
.contact-list span, .contact-list a { color: var(--muted); }
.contact-list a { font-weight: 600; }
.contact-list__row { display: flex; gap: 28px; flex-wrap: wrap; }
.contact-list__routes { display: flex; gap: 22px; flex-wrap: wrap; }
.map { min-height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* página de especialidade */
.esp-hero { padding: 40px 0 72px; border-bottom: 1px solid var(--line); }
.esp-hero__in { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.esp-hero .lead { max-width: 640px; }
.book-box { background: var(--brand-strong); color: #fff; border-radius: var(--radius); padding: 28px; }
.book-box h2 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0 0 8px; }
.book-box p { font-size: 15px; color: var(--soft); margin: 0 0 20px; line-height: 1.5; }
.book-box__tel { display: block; text-align: center; color: #fff; font-size: 15px; margin-top: 14px; }
.book-box__tel:hover { color: #fff; text-decoration: underline; }
.book-box--sticky { position: sticky; top: 104px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--brand-strong); border-bottom: 2px solid var(--brand-strong); transform: rotate(-45deg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #fff; border: 1px solid var(--line); font-size: 15px; padding: 7px 14px; border-radius: 3px; }
.tag-links { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-links a { border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; font-size: 15px; color: var(--ink); }
.tag-links a:hover { border-color: var(--brand); background: var(--soft); }

/* perfil */
.profile { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.profile__head { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; margin-bottom: 36px; }
.avatar--lg { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.avatar--lg.avatar--mono span { font-size: 56px; }
.profile__esp { font-size: 19px; color: var(--muted); margin: 0 0 12px; }
.profile__esp a { color: var(--ink); border-bottom: 1px solid var(--line); }
.profile__foco { font-size: 16px; color: var(--ink); margin: -6px 0 12px; }
.profile__reg { font-size: 15px; color: var(--muted); margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.profile__dias { font-size: 15px; margin: 0; }
.profile__dias strong { font-weight: 600; }
.profile__sec { border-top: 1px solid var(--line); padding-top: 32px; margin-bottom: 36px; }
.profile__sec p { margin: 0 0 14px; }
.cv { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 28px; }
.cv ul { margin: 0; padding-left: 18px; }
.cv li { margin-bottom: 6px; }
.profile__dias + .profile__dias { margin-top: 6px; }

.prose { max-width: 720px; }
.prose .h3 { margin-top: 32px; }

/* SEO: urgência, exames e perguntas frequentes */
.alert { margin-top: 28px; background: #fff; border: 1px solid var(--line); border-left: 3px solid #A3372B; border-radius: var(--radius); padding: 16px 18px; }
.alert strong { display: block; font-size: 15px; margin-bottom: 4px; }
.alert p { margin: 0; font-size: 15px; color: var(--ink); }
.two-col p { margin: 0 0 14px; }
.checklist--plain li::before { width: 6px; height: 6px; border: 0; background: var(--brand); border-radius: 50%; transform: none; top: 10px; left: 6px; }
.faq { max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 48px 18px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--brand-strong); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* rodapé */
.footer { background: var(--brand-strong); color: #fff; padding: 64px 0 40px; }
.footer a { color: #fff; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr 1.1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.22); }
.footer__grid img { height: 52px; width: auto; }
.footer h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 16px; color: var(--soft); font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; color: var(--soft); }
.footer__esp { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.footer__legal { padding-top: 28px; display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: flex-end; font-size: 13px; color: var(--soft); }
.footer__legal p { margin: 0 0 4px; }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; background: var(--muted); color: #fff; display: flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 999px; box-shadow: 0 6px 20px rgba(16,15,13,.22); font-size: 15px; font-weight: 600; }
.wa-float:hover { background: var(--ink); color: #fff; }

/* ---------- responsivo ---------- */
@media (max-width: 1000px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .esp-hero__in, .profile { grid-template-columns: 1fr; gap: 32px; }
  .book-box--sticky { position: static; }
}
@media (max-width: 860px) {
  .header__toggle { display: block; }
  .header__nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; box-shadow: 0 12px 24px rgba(16,15,13,.08); }
  .header__nav.is-open { display: flex; }
  .header__nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); }
  .header__nav .btn { margin-top: 16px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .contact, .two-col { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .section--tight { padding: 32px 0 56px; }
  .header__logo img { height: 36px; }
  .hero { min-height: 0; }
  .hero__in { padding-top: 64px; padding-bottom: 72px; }
  .hero__sub { font-size: 18px; }
  .hero__shade { background: linear-gradient(180deg, rgba(16,15,13,.62), rgba(16,15,13,.8)); }
  .esp-grid { grid-template-columns: 1fr 1fr; }
  .esp-card { padding: 14px 12px; }
  .esp-card .ico, .esp-card__blurb { display: none; }
  .esp-card__name { font-size: 17px; line-height: 1.25; }
  .esp-card__count { margin-top: 4px; }
  .prof-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .prof-grid--compact { grid-template-columns: 1fr; }
  .prof-card__body { padding: 14px; }
  .prof-card h3 { font-size: 17px; }
  .prof-card__reg, .prof-card__dias { display: none; }
  .prof-card--compact .prof-card__reg { display: block; }
  .avatar--mono span { font-size: 32px; }
  .profile__head { grid-template-columns: 96px 1fr; gap: 18px; }
  .avatar--lg.avatar--mono span { font-size: 32px; }
  .map, .map iframe { min-height: 300px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-row .btn { flex: 1 1 100%; }
  .wa-float { right: 14px; bottom: 14px; padding: 12px; }
  .wa-float span { display: none; }
  .esp-hero { padding: 24px 0 48px; }
  .gallery { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
  .gallery img { aspect-ratio: 3 / 2; border-radius: 12px; }
}
