/* =========================================================
   Dra. Cristina Marques Barreto — Radiologia · Imagem da mulher
   ========================================================= */

:root {
  --ivory: #FBF7F4;
  --cream: #F5ECE7;
  --blush: #F2DDD7;
  --blush-2: #EACBC3;
  --rose: #A84D62;
  --rose-ink: #8E3D52;
  --rose-soft: #DDA2AE;
  --plum: #3A1D29;
  --plum-2: #4A2636;
  --ink: #2B1F25;
  --muted: #6B5A62;
  --gold: #C3A07C;
  --line: rgba(58, 29, 41, .12);

  --shadow: 0 40px 70px -38px rgba(58, 29, 41, .45);
  --shadow-sm: 0 16px 36px -18px rgba(58, 29, 41, .28);

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --script: "Great Vibes", "Snell Roundhand", cursive;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --gutter: 20px;
  --header-h: 128px; /* altura do cabeçalho fixo (duas linhas) */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
svg { flex: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.01em;
  color: var(--plum);
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--rose); }
h2 { font-size: clamp(40px, 5.2vw, 66px); }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0 0 1em; }

.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(84px, 10vw, 140px) 0;
}

.section-head { max-width: 680px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p:not(.eyebrow) { color: var(--muted); margin-top: 22px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rose);
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; }
.eyebrow.light { color: var(--rose-soft); }

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--plum);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .35s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-sm svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 14px 28px -14px rgba(168, 77, 98, .8);
}
.btn-primary:hover { background: var(--plum); transform: translateY(-2px); box-shadow: 0 18px 30px -16px rgba(58, 29, 41, .7); }

.btn-ghost {
  background: transparent;
  color: var(--plum);
  border-color: rgba(58, 29, 41, .22);
}
.btn-ghost:hover { background: var(--plum); color: var(--ivory); border-color: var(--plum); transform: translateY(-2px); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .4s;
}
.site-header.scrolled { box-shadow: 0 14px 30px -26px rgba(58, 29, 41, .5); }

/* linha 1: nome / especialidade + CRM · bandeiras · telefone e WhatsApp */
.hdr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.hdr-id { display: block; min-width: 0; text-decoration: none; }
.hdr-name { display: block; font-family: var(--script); font-size: 34px; font-weight: 400; line-height: 1.1; color: var(--plum); }
.hdr-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 4px; line-height: 1.3; }
.hdr-spec { font-size: 12.5px; font-weight: 700; color: var(--rose); }
.hdr-crm { padding-left: 10px; border-left: 1px solid rgba(58, 29, 41, .2); font-size: 12px; letter-spacing: .02em; color: var(--muted); }

.hdr-actions { display: flex; align-items: center; gap: 18px; }
.hdr-contact { display: flex; align-items: center; gap: 10px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .3s, color .3s, border-color .3s;
}
.pill svg { width: 17px; height: 17px; }
.pill-outline { border-color: rgba(58, 29, 41, .25); color: var(--plum); }
.pill-outline:hover { background: var(--plum); border-color: var(--plum); color: #fff; }
.pill-wa { background: var(--rose); color: #fff; box-shadow: 0 10px 22px -12px rgba(168, 77, 98, .8); }
.pill-wa:hover { background: var(--plum); }
.pill-short { display: none; }

.lang { display: flex; align-items: center; gap: 4px; }
.lang a {
  display: grid;
  place-items: center;
  padding: 5px;
  border: 1.5px solid transparent;
  border-radius: 9px;
  opacity: .5;
  filter: saturate(.6);
  transition: opacity .3s, filter .3s, border-color .3s;
}
.lang a:hover { opacity: 1; filter: none; }
.lang a[aria-current="page"] { opacity: 1; filter: none; border-color: var(--plum); }
.lang img { width: 26px; height: 18px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--plum);
  color: var(--blush);
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  letter-spacing: .02em;
}
.brand-name { display: block; font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.1; color: var(--plum); }
.brand-sub { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* linha 2: menu — cada link leva à seção correspondente */
.nav ul {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav ul::-webkit-scrollbar { display: none; }
.nav ul a {
  position: relative;
  display: block;
  padding: 13px 0;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  transition: color .3s;
}
.nav ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 1px;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav ul a:hover, .nav ul a.active { color: var(--rose); }
.nav ul a:hover::after, .nav ul a.active::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 186px 0 100px;
  background: var(--ivory);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
}
.hero h1 {
  margin-bottom: 22px;
  font-family: var(--script);
  font-size: clamp(48px, 5.6vw, 82px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
}
.hero h1, .hero h1 em { white-space: nowrap; }
.hero h1 em { display: block; font-style: normal; font-weight: 400; }

/* seletor de idioma (PT · EN · ES) */
.lang-switch {
  display: flex;
  width: fit-content;
  gap: 4px;
  margin-bottom: 30px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--muted);
  transition: background-color .3s, color .3s;
}
.lang-switch a:hover { color: var(--plum); background: var(--cream); }
.lang-switch a[aria-current="page"] { background: var(--plum); color: #fff; }
.lang-switch img { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; }

.hero-phrase { max-width: 500px; margin-bottom: 30px; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; color: var(--muted); }

.hero-reg {
  max-width: 580px;
  margin: 0 0 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }


/* foto principal com bloco rosado deslocado atrás */
.hero-photo { position: relative; justify-self: end; width: min(100%, 470px); margin: 0; }
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 28px -28px -28px 28px;
  z-index: -1;
  border-radius: 32px;
  background: var(--blush);
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 10%;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

/* ---------- Faixa ---------- */
.marquee {
  overflow: hidden;
  padding: 22px 0;
  background: var(--plum);
  color: var(--ivory);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.marquee span { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); font-style: italic; white-space: nowrap; }
.marquee i { font-style: normal; font-size: 13px; color: var(--rose-soft); }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sobre ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: clamp(56px, 8vw, 120px);
}
.about-visual { position: relative; padding-bottom: 72px; }
.about-main {
  width: 80%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 26px 26px;
  box-shadow: var(--shadow);
}
.about-main img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 88%; }
.about-small {
  position: absolute;
  right: 0; bottom: 0;
  width: 50%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1;
  border: 8px solid var(--ivory);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.about-small img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }

.about-copy h2 { margin-bottom: 30px; }
.about-copy > p { color: var(--muted); }

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.about-facts li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px;
  border-radius: 20px;
  background: var(--cream);
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--muted);
}
.about-facts .num { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--plum); }
.about-facts .flags { display: flex; gap: 8px; align-items: center; min-height: 34px; }
.about-facts .flags img { border-radius: 3px; box-shadow: 0 0 0 1px rgba(58,29,41,.12); }

/* ---------- Formação ---------- */
.formacao { background: var(--cream); }

.formacao-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: start;
  gap: clamp(48px, 7vw, 100px);
}

.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 12px; bottom: 12px;
  width: 1px;
  background: var(--rose-soft);
}
.timeline li { position: relative; padding: 0 0 46px 50px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 15px; height: 15px;
  border: 1.5px solid var(--rose);
  border-radius: 50%;
  background: var(--ivory);
  box-shadow: 0 0 0 6px var(--cream);
}
.tl-tag { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--rose); }
.timeline h3 { margin: 10px 0 8px; font-size: clamp(28px, 2.7vw, 36px); }
.timeline p { margin: 0; color: var(--muted); }

.cbr-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  overflow: hidden;
  padding: clamp(32px, 4vw, 50px);
  border-radius: 30px;
  background: var(--plum);
  color: var(--ivory);
  isolation: isolate;
}
.cbr-card h3 { margin-bottom: 30px; font-size: clamp(30px, 3vw, 38px); color: #fff; }
.cbr-card h3 em { color: var(--rose-soft); }
.cbr-item { padding: 24px 0; border-top: 1px solid rgba(251, 247, 244, .15); }
.cbr-item:last-child { padding-bottom: 0; }
.cbr-item h4 { margin-bottom: 8px; font-family: var(--sans); font-size: 16px; font-weight: 700; letter-spacing: 0; line-height: 1.4; color: #fff; }
.cbr-item p { margin: 0; font-size: 15px; color: rgba(251, 247, 244, .74); }

/* ---------- Exames ---------- */
.exames-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: start;
  gap: clamp(48px, 7vw, 100px);
}
.exames-photo {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 30px 30px 999px 999px;
  box-shadow: var(--shadow);
}
.exames-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }

.ex-group + .ex-group { margin-top: 56px; }
.ex-group h3 { margin-bottom: 8px; font-size: clamp(28px, 2.6vw, 34px); }

.ex-list { margin: 0; padding: 0; list-style: none; }
.ex-list li {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .4s var(--ease);
}
.ex-list li:hover { padding-left: 10px; }
.ex-n { font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--rose); }
.ex-list h4 { font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: 0; line-height: 1.4; color: var(--plum); }
.ex-list p { margin: 4px 0 0; font-size: 14.5px; color: var(--muted); }
.ex-where {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blush);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
  color: var(--rose-ink);
}

/* ---------- Onde atendo ---------- */
.locais { background: var(--cream); }

.locais-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}
.local-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(30px, 4vw, 50px);
  border: 1px solid rgba(58, 29, 41, .06);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.local-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.local-card::after {
  content: attr(data-mark);
  position: absolute;
  right: 26px; top: 6px;
  font-family: var(--serif);
  font-size: 120px;
  font-style: italic;
  line-height: 1;
  color: var(--blush);
  pointer-events: none;
}
.local-card > * { position: relative; z-index: 1; }

.local-tag {
  align-self: flex-start;
  margin-bottom: 22px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--blush);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rose-ink);
}
.local-card h3 { margin-bottom: 18px; font-size: clamp(32px, 3.2vw, 42px); }

.local-addr { display: flex; gap: 12px; margin-bottom: 26px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.local-addr svg { width: 20px; height: 20px; margin-top: 2px; color: var(--rose); }

.local-list {
  display: grid;
  gap: 10px;
  margin: 0 0 34px;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.local-list li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.5; }
.local-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rose-soft);
}
.local-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }

.locais-note { max-width: 620px; margin: 40px auto 0; text-align: center; font-size: 15px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: start;
  gap: clamp(48px, 7vw, 100px);
}
.faq-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-aside > p:not(.eyebrow) { margin-top: 22px; color: var(--muted); }
.faq-figure {
  position: relative;
  margin: 30px 0 32px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 26px;
  background: var(--plum);
  box-shadow: var(--shadow-sm);
}
.faq-figure img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); mix-blend-mode: screen; opacity: .9; }
.faq-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(168, 77, 98, .4);
  mix-blend-mode: multiply;
}

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(23px, 2.2vw, 29px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--plum);
  transition: color .3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--rose); }

.faq-icon {
  position: relative;
  flex: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color .35s, border-color .35s;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 1.5px;
  background: var(--rose);
  transform: translate(-50%, -50%);
  transition: transform .4s var(--ease), background-color .35s;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--rose); border-color: var(--rose); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: #fff; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0); }

.faq-body { padding: 0 66px 30px 0; color: var(--muted); }
.faq-body p { margin: 0; }

@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    height: 0;
    overflow: clip;
    transition: height .45s var(--ease), content-visibility .45s allow-discrete;
  }
  .faq-item[open]::details-content { height: auto; }
}

/* ---------- Eventos ---------- */
.eventos { overflow: hidden; background: var(--plum); color: var(--ivory); }
.eventos h2 { color: #fff; }
.eventos h2 em { color: var(--rose-soft); }

.eventos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 26px;
}
.evento {
  padding: clamp(28px, 3vw, 36px);
  border: 1px solid rgba(251, 247, 244, .14);
  border-radius: 26px;
  background: rgba(255, 255, 255, .03);
  transition: transform .45s var(--ease), background-color .45s, border-color .45s;
}
.evento:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .06); border-color: rgba(221, 162, 174, .45); }
.ev-date {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 13px;
  border: 1px solid rgba(221, 162, 174, .45);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose-soft);
}
.evento h3 { margin-bottom: 14px; font-size: clamp(28px, 2.6vw, 34px); color: #fff; }
.evento p { margin: 0; font-size: 15.5px; color: rgba(251, 247, 244, .74); }

.ev-gallery {
  display: grid;
  grid-template-columns: 1fr 1.45fr 1fr;
  grid-template-rows: 250px 250px;
  gap: 16px;
}
.ev-gallery figure { margin: 0; overflow: hidden; border-radius: 22px; background: var(--plum-2); }
.ev-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ev-gallery figure:hover img { transform: scale(1.05); }
.g1 { grid-column: 1; grid-row: 1 / 3; }
.g2 { grid-column: 2; grid-row: 1; }
.g3 { grid-column: 2; grid-row: 2; }
.g4 { grid-column: 3; grid-row: 1 / 3; }
.g1 img { object-position: 35% 50%; }
.g2 img { object-position: 40% 35%; }
.g3 img { object-position: 50% 60%; }
.g4 img { object-position: 50% 45%; }

/* ---------- Além da medicina ---------- */
.alem { padding-bottom: clamp(60px, 7vw, 100px); }
.alem-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 40px;
  margin-bottom: 56px;
}
.alem-head > p { max-width: 420px; margin: 0 0 8px; font-family: var(--serif); font-size: clamp(22px, 2vw, 27px); font-style: italic; line-height: 1.4; color: var(--muted); }

.alem-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  width: min(1400px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.alem-strip figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4.3;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}
.alem-strip figure:nth-child(odd) { border-radius: 999px 999px 24px 24px; }
.alem-strip figure:nth-child(even) { margin-top: 64px; }
.alem-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.alem-strip figure:hover img { transform: scale(1.05); }
.alem-strip figure:nth-child(1) img { object-position: 50% 22%; }
.alem-strip figure:nth-child(2) img { object-position: 50% 28%; }
.alem-strip figure:nth-child(3) img { object-position: 46% 55%; }
.alem-strip figure:nth-child(4) img { object-position: 32% 50%; }
.alem-strip figure:nth-child(5) img { object-position: 40% 40%; }
.alem-strip figcaption {
  position: absolute;
  left: 14px; bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(251, 247, 244, .9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--plum);
}

/* ---------- Agendamento ---------- */
.contato { padding-top: clamp(40px, 5vw, 70px); }
.contato-card {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  overflow: hidden;
  border-radius: 38px;
  background: var(--blush);
  box-shadow: var(--shadow-sm);
}
.contato-copy { padding: clamp(40px, 6vw, 84px); }
.contato-label { margin: 26px 0 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.contato-phone {
  display: inline-block;
  margin-bottom: 32px;
  font-family: var(--serif);
  font-size: clamp(46px, 5.6vw, 76px);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  color: var(--plum);
  transition: color .3s;
}
.contato-phone:hover { color: var(--rose); }
.contato-note { max-width: 480px; margin: 26px 0 0; font-size: 14.5px; color: var(--muted); }

.socials { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--plum);
  transition: background-color .3s, color .3s, border-color .3s;
}
.socials a:hover { background: var(--plum); border-color: var(--plum); color: #fff; }
.socials svg { width: 17px; height: 17px; }

.contato-photo { position: relative; min-height: 460px; margin: 0; }
.contato-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }

/* ---------- Rodapé ---------- */
.site-footer {
  padding: 80px 0 32px;
  background: var(--plum);
  font-size: 15px;
  color: rgba(251, 247, 244, .72);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.site-footer .brand-mark { background: var(--rose); color: #fff; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: rgba(251, 247, 244, .6); }
.footer-brand p { max-width: 340px; margin-top: 22px; }
.site-footer h4 {
  margin-bottom: 18px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rose-soft);
}
.site-footer strong { color: #fff; font-weight: 600; }
.site-footer a { text-decoration: none; transition: color .3s; }
.site-footer a:hover { color: #fff; }
.footer-links { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; align-items: center; gap: 10px; }
.footer-links svg { width: 18px; height: 18px; color: var(--rose-soft); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid rgba(251, 247, 244, .12);
  font-size: 13px;
  color: rgba(251, 247, 244, .55);
}
.footer-bottom p { margin: 0; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  box-shadow: 0 16px 30px -12px rgba(168, 77, 98, .8);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(.9);
  transition: opacity .4s, transform .4s var(--ease), background-color .3s;
}
.wa-float.show { opacity: 1; pointer-events: auto; transform: none; }
.wa-float:hover { background: var(--plum); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--rose);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Animações de entrada ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1140px) {
  .nav ul { gap: 24px; }
}

@media (max-width: 960px) {
  .hero { min-height: auto; padding: 186px 0 90px; }
  .hero-grid { grid-template-columns: 1fr; gap: 72px; }
  .hero-copy { text-align: left; }
  .hero-photo { order: -1; justify-self: start; width: calc(100% - 28px); }
  .hero-photo img { aspect-ratio: 4 / 5; object-position: 50% 10%; }

  .about-grid,
  .formacao-grid,
  .exames-grid,
  .faq-grid { grid-template-columns: 1fr; }

  .about-visual { max-width: 520px; }
  .cbr-card, .faq-aside { position: relative; top: 0; }
  .exames-photo { position: relative; top: 0; max-width: 420px; aspect-ratio: 4 / 4.4; }

  .locais-grid { grid-template-columns: 1fr; }

  .eventos-grid { grid-template-columns: 1fr; }
  .ev-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 240px; }
  .g1 { grid-column: 1; grid-row: 1; }
  .g4 { grid-column: 2; grid-row: 1; }
  .g2 { grid-column: 1; grid-row: 2; }
  .g3 { grid-column: 2; grid-row: 2; }

  .alem-head { grid-template-columns: 1fr; gap: 10px; }

  .alem-strip {
    display: flex;
    gap: 14px;
    width: 100%;
    padding: 0 var(--gutter) 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .alem-strip::-webkit-scrollbar { display: none; }
  .alem-strip figure { flex: 0 0 min(58%, 300px); scroll-snap-align: center; }
  .alem-strip figure:nth-child(even) { margin-top: 40px; }

  .contato-card { grid-template-columns: 1fr; }
  .contato-photo { order: -1; min-height: 360px; }
  .contato-photo img { object-position: 50% 22%; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  /* telas menores: nome em cima; bandeiras à esquerda e contato à direita logo abaixo */
  :root { --header-h: 160px; }
  .hdr-top { flex-wrap: wrap; gap: 10px; padding: 12px 0; }
  .hdr-id { flex: 1 1 100%; }
  .hdr-actions { flex: 1 1 100%; justify-content: space-between; }
  .hdr-contact { gap: 8px; }
  .pill { height: 38px; padding: 0 15px; font-size: 13.5px; }

  /* menu numa linha que desliza para o lado quando não cabe */
  .nav ul { gap: 22px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .nav ul a { padding: 11px 0; font-size: 14px; }
  .nav ul a::after { bottom: 6px; }

  .hero { padding-top: 192px; }
}

@media (max-width: 520px) {
  .pill-long { display: none; }
  .pill-short { display: inline; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }

  .brand-mark { width: 40px; height: 40px; font-size: 17px; }
  .brand-name { font-size: 18px; }
  .brand-sub { font-size: 9.5px; letter-spacing: .16em; }

  .hdr-name { font-size: 28px; }
  .hdr-meta { gap: 2px 8px; }
  .hdr-spec { font-size: 11px; }
  .hdr-crm { padding-left: 8px; font-size: 11px; }
  .pill { padding: 0 13px; }
  .lang { gap: 2px; }
  .lang a { padding: 4px; }
  .lang img { width: 24px; height: 16px; }

  .hero { padding: 184px 0 80px; }
  .hero h1 { font-size: clamp(36px, 11vw, 56px); }
  .hero-actions .btn { flex: 1 1 100%; }

  .hero-photo { width: calc(100% - 18px); }
  .hero-photo::before { inset: 18px -18px -18px 18px; }
  .hero-photo img { border-radius: 24px; }
  .hero-photo::before { border-radius: 24px; }
  .lang-switch a { padding: 7px 12px; }

  .about-visual { padding-bottom: 56px; }
  .about-facts { grid-template-columns: 1fr 1fr; }
  .about-facts li:last-child { grid-column: 1 / -1; }

  .timeline li { padding-left: 42px; }

  .ex-list li { grid-template-columns: 38px 1fr; gap: 6px 12px; align-items: start; }
  .ex-n { font-size: 20px; line-height: 1.3; }
  .ex-where { grid-column: 2; justify-self: start; }
  .ex-list li:hover { padding-left: 0; }

  .local-card::after { font-size: 90px; right: 18px; }
  .local-actions .btn { flex: 1 1 auto; }

  .faq-item summary { padding: 22px 0; gap: 16px; }
  .faq-icon { width: 36px; height: 36px; }
  .faq-body { padding-right: 0; }

  .ev-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 170px 170px; gap: 10px; }
  .g2 { grid-column: 1 / -1; grid-row: 2; }
  .g3 { grid-column: 1 / -1; grid-row: 3; }

  .contato-card { border-radius: 28px; }
  .contato-copy .hero-actions .btn { flex: 1 1 auto; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }

  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

@media (max-width: 400px) {
  .hdr-name { font-size: 26px; }
  .hdr-spec, .hdr-crm { font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
