﻿/* ==================================================
   RESET GLOBAL
================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
  zoom: 0.9;
}

body {
  background: #05050a;
  color: #ffffff;
  cursor: url("../utils/Pointer.png") 6 6, auto;
}

body.menu-open {
  overflow: hidden;
}

body.theme-light {
  background: #f2f6ff;
  color: #1d2b3f;
}

/* ==================================================
   CURSOR (INTERATIVOS)
================================================== */
:where(
  a,
  button,
  input,
  textarea,
  select,
  summary,
  [role="button"],
  [role="link"],
  [tabindex]:not([tabindex="-1"])
) {
  cursor: url("../utils/Pointer.png") 6 6, pointer !important;
}

/* ==================================================
   CURSOR RING (GLOBAL â€” IGUAL AO INÃCIO)
================================================== */
.mc-ring {
  width: 48px !important;
  height: 48px !important;
  border-radius: 999px !important;

  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.18) 24%, rgba(249, 29, 46, 0.18) 58%, rgba(226, 95, 250, 0.14) 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.34) !important;

  box-shadow:
    inset 0 10px 18px rgba(255, 255, 255, 0.12),
    0 0 16px rgba(249, 29, 46, 0.32),
    0 0 30px rgba(226, 95, 250, 0.22) !important;

  pointer-events: none !important;
  will-change: left, top, transform, opacity;
  transition: opacity 0.2s ease;
}

/* ==================================================
   UTILITÃRIOS
================================================== */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* ==================================================
   HEADER / NAVBAR (GLOBAL)
================================================== */
.header-institutional {
  position: fixed;
  top: 10px;
  left: 0;
  width: 100%;
  z-index: 1200;
  background: transparent;
  pointer-events: none;
}

.nav-wrapper {
  pointer-events: auto;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  max-width: min(1240px, calc(100% - 24px));
  margin: 0 auto;
  padding: 0 14px 0 18px;
  border-radius: 20px;
  border: 1px solid rgba(168, 191, 255, 0.2);
  background:
    radial-gradient(420px 180px at 0% 0%, rgba(249, 29, 46, 0.14), transparent 70%),
    radial-gradient(460px 220px at 100% 100%, rgba(226, 95, 250, 0.14), transparent 74%),
    linear-gradient(180deg, rgba(9, 12, 24, 0.92), rgba(5, 8, 19, 0.94));
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px) saturate(1.18);
}

.nav-wrapper::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(249, 29, 46, 0.8), rgba(226, 95, 250, 0.78), rgba(47, 216, 196, 0.62));
}

/* LOGO */
.logo {
  font-family: "Special Gothic Expanded One", sans-serif;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  line-height: 1;
  font-size: 1.36rem;
  letter-spacing: 0.3px;
  color: #ffffff;
  text-decoration: none;
}

.logo span {
  background: linear-gradient(90deg, #F91D2E, #E25FFA);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==================================================
   NAVEGACAO
================================================== */
.nav-menu {
  display: flex;
  align-items: center;
  min-height: 50px;
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(6, 11, 24, 0.56);
}

.nav-menu > a,
.dropdown-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #d5e1ff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  transition:
    transform 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.nav-menu > a[aria-current="page"] {
  color: #f7fbff;
  border-color: rgba(163, 230, 53, 0.42);
  background: linear-gradient(180deg, rgba(44, 76, 43, 0.34), rgba(20, 35, 24, 0.56));
}

.nav-menu > a:hover,
.dropdown-btn:hover {
  transform: translateY(-1px);
  color: #ffffff;
  border-color: rgba(226, 95, 250, 0.36);
  background: linear-gradient(180deg, rgba(32, 44, 70, 0.62), rgba(12, 19, 36, 0.78));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.btn-nav {
  background: linear-gradient(120deg, #F91D2E, #E25FFA);
  color: #ffffff !important;
  height: 38px;
  padding: 0 18px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow:
    0 10px 24px rgba(226, 95, 250, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn-nav:hover {
  box-shadow:
    0 16px 30px rgba(226, 95, 250, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid rgba(122, 150, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(26, 38, 66, 0.72), rgba(13, 21, 40, 0.8));
  color: #e3ecff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(226, 95, 250, 0.4);
  background: linear-gradient(180deg, rgba(36, 52, 88, 0.78), rgba(16, 24, 45, 0.84));
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.theme-toggle[aria-pressed="true"] {
  border-color: rgba(249, 29, 46, 0.38);
  background: linear-gradient(120deg, rgba(249, 29, 46, 0.45), rgba(226, 95, 250, 0.45));
  color: #ffffff;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding: 3px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(226, 95, 250, 0.18), transparent 70%),
    rgba(7, 12, 26, 0.62);
}

.lang-btn {
  min-width: 42px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #d5e1ff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.lang-btn:hover {
  color: #ffffff;
  border-color: rgba(226, 95, 250, 0.45);
  background: rgba(226, 95, 250, 0.14);
  transform: translateY(-1px);
}

.lang-btn.is-active,
.lang-btn[aria-pressed="true"] {
  color: #ffffff;
  border-color: rgba(249, 29, 46, 0.45);
  background: linear-gradient(120deg, rgba(249, 29, 46, 0.5), rgba(226, 95, 250, 0.5));
}

/* ==================================================
   DROPDOWN
================================================== */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-btn {
  border: 1px solid transparent;
  cursor: pointer;
}

.dropdown-content {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 260px;
  border-radius: 14px;
  border: 1px solid rgba(226, 95, 250, 0.22);
  background:
    radial-gradient(320px 160px at 100% 0%, rgba(226, 95, 250, 0.16), transparent 75%),
    linear-gradient(180deg, rgba(12, 17, 34, 0.96), rgba(7, 10, 24, 0.96));
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 8px;

  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top left;
  transition:
    opacity 0.2s ease,
    transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.dropdown-content a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 0.84rem;
  color: #d3def8;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dropdown-content a:hover {
  background: rgba(226, 95, 250, 0.14);
  color: #ffffff;
  transform: translateX(2px);
}

.dropdown.open .dropdown-content {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

/* ==================================================
   MENU MOBILE
================================================== */
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(226, 95, 250, 0.28);
  background:
    radial-gradient(100% 100% at 30% 0%, rgba(226, 95, 250, 0.2), transparent 74%),
    linear-gradient(180deg, rgba(18, 27, 49, 0.88), rgba(9, 14, 28, 0.94));
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
}

.menu-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(226, 95, 250, 0.56);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.46);
}

.menu-toggle__line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  display: block;
  transition: transform 0.24s ease, opacity 0.2s ease, background 0.2s ease;
}

.menu-toggle.is-active .menu-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active .menu-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-backdrop {
  display: none;
}

/* ==================================================
   RODAPE (GLOBAL)
================================================== */
.site-footer {
  position: relative;
  z-index: 10;
  padding: 14px 0;
  border-top: 1px solid rgba(226, 95, 250, 0.24);
  background:
    radial-gradient(520px 160px at 12% 0%, rgba(249, 29, 46, 0.08), transparent 78%),
    linear-gradient(180deg, rgba(7, 10, 21, 0.92), rgba(4, 7, 16, 0.98));
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer__text {
  margin: 0;
  font-size: 0.78rem;
  color: #c9d4ef;
}

.site-footer__mail {
  color: #9ef0cb;
  text-decoration: none;
  font-weight: 700;
}

.site-footer__mail:hover {
  text-decoration: underline;
}

body.theme-light .nav-wrapper {
  border-color: rgba(103, 126, 186, 0.26);
  background:
    radial-gradient(420px 180px at 0% 0%, rgba(249, 29, 46, 0.12), transparent 72%),
    radial-gradient(460px 220px at 100% 100%, rgba(47, 216, 196, 0.12), transparent 74%),
    linear-gradient(180deg, rgba(246, 250, 255, 0.96), rgba(234, 242, 255, 0.94));
  box-shadow:
    0 18px 36px rgba(25, 40, 71, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body.theme-light .logo {
  color: #1d2a42;
}

body.theme-light .nav-menu {
  border-color: rgba(107, 129, 190, 0.24);
  background: rgba(255, 255, 255, 0.7);
}

body.theme-light .nav-menu > a,
body.theme-light .dropdown-btn {
  color: #27385d;
}

body.theme-light .nav-menu > a[aria-current="page"] {
  color: #12213b;
  border-color: rgba(78, 183, 129, 0.46);
  background: linear-gradient(180deg, rgba(190, 246, 214, 0.7), rgba(170, 230, 201, 0.66));
}

body.theme-light .nav-menu > a:hover,
body.theme-light .dropdown-btn:hover {
  border-color: rgba(119, 142, 205, 0.36);
  background: linear-gradient(180deg, rgba(229, 238, 255, 0.86), rgba(216, 229, 252, 0.94));
  box-shadow: 0 10px 22px rgba(52, 76, 122, 0.16);
  color: #1a2a45;
}

body.theme-light .nav-menu .btn-nav,
body.theme-light .nav-menu .btn-nav:hover {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: linear-gradient(120deg, #f91d2e, #e25ffa);
}

body.theme-light .theme-toggle {
  border-color: rgba(100, 126, 190, 0.36);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(230, 239, 255, 0.92));
  color: #24375d;
}

body.theme-light .theme-toggle:hover {
  border-color: rgba(76, 102, 170, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(222, 235, 255, 0.96));
  color: #172644;
}

body.theme-light .lang-switch {
  border-color: rgba(107, 129, 190, 0.26);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(226, 95, 250, 0.12), transparent 72%),
    rgba(255, 255, 255, 0.72);
}

body.theme-light .lang-btn {
  color: #2a3c61;
}

body.theme-light .lang-btn:hover {
  border-color: rgba(117, 141, 201, 0.44);
  background: rgba(136, 159, 220, 0.16);
  color: #182740;
}

body.theme-light .dropdown-content {
  border-color: rgba(110, 128, 184, 0.24);
  background:
    radial-gradient(320px 160px at 100% 0%, rgba(226, 95, 250, 0.1), transparent 75%),
    linear-gradient(180deg, rgba(252, 254, 255, 0.98), rgba(238, 246, 255, 0.98));
  box-shadow:
    0 22px 50px rgba(33, 48, 80, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.theme-light .dropdown-content a {
  color: #2b3e64;
}

body.theme-light .dropdown-content a:hover {
  background: rgba(145, 166, 220, 0.2);
  color: #14233f;
}

body.theme-light .site-footer {
  border-top-color: rgba(114, 133, 190, 0.28);
  background:
    radial-gradient(520px 160px at 12% 0%, rgba(249, 29, 46, 0.08), transparent 78%),
    linear-gradient(180deg, rgba(244, 249, 255, 0.96), rgba(233, 241, 255, 0.98));
}

body.theme-light .site-footer__text {
  color: #3a4f76;
}

body.theme-light .site-footer__mail {
  color: #0f8578;
}

/* ==================================================
   MOBILE NAV
================================================== */
@media (max-width: 768px) {
  .header-institutional {
    top: 8px;
  }

  .nav-wrapper {
    height: 66px;
    border-radius: 16px;
    max-width: calc(100% - 14px);
    padding: 0 10px 0 12px;
  }

  .logo {
    font-size: 1.18rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-nav-backdrop {
    position: fixed;
    inset: 74px 0 0;
    z-index: 1195;
    display: block;
    border: none;
    background:
      radial-gradient(900px 380px at 100% 0%, rgba(226, 95, 250, 0.16), transparent 72%),
      rgba(2, 3, 10, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
    backdrop-filter: blur(4px);
  }

  .mobile-nav-backdrop.active {
    opacity: 1;
    pointer-events: all;
  }

  .nav-menu {
    position: fixed;
    top: 78px;
    right: 8px;
    z-index: 1196;
    width: min(90vw, 380px);
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    overscroll-behavior: contain;

    background:
      radial-gradient(620px 260px at 100% 0%, rgba(226, 95, 250, 0.16), transparent 75%),
      linear-gradient(180deg, rgba(11, 12, 31, 0.96), rgba(4, 6, 16, 0.96));
    border: 1px solid rgba(226, 95, 250, 0.24);
    border-radius: 16px;
    box-shadow:
      0 24px 48px rgba(0, 0, 0, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;

    opacity: 0;
    transform: translateY(-10px) scale(0.97);
    transform-origin: top right;
    pointer-events: none;
    visibility: hidden;
    transition:
      opacity 0.24s ease,
      transform 0.3s cubic-bezier(0.2, 0.9, 0.2, 1),
      visibility 0.24s ease;
  }

  .nav-menu.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
    visibility: visible;
  }

  .nav-menu > a,
  .dropdown-btn {
    width: 100%;
    justify-content: space-between;
    text-align: left;
    padding: 12px 14px;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #f0f3ff;
  }

  .nav-menu > a[aria-current="page"] {
    border-color: rgba(163, 230, 53, 0.5);
    background: linear-gradient(180deg, rgba(58, 93, 43, 0.32), rgba(22, 34, 20, 0.58));
  }

  .nav-menu > a:hover,
  .dropdown-btn:hover {
    border-color: rgba(226, 95, 250, 0.44);
    background: rgba(226, 95, 250, 0.12);
    transform: none;
    box-shadow: none;
  }

  .nav-menu .btn-nav {
    margin-top: 2px;
    text-align: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background: linear-gradient(90deg, #f91d2e, #e25ffa);
  }

  .nav-menu .theme-toggle {
    width: 100%;
    min-height: 44px;
    margin-top: 2px;
    border-radius: 10px;
    justify-content: center;
    font-size: 0.83rem;
  }

  .nav-menu .lang-switch {
    width: 100%;
    margin-top: 2px;
    padding: 4px;
    border-radius: 12px;
    justify-content: stretch;
  }

  .nav-menu .lang-btn {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    border-radius: 10px;
    font-size: 0.83rem;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-btn {
    display: flex;
    align-items: center;
  }

  .dropdown-content {
    position: static;
    margin-top: 8px;
    background: rgba(5, 7, 18, 0.66);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0 8px;
    width: 100%;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition:
      max-height 0.35s ease,
      opacity 0.18s ease,
      transform 0.22s cubic-bezier(0.2, 0.9, 0.2, 1);
  }

  .dropdown.open .dropdown-content {
    max-height: 520px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    padding: 8px;
  }

  .dropdown-content a {
    padding: 10px 10px;
    text-align: left;
    border-radius: 10px;
  }

  .dropdown-content a:hover {
    background: rgba(226, 95, 250, 0.14);
    transform: none;
  }

  .site-footer {
    padding: 12px 0;
  }

  .site-footer__inner {
    justify-content: center;
    text-align: center;
  }
}

/* ==================================================
   ACESSIBILIDADE (OPCIONAL)
================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .menu-toggle,
  .menu-toggle__line,
  .mobile-nav-backdrop,
  .nav-menu,
  .dropdown-content {
    transition: none !important;
  }
}

