/* ============================================================
   Páginas institucionais (Dra. Moema, Dúvidas, Localização,
   Contato, Política de privacidade).
   Complementa css/styles.css — só usa os tokens de lá.
   ============================================================ */

/* Cabeçalho de página sem imagem */
.inst-head {
  max-width: var(--container); margin: 0 auto;
  padding: 1.5rem var(--gutter) clamp(2.2rem, 5vw, 3.5rem);
}
.inst-head--narrow { max-width: calc(820px + 2 * var(--gutter)); }
.inst-head__title { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.02; margin: 1.1rem 0 1.2rem; max-width: 18ch; }
.inst-head__title em { color: var(--wine); }
.inst-head__lead { font-size: clamp(1.05rem, 1.5vw, 1.18rem); color: var(--espresso-2); max-width: 56ch; }

/* Hero com retrato (página da Dra.) */
.inst-hero--portrait .proc-hero__media { width: 100%; max-width: 470px; justify-self: end; }
.inst-hero--portrait .proc-hero__media img { aspect-ratio: 4 / 5; object-position: center 18%; }
.inst-hero--portrait .credgrid { margin-top: 2rem; max-width: 34rem; }
.inst-hero--portrait .proc-hero__title { max-width: none; }

/* Seção genérica */
.inst-section { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter) var(--section); }
.inst-section__head { margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }

/* Linha do tempo (currículo) */
.timeline { list-style: none; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem;
  padding: 1.3rem 0; border-top: 1px solid var(--sand-line);
}
.timeline li:last-child { border-bottom: 1px solid var(--sand-line); }
.timeline__year { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; color: var(--wine); font-variant-numeric: lining-nums; }
.timeline p { color: var(--espresso-2); max-width: 64ch; }

/* Duas colunas de listas (cursos / eventos) */
.inst-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.inst-cols h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; margin-bottom: 1.3rem; }
.inst-list { list-style: none; padding: 0; }
.inst-list li {
  position: relative; padding: 0.85rem 0 0.85rem 1.4rem;
  border-top: 1px solid var(--sand-line); color: var(--espresso-2); font-size: 0.95rem;
}
.inst-list li::before {
  content: ""; position: absolute; left: 0; top: 1.45em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}

/* Cartões */
.inst-card {
  background: var(--bone-deep); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: inset 0 0 0 1px var(--sand-line);
  display: flex; flex-direction: column;
}
.inst-card__label {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600; line-height: 1.4;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--wine);
}
.inst-card__label--sub { margin-top: 2rem; }
.inst-card__value { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.3; margin-top: 0.8rem; color: var(--espresso); }
.inst-card__value a { text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 0.18em; }
.inst-card__text { color: var(--espresso-2); margin-top: 1rem; font-size: 0.95rem; max-width: 52ch; }
.inst-card--wine { background: var(--wine); box-shadow: inset 0 0 0 1px var(--gold-line); }
.inst-card--wine .inst-card__label { color: var(--gold); }
.inst-card--wine .inst-card__value { color: var(--bone); }
.inst-card--wine .inst-card__text { color: oklch(0.92 0.02 60 / 0.85); }

.inst-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; margin-top: 1.4rem; }
.inst-card .inst-actions { margin-top: auto; padding-top: 1.4rem; }
.inst-card .inst-card__label--sub + .inst-actions { margin-top: 0; padding-top: 1rem; }
.inst-actions .btn--ghost { padding: 0.85rem 1.4rem; border-radius: 999px; }

/* Horário */
.inst-hours { margin-top: 0.9rem; display: grid; gap: 0.2rem; }
.inst-hours div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--sand-line); }
.inst-hours div:last-child { border-bottom: 0; }
.inst-hours dt { color: var(--espresso-2); }
.inst-hours dd { font-family: var(--serif); font-size: 1.2rem; color: var(--espresso); }

/* Grade de contato */
.inst-grid {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter) var(--section);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem;
}

/* Localização: cartão + mapa */
.inst-local {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter) var(--section);
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(1.2rem, 3vw, 2rem); align-items: stretch;
}
.inst-map {
  position: relative; min-height: 460px; border-radius: var(--radius); overflow: hidden;
  background: var(--sand); box-shadow: var(--shadow);
}
.inst-map::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--gold-line); pointer-events: none; }
.inst-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Texto longo (política) */
.inst-prose { max-width: calc(820px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) var(--section); }
.inst-prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }

/* FAQ como página */
.faq--page { padding-top: 0; }
.faq--page details p { max-width: 72ch; }

/* Links dentro de texto */
.inst-link { color: var(--wine); text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.inst-link:hover { text-decoration-color: currentColor; }

@media (max-width: 980px) {
  .inst-hero--portrait .proc-hero__media { justify-self: start; }
  .inst-cols, .inst-local { grid-template-columns: 1fr; }
  .inst-map { min-height: 380px; }
}
@media (max-width: 600px) {
  .inst-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 0.25rem; }
  .inst-actions, .inst-actions .btn { width: 100%; }
  .inst-actions .btn { justify-content: space-between; }
  .inst-actions .btn--ghost { justify-content: center; }
  .inst-map { min-height: 320px; }
}
