/* ============================================================
   AD-UNIFEI — Sistema de Design
   Títulos: Exo 2 · Corpo: IBM Plex Sans
   Base azul-marinho · glassmorphism · claro/escuro
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Marca */
  --navy-900: #07203f;
  --navy-800: #0a2d5e;
  --navy-700: #0e3a72;
  --navy-600: #134a8e;
  --navy-500: #1b5fb0;
  --navy-400: #3f82cf;
  --navy-300: #7eaee0;
  --gear:     #9aa5b1;
  --red:      #e0212a;

  /* Tema claro (padrão) */
  --bg:        oklch(0.985 0.004 245);
  --bg-2:      oklch(0.962 0.007 245);
  --bg-3:      oklch(0.935 0.010 245);
  --surface:   #ffffff;
  --glass:     rgba(255, 255, 255, 0.62);
  --glass-brd: rgba(255, 255, 255, 0.75);
  --glass-2:   rgba(255, 255, 255, 0.45);
  --ink:       oklch(0.24 0.035 255);
  --ink-soft:  oklch(0.46 0.025 255);
  --ink-faint: oklch(0.62 0.020 255);
  --line:      oklch(0.90 0.012 250);
  --line-soft: oklch(0.93 0.010 250);
  --primary:   var(--navy-700);
  --primary-2: var(--navy-600);
  --accent:    var(--navy-500);
  --on-primary: #ffffff;

  --shadow-sm: 0 1px 2px rgba(10, 45, 94, 0.06), 0 2px 8px rgba(10, 45, 94, 0.05);
  --shadow-md: 0 6px 18px rgba(10, 45, 94, 0.10), 0 2px 6px rgba(10, 45, 94, 0.06);
  --shadow-lg: 0 18px 50px rgba(10, 45, 94, 0.16), 0 6px 18px rgba(10, 45, 94, 0.08);
  --shadow-glass: 0 10px 40px rgba(7, 32, 63, 0.12);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --maxw: 1240px;
  --gutter: clamp(18px, 5vw, 56px);

  --blueprint: rgba(19, 74, 142, 0.06);
  --hero-from: oklch(0.97 0.012 245);
  --hero-to:   oklch(0.93 0.020 250);
}

:root[data-theme="dark"] {
  --bg:        oklch(0.18 0.028 255);
  --bg-2:      oklch(0.215 0.030 255);
  --bg-3:      oklch(0.255 0.032 255);
  --surface:   oklch(0.235 0.030 255);
  --glass:     rgba(18, 38, 68, 0.55);
  --glass-brd: rgba(126, 174, 224, 0.18);
  --glass-2:   rgba(18, 38, 68, 0.35);
  --ink:       oklch(0.95 0.012 250);
  --ink-soft:  oklch(0.78 0.020 250);
  --ink-faint: oklch(0.62 0.022 250);
  --line:      oklch(0.34 0.030 255);
  --line-soft: oklch(0.30 0.028 255);
  --primary:   var(--navy-500);
  --primary-2: var(--navy-400);
  --accent:    var(--navy-400);
  --on-primary: #ffffff;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.30), 0 2px 10px rgba(0,0,0,0.25);
  --shadow-md: 0 8px 22px rgba(0,0,0,0.38);
  --shadow-lg: 0 22px 60px rgba(0,0,0,0.50);
  --shadow-glass: 0 14px 50px rgba(0,0,0,0.45);

  --blueprint: rgba(126, 174, 224, 0.08);
  --hero-from: oklch(0.20 0.030 255);
  --hero-to:   oklch(0.155 0.034 258);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.5s var(--ease), color 0.4s var(--ease);
}

h1, h2, h3, h4, h5, .display {
  font-family: "Exo 2", "IBM Plex Sans", sans-serif;
  line-height: 1.06;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: var(--ink);
  text-wrap: balance;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--navy-500); color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 11vw, 132px); position: relative; }
.eyebrow {
  font-family: "Exo 2", sans-serif;
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; display: inline-block; border-radius: 2px; }
.section-head { max-width: 640px; margin-bottom: clamp(34px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 5vw, 3.1rem); margin-top: 16px; }
.section-head p { color: var(--ink-soft); font-size: clamp(1rem, 2.2vw, 1.12rem); margin-top: 16px; max-width: 56ch; }
.center { text-align: center; margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 0.85em; --pad-x: 1.5em;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: "Exo 2", sans-serif; font-weight: 700; font-size: 0.98rem;
  letter-spacing: 0.01em; padding: var(--pad-y) var(--pad-x);
  border-radius: var(--r-pill); position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, color 0.3s;
  will-change: transform; white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; transition: transform 0.4s var(--ease); }
.btn-primary { background: linear-gradient(135deg, var(--navy-600), var(--navy-700)); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--navy-500), var(--navy-600));
  opacity: 0; transition: opacity 0.35s var(--ease); z-index: -1;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-primary:active { transform: translateY(-1px) scale(0.99); }

.btn-ghost { background: var(--glass); color: var(--ink); border: 1.5px solid var(--line); backdrop-filter: blur(10px); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow-sm); }

.btn-light { background: rgba(255,255,255,0.14); color: #fff; border: 1.5px solid rgba(255,255,255,0.3); backdrop-filter: blur(10px); }
.btn-light:hover { background: rgba(255,255,255,0.24); transform: translateY(-3px); }
.btn-lg { --pad-y: 1.02em; --pad-x: 1.9em; font-size: 1.04rem; }
.btn-block { display: flex; width: 100%; }

/* shine sweep */
.btn-shine::before {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg); transition: left 0.7s var(--ease);
}
.btn-shine:hover::before { left: 130%; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; padding-top: 14px; padding-inline: var(--gutter); transition: padding 0.4s var(--ease); }
.site-header.scrolled { padding-top: 0; padding-inline: 0; }
.nav {
  display: flex; align-items: center; gap: 18px;
  max-width: var(--maxw); margin-inline: auto;
  padding: 12px 18px; border-radius: var(--r-pill);
  background: var(--glass); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-glass);
  transition: border-radius 0.4s var(--ease), margin 0.4s var(--ease), background 0.4s;
}
.site-header.scrolled .nav { border-radius: 0 0 20px 20px; margin-inline: 0; max-width: 100%; border-top: none; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
/* no tema escuro, o texto navy do logo some no fundo escuro → usa a versão clara (texto branco) */
:root[data-theme="dark"] .brand img { content: url("../img/logo-adunifei-light.png"); }
.brand:hover img { animation: brandPop 0.6s var(--ease); }
@keyframes brandPop { 0%,100%{transform:none} 40%{transform:rotate(-2deg) scale(1.04)} }

.nav-menu { display: none; }
.nav-spacer { flex: 1; }

.nav-link {
  font-family: "Exo 2", sans-serif; font-weight: 600; font-size: 0.92rem;
  color: var(--ink-soft); padding: 8px 12px; border-radius: var(--r-sm);
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap;
  transition: color 0.25s, background 0.25s;
}
.nav-link:hover { color: var(--ink); background: var(--glass-2); }
.nav-link .chev { width: 13px; height: 13px; transition: transform 0.3s var(--ease); opacity: 0.6; }
.has-drop { position: relative; }
.has-drop:hover .chev { transform: rotate(180deg); }

.drop {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--glass); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: 10px; min-width: 240px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}
.drop::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.drop a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--r-sm);
  font-size: 0.9rem; color: var(--ink-soft); font-weight: 500; transition: background 0.2s, color 0.2s, transform 0.2s;
}
.drop a:hover { background: var(--glass-2); color: var(--accent); transform: translateX(4px); }
.drop a .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.5; flex-shrink: 0; transition: opacity 0.2s, transform 0.2s; }
.drop a:hover .dot { opacity: 1; transform: scale(1.5); }
/* dropdown quase sólido p/ legibilidade (só um leve toque de transparência) */
.drop { background: rgba(255, 255, 255, 0.97); }
:root[data-theme="dark"] .drop { background: rgba(20, 40, 71, 0.97); border-color: rgba(126,174,224,0.22); }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glass-2); border: 1px solid var(--line); color: var(--ink-soft);
  transition: transform 0.4s var(--ease), color 0.3s, border-color 0.3s;
}
.theme-toggle:hover { transform: rotate(40deg) scale(1.08); color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
.nav-cta { display: none; }

.burger { width: 44px; height: 44px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--glass-2); border: 1px solid var(--line); transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease); }
.burger:hover { border-color: var(--accent); }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transform-origin: center; transition: transform 0.35s var(--ease), opacity 0.2s var(--ease); }
/* estado aberto → X compacto e centralizado (pitch entre linhas = 2px altura + 4px gap = 6px) */
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 99; pointer-events: none;
  background: rgba(7, 32, 63, 0.4); opacity: 0; transition: opacity 0.4s var(--ease);
  backdrop-filter: blur(2px);
}
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 380px);
  background: var(--glass); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-left: 1px solid var(--glass-brd); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform 0.45s var(--ease);
  padding: 90px 24px 32px; overflow-y: auto;
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-panel .m-link { display: block; font-family: "Exo 2",sans-serif; font-weight: 700; font-size: 1.15rem; padding: 14px 6px; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.drawer-panel .m-sub { padding: 4px 6px 14px; display: none; }
.drawer-panel .m-group.open .m-sub { display: block; }
.drawer-panel .m-sub a { display: block; padding: 9px 14px; color: var(--ink-soft); font-size: 0.96rem; border-radius: 8px; }
.drawer-panel .m-sub a:hover { background: var(--glass-2); color: var(--accent); }
.drawer-panel .m-group > .m-link { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.drawer-panel .m-group > .m-link .chev { width: 18px; transition: transform 0.3s; }
.drawer-panel .m-group.open > .m-link .chev { transform: rotate(180deg); }
.drawer-cta { margin-top: 24px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: 130px; padding-bottom: clamp(60px, 9vw, 110px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: linear-gradient(160deg, var(--hero-from), var(--hero-to)); }
.hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: 1;
  background-image: linear-gradient(var(--blueprint) 1px, transparent 1px), linear-gradient(90deg, var(--blueprint) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(circle at 70% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 10%, transparent 75%);
}
.hero-gear { position: absolute; color: var(--navy-500); opacity: 0.07; z-index: -1; will-change: transform; }
.hero-gear.g1 { top: -60px; right: -40px; width: 320px; animation: spin 50s linear infinite; }
.hero-gear.g2 { bottom: -90px; left: -70px; width: 260px; animation: spin 60s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-inner { display: grid; gap: clamp(36px, 6vw, 56px); align-items: center; }
.hero-copy { max-width: 640px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px;
  background: var(--glass); border: 1px solid var(--glass-brd); border-radius: var(--r-pill);
  backdrop-filter: blur(10px); font-size: 0.8rem; font-weight: 600; color: var(--ink-soft);
  box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.hero-badge b { font-family: "Exo 2",sans-serif; background: var(--navy-700); color: #fff; padding: 4px 10px; border-radius: var(--r-pill); font-size: 0.72rem; letter-spacing: 0.04em; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; }
.hero h1 .grad {
  background: linear-gradient(115deg, var(--navy-600), var(--navy-400) 55%, var(--navy-600));
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.hero-lede { font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--ink-soft); margin-top: 22px; max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(20px, 5vw, 40px); margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.hero-stat .n { font-family: "Exo 2",sans-serif; font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--ink); line-height: 1; }
.hero-stat .l { font-size: 0.82rem; color: var(--ink-faint); margin-top: 6px; }

/* Hero visual panel */
.hero-visual { position: relative; }
.hero-card {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--glass-brd); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5; background: var(--bg-3);
}
.hero-card .ph-label { z-index: 3; }
.hero-card .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
/* em layout empilhado (< 880px) o card vira faixa horizontal p/ não ocupar a tela toda */
@media (max-width: 879px) { .hero-card { aspect-ratio: 16 / 11; } }
.hero-float {
  position: absolute; background: var(--glass); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.hero-float .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-700); color: #fff; flex-shrink: 0; }
.hero-float .ic svg { width: 22px; height: 22px; }
.hero-float .t { font-family:"Exo 2",sans-serif; font-weight: 800; font-size: 1.05rem; line-height: 1; }
.hero-float .s { font-size: 0.74rem; color: var(--ink-faint); margin-top: 4px; }
.hero-float.f1 { top: 18px; left: -14px; animation: floaty 5s ease-in-out infinite; }
.hero-float.f2 { bottom: 24px; right: -14px; animation: floaty 6s ease-in-out infinite 0.5s; }
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }

/* Image placeholder pattern */
.ph {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, var(--bg-2), var(--bg-2) 11px, var(--bg-3) 11px, var(--bg-3) 22px);
  display: grid; place-items: center;
}
.ph-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.74rem; letter-spacing: 0.03em;
  color: var(--ink-faint); background: var(--glass); border: 1px dashed var(--line);
  padding: 7px 13px; border-radius: var(--r-pill); backdrop-filter: blur(4px); text-align: center;
}

/* ============================================================
   SCROLL MARQUEE (regionais)
   ============================================================ */
.marquee { padding-block: 22px; border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scrollx 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family:"Exo 2",sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--ink-faint); display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee-item::after { content: "◆"; color: var(--accent); font-size: 0.6rem; opacity: 0.6; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ============================================================
   SOBRE + OBJETIVOS
   ============================================================ */
.about { position: relative; }
.about-top { display: grid; gap: 40px; align-items: start; }
.about-lead p { color: var(--ink-soft); font-size: 1.05rem; margin-top: 18px; }
.about-lead p + p { margin-top: 14px; }
.mission-card {
  background: var(--glass); border: 1px solid var(--glass-brd); border-radius: var(--r-lg);
  backdrop-filter: blur(14px); box-shadow: var(--shadow-glass); padding: 28px;
  position: relative; overflow: hidden;
}
.mission-card::before { content:""; position:absolute; top:0; left:0; width:100%; height: 4px; background: linear-gradient(90deg, var(--navy-700), var(--navy-400)); }
.mission-card .q { font-family:"Exo 2",sans-serif; font-weight:700; font-size: 1.18rem; line-height: 1.4; }
.mission-card .src { margin-top: 16px; font-size: 0.84rem; color: var(--ink-faint); font-style: italic; }

.obj-grid { display: grid; gap: 16px; margin-top: 52px; grid-template-columns: 1fr; }
.obj-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px; position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.obj-card::after { content:""; position:absolute; inset: 0; background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(27,95,176,0.10), transparent 60%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.obj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.obj-card:hover::after { opacity: 1; }
.obj-num { font-family:"Exo 2",sans-serif; font-weight: 800; font-size: 0.92rem; color: var(--accent); letter-spacing: 0.1em; }
.obj-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(140deg, var(--bg-2), var(--bg-3)); color: var(--navy-600); margin: 14px 0 16px; transition: transform 0.45s var(--ease), background 0.4s, color 0.4s; }
.obj-ic svg { width: 26px; height: 26px; }
.obj-card:hover .obj-ic { transform: rotate(-8deg) scale(1.08); background: var(--navy-700); color: #fff; }
.obj-card h3 { font-size: 1.12rem; font-weight: 700; }
.obj-card p { color: var(--ink-soft); font-size: 0.94rem; margin-top: 8px; }

/* ============================================================
   NÚMEROS / CONTADOR
   ============================================================ */
.stats { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #fff; position: relative; overflow: hidden; }
.stats::before {
  content:""; position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px; mask-image: radial-gradient(circle at 30% 50%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 30% 50%, #000, transparent 70%);
}
.stats .eyebrow { color: var(--navy-300); }
.stats .section-head h2 { color: #fff; }
.stats .section-head p { color: rgba(255,255,255,0.7); }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; position: relative; }
.stat-cell {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-md);
  padding: 26px 20px; backdrop-filter: blur(6px); position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), background 0.3s;
}
.stat-cell:hover { transform: translateY(-5px); background: rgba(255,255,255,0.09); }
.stat-cell .big { font-family:"Exo 2",sans-serif; font-weight: 800; font-size: clamp(2.4rem, 8vw, 3.6rem); line-height: 1; background: linear-gradient(120deg,#fff, var(--navy-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-cell .pre { color: var(--navy-300); font-weight: 700; }
.stat-cell .lab { margin-top: 12px; font-size: 0.92rem; color: rgba(255,255,255,0.78); }
.stat-cell .sub { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 4px; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; margin-top: 40px; max-width: 720px; margin-inline: auto; }
.tl-line { position: absolute; left: 22px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl-line .fill { position: absolute; top: 0; left: 0; width: 100%; height: 0; background: linear-gradient(var(--navy-500), var(--navy-700)); transition: height 0.1s linear; }
.tl-item { position: relative; padding: 0 0 38px 64px; }
.tl-dot { position: absolute; left: 13px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s; z-index: 1; }
.tl-item.active .tl-dot { border-color: var(--navy-600); transform: scale(1.15); box-shadow: 0 0 0 6px rgba(27,95,176,0.14); }
.tl-year { font-family:"Exo 2",sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--accent); line-height: 1; }
.tl-card { margin-top: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.tl-item:hover .tl-card { transform: translateX(6px); box-shadow: var(--shadow-md); }
.tl-card h3 { font-size: 1.06rem; }
.tl-card p { color: var(--ink-soft); font-size: 0.92rem; margin-top: 6px; }

/* ============================================================
   NOTÍCIAS
   ============================================================ */
.news-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.news-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.news-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: transparent; }
.news-media { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.news-media .ph { transition: transform 0.6s var(--ease); }
.news-card:hover .news-media .ph { transform: scale(1.06); }
/* fotos reais nos cards de notícia e na seção UNIFEI */
.news-media .news-photo, .unifei-media .unifei-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.news-media .news-photo { transition: transform 0.6s var(--ease); }
.news-card:hover .news-media .news-photo { transform: scale(1.06); }
.news-tag { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--glass); backdrop-filter: blur(8px); border: 1px solid var(--glass-brd); color: var(--accent); font-family:"Exo 2",sans-serif; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--r-pill); }
.news-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: 0.8rem; color: var(--ink-faint); display: flex; align-items: center; gap: 7px; }
.news-card h3 { font-size: 1.18rem; margin-top: 10px; transition: color 0.3s; }
.news-card:hover h3 { color: var(--accent); }
.news-card p { color: var(--ink-soft); font-size: 0.92rem; margin-top: 10px; flex: 1; }
.news-more { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-family:"Exo 2",sans-serif; font-weight: 700; font-size: 0.88rem; color: var(--accent); }
.news-more svg { width: 16px; transition: transform 0.3s var(--ease); }
.news-card:hover .news-more svg { transform: translateX(5px); }
.news-foot { text-align: center; margin-top: 40px; }
#news-loader.htmx-request .htmx-indicator { display: inline-flex; }
.htmx-indicator { display: none; }
.spinner { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }

/* ============================================================
   EVENTOS
   ============================================================ */
.events-list { display: grid; gap: 14px; max-width: 880px; margin-inline: auto; }
.event-row {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 20px; transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.3s;
}
.event-row:hover { transform: translateX(8px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.event-date { text-align: center; min-width: 64px; padding-right: 20px; border-right: 1px solid var(--line); }
.event-date .d { font-family:"Exo 2",sans-serif; font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--navy-700); }
.event-date .m { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); margin-top: 4px; }
.event-info h3 { font-size: 1.1rem; }
.event-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; font-size: 0.85rem; color: var(--ink-soft); }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-meta svg { width: 15px; color: var(--accent); }
.event-cta { display: none; }

/* ============================================================
   REGIONAIS (mapa)
   ============================================================ */
.regionais-inner { display: grid; gap: 36px; }
.map-wrap { position: relative; background: var(--glass); border: 1px solid var(--glass-brd); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-glass); backdrop-filter: blur(10px); }
.map-wrap svg { width: 100%; height: auto; }
.map-wrap .pin { cursor: pointer; transition: transform 0.3s var(--ease); transform-box: fill-box; transform-origin: center; }
.map-wrap .pin circle.dot { fill: var(--navy-600); transition: fill 0.3s, r 0.3s; }
.map-wrap .pin .pulse { fill: var(--navy-500); opacity: 0.35; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
.map-wrap .pin:hover circle.dot, .map-wrap .pin.active circle.dot { fill: var(--red); r: 7; }
@keyframes pulse { 0%{ transform: scale(0.6); opacity: 0.5; } 100%{ transform: scale(2.6); opacity: 0; } }
.reg-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.reg-chip {
  display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line); font-size: 0.9rem; font-weight: 500;
  transition: background 0.25s, color 0.25s, transform 0.25s, border-color 0.25s; cursor: pointer;
}
.reg-chip:hover, .reg-chip.active { background: var(--navy-700); color: #fff; transform: translateX(4px); border-color: transparent; }
.reg-chip .pdot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; transition: background 0.25s; }
.reg-chip:hover .pdot, .reg-chip.active .pdot { background: #fff; }

/* ============================================================
   SÓCIO CTA
   ============================================================ */
.join { position: relative; }
.join-card {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  color: #fff; padding: clamp(36px, 6vw, 72px); box-shadow: var(--shadow-lg);
}
.join-card::before { content:""; position:absolute; top:-60%; right:-10%; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(27,95,176,0.5), transparent 65%); }
.join-gear { position: absolute; bottom: -100px; right: -60px; width: 360px; color: #fff; opacity: 0.05; animation: spin 70s linear infinite; }
.join-card .inner { position: relative; max-width: 620px; }
.join-card .eyebrow { color: var(--navy-300); }
.join-card h2 { color: #fff; font-size: clamp(1.9rem, 5vw, 3rem); margin-top: 14px; }
.join-card p { color: rgba(255,255,255,0.82); margin-top: 18px; font-size: 1.06rem; }
.join-perks { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.join-perks li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); padding: 8px 14px; border-radius: var(--r-pill); }
.join-perks svg { width: 16px; color: var(--navy-300); }
.join-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ============================================================
   DEPOIMENTOS
   ============================================================ */
.testi-viewport { overflow: hidden; }
.testi-track { display: flex; transition: transform 0.6s var(--ease); }
.testi-slide { min-width: 100%; padding: 4px; }
.testi-card {
  background: var(--glass); border: 1px solid var(--glass-brd); border-radius: var(--r-lg);
  backdrop-filter: blur(14px); box-shadow: var(--shadow-glass); padding: clamp(28px, 5vw, 48px);
  position: relative;
}
.testi-card .mark { font-family:"Exo 2",sans-serif; font-size: 4rem; line-height: 0.6; color: var(--accent); opacity: 0.3; }
.testi-card .quote { font-size: clamp(1.1rem, 2.6vw, 1.4rem); font-weight: 500; line-height: 1.5; margin-top: 10px; }
.testi-who { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.testi-av { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid var(--glass-brd); }
.testi-who .nm { font-family:"Exo 2",sans-serif; font-weight: 700; }
.testi-who .rl { font-size: 0.84rem; color: var(--ink-faint); }
.testi-nav { display: flex; gap: 10px; margin-top: 28px; align-items: center; }
.testi-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--ink-soft); transition: background 0.3s, color 0.3s, transform 0.3s, border-color 0.3s; }
.testi-arrow:hover { background: var(--navy-700); color: #fff; border-color: transparent; transform: scale(1.06); }
.testi-arrow svg { width: 20px; }
.testi-dots { display: flex; gap: 8px; margin-left: 8px; }
.testi-dots button { width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: width 0.3s, background 0.3s; }
.testi-dots button.active { width: 26px; border-radius: 5px; background: var(--navy-600); }

/* ============================================================
   UNIFEI
   ============================================================ */
.unifei-inner { display: grid; gap: 36px; align-items: center; }
.unifei-media { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16/11; box-shadow: var(--shadow-lg); border: 1px solid var(--glass-brd); }
.unifei-copy p { color: var(--ink-soft); margin-top: 16px; font-size: 1.04rem; }
.unifei-facts { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 28px; }
.fact { padding: 16px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.fact .n { font-family:"Exo 2",sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--navy-700); }
.fact .l { font-size: 0.84rem; color: var(--ink-soft); margin-top: 2px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding-top: clamp(56px, 8vw, 88px); position: relative; overflow: hidden; }
.footer::before { content:""; position:absolute; top:0; left:0; right:0; height:1px; background: linear-gradient(90deg, transparent, var(--navy-500), transparent); }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
.footer-brand img { height: 44px; opacity: 1; }
.footer-brand p { margin-top: 18px; font-size: 0.92rem; max-width: 38ch; color: rgba(255,255,255,0.6); }
.footer-soc { display: flex; gap: 10px; margin-top: 22px; }
.footer-soc a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); color: #fff; transition: background 0.3s, transform 0.3s; }
.footer-soc a:hover { background: var(--navy-600); transform: translateY(-4px); }
.footer-soc svg { width: 19px; }
.footer-col h4 { font-family:"Exo 2",sans-serif; color: #fff; font-size: 0.92rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: 0.92rem; color: rgba(255,255,255,0.62); transition: color 0.25s, padding 0.25s; }
.footer-col a:hover { color: #fff; padding-left: 6px; }
/* botão "Associe-se" do rodapé — contraste alto sobre o navy escuro */
.footer-join { width: 100%; margin-top: 18px; background: linear-gradient(135deg, var(--navy-400), var(--navy-500)); color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,0.35); }
.footer-join:hover { transform: translateY(-3px); filter: brightness(1.08); box-shadow: 0 14px 34px rgba(0,0,0,0.48); }
.footer-join svg { width: 1.1em; height: 1.1em; transition: transform 0.4s var(--ease); }
.footer-join:hover svg { transform: translateX(4px); }
.footer-bottom { margin-top: clamp(44px, 6vw, 72px); padding-block: 26px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; text-align: center; font-size: 0.84rem; color: rgba(255,255,255,0.5); }
.footer-bottom a { color: rgba(255,255,255,0.7); }

.to-top { position: fixed; bottom: 24px; right: 24px; z-index: 90; width: 50px; height: 50px; border-radius: 50%; background: var(--navy-700); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(20px) scale(0.8); pointer-events: none; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); background: var(--navy-600); }
.to-top svg { width: 22px; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="left"].in { transform: none; }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="right"].in { transform: none; }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="scale"].in { transform: none; }
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.40s; }
[data-delay="6"] { transition-delay: 0.48s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 600px) {
  .obj-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .event-cta { display: inline-flex; }
  .event-row { grid-template-columns: auto 1fr auto; }
}
@media (min-width: 880px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
  .about-top { grid-template-columns: 1.3fr 0.7fr; gap: 56px; }
  .obj-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .news-grid { grid-template-columns: repeat(3, 1fr); }
  .regionais-inner { grid-template-columns: 1fr 1fr; align-items: start; }
  .reg-list { grid-template-columns: repeat(3,1fr); }
  .unifei-inner { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .tl-line, .tl-dot { } /* keep vertical, looks clean */
}
@media (min-width: 1100px) {
  .obj-grid { grid-template-columns: repeat(4, 1fr); }
}
/* MENU DESKTOP: só a partir de 1100px — com 7 itens, abaixo disso usa o hambúrguer (que cabe tudo) */
@media (min-width: 1100px) {
  .nav { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav-spacer { display: none; }
  .brand { justify-self: start; }
  .nav-menu { display: flex; align-items: center; gap: 2px; justify-self: center; }
  .nav-actions { justify-self: end; margin-left: 0; }
  .burger { display: none; }
  .nav-cta { display: inline-flex; }
}
/* faixa mais estreita do desktop (1100–1339px): menu compacto p/ caber os 7 itens */
@media (min-width: 1100px) and (max-width: 1339px) {
  .nav { gap: 8px; }
  .nav-menu { gap: 0; }
  .nav-link { padding: 8px 8px; font-size: 0.85rem; }
  .nav-actions { gap: 8px; }
}

/* ============================================================
   TABELAS — scroll horizontal no mobile (wrapper via JS)
   ============================================================ */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.4em 0; border-radius: var(--r-md); }
.table-scroll .data-table { margin: 0; min-width: 520px; }
.table-scroll::-webkit-scrollbar { height: 8px; }
.table-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

/* ============================================================
   DECORATIVE GEARS (injetadas via JS)
   ============================================================ */
.has-deco { overflow: hidden; }
.wrap { position: relative; z-index: 1; }
.deco-gear {
  position: absolute; z-index: 0; pointer-events: none;
  color: var(--navy-600); opacity: 0.05; line-height: 0;
  animation: spin 90s linear infinite; will-change: transform;
}
.deco-gear.rev { animation-direction: reverse; }
.deco-gear svg { width: 100%; height: auto; display: block; }
/* posições */
.dg-tr { top: -70px; right: -70px; width: 280px; }
.dg-bl { bottom: -90px; left: -80px; width: 320px; }
.dg-br { bottom: -80px; right: -70px; width: 260px; }
.dg-tl { top: -60px; left: -70px; width: 240px; }
/* em fundos escuros */
.stats .deco-gear, .footer .deco-gear { color: #ffffff; opacity: 0.045; }
.footer .footer-grid, .footer .footer-bottom { position: relative; z-index: 1; }
.stats .stat-grid, .stats .section-head { position: relative; z-index: 1; }
@media (min-width: 760px) {
  .dg-tr { width: 360px; }
  .dg-bl { width: 420px; }
  .dg-br { width: 340px; }
  .dg-tl { width: 320px; }
}
