/* Brazilian Longevity Institute — v2, instituto de ensino e pesquisa.
   Paleta e tipografia do manual de marca (Antonio + Inter). A v1 está em ../longevityinstitute-site-v1-posgraduacao-2026-10-15 */
:root {
  --navy: #1e3748;
  --navy-deep: #13242f;
  --navy-ink: #0d1a23;
  --teal: #00657a;
  --teal-deep: #044554;
  --sky: #58c3f1;
  --silver: #c1c7d3;
  --paper: #f4f6f9;
  --white: #ffffff;
  --text: #2a3a46;
  --muted: #5b6b78;
  --line: #dde2ea;
  --grad: linear-gradient(100deg, var(--sky) 0%, #2a93b9 45%, var(--teal) 100%);
  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Antonio", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
  color: var(--navy);
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--grad); border-radius: 2px; }
.dark .eyebrow { color: var(--sky); }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  text-align: center;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-ghost { color: var(--navy); border: 1px solid var(--silver); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--paper); }

/* Cabeçalho */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand img { width: clamp(150px, 16vw, 184px); height: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--navy); }
.nav .btn { padding: 10px 18px; font-size: 14px; }

/* Hero: faixa navy com o símbolo e as linhas da marca, sem foto */
.hero {
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, .8);
  padding: clamp(72px, 10vw, 136px) 0 clamp(112px, 12vw, 160px);
  background:
    radial-gradient(ellipse 55% 60% at 88% 20%, rgba(0, 101, 122, .55), transparent 70%),
    radial-gradient(ellipse 45% 50% at 5% 100%, rgba(88, 195, 241, .16), transparent 70%),
    linear-gradient(180deg, var(--navy-ink) 0%, var(--navy-deep) 60%, var(--navy) 100%);
}
.hero-symbol {
  position: absolute;
  right: -6%;
  top: 50%;
  width: min(58vw, 760px);
  transform: translateY(-55%);
  opacity: .09;
  pointer-events: none;
}
.hero-wave { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; opacity: .45; pointer-events: none; }
.hero-wave svg { width: 100%; height: 100%; }
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 7fr 5fr; gap: 64px; } }
.hero .eyebrow { color: var(--sky); }
.hero h1 { color: var(--white); font-size: clamp(42px, 5.6vw, 78px); max-width: 15ch; }
.hero h1 span { color: var(--sky); }
.hero-sub { max-width: 560px; margin: 28px 0 36px; font-size: clamp(17px, 1.5vw, 19px); color: rgba(255, 255, 255, .78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.latest {
  display: block;
  text-decoration: none;
  border-radius: 20px;
  padding: 28px 28px 26px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color .2s ease, background-color .2s ease;
}
.latest:hover { border-color: rgba(88, 195, 241, .6); background: rgba(255, 255, 255, .09); }
.latest small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); margin-bottom: 14px; }
.latest .journal { display: block; font-size: 14px; font-weight: 600; color: var(--white); }
.latest .title { display: block; font-size: 17px; line-height: 1.45; color: rgba(255, 255, 255, .85); margin: 8px 0 16px; }
.latest .more { font-size: 14px; font-weight: 600; color: var(--sky); }

.btn-ghost-light { color: var(--white); border: 1px solid rgba(255, 255, 255, .3); }
.btn-ghost-light:hover { border-color: var(--white); }

/* Seções */
section { position: relative; }
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section.paper { background: var(--paper); }
.section.dark { background: var(--navy-deep); color: rgba(255, 255, 255, .78); }
.dark h2, .dark h3 { color: var(--white); }
.section h2 { font-size: clamp(34px, 4.6vw, 56px); }
.section h2.wide { max-width: 32ch; }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--navy); }
.dark .lead { color: rgba(255, 255, 255, .9); }

.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } }

/* Fotos de seção */
.photo { margin: 0; border-radius: 24px; overflow: hidden; background: var(--paper); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* O Instituto: foto + pilares */
.institute { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .institute { grid-template-columns: 5fr 6fr; gap: 72px; } }
/* Visual das publicações (no lugar de foto de banco de imagens) */
.papers-visual {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(88, 195, 241, .28), transparent 60%),
    linear-gradient(140deg, var(--teal-deep), var(--navy) 70%);
}
.papers-visual .sym { position: absolute; right: -16%; bottom: -8%; width: 72%; opacity: .12; pointer-events: none; }
.pcard {
  position: absolute;
  width: 74%;
  background: var(--white);
  border-radius: 12px;
  padding: clamp(16px, 2vw, 24px);
  box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .55);
  transition: transform .35s ease;
}
.pcard.back { right: 6%; top: 8%; transform: rotate(5deg); }
.pcard.front { left: 7%; bottom: 9%; transform: rotate(-4deg); }
.papers-visual:hover .pcard.back { transform: rotate(6.5deg) translateY(-4px); }
.papers-visual:hover .pcard.front { transform: rotate(-5deg) translateY(-6px); }
.pcard small { display: block; font-size: clamp(9.5px, .85vw, 11px); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.pcard strong { display: block; font-size: clamp(13px, 1.25vw, 15.5px); font-weight: 600; line-height: 1.38; color: var(--navy); margin: 10px 0 8px; }
.pcard span { display: block; font-size: clamp(10.5px, .9vw, 12px); color: var(--muted); }
.pcard .lines { margin-top: 14px; }
.pcard .lines i { display: block; height: 6px; margin-top: 8px; border-radius: 3px; background: var(--line); }
@media (max-width: 959px) {
  .papers-visual { aspect-ratio: auto; height: 420px; }
  .pcard { width: 80%; }
  .pcard .lines i:nth-child(n+4) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pcard { transition: none; } }
.institute .lead { margin-top: 22px; }
.pillars { display: grid; gap: 22px; margin-top: 36px; }
.pillar { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.pillar .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(0, 101, 122, .1); color: var(--teal); }
.pillar .icon svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 24px; margin-bottom: 6px; }
.pillar p { font-size: 16px; color: var(--muted); }

/* No que acreditamos: faixa navy */
.beliefs-section { overflow: hidden; }
.beliefs-symbol { position: absolute; right: -120px; top: 50%; transform: translateY(-50%); width: 560px; opacity: .06; pointer-events: none; }
.beliefs-section .wrap { position: relative; }
.beliefs { list-style: none; padding: 0; margin: clamp(40px, 5vw, 56px) 0 0; display: grid; gap: 16px; counter-reset: belief; }
@media (min-width: 760px) { .beliefs { grid-template-columns: 1fr 1fr; } }
.beliefs li {
  counter-increment: belief;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  padding: 26px 26px 28px 84px;
  position: relative;
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--white);
  font-weight: 500;
}
.beliefs li::before {
  content: counter(belief, decimal-leading-zero);
  position: absolute;
  left: 26px;
  top: 21px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
  color: var(--sky);
}

/* Por que importa */
.why { display: grid; gap: 32px; }
@media (min-width: 900px) { .why { grid-template-columns: 5fr 7fr; gap: 72px; } }
.finding { margin-top: 28px; border-left: 3px solid var(--sky); padding: 4px 0 4px 22px; }
.finding p { font-size: 17px; color: var(--navy); }
.finding a { font-size: 14px; font-weight: 600; color: var(--teal); text-decoration: none; }
.finding a:hover { text-decoration: underline; }

/* Nossa equipe */

.doctors { display: grid; gap: 22px; margin-top: clamp(44px, 6vw, 64px); }
@media (min-width: 900px) { .doctors { grid-template-columns: 1fr 1fr; } }
.doctor {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 24px;
  align-items: start;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  padding: 26px;
}
.doctor img { width: 132px; height: 176px; object-fit: cover; object-position: 50% 15%; border-radius: 14px; }
.doctor h3 { font-size: 26px; }
.doctor .role { display: block; color: var(--sky); font-size: 14px; font-weight: 600; margin: 6px 0 14px; }
.doctor p { font-size: 15.5px; }
.doctor ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; }
.doctor li { font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .7); padding-left: 16px; position: relative; }
.doctor li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }
.doctor .crm { display: block; margin-top: 16px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: rgba(255, 255, 255, .85); }
@media (max-width: 520px) {
  .doctor { grid-template-columns: 1fr; }
  .doctor img { width: 100%; height: 300px; }
}

/* Publicações */
.pubs { margin-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.pub { display: grid; gap: 14px; padding: 32px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .pub { grid-template-columns: 220px 1fr; gap: 40px; } }
.pub-meta { font-size: 14px; color: var(--muted); }
.pub-meta b { display: block; font-family: var(--display); font-size: 30px; font-weight: 600; color: var(--navy); line-height: 1; margin-bottom: 8px; }
.pub-meta span { display: block; }
.pub-meta .tag { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.pub h3 { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: clamp(18px, 1.7vw, 21px); font-weight: 600; line-height: 1.4; color: var(--navy); }
.pub .authors { font-size: 14.5px; color: var(--muted); margin: 8px 0 12px; }
.pub .authors b { color: var(--navy); font-weight: 600; }
.pub .summary { font-size: 16px; }
.pub-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; }
.pub-links a { font-size: 14px; font-weight: 600; color: var(--teal); text-decoration: none; }
.pub-links a:hover { text-decoration: underline; }

/* Pós-graduação: em breve */
.soon {
  display: grid;
  gap: 28px;
  border-radius: 28px;
  padding: clamp(32px, 5vw, 56px);
  background:
    radial-gradient(ellipse 60% 90% at 100% 0%, rgba(88, 195, 241, .22), transparent 60%),
    linear-gradient(120deg, var(--teal-deep), var(--navy));
  color: rgba(255, 255, 255, .82);
  position: relative;
  overflow: hidden;
}
@media (min-width: 900px) { .soon { grid-template-columns: 7fr 5fr; gap: 56px; align-items: end; } }
.soon img { position: absolute; right: -50px; bottom: -50px; width: 300px; opacity: .1; pointer-events: none; }
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--sky);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}
.soon h2 { color: var(--white); font-size: clamp(32px, 4vw, 48px); }
.soon p { position: relative; }
.soon .lead { color: var(--white); margin-top: 20px; }
.soon .side { position: relative; }
.soon .side p { font-size: 15.5px; margin-bottom: 22px; }

/* Rodapé */
.site-footer { background: var(--navy-ink); color: rgba(255, 255, 255, .6); padding: 48px 0 40px; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer img { width: 170px; height: auto; opacity: .9; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-meta { text-align: right; line-height: 1.75; }

/* Responsivo */
@media (max-width: 939px) { .nav a:not(.btn) { display: none; } }
@media (max-width: 520px) {
  body { font-size: 16px; }
  .site-header .wrap { height: 64px; }
  .nav .btn { padding: 9px 14px; font-size: 13px; }
  .hero-actions .btn { width: 100%; }
  .beliefs li { padding: 24px 22px 24px 72px; }
  .beliefs li::before { left: 22px; }
  .footer-meta { text-align: left; }
}

/* Entrada suave (só com JS e sem preferência por movimento reduzido) */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
