/* ============================================================
   SOBRE.CSS — página Sobre a UJES
   Segue o padrão de design tokens de main.css
   ============================================================ */

/* ── Scroll-reveal ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.left-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.left-right span::after { content: " ➜"; }

/* ════════════════════════════════════════════════
   HERO / BANNER SLIDER  (idêntico ao index)
   ════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  isolation: isolate;
  overflow: hidden;
}

.hero-slides,
.hero-slide {
  min-height: inherit;
}

.hero-slides {
  display: flex;
  width: 100%;
  transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.hero-slide {
  position: relative;
  z-index: 0;
  flex: 0 0 100%;
}

.hero-slide::before,
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-slide::before {
  background: var(--bg-alt);
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-slide::after {
  background: linear-gradient(100deg, rgba(4,16,26,.76), rgba(4,16,26,.34) 45%, rgba(4,16,26,.55));
  z-index: -1;
}

.hero-content {
  min-height: inherit;
  display: grid;
  align-content: center;
  gap: 1rem;
  color: #edf8ff;
  padding-block: 9rem 4rem;
  max-width: 780px;
}

.hero p {
  margin: 0;
  max-width: 58ch;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  display: inline-flex;
  gap: .5rem;
}

.dot {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(237,248,255,.4);
}
.dot.is-active { background: var(--primary); }

/* Título UJES em destaque no banner */
.sobre-hero-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1;
  font-size: clamp(5rem, 18vw, 15rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
  text-shadow: 0 4px 32px rgba(0,0,0,.38);
}

/* Subtítulo do banner */
.sobre-hero-sub {
  margin: .6rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.9rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
}

/* ════════════════════════════════════════════════
   SECÇÃO LOGO E CONTACTOS
   ════════════════════════════════════════════════ */
.sobre-id-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

/* Logo */
.sobre-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}

.sobre-logo-img {
  width: 360px;
  height: 360px;
  object-fit: contain;
}

.sobre-download-btn {
  gap: .5rem;
  width: 100%;
  justify-content: center;
}

/* Contactos */
.sobre-contactos {
  padding-top: .4rem;
}

.sobre-contactos-title {
  margin: 0 0 1.4rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.12;
}

.sobre-contactos-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.sobre-contactos-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: .75rem;
  align-items: start;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.5;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(7,25,38,.06);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.sobre-contactos-list li:hover {
  border-color: color-mix(in srgb, var(--primary) 48%, transparent);
  box-shadow: 0 4px 18px rgba(0,176,240,.1);
}

.sobre-contactos-list svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: .15rem;
  color: var(--primary);
}

/* ════════════════════════════════════════════════
   SECÇÃO VISÃO / MISSÃO / VALORES / OBJECTIVOS
   ════════════════════════════════════════════════ */
.sobre-missao-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3.5rem;
  align-items: start;
}

/* Coluna esquerda */
.sobre-missao-esq { min-width: 0; }

.sobre-missao-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.6rem;
  padding: 1.2rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(7,25,38,.05);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.sobre-missao-item:last-child { margin-bottom: 0; }

.sobre-missao-item:hover {
  border-color: color-mix(in srgb, var(--primary) 42%, transparent);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,176,240,.1);
}

.sobre-missao-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--primary);
}

.sobre-missao-icon svg {
  width: 22px;
  height: 22px;
}

.sobre-missao-item h3 {
  margin: 0 0 .45rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
}

.sobre-missao-item p {
  margin: 0;
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.65;
}

.sobre-valores-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .38rem;
}

.sobre-valores-list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
  font-size: .95rem;
}

.sobre-valores-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* Coluna direita */
.sobre-missao-dir { min-width: 0; }

.sobre-intro-text {
  margin: 0 0 1.1rem;
  color: var(--muted);
  line-height: 1.75;
  font-size: .98rem;
}

/* Estatísticas rápidas (Reitoria / Faculdades / Instituto) */
.sobre-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin: 1.6rem 0 1.8rem;
}

.sobre-qs-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  padding: 1.1rem .8rem;
  border-radius: 14px;
  border: 1px solid rgba(0,176,240,.22);
  background: linear-gradient(180deg, rgba(10,30,44,.82), rgba(9,24,37,.88));
  text-align: center;
}

.sobre-qs-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
}

.sobre-qs-lbl {
  font-size: .82rem;
  font-weight: 700;
  color: rgba(237,248,255,.72);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Imagem da Reitoria */
.sobre-reitoria-img-wrap {
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.sobre-reitoria-img-wrap img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform .35s ease;
}

.sobre-reitoria-img-wrap:hover img {
  transform: scale(1.04);
}

.sobre-reitoria-caption {
  margin: 0;
  padding: .65rem .85rem;
  font-size: .8rem;
  color: var(--muted);
  font-style: italic;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

/* ════════════════════════════════════════════════
   SECÇÃO UJES EM NÚMEROS
   (escurece o fundo tal como na home)
   ════════════════════════════════════════════════ */
#numeros {
  background:
    radial-gradient(circle at top right, rgba(0,176,240,.18), transparent 36%),
    linear-gradient(160deg, #071724 0%, #0b2334 52%, #0d2b40 100%);
}

#numeros .section-head h2,
#numeros .stat-label { color: #eef7fc; }

#numeros .stat {
  border: 1px solid rgba(145,212,241,.2);
  background: linear-gradient(180deg, rgba(10,30,44,.9), rgba(9,24,37,.95));
}

#numeros .stat:hover {
  border-color: rgba(113,215,255,.42);
  box-shadow: 0 24px 58px rgba(2,12,20,.28);
}

.stats-grid {
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  padding: 1.1rem;
  text-align: center;
  border-radius: var(--radius);
  transition: border-color .28s ease, box-shadow .28s ease;
}

.stat-value {
  display: block;
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1;
  color: var(--primary);
}

.stat-label {
  color: var(--muted);
  font-size: .95rem;
}

/* ════════════════════════════════════════════════
   RESPONSIVO
   ════════════════════════════════════════════════ */
@media (max-width: 1040px) {
  .sobre-missao-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .sobre-id-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sobre-logo-wrap {
    max-width: 320px;
    margin-inline: auto;
  }

  .hero p {
    font-size: .97rem;
  }
}

@media (max-width: 560px) {
  .hero-content {
    padding-block: 8.6rem 4.3rem;
  }

  .sobre-hero-title {
    font-size: clamp(3.8rem, 22vw, 7rem);
  }

  .sobre-quick-stats {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .sobre-missao-item {
    grid-template-columns: 1fr;
  }

  .sobre-missao-icon {
    width: 38px;
    height: 38px;
  }
}
