/* =====================================================================
   INSTITUCIONAL — páginas internas (Quem Somos, etc.)
   Carregar após design-system.css e layout.css.
   ===================================================================== */

/* ---------- CABEÇALHO DA PÁGINA ---------- */
.page-header { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: var(--sp-4); text-align: center; position: relative; }
.page-header .container { max-width: 820px; }
.breadcrumb { display: flex; gap: 0.4rem; justify-content: center; align-items: center; font-size: 0.85rem; color: var(--tinta-suave); margin-bottom: 1rem; }
.breadcrumb a { color: var(--verde-600); font-weight: 600; }
.breadcrumb span { opacity: 0.6; }
.page-title { font-size: var(--fs-h1); margin: 0.5rem 0 0.8rem; }
.page-header .lead { margin-inline: auto; }

.page-header::after {
  content: ""; position: absolute; left: 50%; bottom: 0.5rem; transform: translateX(-50%);
  width: 120px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--verde-500), var(--ciano), var(--rosa));
}

/* ---------- MISSÃO / VISÃO / PROPÓSITO ---------- */
.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.mvv-card { padding: 1.8rem; position: relative; overflow: hidden; }
.mvv-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent, var(--verde-500)); }
.mvv-ico { width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.7rem; border-radius: var(--r-md); background: color-mix(in srgb, var(--accent, var(--verde-500)) 14%, white); margin-bottom: 1rem; }
.mvv-card h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }

/* ---------- NOSSA HISTÓRIA (timeline) ---------- */
.history-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: center; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--verde-400), var(--ciano)); }
.timeline li { position: relative; padding: 0 0 1.6rem 2.4rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--creme); border: 3px solid var(--verde-500); box-shadow: 0 0 0 4px rgba(46,125,70,0.12); }
.timeline time { display: block; font-family: var(--font-display); font-weight: 700; color: var(--verde-700); font-size: 1.05rem; }
.timeline p { margin: 0.2rem 0 0; color: var(--tinta-suave); }

/* ---------- FRENTES DE ATUAÇÃO ---------- */
.fronts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.front-card { padding: 1.6rem; }
.front-card .front-ico { width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.5rem; border-radius: var(--r-md); background: color-mix(in srgb, var(--c, var(--verde-500)) 14%, white); margin-bottom: 0.9rem; }
.front-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.front-card .cnae { display: inline-block; margin-top: 0.8rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; color: var(--tinta-suave); background: rgba(46,125,70,0.08); padding: 0.3rem 0.6rem; border-radius: var(--r-pill); }

/* ---------- VALORES ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
.value-card { padding: 1.3rem 1.4rem; display: flex; gap: 0.9rem; align-items: flex-start; }
.value-card .v-ico { font-size: 1.5rem; flex-shrink: 0; }
.value-card h4 { font-family: var(--font-display); font-size: 1.1rem; color: var(--verde-800); margin-bottom: 0.2rem; }
.value-card p { font-size: 0.95rem; color: var(--tinta-suave); margin: 0; }

/* ---------- COMPROMISSO COM A VERDADE (destaque) ---------- */
.commitment { padding: clamp(2rem, 5vw, 3.4rem); text-align: center; position: relative; overflow: hidden; border: 1px solid rgba(31,224,200,0.35); }
.commitment::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40rem 20rem at 50% -20%, rgba(31,224,200,0.16), transparent 70%); }
.commitment .seal { font-size: 2.6rem; margin-bottom: 0.6rem; }
.commitment h2 { margin-bottom: 0.6rem; }
.commitment p { max-width: 64ch; margin-inline: auto; }

/* ---------- TRANSPARÊNCIA (completa) ---------- */
.transp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: start; }
.data-card { padding: 1.8rem; }
.data-card h3 { margin-bottom: 1.1rem; display: flex; align-items: center; gap: 0.5rem; }
.data-list { display: grid; gap: 0.1rem; margin: 0; }
.data-list > div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px dashed rgba(46,125,70,0.16); }
.data-list > div:last-child { border-bottom: none; }
.data-list dt { color: var(--tinta-suave); font-size: 0.9rem; }
.data-list dd { font-weight: 700; color: var(--verde-800); text-align: right; }
.transp-actions { display: flex; flex-direction: column; gap: 0.8rem; margin-top: var(--sp-3); }

/* Perfil */
.profile-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  align-items: start;
}
.profile-card {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
}
.profile-card-intro {
  margin: 0.2rem 0 1rem;
  line-height: 1.6;
}
.profile-data-list {
  display: grid;
  grid-template-columns: minmax(8.5rem, auto) 1fr;
  gap: 0.55rem 1rem;
  margin: 0;
}
.profile-data-list dt {
  color: var(--tinta-suave);
}
.profile-data-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.profile-permissions {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.55rem;
  color: var(--tinta-suave);
}
.profile-password-form {
  display: grid;
  gap: 0.85rem;
}
.profile-password-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--tinta-suave);
  font-size: 0.9rem;
}
.profile-password-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: rgba(255,255,255,0.72);
  padding: 0 0.9rem;
  color: var(--tinta);
  font: inherit;
}
.profile-status {
  min-height: 1.3em;
  margin: 0;
  color: var(--tinta-suave);
  font-size: 0.9rem;
}
.profile-status.ok { color: var(--verde-600); }
.profile-status.err { color: var(--rosa-700); }
.profile-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1rem 0 0;
}
.transp-note { font-size: 0.85rem; color: var(--tinta-suave); margin-top: 1.2rem; padding: 0.9rem 1rem; border-radius: var(--r-md); background: rgba(245,194,75,0.12); border: 1px solid rgba(245,194,75,0.3); }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 900px) {
  .mvv, .fronts, .values-grid { grid-template-columns: 1fr; }
  .history-grid, .transp-grid { grid-template-columns: 1fr; }
  .page-header { padding-top: 3rem; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .values-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .page-header {
    padding-top: 2.15rem;
    padding-bottom: 1.15rem;
  }
  .page-title {
    font-size: clamp(1.55rem, 7.6vw, 2rem);
    line-height: 1.08;
    margin: 0.35rem 0 0.55rem;
  }
  .page-header .lead {
    font-size: 0.94rem;
    line-height: 1.55;
  }
  .page-header::after {
    width: 96px;
    height: 3px;
    bottom: 0.25rem;
  }
  .breadcrumb {
    flex-wrap: wrap;
    justify-content: center;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
  }
  .mvv { gap: 1rem; }
  .mvv-card,
  .front-card,
  .data-card {
    padding: 1rem;
    border-radius: 18px;
  }
  .mvv-ico,
  .front-card .front-ico {
    width: 44px;
    height: 44px;
    margin-bottom: 0.7rem;
    font-size: 1.25rem;
  }
  .mvv-card h3,
  .front-card h3 {
    font-size: 1.05rem;
  }
  .history-grid { gap: 1.45rem; }
  .history-grid p,
  .timeline p,
  .front-card p,
  .mvv-card p,
  .commitment p {
    font-size: 0.94rem;
    line-height: 1.58;
  }
  .timeline li { padding-left: 2rem; }
  .value-card {
    padding: 0.9rem;
    gap: 0.7rem;
    border-radius: 18px;
  }
  .value-card h4 { font-size: 1rem; }
  .value-card p { font-size: 0.9rem; }
  .commitment {
    padding: 1.2rem 1rem;
    text-align: left;
    border-radius: 18px;
  }
  .commitment .seal { font-size: 1.65rem; }
  .data-list > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }
  .data-list dd {
    text-align: left;
    overflow-wrap: anywhere;
  }
  .transp-actions .btn { width: 100%; }
  .profile-card { padding: 1rem; border-radius: 18px; }
  .profile-data-list {
    grid-template-columns: 1fr;
    gap: 0.18rem;
  }
  .profile-data-list dd { margin-bottom: 0.5rem; }
  .profile-actions .btn { width: 100%; }
}
