/* ==========================================================================
   Ekuikui II — sistema de design
   Paleta: azul institucional + ouro laterítico (terra do planalto do Huambo)
   Tipografia: Fraunces (display) + Inter (leitura) + IBM Plex Mono (códigos)
   ========================================================================== */

:root {
  /* Cor */
  --paper:        #F5F4EF;
  --paper-raised: #FFFFFF;
  --ink:          #1A1D29;
  --ink-soft:     #4A4E5C;
  --navy:         #1B2A4A;
  --navy-deep:    #101A30;
  --gold:         #B3812E;
  --gold-soft:    #E8DAB8;
  --gold-tint:    #F6EEDC;
  --green:        #3F5D45;
  --line:         #DEDACD;
  --line-strong:  #C7C1AE;
  --danger:       #8C3B2E;

  /* Tipografia */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  /* Escala */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.95rem + 0.2vw, 1.08rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
  --step-3:  clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
  --step-4:  clamp(2.4rem, 1.8rem + 2.6vw, 3.6rem);
  --step-5:  clamp(3rem, 2.1rem + 4vw, 5rem);

  --container: 1180px;
  --radius: 3px;
  --shadow: 0 1px 2px rgba(16,26,48,.06), 0 8px 24px -12px rgba(16,26,48,.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  color: var(--navy-deep);
}
h1 { font-size: var(--step-5); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); font-weight: 500; }
h3 { font-size: var(--step-2); font-weight: 600; }
h4 { font-size: var(--step-1); font-weight: 600; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* Foco visível --------------------------------------------------------- */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link -------------------------------------------------------------*/
.skip-link {
  position: absolute; left: -999px; top: auto;
  background: var(--navy); color: #fff; padding: .7em 1.2em;
  z-index: 200; border-radius: 0 0 4px 0; font-size: var(--step--1);
}
.skip-link:focus { left: 0; top: 0; }

/* ==========================================================================
   Código-de-curso — o "selo" repetido como elemento de wayfinding
   ========================================================================== */
.code-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: .06em;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  padding: .2em .55em;
  border-radius: 2px;
  white-space: nowrap;
}
.code-badge--gold { border-color: var(--gold); color: var(--gold); }
.code-badge--on-dark { border-color: rgba(255,255,255,.55); color: #fff; }

/* ==========================================================================
   Cabeçalho
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,244,239,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: .85rem;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 2px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-soft); font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  flex-shrink: 0;
}
.brand-logo { height: 46px; width: auto; max-width: none; aspect-ratio: 300 / 74; object-fit: contain; display: block; flex-shrink: 0; }
.footer-logo-chip {
  display: inline-flex; background: #fff; padding: .55rem .9rem; border-radius: 6px;
  margin-bottom: 1rem;
}
.footer-logo-chip img { height: 34px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy-deep); }
.brand-text span { font-size: .72rem; letter-spacing: .04em; color: var(--ink-soft); }

.nav-primary { display: flex; align-items: center; gap: 1.15rem; }
.nav-primary a {
  text-decoration: none; font-size: var(--step--1); font-weight: 500;
  color: var(--ink-soft); padding: .4em 0; position: relative;
}
.nav-primary a:hover, .nav-primary a[aria-current="page"] { color: var(--navy); }
.nav-primary a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold);
}
.nav-cta {
  background: var(--navy); color: #fff !important; padding: .55em 1.1em !important;
  border-radius: 2px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--navy-deep); }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--navy); border-radius: 2px;
  width: 42px; height: 38px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 1240px) {
  .nav-toggle { display: flex; }
  .nav-primary {
    position: fixed; inset: 64px 0 0 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 1rem 1.25rem 2rem; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav-primary.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-primary a { width: 100%; padding: .85em 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 1rem; text-align: center; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 480px at 84% -10%, rgba(179,129,46,.35), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  z-index: 0;
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 120px);
  z-index:0;
  opacity:.5;
}
.hero-inner { position: relative; z-index: 1; padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem); }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: .08em;
  color: var(--gold-soft); text-transform: uppercase; margin-bottom: 1.3rem;
}
.hero-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero-lede { max-width: 52ch; font-size: var(--step-1); color: rgba(255,255,255,.82); margin-top: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-body); font-weight: 600; font-size: var(--step--1);
  padding: .85em 1.4em; border-radius: 2px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #C89A45; }
.btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost { border-color: var(--line-strong); color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); }

.hero-stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.16);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.hero-stat { padding: 1.4rem 1.2rem 0; border-left: 1px solid rgba(255,255,255,.16); }
.hero-stat:first-child { border-left: none; padding-left: 0; }
.hero-stat b { display: block; font-family: var(--font-display); font-size: var(--step-2); color: var(--gold-soft); }
.hero-stat span { font-size: var(--step--1); color: rgba(255,255,255,.72); }

/* Variante clara do hero — fundo branco/transparente, letras escuras,
   em vez do fundo navy. Aplicar juntando a classe "hero--light" à
   par de "hero" (ex.: <section class="hero hero--light">). */
.hero--light { background: var(--paper); color: var(--ink); }
.hero--light::before {
  background:
    radial-gradient(1100px 480px at 84% -10%, rgba(179,129,46,.18), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-raised) 100%);
}
.hero--light::after { background-image: repeating-linear-gradient(90deg, rgba(16,26,48,.05) 0 1px, transparent 1px 120px); }
.hero--light .hero-eyebrow { color: var(--gold); }
.hero--light h1 { color: var(--navy-deep); }
.hero--light .hero-lede { color: var(--ink-soft); }
.hero--light .btn-outline { border-color: var(--line-strong); color: var(--navy); }
.hero--light .btn-outline:hover { border-color: var(--navy); background: rgba(16,26,48,.05); }
.hero--light .hero-stats { border-top: 1px solid var(--line); }
.hero--light .hero-stat { border-left: 1px solid var(--line); }
.hero--light .hero-stat b { color: var(--navy); }
.hero--light .hero-stat span { color: var(--ink-soft); }

/* Variante com fotografia de fundo — usar junto com "hero--light"
   (ex.: <section class="hero hero--light hero--photo" style="--hero-photo:url('...')">).
   A máscara fica clara/transparente, com as letras escuras por cima
   (herdadas de hero--light); a imagem define-se pela variável
   --hero-photo, para ser fácil trocar por outra fotografia. */
.hero--photo::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.55) 45%, rgba(255,255,255,.65) 100%),
    var(--hero-photo) center/cover no-repeat;
}
.hero--photo::after { display: none; }
.hero--photo .hero-eyebrow,
.hero--photo h1,
.hero--photo .hero-lede,
.hero--photo .hero-stat b,
.hero--photo .hero-stat span {
  text-shadow: 0 1px 16px rgba(255,255,255,.7), 0 1px 2px rgba(255,255,255,.6);
}

@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; }
  .hero-stat:nth-child(3) { border-left: none; padding-left: 0; }
}

/* ==========================================================================
   Secções gerais
   ========================================================================== */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--raised { background: var(--paper-raised); border-block: 1px solid var(--line); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.4rem; }
.eyebrow {
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem;
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--gold); }
.lede { color: var(--ink-soft); max-width: 62ch; font-size: var(--step-1); }

hr.rule { border: none; border-top: 1px solid var(--line); margin: 2.6rem 0; }

/* Grelhas ---------------------------------------------------------------*/
.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* Cartões de curso --------------------------------------------------------*/
.course-card {
  display: flex; flex-direction: column; gap: .9rem;
  background: var(--paper-raised); border: 1px solid var(--line);
  padding: 1.5rem; border-radius: var(--radius); text-decoration: none; color: var(--ink);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  height: 100%;
}
.course-card:hover { border-color: var(--navy); transform: translateY(-3px); box-shadow: var(--shadow); }
.course-card-top { display: flex; align-items: center; justify-content: space-between; }
.course-card h3 { font-size: var(--step-1); margin: 0; }
.course-card p { color: var(--ink-soft); font-size: var(--step--1); margin: 0; }
.course-card-foot { margin-top: auto; display: flex; align-items: center; gap: .4rem; font-size: var(--step--1); font-weight: 600; color: var(--navy); }
.course-card-foot svg { width: 15px; height: 15px; transition: transform .15s ease; }
.course-card:hover .course-card-foot svg { transform: translateX(3px); }
.degree-tag { font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--green); font-weight: 600; }

/* Cartões genéricos -------------------------------------------------------*/
.card {
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem;
}

/* Colunas de conteúdo institucional ---------------------------------------*/
.prose { max-width: 72ch; }
.prose h3 { margin-top: 2.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }

.toc {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-raised);
  padding: 1.4rem 1.5rem; position: sticky; top: 6.2rem;
}
.toc-title { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .8rem; }
.toc a { display: block; text-decoration: none; padding: .38em 0; font-size: var(--step--1); color: var(--ink-soft); border-left: 2px solid transparent; padding-left: .7em; margin-left: -.7em; }
.toc a:hover, .toc a.active { color: var(--navy); border-left-color: var(--gold); }

.layout-with-toc { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .layout-with-toc { grid-template-columns: 1fr; } .toc { position: static; } }

/* Tabelas de plano de estudos ----------------------------------------------*/
.plano { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 1.6rem 0; }
.plano table { width: 100%; border-collapse: collapse; font-size: var(--step--1); min-width: 520px; }
.plano caption {
  text-align: left; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase;
  background: var(--navy); color: var(--gold-soft); padding: .65em 1em;
}
.plano th, .plano td { padding: .6em .9em; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.plano thead th { background: var(--gold-tint); color: var(--navy-deep); font-weight: 700; }
.plano tr.year-row td { background: var(--paper); font-weight: 700; color: var(--navy); font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.plano tbody tr:last-child td { border-bottom: none; }
.plano tr:nth-child(even):not(.year-row) td { background: rgba(0,0,0,.012); }

details.plano-toggle { border: 1px solid var(--line); border-radius: var(--radius); margin: 1.6rem 0; background: var(--paper-raised); }
details.plano-toggle summary { cursor: pointer; padding: 1em 1.2em; font-weight: 600; color: var(--navy); list-style: none; display: flex; align-items: center; justify-content: space-between; }
details.plano-toggle summary::-webkit-details-marker { display: none; }
details.plano-toggle summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.1rem; }
details.plano-toggle[open] summary::after { content: "–"; }
details.plano-toggle .plano { border: none; border-top: 1px solid var(--line); border-radius: 0; margin: 0; }

/* Curso — cabeçalho --------------------------------------------------------*/
.course-hero {
  background: var(--navy-deep); color: #fff; padding-block: clamp(2.6rem, 6vw, 4rem);
  border-bottom: 4px solid var(--gold);
}
.course-hero .code-badge { margin-bottom: 1rem; }
.course-hero h1 { color: #fff; font-size: var(--step-4); max-width: 26ch; }
.course-hero p { color: rgba(255,255,255,.75); max-width: 60ch; margin-top: .8rem; }
.breadcrumb { font-size: var(--step--1); color: rgba(255,255,255,.6); margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Instalações — galeria ----------------------------------------------------*/
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.gallery figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; border-radius: 2px; background: var(--line); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.05); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Infraestruturas / listas em duas colunas -------------------------------*/
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .7em; align-items: flex-start; }
.check-list li::before { content: ""; width: 6px; height: 6px; margin-top: .55em; background: var(--gold); flex-shrink: 0; border-radius: 1px; }

/* Números institucionais ---------------------------------------------------*/
.stat-block b { display: block; font-family: var(--font-display); font-size: var(--step-3); color: var(--navy); }
.stat-block span { color: var(--ink-soft); font-size: var(--step--1); }

/* Timeline (história / notícias) -------------------------------------------*/
.timeline { position: relative; margin-left: .5rem; padding-left: 2rem; border-left: 1.5px solid var(--line); }
.timeline-item { position: relative; padding-bottom: 2.2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -2.44rem; top: .3rem; width: 10px; height: 10px;
  background: var(--gold); border-radius: 50%; border: 2px solid var(--paper);
}
.timeline-year { font-family: var(--font-mono); color: var(--navy); font-weight: 700; font-size: var(--step--1); margin-bottom: .3rem; display: block; }

/* Painéis de aviso / placeholder --------------------------------------------*/
.notice {
  border: 1px dashed var(--line-strong); background: var(--gold-tint);
  border-radius: var(--radius); padding: 1.2rem 1.4rem; font-size: var(--step--1); color: var(--ink-soft);
}
.notice strong { color: var(--navy-deep); }

/* Formulário -----------------------------------------------------------*/
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: var(--step--1); font-weight: 600; margin-bottom: .4em; color: var(--navy-deep); }
input, select, textarea {
  width: 100%; font-family: var(--font-body); font-size: var(--step-0); padding: .7em .8em;
  border: 1.5px solid var(--line-strong); border-radius: 2px; background: var(--paper-raised); color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: none; }
textarea { resize: vertical; min-height: 120px; }

/* Links de recursos externos (estudantes) -----------------------------*/
.resource-link {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); background: var(--paper-raised);
  transition: border-color .15s ease, transform .15s ease;
}
.resource-link:hover { border-color: var(--navy); transform: translateX(2px); }
.resource-link h4 { margin: 0 0 .2em; }
.resource-link p { margin: 0; color: var(--ink-soft); font-size: var(--step--1); }
.resource-link svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--gold); }

/* Galeria com lightbox -----------------------------------------------------*/
.lightbox-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.lightbox-gallery figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; border-radius: 2px; background: var(--line); position: relative; }
.lightbox-gallery img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .3s ease; display: block; }
.lightbox-gallery a:hover img { transform: scale(1.05); }
.lightbox-gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .4em .6em;
  background: linear-gradient(0deg, rgba(255,255,255,.92), rgba(255,255,255,.6) 70%, transparent);
  color: var(--navy-deep); font-size: .72rem; font-weight: 600; opacity: 0; transition: opacity .15s ease; pointer-events: none;
}
.lightbox-gallery a:hover figcaption { opacity: 1; }
@media (max-width: 900px) { .lightbox-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .lightbox-gallery { grid-template-columns: repeat(2, 1fr); } }

.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(16,19,29,.92); z-index: 300;
  display: none; align-items: center; justify-content: center; padding: 4vh 4vw;
}
.lightbox-overlay.is-open { display: flex; }
.lightbox-overlay img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; border-radius: 2px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.4);
  color: #fff; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.22); }
.lightbox-caption { position: fixed; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.75); font-size: var(--step--1); }

/* Rede Grupo Lusófona ------------------------------------------------------*/
.network-group h3 { margin-top: 2.6rem; }
.school-card {
  display: flex; flex-direction: column; gap: .9rem; background: var(--paper-raised);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; text-decoration: none; color: var(--ink);
  transition: border-color .15s ease, transform .15s ease;
}
.school-card:hover { border-color: var(--navy); transform: translateY(-2px); }
.school-card-logo { height: 34px; display: flex; align-items: center; }
.school-card-logo img { max-height: 34px; max-width: 100%; width: auto; object-fit: contain; }
.school-card h4 { margin: 0; font-size: var(--step-0); }
.school-card p { margin: 0; color: var(--ink-soft); font-size: var(--step--1); }
.school-card .school-link { font-size: .78rem; font-weight: 600; color: var(--navy); }
.school-highlight {
  border: 1.5px solid var(--gold); background: var(--gold-tint);
}

/* Rodapé -----------------------------------------------------------------*/
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); }
.footer-top { padding-block: 3.5rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { color: #fff; font-family: var(--font-display); font-size: var(--step-1); margin-bottom: .6rem; }
.footer-col h5 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1rem; }
.footer-col a { display: block; text-decoration: none; color: rgba(255,255,255,.75); font-size: var(--step--1); padding-block: .32em; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding-block: 1.3rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .78rem; color: rgba(255,255,255,.55);
}
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* Utilitários --------------------------------------------------------------*/
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
