/* ==========================================================================
   Clínica Ello — site institucional
   Mobile-first: a base vale para ~360px; os @media aumentam a partir daí.
   Cores da marca (extraídas do ícone): amarelo #FDCC0E, grafite #232323.
   ========================================================================== */

:root {
  --ink: #232323;
  --ink-2: #2d2d2f;
  --ink-3: #3b3b3e;
  --steel: #58595b;
  --mist: #8f9093;
  --line: #e3e2de;
  --paper: #f6f5f2;
  --white: #ffffff;
  --yellow: #fdcc0e;
  --yellow-deep: #d9a900;
  --yellow-soft: #fff3c0;
  --ok: #2f9e5b;

  --f-display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(35, 35, 35, .06), 0 10px 28px rgba(35, 35, 35, .09);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .site-header :focus-visible, .fab :focus-visible { outline-color: var(--yellow); }
.on-light :focus-visible { outline-color: var(--ink); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.ico { width: 22px; height: 22px; flex: none; }

/* ---------- Tipografia utilitária ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-size: .74rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--steel);
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--yellow); }
.on-dark .eyebrow { color: rgba(255, 255, 255, .72); }

.h-xl { font-size: clamp(2.15rem, 8vw, 4.2rem); line-height: 1.04; letter-spacing: -.025em; }
.h-lg { font-size: clamp(1.7rem, 5.2vw, 2.75rem); line-height: 1.12; }
.h-md { font-size: clamp(1.2rem, 3.2vw, 1.5rem); line-height: 1.25; }
.lead { font-size: clamp(1.02rem, 2.4vw, 1.2rem); color: var(--steel); max-width: 60ch; }
.on-dark .lead { color: rgba(255, 255, 255, .78); }

.serif { font-family: var(--f-serif); font-style: italic; font-weight: 500; letter-spacing: 0; }
.on-dark .serif { color: var(--yellow); }
.mark { background: linear-gradient(transparent 66%, var(--yellow) 66%, var(--yellow) 92%, transparent 92%); padding: 0 .08em; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 12px; border: 1.5px solid transparent;
  font-family: var(--f-display); font-weight: 600; font-size: 1rem; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #ffd83a; }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header::before { /* cobre a área segura do topo em celulares */
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%;
  height: env(safe-area-inset-top, 0px); background: var(--ink);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .28); }
.site-header__in { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 58px; height: auto; display: block; }
@media (min-width: 900px) { .brand img { width: 66px; } }
.brand__txt { display: flex; flex-direction: column; line-height: 1; font-family: var(--f-display); }
.brand__txt small { font-size: .56rem; letter-spacing: .34em; font-weight: 600; color: rgba(255, 255, 255, .75); margin-bottom: 5px; }
.brand__txt strong { font-size: 1.15rem; letter-spacing: .42em; font-weight: 600; }

.nav-toggle {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
  background: transparent; border: 1.5px solid rgba(255, 255, 255, .2); color: #fff; cursor: pointer;
}
.nav-toggle .ico { width: 24px; height: 24px; }
.nav-toggle .ico-close { display: none; }
.nav-open .nav-toggle .ico-open { display: none; }
.nav-open .nav-toggle .ico-close { display: block; }

.nav {
  position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0;
  background: var(--ink); padding: 20px max(20px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-open .nav { opacity: 1; transform: none; visibility: visible; }
.nav-open { overflow: hidden; }
.nav a.nav__link {
  display: flex; align-items: center; justify-content: space-between; min-height: 58px;
  font-family: var(--f-display); font-size: 1.35rem; font-weight: 500; text-decoration: none; color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav a.nav__link[aria-current="page"] { color: var(--yellow); }
.nav a.nav__link[aria-current="page"]::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); }
.nav__cta { margin-top: 20px; display: none; }
.nav-open .nav__cta { display: flex; }

/* ---------- Botão flutuante de ações (celular) ---------- */
.fab { position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab__scrim { position: fixed; inset: 0; z-index: 55; background: rgba(35, 35, 35, .5); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s; }
.fab-open .fab__scrim { opacity: 1; visibility: visible; }
.fab__btn { width: 58px; height: 58px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--yellow); color: var(--ink); box-shadow: 0 6px 20px rgba(35, 35, 35, .35); -webkit-tap-highlight-color: transparent; }
.fab__btn .ico { width: 26px; height: 26px; transition: transform .25s ease; }
.fab__btn[aria-expanded="true"] .ico { transform: rotate(135deg); }
.fab__menu { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab__item { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: .98rem;
  box-shadow: 0 6px 18px rgba(35, 35, 35, .3); border: 1px solid rgba(255, 255, 255, .12); }
.fab__item .ico { width: 22px; height: 22px; }
.fab__item.is-main { background: var(--yellow); color: var(--ink); border-color: transparent; }
.fab__menu li { opacity: 0; visibility: hidden; transform: translateY(12px) scale(.96); transform-origin: bottom right;
  transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.fab-open .fab__menu li { opacity: 1; visibility: visible; transform: none; }
.fab-open .fab__menu li:nth-child(4) { transition-delay: .02s; }
.fab-open .fab__menu li:nth-child(3) { transition-delay: .06s; }
.fab-open .fab__menu li:nth-child(2) { transition-delay: .10s; }
.fab-open .fab__menu li:nth-child(1) { transition-delay: .14s; }
button.fab__item { font: inherit; font-family: var(--f-display); font-weight: 600; font-size: .98rem; cursor: pointer; }
.search-btn { display: none; }

/* ---------- Seções ---------- */
.section { padding-block: clamp(56px, 10vw, 112px); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: #fff; }
.section__head { display: grid; gap: 14px; margin-bottom: clamp(28px, 5vw, 48px); max-width: 760px; }
.section__head--row { max-width: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.hero__mark { position: absolute; z-index: -1; right: -34%; bottom: -6%; width: 150vw; max-width: 900px; opacity: .55; pointer-events: none; }
.hero__mark path { fill: rgba(253, 204, 14, 0); stroke: var(--yellow); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linejoin: round;
  animation: draw 2.6s .25s cubic-bezier(.55, .1, .25, 1) forwards, fillin 1.2s 2.4s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill: rgba(253, 204, 14, .10); } }

.hero__in { padding-block: 44px 64px; display: grid; gap: 26px; }
.hero h1 { max-width: 14ch; }
.hero .lead { max-width: 46ch; }
.hero__status { display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; color: rgba(255, 255, 255, .9); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mist); flex: none; }
.dot.is-open { background: var(--ok); box-shadow: 0 0 0 4px rgba(47, 158, 91, .25); }

.quick { display: none; }

/* páginas internas */
.page-hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.page-hero__mark { position: absolute; z-index: -1; right: -26%; top: 50%; transform: translateY(-50%); width: 130vw; max-width: 760px; opacity: .22; pointer-events: none; }
.page-hero__in { padding-block: 40px 52px; display: grid; gap: 16px; }
.page-hero h1 { font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.06; letter-spacing: -.022em; max-width: 18ch; }
.crumbs { font-size: .85rem; color: rgba(255, 255, 255, .6); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--yellow); }

/* ---------- Pilares ---------- */
.pillars { display: grid; gap: 28px; }
.pillar { display: grid; align-content: start; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); position: relative; }
.pillar::before { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 3px; background: var(--yellow); }
.pillar h3 { font-size: 1.3rem; }
.pillar p { color: var(--steel); margin: 0; }

.statement { font-family: var(--f-display); font-size: clamp(1.4rem, 4.4vw, 2.1rem); line-height: 1.25; font-weight: 500; letter-spacing: -.01em; max-width: 26ch; }

/* ---------- Grade de exames ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile {
  display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: var(--r);
  background: #fff; border: 1px solid var(--line); text-decoration: none; min-height: 118px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tile:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: var(--shadow); }
.tile__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); }
.tile__name { font-family: var(--f-display); font-weight: 500; font-size: 1rem; line-height: 1.25; margin-top: auto; }
.tiles__more { margin-top: 24px; }

/* ---------- Carrossel de exames (início) ---------- */
.carousel__track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  margin-inline: calc(-1 * max(20px, env(safe-area-inset-left, 0px))); padding-inline: max(20px, env(safe-area-inset-left, 0px));
  scroll-padding-inline: max(20px, env(safe-area-inset-left, 0px)); padding-bottom: 6px; overscroll-behavior-x: contain; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: 4px; }
.ex-card { flex: 0 0 76%; max-width: 320px; scroll-snap-align: start; }
.ex-card a { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; isolation: isolate; }
.ex-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.ex-card a::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(20, 20, 20, .92) 0%, rgba(20, 20, 20, .78) 32%, rgba(20, 20, 20, 0) 68%); }
.ex-card a:hover img { transform: scale(1.05); }
.ex-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; display: grid; gap: 6px; }
.ex-card__body strong { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; line-height: 1.15; }
.ex-card__body span { font-size: .88rem; line-height: 1.4; color: rgba(255, 255, 255, .86); }
.ex-card__body::after { content: ""; width: 34px; height: 3px; border-radius: 2px; background: var(--yellow); margin-top: 6px; transition: width .25s ease; }
.ex-card a:hover .ex-card__body::after, .ex-card a:focus-visible .ex-card__body::after { width: 64px; }
.carousel__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.carousel__nav { display: flex; gap: 10px; }
.carousel__btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .15s ease, color .15s ease; }
.carousel__btn:hover:not(:disabled) { background: var(--ink); color: var(--yellow); }
.carousel__btn:disabled { opacity: .35; cursor: default; }
.carousel__btn .ico { width: 22px; height: 22px; }

/* ---------- Medicina do trabalho ---------- */
.occ { position: relative; overflow: hidden; isolation: isolate; }
.occ__mark { position: absolute; z-index: -1; left: -30%; bottom: -30%; width: 120vw; max-width: 780px; opacity: .08; pointer-events: none; }
.occ__grid { display: grid; gap: 32px; }
.pills { display: grid; gap: 10px; }
.pill { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-weight: 500; }
.pill .ico { color: var(--yellow); width: 20px; height: 20px; }

/* ---------- Passos ---------- */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step { position: relative; padding: 22px 20px 22px 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); display: grid; gap: 8px; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--yellow); font-family: var(--f-display); font-weight: 600;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--steel); margin: 0; }

/* ---------- Antes do exame ---------- */
.bring { display: grid; gap: 12px; }
.bring li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.bring .ico { color: var(--ink); background: var(--yellow); border-radius: 10px; padding: 9px; width: 40px; height: 40px; }
.bring strong { display: block; font-family: var(--f-display); font-weight: 600; }
.bring span { color: var(--steel); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; min-height: 60px; font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .2s ease; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details[open] { border-color: var(--ink); }
.faq .faq__a { padding: 0 18px 18px; color: var(--steel); }

/* ---------- Visite-nos ---------- */
.visit { display: grid; gap: 20px; }
.info-card { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 24px; display: grid; gap: 20px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; }
.info-row .ico { color: var(--yellow); margin-top: 2px; }
.info-row dt { font-family: var(--f-display); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-bottom: 2px; }
.info-row dd { margin: 0; }
.info-row a { text-decoration: none; border-bottom: 1px solid rgba(253, 204, 14, .6); }
.info-row a:hover { color: var(--yellow); }
.map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--paper); min-height: 300px; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .8); padding-block: 56px 28px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer__grid { display: grid; gap: 32px; }
.footer__brand img { width: 150px; height: auto; display: block; margin-bottom: 14px; }
.footer__col h4 { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-bottom: 14px; font-weight: 600; }
.footer__col ul { display: grid; gap: 10px; }
.footer__legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); display: grid; gap: 6px; font-size: .85rem; color: rgba(255, 255, 255, .6); }

/* ---------- Página de exames ---------- */
.toolbar { position: sticky; top: var(--header-h); z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.toolbar__in { padding-block: 14px; display: grid; gap: 12px; }
.search { position: relative; }
.search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--steel); }
.search input { width: 100%; min-height: 50px; padding: 0 16px 0 46px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: #fff; color: var(--ink); }
.search input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 4px var(--yellow-soft); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-inline: calc(-1 * max(20px, env(safe-area-inset-left, 0px))); padding-inline: max(20px, env(safe-area-inset-left, 0px)); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: 500 .92rem var(--f-display); cursor: pointer; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.count { font-size: .9rem; color: var(--steel); }

.exam-list { display: grid; gap: 12px; margin-top: 24px; }
.exam { border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; scroll-margin-top: calc(var(--header-h) + 150px); }
.exam[open] { border-color: var(--ink); box-shadow: var(--shadow); }
.exam summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 72px; cursor: pointer; }
.exam summary::-webkit-details-marker { display: none; }
.exam__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--yellow); flex: none; }
.exam__ico--photo { background: var(--ink); overflow: hidden; width: 56px; height: 56px; }
.exam__ico--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.exam__photo { margin: 16px 0 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper); }
.exam__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.exam__title { display: grid; gap: 2px; min-width: 0; }
.exam__title strong { font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; line-height: 1.2; }
.exam__title span { font-size: .85rem; color: var(--steel); }
.exam__chev { margin-left: auto; transition: transform .2s ease; }
.exam[open] .exam__chev { transform: rotate(180deg); }
.exam__body { padding: 4px 16px 20px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.badge { display: inline-flex; width: fit-content; padding: 5px 11px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--yellow-soft); color: #5c4700; margin-top: 14px; }
.checks { display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 19px; height: 19px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23232323' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.empty { padding: 32px 20px; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--r); color: var(--steel); }

.note { display: flex; gap: 14px; padding: 18px; border-radius: var(--r); background: var(--yellow-soft); color: #4a3a00; }
.note .ico { flex: none; margin-top: 2px; }

/* ---------- Medicina do trabalho (página) ---------- */
.svc { display: grid; gap: 12px; }
.svc__item { padding: 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); display: grid; gap: 6px; }
.svc__item h3 { font-size: 1.15rem; }
.svc__item p { color: var(--steel); margin: 0; font-size: .96rem; }
.svc__item .ico { background: var(--yellow); border-radius: 10px; padding: 9px; width: 40px; height: 40px; margin-bottom: 6px; }

/* ---------- Quem somos ---------- */
.about { display: grid; gap: 28px; }
.quote { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.35rem, 4vw, 2rem); line-height: 1.3; }
.mvv { display: grid; gap: 14px; }
.mvv__card { padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); display: grid; gap: 8px; }
.mvv__card h3 { font-size: 1.3rem; }
.mvv__card p { margin: 0; color: var(--steel); }
.values { display: grid; gap: 12px; }
.values li { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.values strong { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; color: var(--yellow); }
.values span { color: rgba(255, 255, 255, .8); }
.doc-card { display: grid; gap: 4px; padding: 22px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.doc-card small { font-family: var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: var(--steel); font-size: .72rem; font-weight: 600; }
.doc-card strong { font-family: var(--f-display); font-size: 1.3rem; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; gap: 14px; }
.c-card { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.c-card:hover { transform: translateY(-2px); border-color: var(--ink); }
.c-card .ico { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--yellow); }
.c-card small { display: block; font-family: var(--f-display); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); font-weight: 600; }
.c-card strong { font-family: var(--f-display); font-size: 1.12rem; overflow-wrap: anywhere; }

.form { display: grid; gap: 16px; padding: 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--f-display); font-weight: 500; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 4px var(--yellow-soft); }
.field .err { display: none; color: #b3261e; font-size: .88rem; }
.field.has-error .err { display: block; }
.field.has-error input { border-color: #b3261e; }
.fine { font-size: .85rem; color: var(--steel); margin: 0; }

/* ---------- Resultado ---------- */
.portal { display: grid; gap: 14px; padding: 24px; border-radius: var(--r-lg); background: var(--ink); color: #fff; }
.portal p { margin: 0; color: rgba(255, 255, 255, .78); }

/* ---------- Revelar ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ======================================================================
   ≥ 720px — tablets
   ====================================================================== */
@media (min-width: 720px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .hero__in { padding-block: 72px 150px; }
  .quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: -78px; position: relative; z-index: 2; }
  .quick a { display: flex; align-items: center; gap: 16px; padding: 20px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); text-decoration: none; border: 1px solid var(--line); transition: transform .18s ease; }
  .quick a:hover { transform: translateY(-3px); }
  .quick .ico { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--yellow); }
  .quick small { display: block; font-size: .8rem; color: var(--steel); }
  .quick strong { font-family: var(--f-display); font-size: 1.08rem; }
  .pillars { grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .ex-card { flex-basis: 300px; max-width: none; }
  .carousel__track { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; gap: 16px; }
  .tile { padding: 20px; min-height: 140px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .bring { grid-template-columns: repeat(2, 1fr); }
  .pills { grid-template-columns: repeat(2, 1fr); }
  .svc { grid-template-columns: repeat(2, 1fr); }
  .mvv { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .toolbar__in { grid-template-columns: minmax(0, 360px) 1fr; align-items: center; }
  .chips { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }
}

/* ======================================================================
   ≥ 900px — desktop: some a barra inferior, aparece o menu horizontal
   ====================================================================== */
@media (min-width: 900px) {
  .fab, .fab__scrim { display: none; }
  .nav-toggle { display: none; }
  .search-btn { display: grid; place-items: center; width: 44px; height: 44px; margin-left: 8px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .07); color: #fff; cursor: pointer; flex: none; }
  .search-btn:hover { background: rgba(255, 255, 255, .14); color: var(--yellow); }
  .search-btn .ico { width: 22px; height: 22px; }
  .nav {
    margin-left: auto;
    position: static; inset: auto; background: transparent; padding: 0; flex-direction: row; align-items: center; gap: 4px;
    opacity: 1; visibility: visible; transform: none; overflow: visible;
  }
  .nav a.nav__link { min-height: 44px; padding: 0 12px; font-size: .96rem; white-space: nowrap; border: 0; border-radius: 10px; font-weight: 500; color: rgba(255, 255, 255, .85); }
  .nav a.nav__link:hover { color: #fff; background: rgba(255, 255, 255, .07); }
  .nav a.nav__link[aria-current="page"] { color: var(--yellow); }
  .nav a.nav__link[aria-current="page"]::after { display: none; }
  .nav__cta { display: flex; margin: 0 0 0 10px; }
  .nav__cta .btn { min-height: 44px; padding: 0 18px; font-size: .95rem; white-space: nowrap; }
  .nav__cta .long { display: none; }
  .site-header__in { height: 76px; }
  :root { --header-h: 76px; }

  .hero__mark { right: -4%; top: 50%; bottom: auto; transform: translateY(-52%); width: 62vw; max-width: 900px; opacity: 1; }
  .hero__in { grid-template-columns: minmax(0, 1fr); padding-block: 96px 170px; }
  .hero h1 { max-width: 13ch; }
  .page-hero__mark { right: -4%; width: 52vw; opacity: .3; }
  .page-hero__in { padding-block: 64px 72px; }

  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .why { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .occ__grid { grid-template-columns: 6fr 5fr; gap: 64px; align-items: center; }
  .visit { grid-template-columns: 5fr 7fr; gap: 24px; }
  .info-card { padding: 32px; }
  .map, .map iframe { min-height: 100%; }
  .about { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .svc { grid-template-columns: repeat(3, 1fr); }
  .contact-layout { display: grid; grid-template-columns: 5fr 6fr; gap: 40px; align-items: start; }
  .form { padding: 32px; }
  .exam-list { grid-template-columns: 1fr; }
  .exam__body { grid-template-columns: 260px 1fr auto; align-items: start; padding-block: 20px; }
  .exam__photo { margin: 0; aspect-ratio: 4 / 3; }
}

@media (min-width: 1100px) {
  .exam__body { padding-inline: 24px; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__mark path { stroke-dashoffset: 0; fill: rgba(253, 204, 14, .10); }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Pesquisa ---------- */
.search-open { overflow: hidden; }
.sitesearch { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: flex-start; padding: max(12px, env(safe-area-inset-top, 0px)) 12px 12px; }
.sitesearch[hidden] { display: none; }
.search__scrim { position: absolute; inset: 0; background: rgba(20, 20, 20, .62); animation: sfade .18s ease; }
.search__panel { position: relative; width: 100%; max-width: 680px; max-height: calc(100dvh - 24px); display: flex; flex-direction: column; background: #fff; color: var(--ink);
  border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(0, 0, 0, .4); overflow: hidden; animation: spop .2s ease; }
@keyframes sfade { from { opacity: 0; } }
@keyframes spop { from { opacity: 0; transform: translateY(-10px) scale(.985); } }
.search__bar { display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 18px; border-bottom: 1px solid var(--line); margin: 0; }
.search__bar > .ico { width: 22px; height: 22px; flex: none; color: var(--steel); }
.search__input { flex: 1; min-width: 0; height: 56px; border: 0; outline: 0; background: transparent; font: 500 1.1rem var(--f-body); color: var(--ink); -webkit-appearance: none; appearance: none; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__input::placeholder { color: #8a8b8d; }
.search__close { width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.search__close:hover { background: var(--paper); }
.search__close .ico { width: 22px; height: 22px; }
.search__body { overflow-y: auto; padding: 14px 12px 16px; overscroll-behavior: contain; }
.search__hint { margin: 0 6px 10px; font-size: .9rem; color: var(--steel); }
.search__hint a { color: var(--ink); font-weight: 600; }
.search__chip { margin: 4px 6px 0 0; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: 500 .9rem var(--f-display); color: var(--ink); cursor: pointer; }
.search__chip:hover { border-color: var(--ink); }
.search__list { display: grid; gap: 4px; }
.search__item { display: flex; align-items: center; gap: 14px; padding: 12px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.search__item:hover, .search__item.is-active { background: var(--paper); }
.search__item.is-active { box-shadow: inset 3px 0 0 var(--yellow); }
.search__item > .ico { width: 20px; height: 20px; flex: none; margin-left: auto; color: var(--steel); }
.search__tag { flex: none; min-width: 78px; text-align: center; padding: 4px 10px; border-radius: 999px; font: 600 .72rem var(--f-display); letter-spacing: .04em; background: var(--yellow-soft); color: #5c4700; }
.search__txt { display: grid; gap: 2px; min-width: 0; }
.search__txt strong { font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; line-height: 1.25; }
.search__txt span { font-size: .86rem; color: var(--steel); line-height: 1.35; }
@media (max-width: 520px) {
  .search__tag { display: none; }
  .sitesearch { padding-inline: 8px; }
}
@media (min-width: 900px) {
  .sitesearch { padding-top: 9vh; }
  .search__input { font-size: 1.2rem; }
}

.sitesearch .search__input:focus-visible { outline: none; box-shadow: none; }
.sitesearch .search__bar:focus-within { box-shadow: inset 0 -2px 0 var(--yellow); }

/* ==========================================================================
   Barra de rolagem personalizada (grafite + amarelo da marca)
   ========================================================================== */
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
  background: var(--yellow); border-radius: 999px;
  border: 3px solid var(--ink); background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: #ffd83a; background-clip: padding-box; }
::-webkit-scrollbar-thumb:active { background: var(--yellow-deep); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: var(--ink); }
/* listas internas (ex.: caixa de pesquisa): trilho claro, para não pesar */
.search__body::-webkit-scrollbar { width: 10px; }
.search__body::-webkit-scrollbar-track { background: transparent; }
.search__body::-webkit-scrollbar-thumb { background: var(--yellow); border: 2px solid #fff; background-clip: padding-box; }
/* Firefox não entende ::-webkit-scrollbar */
@supports (-moz-appearance: none) {
  html { scrollbar-width: thin; scrollbar-color: var(--yellow) var(--ink); }
  .search__body { scrollbar-width: thin; scrollbar-color: var(--yellow) transparent; }
}

/* ==========================================================================
   Medicina do trabalho (home): foto + chips
   ========================================================================== */
.occ__photo { position: relative; margin: 0; border-radius: var(--r-lg); isolation: isolate; }
.occ__photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 40% 50%;
  border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
/* véu amarelo suave sobre a foto + escurecimento na base */
.occ__photo::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); pointer-events: none;
  background:
    linear-gradient(to top, rgba(35, 35, 35, .55), rgba(35, 35, 35, 0) 42%),
    linear-gradient(135deg, rgba(253, 204, 14, .22), rgba(253, 204, 14, 0) 60%);
}
.occ__photo::before { /* moldura amarela deslocada */
  content: ""; position: absolute; z-index: -1; inset: 14px -10px -14px 10px;
  border: 2px solid var(--yellow); border-radius: var(--r-lg); opacity: .85;
}
.occ__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.occ__pills .pill { padding: 12px 16px; }
@media (min-width: 900px) {
  .occ__photo::before { inset: 18px -14px -18px 14px; }
  .occ__pills { margin-top: 56px; }
}

/* ==========================================================================
   Página de médicos
   ========================================================================== */
.docs { display: grid; gap: 16px; }
.doc {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px 16px; align-content: start;
  padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.doc:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.doc__photo { grid-column: 1; grid-row: 1; width: 104px; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: var(--paper); }
.doc__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.doc__head { grid-column: 2; grid-row: 1; display: grid; gap: 6px; align-content: center; min-width: 0; }
.doc__tag {
  width: fit-content; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--yellow);
  font-family: var(--f-display); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.doc__name { font-size: 1.2rem; line-height: 1.2; }
.doc__role { margin: 0; color: var(--steel); font-weight: 500; line-height: 1.35; overflow-wrap: break-word; hyphens: auto; }
.doc__role::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 3px; background: var(--yellow); margin-bottom: 8px; }
.doc__more { grid-column: 1 / -1; display: grid; gap: 10px; align-content: start; padding-top: 14px; border-top: 1px solid var(--line); }
.doc__label { font-family: var(--f-display); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); }
.week { display: flex; gap: 5px; }
.week li {
  flex: 1 1 0; min-width: 0; max-width: 52px; text-align: center; padding: 6px 0; border-radius: 8px;
  border: 1px solid var(--line); color: var(--mist); font-family: var(--f-display); font-size: .72rem; font-weight: 600;
}
.week li.on { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.doc__days { margin: 0; color: var(--ink); font-weight: 500; }
.doc__month { display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 8px 12px; border-radius: 10px; background: var(--yellow-soft); font-weight: 600; }
.doc__month .ico { width: 20px; height: 20px; }
.doc .btn { min-height: 46px; width: fit-content; padding: 0 18px; font-size: .95rem; margin-top: 2px; }
.doc .btn .ico { width: 20px; height: 20px; }

@media (min-width: 900px) {
  .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .doc { grid-template-columns: 190px minmax(0, 1fr); gap: 0 24px; padding: 20px; }
  .doc__photo { width: 190px; grid-row: 1 / 3; align-self: start; }
  .doc__head { align-content: end; padding-bottom: 14px; }
  .doc__more { grid-column: 2; grid-row: 2; padding-top: 14px; }
  .doc__name { font-size: 1.35rem; }
}

/* Menu do topo mais compacto em telas médias (7 links + botão) */
@media (min-width: 900px) and (max-width: 1259px) {
  .nav__x { display: none; }
  .nav a.nav__link { padding: 0 9px; font-size: .92rem; }
  .nav__cta { margin-left: 6px; }
  .search-btn { margin-left: 4px; }
}
@media (min-width: 900px) and (max-width: 1019px) {
  .brand__txt { display: none; }
}
@media (min-width: 1260px) {
  .nav a.nav__link { padding: 0 9px; font-size: .92rem; }
  .nav__cta { margin-left: 6px; }
  .search-btn { margin-left: 4px; }
}
