@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --ink: #13203a;
  --paper: #f5f6f8;
  --white: #ffffff;
  --line: #d9dee6;
  --muted: #5a6577;
  --red: #d22f27;      /* vermelho do logo CardioSaúde */
  --green: #1e5c49;    /* SIMPLES Medicina */
  --night: #08131f;    /* Simples Academy */
  --coral: #ef9472;    /* SIMPLES / Academy */
  --serif: "Literata", Georgia, serif;
  --sans: "Public Sans", system-ui, sans-serif;
  --wrap: 74rem;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --bar: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }
p, ul, dl, address, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 3px; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 10; }

/* ---------- Links e botões ---------- */
.link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: .32em;
  transition: color .15s;
}
.link:hover { color: var(--red); }

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  padding: .85rem 1.45rem;
  border-radius: 999px;
  transition: background-color .15s;
}
.btn:hover { background: var(--red); }
.btn-sm { padding: .5rem 1.1rem; font-size: .95rem; }
.btn-lg { padding: 1rem 1.75rem; font-size: 1.05rem; background: var(--red); }
.btn-lg:hover { background: var(--ink); }

/* ---------- Barra do topo ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(255 255 255 / .9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar-in {
  max-width: var(--wrap);
  margin: 0 auto;
  height: var(--bar);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand img { height: 2.4rem; width: auto; }
.nav { display: none; gap: 1.75rem; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .97rem; }
.nav a:hover { color: var(--ink); }
.bar .btn-sm { margin-left: auto; }
@media (min-width: 820px) {
  .nav { display: flex; }
  .bar .btn-sm { margin-left: 0; }
}

/* ---------- Topo / apresentação ---------- */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) var(--pad) clamp(3rem, 7vw, 5.5rem);
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
h1 {
  font-size: clamp(3.1rem, 10.5vw, 6.5rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.025em;
}
.lede {
  margin-top: 1.5rem;
  max-width: 33rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.1vw, 1.38rem);
  line-height: 1.55;
  color: #2b3850;
}
.roles {
  margin-top: 2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--red);
  font-weight: 500;
  line-height: 1.95;
}
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

.hero-photo {
  position: relative;
  max-width: 24rem;
  justify-self: center;
  width: 100%;
}
.hero-photo::before {          /* bloco de cor deslocado atrás da foto */
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.hero-photo img {
  position: relative;
  aspect-ratio: 560 / 746;
  object-fit: cover;
  border-radius: 6px;
  background: var(--line);
}

@media (min-width: 820px) {
  .hero-in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .hero-photo { justify-self: end; margin-right: 1.25rem; }
}

/* ---------- Seções ---------- */
.block {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) var(--pad) 0;
}
.block-head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 40rem; }
h2 {
  font-size: clamp(2rem, 4.6vw, 2.9rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.015em;
}
.block-head p { margin-top: .75rem; color: var(--muted); font-size: 1.08rem; }
h3 { font-size: 1.25rem; line-height: 1.25; }

/* ---------- Trajetória ---------- */
.cv { display: grid; gap: 2.5rem 4rem; }
.cv h3 { padding-bottom: .75rem; border-bottom: 2px solid var(--ink); }
.cv ul + h3 { margin-top: 2.5rem; }
.cv li {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}
.cv li strong { font-weight: 600; }
.cv li span { color: var(--muted); }
@media (min-width: 820px) { .cv { grid-template-columns: 1fr 1fr; } }

/* ---------- Projetos ---------- */
.projects { display: grid; gap: 1.25rem; }
.project {
  border-radius: 10px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.project-logo { height: clamp(4rem, 9vw, 5.25rem); width: auto; margin-bottom: .75rem; align-self: flex-start; }
.project-kind { font-weight: 600; }
.project p:not(.project-kind) { max-width: 31rem; }
.project .link { margin-top: auto; padding-top: .75rem; align-self: flex-start; }

.project-simples { background: var(--white); border: 1px solid var(--line); }
.project-simples .project-kind { color: var(--green); }
.project-simples .link { text-decoration-color: var(--coral); }
.project-simples .link:hover { color: var(--green); }

.project-academy { background: var(--night); color: #dfe5ee; }
.project-academy .project-kind { color: var(--coral); }
.project-academy .link { color: var(--white); text-decoration-color: var(--coral); }
.project-academy .link:hover { color: var(--coral); }
.project-academy .link:focus-visible { outline-color: var(--coral); }

.project-second { background: var(--green); color: #e3efe9; }
.project-second h3 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.35rem); font-weight: 500; line-height: 1.1; min-height: clamp(4rem, 9vw, 5.25rem); display: flex; align-items: center; margin-bottom: .75rem; }
.project-second .project-kind { color: var(--coral); }
.project-second .link { color: var(--white); text-decoration-color: var(--coral); }
.project-second .link:hover { color: var(--coral); }
.project-second .link:focus-visible { outline-color: var(--coral); }

@media (min-width: 820px) { .projects { grid-template-columns: 1fr 1fr; } .project-academy { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .projects { grid-template-columns: repeat(3, 1fr); } .project-academy { grid-column: auto; } }

/* ---------- Na imprensa ---------- */
.cv-group > .press { margin-top: 1rem; }
.press { display: flex; flex-direction: column; gap: .85rem; text-decoration: none; }
.press-img { position: relative; display: block; border-radius: 8px; overflow: hidden; background: var(--line); }
.press-img img { aspect-ratio: 1053 / 587; object-fit: cover; transition: transform .3s; }
.play { position: absolute; left: 50%; top: 50%; width: 3.5rem; height: 3.5rem; translate: -50% -50%; }
.play circle { fill: rgb(19 32 58 / .78); }
.play path { fill: var(--white); }
.press:hover .press-img img { transform: scale(1.03); }
.press:hover .play circle { fill: var(--red); }
.press-text { display: flex; flex-direction: column; gap: .1rem; }
.press-text strong { font-weight: 600; }
.press-text span { color: var(--muted); }
.press:hover .press-text strong { color: var(--red); }
@media (prefers-reduced-motion: reduce) { .press-img img { transition: none; } .press:hover .press-img img { transform: none; } }

/* ---------- Consultório ---------- */
.office { display: grid; gap: 1.25rem; }
.office-info, .office-cta { border-radius: 10px; padding: clamp(1.75rem, 4vw, 2.75rem); }
.office-info { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
address { font-style: normal; font-family: var(--serif); font-size: 1.22rem; line-height: 1.55; }
.contacts { display: grid; gap: .5rem; }
.contacts div { display: flex; gap: 1rem; }
.contacts dt { color: var(--muted); min-width: 6rem; }
.contacts dd { margin: 0; font-weight: 600; }
.contacts a { text-decoration: none; }
.contacts a:hover { color: var(--red); }

.office-cta { background: var(--ink); color: #dfe5ee; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.office-cta h3 { color: var(--white); font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 500; }
.office-cta .btn-lg { margin-top: .5rem; }
.office-cta .btn-lg:hover { background: var(--white); color: var(--ink); }
.second { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .18); font-size: .97rem; color: #b9c3d3; }
.second a { color: var(--white); font-weight: 600; text-decoration-color: var(--red); text-underline-offset: .25em; }

@media (min-width: 820px) { .office { grid-template-columns: 1fr 1fr; } }

/* ---------- Rodapé ---------- */
.foot { margin-top: clamp(3rem, 7vw, 5rem); background: var(--ink); color: #b9c3d3; font-size: .95rem; }
.foot-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.5rem var(--pad) 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .75rem 2rem;
}
.foot-links { display: flex; gap: .75rem; margin-left: auto; }
.foot-links a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; color: var(--white); border: 1px solid rgb(255 255 255 / .25); transition: background-color .15s, border-color .15s; }
.foot-links a:hover { background: var(--red); border-color: var(--red); }
.foot-links svg { width: 1.25rem; height: 1.25rem; }
.press-img iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
