/* ============================================================
   Dra. Monique Rosário — dermatologistamonique
   Tokens (fonte: SPEC.md § Design) → base → layout → componentes
   Direção: editorial de skincare — sans grande e pesada, formas
   orgânicas (arcos, blobs), profundidade por sombra, zero borda dura.
   ============================================================ */

/* ---------- Tokens ---------- */

:root {
  --bg: #FDF8F6;            /* areia rosada */
  --surface: #F8EBE7;       /* rosé claro — faixas e painéis */
  --card: #FFFFFF;          /* cards e badge — flutuam sobre o bg */
  --fg: #3B2230;            /* 13.3:1 sobre --bg */
  --muted: #7A5A68;         /* 5.7:1 sobre --bg · 5.2:1 sobre --surface · 6:1 sobre --card */
  --border: #E9D3DA;
  --accent: #B80D4F;        /* links e destaque — 6.2:1 sobre --bg */
  --accent-strong: #C01353; /* fundo de botão, texto #fff — 6.1:1 */
  --btn-fg: #ffffff;
  --brand: #EA1567;         /* SÓ texto grande (≥24px) e decoração */
  --tint: #F9DCE7;          /* rosé do gradiente — fundo decorativo */
  --tint-2: #FBEADF;        /* areia do gradiente */
  --grad: linear-gradient(135deg, var(--tint) 0%, var(--tint-2) 100%);
  --deco: rgba(255, 255, 255, .45);      /* anéis/formas sobre o gradiente */
  --ink: #3B2230;           /* texto sobre painel branco fixo (widget) — não muda no escuro */
  --ink-accent: #B80D4F;    /* link sobre painel branco fixo */
  --footer-bg: #2E1620;     /* fechamento escuro — ameixa profunda */
  --footer-fg: #F3E7EB;     /* 13.9:1 sobre --footer-bg */
  --footer-muted: #D4B5C2;  /* 8.9:1 */
  --footer-link: #F480A8;   /* 5.9:1 */
  --header-bg: rgba(253, 248, 246, .8);  /* header translúcido + blur */
  --shadow-sm: 0 2px 10px rgba(59, 34, 48, .07);
  --shadow-md: 0 16px 36px -14px rgba(59, 34, 48, .25);
  --shadow-lg: 0 34px 70px -24px rgba(59, 34, 48, .3);
  --radius: 14px;
  --radius-lg: 28px;
  --radius-xl: 44px;
  --radius-pill: 999px;
  --arch: 12rem 12rem var(--radius-lg) var(--radius-lg);  /* moldura em arco */
  --max: 68rem;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-body);      /* títulos: mesma sans, peso 800 */
  --font-accent: Georgia, "Times New Roman", serif;  /* itálico pontual */
  --text-sm: .875rem; --text-base: 1rem; --text-lg: 1.125rem;
  --text-xl: 1.5rem;  --text-2xl: 1.953rem;
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-12: 3rem; --space-16: 4rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #251419; --surface: #31202A; --card: #31202A;
    --fg: #F3E7EB;
    --muted: #CBA9B6;
    --border: #4A3440;
    --accent: #F480A8;
    --accent-strong: #F480A8;
    --btn-fg: #2A1119;      /* branco sobre rosa claro falharia AA */
    --brand: #F480A8;
    --tint: #3E2531;        /* fg 11.5:1 · muted 6.5:1 · accent 5.6:1 */
    --tint-2: #38231F;      /* fg 12.2:1 · muted 6.9:1 */
    --deco: rgba(255, 255, 255, .05);
    --footer-bg: #1C0F14;
    --footer-fg: #F3E7EB;
    --footer-muted: #CBA9B6;
    --footer-link: #F480A8;
    --header-bg: rgba(37, 20, 25, .8);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, .3);
    --shadow-md: 0 16px 36px -14px rgba(0, 0, 0, .55);
    --shadow-lg: 0 34px 70px -24px rgba(0, 0, 0, .6);
  }
}

/* ---------- Base ---------- */

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

html { scroll-padding-top: 5.5rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: var(--text-base)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); line-height: 1.05; letter-spacing: -.025em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 700; }

p, ul, ol, blockquote { margin: 0 0 var(--space-4); }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration: none; }

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

img { max-width: 100%; height: auto; display: block; }

.eyebrow {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

/* ---------- Movimento (só com JS e sem reduced-motion) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
    transition-delay: var(--reveal-delay, 0s);
  }
  .reveal.is-in { opacity: 1; transform: none; }

  @keyframes blob-drift {
    from { transform: translate3d(0, 0, 0) rotate(0deg); }
    to   { transform: translate3d(0, -14px, 0) rotate(2.5deg); }
  }
}

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .wrap { padding-inline: var(--space-6); }
}

.section { padding-block: var(--space-12); }
.section--surface { background: var(--surface); }
.section--flush-top { padding-top: 0; }

@media (min-width: 768px) {
  .section { padding-block: var(--space-16); }
}

.section > .wrap > h2 { margin-bottom: var(--space-8); }

/* painel-ilha: seção que flutua com cantos grandes, mais larga que o conteúdo
   (aplicado a .agendar, .cta-final e .reviews) */
.agendar, .cta-final, .reviews {
  border-radius: var(--radius-xl);
  margin-inline: max(var(--space-3), calc((100% - var(--max) - 6rem) / 2));
  overflow: clip;
  position: relative;
}

.reviews { background: var(--surface); }

.prose { max-width: 65ch; }
.prose h2 { margin-top: var(--space-8); }
.prose h3 { margin-top: var(--space-6); }
.prose li { margin-bottom: var(--space-2); }
.prose > :first-child { margin-top: 0; }
.prose blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-4) var(--space-6);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
}
.prose blockquote p { margin: 0; }

/* div que é .wrap e .prose ao mesmo tempo (artigos): o contêiner mantém a
   largura do site e a medida de 65ch vale para cada bloco de texto. */
.wrap.prose { max-width: var(--max); }
.wrap.prose > * { max-width: 65ch; }

/* ---------- Header ---------- */

.site-header {
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: box-shadow .3s ease;
}

/* sticky só no desktop: no celular o header de duas linhas comeria a tela */
@media (min-width: 768px) {
  .site-header { position: sticky; top: 0; }
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  flex-wrap: wrap;
  padding-block: var(--space-3);
}

.brand { display: inline-flex; align-items: center; }
.brand img {
  display: block;
  width: auto;
  height: 34px;
}
@media (min-width: 768px) {
  .brand img { height: 40px; }
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  flex-wrap: wrap;
}

.site-header nav a:not(.btn) {
  position: relative;
  color: var(--fg);
  font-weight: 500;
  text-decoration: none;
  padding: var(--space-2) 0;
}
.site-header nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.site-header nav a:not(.btn):hover::after,
.site-header nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-2) var(--space-6);
  background: var(--accent-strong);
  color: var(--btn-fg);
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.btn:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn svg { flex: none; }

.btn--lg { padding: var(--space-3) var(--space-8); font-size: var(--text-lg); }

/* ---------- Hero ---------- */

/* --brand só em texto grande (≥24px): o h1 do hero passa de 40px. */
.hero__hl {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--brand);
}

.hero {
  position: relative;
  overflow: clip;
  padding-block: var(--space-8) var(--space-12);
}

/* aura rosé atrás do hero inteiro */
.hero::before {
  content: "";
  position: absolute;
  top: -22%; right: -18%;
  width: min(48rem, 85vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--tint), transparent 72%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

.hero h1 { margin-bottom: var(--space-4); }

.hero__lead {
  color: var(--muted);
  font-size: var(--text-lg);
  max-width: 38ch;
  margin-bottom: var(--space-8);
}

.hero__media {
  position: relative;
  max-width: 24rem;
  margin-inline: auto;
  width: 100%;
}

/* blob de cor deslocado atrás da foto */
.hero__media::before {
  content: "";
  position: absolute;
  inset: 16% -13% -9% 18%;
  background: var(--grad);
  border-radius: 58% 42% 55% 45% / 45% 52% 48% 55%;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__media::before { animation: blob-drift 9s ease-in-out infinite alternate; }
}

.hero__img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 28% center;
  border-radius: var(--arch);
  box-shadow: var(--shadow-lg);
}

.hero__badge {
  position: absolute;
  left: max(-1.25rem, -4vw);
  bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 15rem;
  padding: var(--space-3) var(--space-4);
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  color: var(--fg);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.hero__badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.hero__badge-score {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--accent);
  white-space: nowrap;
}

.hero__badge-label {
  font-size: var(--text-sm);
  line-height: 1.35;
  color: var(--muted);
}

@media (min-width: 768px) {
  .hero { padding-block: var(--space-12) var(--space-16); }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; }
  .hero__media { max-width: 27rem; }
}

/* ---------- Faixa de credibilidade (números) ---------- */

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6) var(--space-4);
  margin: 0;
  padding: var(--space-8) var(--space-6);
  list-style: none;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.stat { text-align: center; }

.stat strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--accent);
}

.stat span {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: var(--muted);
}

@media (min-width: 768px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Convênios ---------- */

.convenios .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4) var(--space-8);
  padding-block: var(--space-8);
  text-align: center;
}

.convenios p { margin: 0; font-size: var(--text-lg); color: var(--muted); }
.convenios strong { color: var(--fg); }

.convenios__logos { display: flex; gap: var(--space-4); align-items: center; }

.convenios__logos img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;      /* logos têm fundo branco — manter no modo escuro */
  padding: var(--space-2);
  box-shadow: var(--shadow-sm);
}

/* ---------- Sobre ---------- */

.about .wrap {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

.about__media {
  position: relative;
  max-width: 20rem;
  margin-inline: auto;
  width: 100%;
}

.about__media::before {
  content: "";
  position: absolute;
  inset: 14% -10% -7% 10%;
  background: var(--grad);
  border-radius: 45% 55% 52% 48% / 55% 45% 55% 45%;
}

@media (prefers-reduced-motion: no-preference) {
  .about__media::before {
    animation: blob-drift 11s ease-in-out infinite alternate-reverse;
  }
}

.about__photo {
  position: relative;
  width: 100%;
  border-radius: var(--arch);
  box-shadow: var(--shadow-lg);
}

.about__crm {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--tint);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--accent);      /* 5.3:1 sobre --tint */
}

@media (min-width: 768px) {
  .about .wrap { grid-template-columns: minmax(16rem, 22rem) 1fr; }
}

/* ---------- Cards (serviços, blog, depoimentos) ---------- */

.cards {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.card h3, .card .card__title-sm {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-3);
}
.card p { color: var(--muted); flex: 1; }

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-4);
  background: var(--grad);
  border-radius: 18px;
  color: var(--accent);
}

.card .card__link {
  font-weight: 700;
  text-decoration: none;
}
.card .card__link::after {
  content: "→";
  display: inline-block;
  margin-left: .4em;
  transition: transform .25s ease;
}
.card .card__link:hover { text-decoration: underline; }
.card:hover .card__link::after { transform: translateX(4px); }

/* chamadas do blog com imagem */
.card--post { padding: 0; overflow: hidden; }
.card--post > img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
  transition: transform .45s ease;
}
.card--post:hover > img { transform: scale(1.045); }
.card--post .card__body { padding: var(--space-6); display: flex; flex-direction: column; flex: 1; }

@media (prefers-reduced-motion: reduce) {
  .card:hover, .btn:hover, .hero__badge:hover { transform: none; }
  .card--post:hover > img { transform: none; }
}

/* ---------- Agendar (conversão) — painel em gradiente ---------- */

.agendar,
.cta-final {
  background: var(--grad);   /* vence o .section--surface: vem depois */
  text-align: center;
}

.agendar::before,
.cta-final::before {
  content: "";
  position: absolute;
  top: -7rem; right: -7rem;
  width: 20rem;
  aspect-ratio: 1;
  border: 2.5rem solid var(--deco);
  border-radius: 50%;
  pointer-events: none;
}

.agendar .wrap { position: relative; }

.agendar h2 { font-size: clamp(var(--text-2xl), 4vw, 2.6rem); }

.agendar__intro { color: var(--muted); max-width: 48ch; margin-inline: auto; }

.agendar__cta { margin-block: var(--space-8); }

.agendar__canais {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin-block: var(--space-8);
  padding: 0;
  list-style: none;
  text-align: center;
}

.agendar__canais li {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  box-shadow: var(--shadow-sm);
}

.agendar__canais .label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
}

/* o widget Doctoralia é claro: painel branco fixo nos dois esquemas */
.agendar__widget {
  margin-top: var(--space-8);
  margin-inline: auto;
  max-width: 46rem;
  padding: var(--space-4);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}

.agendar__widget-fallback {
  margin: var(--space-4) 0 0;
  font-size: var(--text-sm);
}
.agendar__widget-fallback a { color: var(--ink-accent); }

/* ---------- Localização ---------- */

.location__grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin-top: var(--space-8);
}

.location__grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.location__grid img.is-landscape { aspect-ratio: 3 / 2; }

@media (min-width: 768px) {
  .location__grid img, .location__grid img.is-landscape { aspect-ratio: auto; }
  .location__grid { grid-template-columns: 1.4fr 1fr 1fr; align-items: stretch; }
  .location__grid img:nth-child(2) { border-radius: var(--arch); }
}

/* ---------- Depoimentos ---------- */

.reviews h2, .reviews .reviews__agg { text-align: center; }

.reviews__agg {
  font-size: var(--text-lg);
  max-width: 34rem;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}
.reviews__agg::before {
  content: "★★★★★" / "";
  display: block;
  font-size: var(--text-xl);
  letter-spacing: .3em;
  color: var(--brand);
  margin-bottom: var(--space-2);
}

/* 4 depoimentos e 4 posts: 2×2 no desktop evita card órfão */
@media (min-width: 768px) {
  .reviews .cards, #blog .cards,
  section[aria-label="Artigos"] .cards { grid-template-columns: repeat(2, 1fr); }
}

.review { margin: 0; }

.review blockquote { margin: 0; }
.review blockquote::before {
  content: "“" / "";
  display: block;
  font-family: var(--font-accent);
  font-size: 4.5rem;
  line-height: .6;
  margin-bottom: var(--space-3);
  color: var(--brand);
}
.review blockquote p { font-size: var(--text-lg); font-style: italic; color: var(--fg); }

.review figcaption {
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: var(--text-sm);
}

.review strong { color: var(--fg); font-style: normal; }

/* ---------- Vídeo (link, não player) ---------- */

.video-link { margin: var(--space-8) 0; }

.video-link a {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 40rem;
  box-shadow: var(--shadow-md);
}

.video-link img { width: 100%; }

.video-link .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(30, 8, 18, 0.35);
  transition: background .3s ease;
}

.video-link .play svg { width: 72px; height: 72px; transition: transform .3s ease; }

.video-link a:hover .play { background: rgba(30, 8, 18, 0.5); }
.video-link a:hover .play svg { transform: scale(1.08); }

.video-link figcaption {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ---------- Páginas internas (artigo) ---------- */

.page-hero {
  position: relative;
  overflow: clip;
  padding-block: var(--space-12) 0;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -26%; right: -14%;
  width: min(42rem, 80vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--tint), transparent 72%);
  pointer-events: none;
}

.page-hero .wrap { position: relative; }

.page-hero h1 { max-width: 22ch; }

.card__meta,
.article__meta {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-block: 0 var(--space-2);
}

.article__img {
  border-radius: var(--radius-lg);
  border-top-left-radius: 7rem;
  box-shadow: var(--shadow-lg);
  margin-block: var(--space-8);
  max-width: 44rem;
}

/* CTA de fim de página (herda o gradiente definido junto com .agendar) */

.cta-final .wrap { position: relative; }

.cta-final h2 { margin-bottom: var(--space-3); }

.cta-final p { color: var(--muted); max-width: 48ch; margin-inline: auto; }

.cta-final .btn { margin-top: var(--space-4); }

.cta-final__alt { margin-top: var(--space-4); font-size: var(--text-sm); }

/* ---------- Footer — fechamento escuro ---------- */

.site-footer {
  margin-top: var(--space-12);
  background: var(--footer-bg);
  color: var(--footer-fg);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding-block: var(--space-16) var(--space-8);
  font-size: var(--text-sm);
}

.site-footer .wrap {
  display: grid;
  gap: var(--space-8);
}

.site-footer h2 {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--footer-muted);
  margin-bottom: var(--space-3);
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--space-2); }
.site-footer a { color: var(--footer-fg); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--footer-link); }

.site-footer .legal {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(243, 231, 235, .18);
  color: var(--footer-muted);
}
.site-footer .legal p { margin: 0 0 var(--space-1); }
.legal__logo {
  display: block;
  width: auto;
  height: 38px;
  margin-bottom: var(--space-4);
  opacity: .92;
}

@media (min-width: 768px) {
  .site-footer .wrap { grid-template-columns: repeat(3, 1fr); }
  .site-footer .legal { grid-column: 1 / -1; }
}

/* Formação e títulos (diplomas no #about) */
.about .wrap.diplomas {
  display: block;
  margin-top: var(--space-12);
}
.diplomas h3 {
  font-size: var(--text-xl);
  letter-spacing: -.015em;
  margin: 0 0 var(--space-6);
}
.diplomas__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-6) var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .diplomas__grid { grid-template-columns: repeat(2, 1fr); }
}
.diplomas__grid figure { margin: 0; }
.diplomas__grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 7;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.diplomas__grid figcaption {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--muted);
}
