/* ============================================================
   ONU COLEGIAL — Design System tokens & globals
   ============================================================ */

:root {
  /* Brand */
  --onu-blue: #1E8FFF;
  --onu-blue-glow: #4DB5FF;
  --onu-purple: #616EDD;
  --onu-purple-dark: #28235D;
  --onu-purple-deep: #1a164a;
  --onu-lilac: #9699F0;
  --onu-petrol: #16213E;

  /* Neutrals */
  --soft-white: #F7F7FB;
  --off-white-cool: #ECECFA;
  --lavender-gray: #CFCFEA;
  --ink: #0c0a2a;

  /* Type */
  --font-display: "Archivo", "Heading Now 91", system-ui, sans-serif;
  --font-body: "Questrial", system-ui, sans-serif;
  --font-mono: "Questrial", system-ui, sans-serif;

  /* Radius / shadow */
  --r-card: 18px;
  --r-btn: 14px;

  /* Spacing scale */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 72px; --s7: 96px; --s8: 128px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--soft-white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ============================================================
   Type
   ============================================================ */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.92;
  text-transform: uppercase;
  text-wrap: balance;
}
.display-light {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 0.95;
  text-transform: uppercase;
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
}
.mono { font-family: var(--font-mono); letter-spacing: 0.04em; }

h1 { font-size: clamp(48px, 8vw, 112px); margin: 0; }
h2 { font-size: clamp(36px, 5.2vw, 72px); margin: 0; }
h3 { font-size: clamp(24px, 2.4vw, 32px); margin: 0; }
p  { font-size: 18px; line-height: 1.55; margin: 0; }

/* ============================================================
   Layout primitives
   ============================================================ */
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; position: relative; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: var(--r-btn);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--onu-blue);
  color: #fff;
  box-shadow: 0 8px 32px -8px rgba(30,143,255,.6),
              inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover {
  background: var(--onu-blue-glow);
  transform: translateY(-1px);
  box-shadow: 0 12px 40px -8px rgba(77,181,255,.7);
}
.btn-ghost {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,.45); }

.btn-dark {
  background: var(--onu-purple-dark);
  color: #fff;
}
.btn-dark:hover { background: var(--onu-purple); }

/* ============================================================
   Halftone & textures (SVG-driven backgrounds)
   ============================================================ */
.halftone-dots {
  background-image: radial-gradient(rgba(150,153,240,.55) 1px, transparent 1.4px);
  background-size: 10px 10px;
}
.halftone-dots-light {
  background-image: radial-gradient(rgba(40,35,93,.32) 1px, transparent 1.4px);
  background-size: 9px 9px;
}
.halftone-fade-r {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 40%, #000 100%);
}
.halftone-fade-l {
  -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 40%, #000 100%);
          mask-image: linear-gradient(270deg, transparent 0%, #000 40%, #000 100%);
}
.halftone-fade-tl {
  -webkit-mask-image: radial-gradient(circle at 0% 0%, #000 0%, transparent 65%);
          mask-image: radial-gradient(circle at 0% 0%, #000 0%, transparent 65%);
}
.halftone-fade-br {
  -webkit-mask-image: radial-gradient(circle at 100% 100%, #000 0%, transparent 65%);
          mask-image: radial-gradient(circle at 100% 100%, #000 0%, transparent 65%);
}

/* Paper grain */
.grain::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/></svg>");
  mix-blend-mode: overlay;
  opacity: .35;
  pointer-events: none;
  z-index: 1;
}
.grain-dark::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.65'/></svg>");
  mix-blend-mode: multiply;
}

/* ============================================================
   Surfaces
   ============================================================ */
.bg-hero {
  background:
    radial-gradient(60% 80% at 80% 20%, rgba(150,153,240,.55) 0%, transparent 60%),
    radial-gradient(70% 90% at 10% 90%, rgba(30,143,255,.35) 0%, transparent 60%),
    linear-gradient(135deg, #28235D 0%, #3a3aa0 45%, #616EDD 75%, #9699F0 100%);
}
.bg-deep {
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(150,153,240,.18) 0%, transparent 70%),
    linear-gradient(180deg, #28235D 0%, #1a164a 100%);
}
.bg-soft {
  background: linear-gradient(180deg, #FFFFFF 0%, #ECECFA 100%);
}
.bg-petrol {
  background: linear-gradient(180deg, #16213E 0%, #0d1530 100%);
}

/* Glassmorphism */
.glass {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-card);
}
.glass-strong {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-card);
}
.glass-light {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(40,35,93,0.08);
  border-radius: var(--r-card);
  box-shadow: 0 12px 40px -20px rgba(40,35,93,0.25);
}

/* Glow */
.glow-blue { box-shadow: 0 0 60px -10px rgba(77,181,255,.6); }
.glow-soft { box-shadow: 0 0 80px -20px rgba(150,153,240,.55); }

/* ============================================================
   Image placeholders (per system: striped + monospace caption)
   ============================================================ */
.img-placeholder {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,.06) 0 12px,
      rgba(255,255,255,.0) 12px 24px
    ),
    linear-gradient(135deg, #28235D 0%, #616EDD 100%);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: flex-end;
}
.img-placeholder.light {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(40,35,93,.06) 0 12px,
      rgba(40,35,93,.0) 12px 24px
    ),
    linear-gradient(135deg, #ECECFA 0%, #CFCFEA 100%);
  border: 1px solid rgba(40,35,93,.08);
  color: #28235D;
}
.img-placeholder .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 14px 16px;
  color: rgba(255,255,255,.85);
}
.img-placeholder.light .label { color: rgba(40,35,93,.7); }
.img-placeholder .badge {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .14em;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 6px;
  color: #fff;
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
}
.img-placeholder.light .badge { color: var(--onu-purple-dark); border-color: rgba(40,35,93,.25); background: rgba(255,255,255,.5); }

/* ============================================================
   Diplomatic UI bits — grid lines / coordinates / radar
   ============================================================ */
.coord-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.coord-grid-light {
  background-image:
    linear-gradient(rgba(40,35,93,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40,35,93,.06) 1px, transparent 1px);
}

/* Ticker */
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker {
  display: flex; gap: 56px;
  animation: ticker 60s linear infinite;
  white-space: nowrap;
}

/* Glow breathing */
@keyframes breathe {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: .85; transform: scale(1.06); }
}
.breathe { animation: breathe 6s ease-in-out infinite; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Utility */
.divider { height: 1px; background: rgba(40,35,93,.12); border: 0; }
.divider-light { height: 1px; background: rgba(255,255,255,.12); border: 0; }

.dot-list { display: flex; align-items: center; gap: 10px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--onu-blue); }

/* Card hover */
.card-tilt { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.card-tilt:hover { transform: translateY(-4px); }

/* Marquee mask */
.mask-edges {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

/* ===== FOOTER VIEIRA ===== */
[data-flex] { display: flex; }
[data-flex~="align-center"] { align-items: center; }
[data-flex~="justify-center"] { justify-content: center; }
[data-flex~="justify-between"] { justify-content: space-between; }
[data-flex~="wrap"] { flex-wrap: wrap; }

.footer { color: #fff; font-family: var(--font-body); }
.footer .container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.img-responsive { max-width: 100%; height: auto; display: block; }

/* Footer main — cinza claro */
.footer-main { background: #6b6b6b; padding: 40px 0; border-bottom: 1px solid rgba(0,0,0,.18); }
.footer-main .container { gap: 40px; flex-wrap: wrap; }
.logo-main-footer { flex-shrink: 0; display: block; }
.logo-main-footer svg { max-width: 260px; height: auto; }

.contacts { display: flex; flex-direction: column; gap: 14px; flex: 1; min-width: 220px; }
.contacts .item { display: flex; align-items: flex-start; gap: 12px; color: rgba(255,255,255,.9); text-decoration: none; font-size: 14px; line-height: 1.4; }
.contacts .item:hover { color: #fff; }
.contacts .item .icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.contacts .item .icon svg { width: 100%; height: 100%; }

.location img { max-height: 110px; border-radius: 4px; }

/* Footer secondary — cinza escuro */
.footer-secondary { background: #555; }

/* Links bar */
.footer-links { padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer-links .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Ícones sociais: apenas contorno circular */
.list-social-networks { list-style: none; margin: 0; padding: 0; gap: 14px; }
.list-social-networks .item a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1.5px solid rgba(255,255,255,.75); border-radius: 50%; color: #fff; transition: border-color .2s, background .2s; }
.list-social-networks .item a:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.list-social-networks .item svg { width: 16px; height: 16px; }

/* Botões do box: retângulo com borda */
.box { display: flex; align-items: center; gap: 0; flex-wrap: wrap; border: 1px solid rgba(255,255,255,.55); border-radius: 4px; overflow: hidden; }
.box .item { color: rgba(255,255,255,.9); text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; padding: 12px 22px; border-right: 1px solid rgba(255,255,255,.55); white-space: nowrap; }
.box .item:last-child { border-right: none; }
.box .item:hover { background: rgba(255,255,255,.12); color: #fff; }
.box .item-site-map { display: flex; align-items: center; gap: 10px; }
.box .item-site-map .icon { display: flex; align-items: center; }
.box .item-site-map .icon svg { width: 14px; height: 14px; stroke: currentColor; }

/* Site map */
.site-map { display: none; padding: 32px 0; border-bottom: 1px solid rgba(255,255,255,.12); background: #4d4d4d; }
.site-map.open { display: block; }
.site-map .menu { list-style: none; padding: 0 32px; display: flex; flex-wrap: wrap; gap: 40px; max-width: 1320px; margin: 0 auto; }
.site-map .menu > li > a { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.9); text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 12px; cursor: pointer; }
.site-map .sub-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-map .sub-menu a { font-size: 13px; color: rgba(255,255,255,.65); text-decoration: none; }
.site-map .sub-menu a:hover { color: #fff; }
.site-map .sub-menu .sub-menu { padding-left: 12px; margin-top: 6px; }

/* Footer logos */
.footer-logos { padding: 32px 0; border-top: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); }
.footer-logos .container { gap: 36px; }
.footer-logos .item img { max-height: 46px; filter: brightness(0) invert(1); opacity: .65; transition: opacity .2s; }
.footer-logos .item:hover img { opacity: 1; }

/* Footer copyright — centralizado como na imagem */
.footer-copyright { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-copyright .container { flex-direction: column; align-items: center; gap: 12px; }
.text-copyright { font-size: 13px; color: rgba(255,255,255,.7); text-align: center; }
.logo-iwwa { opacity: .7; transition: opacity .2s; }
.logo-iwwa:hover { opacity: 1; }

/* Footer text */
.footer-text { padding: 28px 0; }
.footer-text .resume p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.75); margin: 0 0 12px; }
.footer-text .complete-text { display: none; }
.footer-text .complete-text.open { display: block; }
.keep-reading { font-size: 13px; color: rgba(255,255,255,.9); cursor: pointer; text-decoration: underline; }
.keep-reading:hover { color: #fff; }

/* Selection */
::selection { background: var(--onu-blue); color: #fff; }

/* Scrollbar */
html { scroll-behavior: smooth; }
body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-thumb { background: rgba(40,35,93,.35); border-radius: 6px; }
body::-webkit-scrollbar-track { background: var(--soft-white); }
