/* ============================================================
   PORTAL DA TRANSPARÊNCIA — CRECI-AL
   Arquivo: assets/css/style.css
   Versão:  2.1.0
   ============================================================ */

/* ─── VARIÁVEIS ─── */
:root {
  --navy:       #060f1e;
  --blue-dark:  #0a1a30;
  --blue-mid:   #0f2548;
  --blue:       #1a3f7a;
  --blue-light: #2055a0;
  --accent:     #4ab8f5;
  --accent2:    #00d0ff;
  --white:      #ffffff;
  --gray:       #7a9bb5;
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: 'Barlow', sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── TOP BAR ─── */
.topbar {
  background: var(--blue-dark);
  border-bottom: 1px solid rgba(74,184,245,0.1);
  padding: 5px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.3px;
}
.topbar-left { display: flex; align-items: center; gap: 6px; }
.topbar-left::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}
.topbar-right { color: rgba(255,255,255,0.35); }
.topbar-right strong { color: var(--accent); font-weight: 600; }

/* ─── HEADER ─── */
header {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 900;
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-box {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 17px;
  color: white;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo-text { line-height: 1; }
.logo-text h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: white;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.logo-text p {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ─── NAVEGAÇÃO DESKTOP ─── */
nav { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  padding: 0 14px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  border-radius: 2px 2px 0 0;
}
.nav-link:hover { color: white; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--accent); }
.nav-link.active::after { transform: scaleX(1); }
.nav-link .arrow {
  width: 12px; height: 12px;
  opacity: 0.5;
  transition: transform 0.2s, opacity 0.2s;
  flex-shrink: 0;
}
.nav-item:hover .arrow { transform: rotate(180deg); opacity: 1; }

/* Dropdown desktop */
.dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  background: #0c1e38;
  border: 1px solid rgba(74,184,245,0.15);
  border-radius: 0 0 10px 10px;
  min-width: 240px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.22s ease;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  pointer-events: none;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}
.dropdown-section {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dropdown-section:last-child { border-bottom: none; }
.dropdown-heading {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 18px 4px;
  opacity: 0.7;
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.15s;
  border-left: 2px solid transparent;
}
.dropdown a:hover {
  color: white;
  background: rgba(74,184,245,0.07);
  border-left-color: var(--accent);
  padding-left: 22px;
}
.dropdown a .ico { font-size: 14px; flex-shrink: 0; }

/* Botão de busca */
.search-btn {
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: transparent;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-left: 8px;
  flex-shrink: 0;
}
.search-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(74,184,245,0.08); }

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px; height: 42px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  padding: 0;
}
.hamburger:hover { border-color: var(--accent); background: rgba(74,184,245,0.08); }
.hb-line {
  width: 20px; height: 2px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger.open .hb-line:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--accent); }
.hamburger.open .hb-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .hb-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--accent); }

/* ─── MOBILE DRAWER ─── */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 800;
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-overlay.active { display: block; opacity: 1; }

.mobile-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 320px;
  max-width: 88vw;
  background: #080f1e;
  border-left: 1px solid rgba(74,184,245,0.15);
  z-index: 850;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16,1,0.3,1);
  display: flex;
  flex-direction: column;
}
.mobile-drawer.active { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: var(--blue-dark);
  flex-shrink: 0;
}
.drawer-header .logo-text h1 { font-size: 17px; }
.drawer-header .logo-box { width: 38px; height: 38px; font-size: 14px; }
.drawer-close {
  width: 34px; height: 34px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.drawer-close:hover { border-color: var(--accent); color: var(--accent); }

.drawer-body { flex: 1; padding: 10px 0 24px; }

/* Acordeão mobile */
.mob-menu-item { border-bottom: 1px solid rgba(255,255,255,0.05); }
.mob-menu-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 22px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.75);
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}
.mob-menu-btn:hover { color: white; background: rgba(74,184,245,0.06); padding-left: 26px; }
.mob-menu-btn.active { color: var(--accent); }
.mob-arrow {
  width: 16px; height: 16px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  opacity: 0.5;
}
.mob-menu-btn.active .mob-arrow { transform: rotate(180deg); opacity: 1; }

.mob-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: rgba(0,0,0,0.25);
}
.mob-submenu.open { max-height: 600px; }

.mob-sub-section { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.mob-sub-section:last-child { border-bottom: none; }
.mob-sub-heading {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 22px 4px 28px;
  opacity: 0.6;
}
.mob-submenu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 22px 9px 28px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.15s;
  border-left: 2px solid transparent;
}
.mob-submenu a:hover {
  color: rgba(255,255,255,0.9);
  background: rgba(74,184,245,0.06);
  border-left-color: var(--accent);
  padding-left: 32px;
}
.mob-submenu a .ico { font-size: 14px; flex-shrink: 0; }

/* Campo de busca no drawer */
.drawer-search {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.drawer-search input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px;
  padding: 10px 14px;
  color: white;
  font-size: 13px;
  outline: none;
  font-family: 'Barlow', sans-serif;
}
.drawer-search input::placeholder { color: rgba(255,255,255,0.3); }
.drawer-search input:focus { border-color: var(--accent); }
.drawer-search button {
  width: 38px; height: 38px;
  background: var(--blue);
  border: none;
  border-radius: 7px;
  color: white;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.drawer-search button:hover { background: var(--blue-light); }

/* ─── HERO ─── */
.hero {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 107px - 200px);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 65% 50%, rgba(18,55,120,0.55) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at 10% 100%, rgba(10,26,52,0.8) 0%, transparent 60%),
    linear-gradient(160deg, #060f1e 0%, #091726 35%, #0d2240 65%, #122f5a 100%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(74,184,245,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,184,245,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: gridDrift 25s linear infinite;
}
@keyframes gridDrift {
  0%   { transform: translateY(0); }
  100% { transform: translateY(64px); }
}
.hero-radar {
  position: absolute;
  right: 3%; top: 50%;
  transform: translateY(-50%);
  width: 560px; height: 560px;
  opacity: 0.07;
}
.hero-radar circle { stroke: var(--accent); fill: none; stroke-width: 0.8; }
.hero-radar line  { stroke: var(--accent); stroke-width: 0.4; }
.hero-stripe {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 90px;
  border-left: 1.5px solid rgba(74,184,245,0.18);
  background: linear-gradient(180deg, transparent, rgba(74,184,245,0.04), transparent);
  transform: skewX(-6deg) translateX(10px);
}
.hero-stripe2 {
  position: absolute;
  top: 0; right: 60px; bottom: 0;
  width: 30px;
  border-left: 1px solid rgba(74,184,245,0.07);
  transform: skewX(-6deg) translateX(10px);
}
.hero-bars {
  position: absolute;
  right: 6%; bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  opacity: 0.1;
}
.hbar {
  width: 22px;
  background: linear-gradient(to top, var(--accent), rgba(74,184,245,0.1));
  border-radius: 3px 3px 0 0;
}
.particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute;
  background: var(--accent);
  border-radius: 50%;
  animation: floatUp linear infinite;
  opacity: 0;
}
@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-120px) translateX(30px); opacity: 0; }
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 0 0 80px;
  max-width: 680px;
  animation: heroReveal 0.9s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74,184,245,0.12);
  border: 1px solid rgba(74,184,245,0.28);
  color: var(--accent);
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: heroReveal 0.9s cubic-bezier(0.16,1,0.3,1) 0.1s both;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 8px var(--accent);
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.3; transform:scale(0.6); }
}
.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  line-height: 0.88;
  animation: heroReveal 0.9s cubic-bezier(0.16,1,0.3,1) 0.18s both;
}
.hero-title .line1 {
  font-weight: 300;
  font-size: 68px;
  color: rgba(255,255,255,0.82);
  letter-spacing: 5px;
  display: block;
}
.hero-title .line2 {
  font-weight: 900;
  font-size: 94px;
  color: #fff;
  letter-spacing: 2px;
  display: block;
  text-shadow: 0 0 80px rgba(74,184,245,0.25);
}
.hero-desc {
  margin-top: 24px;
  padding-left: 18px;
  border-left: 2px solid rgba(74,184,245,0.5);
  animation: heroReveal 0.9s cubic-bezier(0.16,1,0.3,1) 0.26s both;
}
.hero-desc p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  max-width: 440px;
}
.hero-desc .law {
  margin-top: 8px;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1.5px;
  opacity: 0.65;
  text-transform: uppercase;
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: heroReveal 0.9s cubic-bezier(0.16,1,0.3,1) 0.34s both;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  font-family: 'Barlow', sans-serif;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(26,63,122,0.45);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(26,63,122,0.6);
  background: linear-gradient(135deg, var(--blue-light), var(--accent));
}
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1.5px solid rgba(74,184,245,0.35);
}
.btn-ghost:hover {
  color: white;
  border-color: var(--accent);
  background: rgba(74,184,245,0.08);
  transform: translateY(-2px);
}

/* ─── FOOTER ─── */
footer {
  background: var(--blue-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--accent), var(--blue));
}
.footer-main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 48px 48px 36px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
  gap: 44px;
}
.footer-brand .logo { margin-bottom: 18px; }
.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  line-height: 1.75;
  margin-bottom: 22px;
}
.footer-socials { display: flex; gap: 8px; }
.social-btn {
  width: 34px; height: 34px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(74,184,245,0.08); }
.footer-col-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-col-title::before {
  content: '';
  width: 3px; height: 14px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-links a::before {
  content: '›';
  color: var(--blue-light);
  font-size: 16px;
  line-height: 1;
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.8); padding-left: 4px; }
.footer-links a:hover::before { color: var(--accent); }
.footer-contact { list-style: none; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 13px;
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  line-height: 1.5;
}
.footer-contact li span:first-child { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.footer-contact li a { color: var(--accent); text-decoration: none; }
.footer-contact li a:hover { text-decoration: underline; }
.footer-lei {
  background: rgba(74,184,245,0.06);
  border: 1px solid rgba(74,184,245,0.12);
  border-radius: 8px;
  padding: 14px 16px;
}
.footer-lei + div { margin-top: 14px; }
.footer-lei-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 5px;
  opacity: 0.8;
}
.footer-lei-text {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 16px 48px;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: rgba(255,255,255,0.2);
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(74,184,245,0.6); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom-right { display: flex; gap: 18px; }

/* ─── RESPONSIVO ─── */
@media (max-width: 1100px) {
  .footer-main { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  nav { display: none; }
  .search-btn { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 768px) {
  .header-inner { padding: 0 20px; }
  .topbar { padding: 5px 16px; font-size: 10.5px; }
  .topbar-right { display: none; }
  .hero-content { padding: 40px 20px; }
  .hero-title .line1 { font-size: 44px; }
  .hero-title .line2 { font-size: 60px; }
  .footer-main { padding: 36px 20px; grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-bottom { padding: 14px 20px; flex-direction: column; text-align: center; gap: 8px; }
  .footer-bottom-right { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 480px) {
  .hero-title .line1 { font-size: 32px; }
  .hero-title .line2 { font-size: 46px; }
  .hero-content { padding: 28px 16px; }
  .footer-main { grid-template-columns: 1fr; }
}
