/* ============================================================
   ITAME — Design System
   Cor principal: Azul Petróleo #073249 (RGB 7 50 73)
   Tipografia: Plus Jakarta Sans (substituto Blauer Nue)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800&display=swap');

/* ---- Tokens ---- */
:root {
  /* Azul Petróleo */
  --primary-950: #041e2c;
  --primary-900: #073249;
  --primary-800: #0a4768;
  --primary-700: #0d5c86;
  --primary-600: #1070a3;
  --primary-500: #1488c0;
  --primary-400: #3aa4d4;
  --primary-300: #70c0e4;
  --primary-200: #a8d9f0;
  --primary-100: #d4edf8;
  --primary-50:  #eef7fb;

  /* Grays */
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;

  /* Semânticos */
  --success:        #059669;
  --success-light:  #d1fae5;
  --success-border: #a7f3d0;
  --warning:        #d97706;
  --warning-light:  #fef3c7;
  --info:           #0369a1;
  --info-light:     #e0f2fe;
  --danger:         #dc2626;
  --danger-light:   #fee2e2;

  --white: #ffffff;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --nav-h:       88px;
  --container:   1200px;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  --shadow-sm:   0 1px 3px rgb(0 0 0 / .08);
  --shadow-md:   0 4px 12px rgb(0 0 0 / .08);
  --shadow-lg:   0 10px 24px rgb(0 0 0 / .10);
  --shadow-xl:   0 20px 40px rgb(0 0 0 / .12);
  --shadow-card: 0 1px 4px rgb(0 0 0 / .06), 0 4px 12px rgb(0 0 0 / .06);

  --ease:   cubic-bezier(.4, 0, .2, 1);
  --t-fast: 150ms var(--ease);
  --t-base: 250ms var(--ease);
  --t-slow: 400ms var(--ease);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background: var(--primary-950);
  scrollbar-width: thin;
  scrollbar-color: var(--primary-600) var(--primary-950);
}
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--primary-950); }
::-webkit-scrollbar-thumb { background: var(--primary-600); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-500); }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; color: var(--gray-900); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.625rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); }
h4 { font-size: 1.125rem; }
p  { color: var(--gray-600); line-height: 1.75; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary-600);
  margin-bottom: .875rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 18px; height: 2px;
  background: var(--primary-500);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-title { color: var(--gray-900); margin-bottom: 1rem; }
/* Quebra manual em títulos longos: some no mobile, onde o texto já quebra sozinho */
.title-br { display: inline; }
@media (max-width: 768px) {
  .title-br { display: none; }
}
.section-subtitle { font-size: 1.0625rem; color: var(--gray-500); max-width: 560px; }
.section-header { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin-inline: auto; }
.section-header.centered .section-label { justify-content: center; }
.section-header.centered .section-label::before { display: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: .9375rem;
  font-weight: 700;
  transition: all var(--t-base);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
}
.btn-primary {
  background: var(--primary-900);
  color: var(--white);
  border-color: var(--primary-900);
}
.btn-primary:hover {
  background: var(--primary-800);
  border-color: var(--primary-800);
  box-shadow: 0 4px 16px rgb(7 50 73 / .35);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--white);
  color: var(--primary-900);
  border-color: var(--primary-200);
}
.btn-secondary:hover {
  background: var(--primary-50);
  border-color: var(--primary-400);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--primary-900);
  border-color: var(--primary-300);
}
.btn-outline:hover {
  background: var(--primary-50);
  border-color: var(--primary-500);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.7);
}
.btn-white {
  background: var(--white);
  color: var(--primary-900);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--primary-50);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.btn-success {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}
.btn-success:hover {
  background: #047857;
  border-color: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgb(5 150 105 / .4);
}
.btn-sm  { padding: .5rem 1rem; font-size: .875rem; }
.btn-lg  { padding: 1rem 2rem; font-size: 1rem; }
.btn-xs  { padding: .375rem .75rem; font-size: .8125rem; }

/* ---- Badge / Status ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .3rem .75rem;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.badge-andamento  { background: var(--info-light);     color: var(--info); }
.badge-inscricoes { background: var(--success-light);  color: var(--success); border: 1px solid var(--success-border); }
.badge-futuros    { background: var(--warning-light);  color: var(--warning); }
.badge-futuro     { background: var(--warning-light);  color: var(--warning); }
.badge-finalizados { background: var(--gray-100);      color: var(--gray-500); }
.badge-encerrado  { background: var(--gray-100);       color: var(--gray-500); }
.badge-suspenso   { background: #fef3c7;               color: #92400e; }
.badge-arquivado  { background: var(--gray-50);        color: var(--gray-400); }
.badge-default    { background: var(--primary-50);     color: var(--primary-700); }
.badge-sm         { padding: .2rem .55rem; font-size: .6875rem; }

/* ---- Skeleton loader ---- */
.sk-card {
  pointer-events: none;
  animation: sk-pulse 1.4s ease-in-out infinite;
}
.sk-line {
  height: 14px;
  border-radius: 6px;
  background: var(--gray-100);
  margin-bottom: .5rem;
  /* shimmer: faixa clara percorrendo o placeholder */
  background-image: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.65) 50%,
    rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  background-repeat: no-repeat;
  animation: sk-shimmer 1.4s ease-in-out infinite;
}
.sk-wide  { width: 75%; }
.sk-med   { width: 55%; }
.sk-short { width: 40%; }

@keyframes sk-shimmer {
  0%   { background-position: -120% 0; }
  100% { background-position:  220% 0; }
}

/* O selo só aparece quando os dados chegam — nunca "Ao vivo" sobre skeleton */
.hero-card-badge[hidden] { display: none; }

.hero-card-msg {
  padding: 1.25rem .25rem;
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  text-align: center;
}

/* Dentro do card do hero (fundo escuro) o shimmer precisa de outra base */
.hero-card .sk-line {
  background-color: rgba(255,255,255,.10);
  background-image: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.22) 50%,
    rgba(255,255,255,0) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .sk-line { animation: none; }
}
@keyframes sk-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

/* ---- Card extensions (API) ---- */
.competition-card-period {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  color: var(--gray-500);
  padding: .5rem .875rem;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  margin-top: .375rem;
}
.competition-card-main { flex: 1; min-width: 0; }
.competition-card-tipo {
  font-size: .75rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ---- Competitions error state ---- */
.competitions-error { color: var(--danger); }
.competitions-error svg { color: var(--danger); opacity: .6; }

/* ---- Open-enrollment card highlight ---- */
.competition-card-open {
  border-left: 3px solid var(--success);
}
.competition-card-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .375rem;
  flex-shrink: 0;
}

/* ---- Urgency badge ---- */
.urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .6rem;
  border-radius: 99px;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.urgency-critical {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  animation: urgency-pulse 2s ease-in-out infinite;
}
.urgency-warning {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.urgency-info {
  background: var(--info-light);
  color: var(--info);
}
@keyframes urgency-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .7; }
}

/* ---- Open CTA link (inscreva-se style) ---- */
.competition-card-link-open {
  background: var(--success);
  color: var(--white) !important;
  padding: .4rem .9rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: background var(--t-fast);
}
.competition-card-link-open:hover { background: #16a34a; }

/* ---- Filter bar (concursos page) ---- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.filter-select {
  height: 42px;
  padding: 0 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: .9rem;
  color: var(--gray-700);
  background: var(--white);
  cursor: pointer;
  outline: none;
  transition: border-color var(--t-fast);
  font-family: var(--font);
}
.filter-select:focus { border-color: var(--primary-400); }
.sort-label {
  font-size: .875rem;
  color: var(--gray-500);
  white-space: nowrap;
}
.contest-count {
  font-size: .875rem;
  color: var(--gray-500);
  margin-left: auto;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .filter-bar { gap: .5rem; }
  .filter-select { height: 40px; font-size: .875rem; width: 100%; }
  .contest-count { margin-left: 0; }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--t-base), box-shadow var(--t-base), backdrop-filter var(--t-base);
}
.navbar.transparent {
  background: transparent;
}
.navbar.scrolled {
  background: var(--primary-950);
  box-shadow: 0 1px 0 rgba(255,255,255,.05), 0 4px 24px rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img {
  height: 112px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: .125rem;
}
.nav-link {
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  transition: all var(--t-fast);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,.08);
}
.nav-cta {
  margin-left: .5rem;
  padding: .5rem 1.125rem;
  background: var(--white);
  color: var(--primary-900) !important;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: .875rem;
  transition: all var(--t-base);
}
.nav-cta:hover {
  background: var(--primary-50);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,255,255,.2);
}
.nav-mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
}
.nav-mobile-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--t-base);
}
.nav-mobile-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-mobile-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* display não é animável — o painel fica sempre no DOM e é revelado por
   opacidade + deslocamento. visibility entra na transição para o menu ficar
   inerte quando fechado (sem foco por teclado, sem clique). */
.mobile-menu {
  display: block;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--primary-950);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: .75rem 0 1.5rem;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity .22s ease,
              transform .3s cubic-bezier(.22, 1, .36, 1),
              visibility 0s linear .3s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity .22s ease,
              transform .3s cubic-bezier(.22, 1, .36, 1),
              visibility 0s;
}

/* Itens entram em cascata, um logo após o outro */
.mobile-menu .nav-link,
.mobile-menu .nav-cta {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease;
}
.mobile-menu.open .nav-link,
.mobile-menu.open .nav-cta {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.open > *:nth-child(1) { transition-delay: .05s; }
.mobile-menu.open > *:nth-child(2) { transition-delay: .09s; }
.mobile-menu.open > *:nth-child(3) { transition-delay: .13s; }
.mobile-menu.open > *:nth-child(4) { transition-delay: .17s; }
.mobile-menu.open > *:nth-child(5) { transition-delay: .21s; }
.mobile-menu.open > *:nth-child(6) { transition-delay: .25s; }
.mobile-menu.open > *:nth-child(7) { transition-delay: .29s; }

/* Ao fechar, tudo sai junto — cascata só faz sentido na entrada */
.mobile-menu:not(.open) > * { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .mobile-menu .nav-link,
  .mobile-menu .nav-cta { transition: none; }
  .mobile-menu.open > * { transition-delay: 0s; }
}

/* Garante que o painel nunca apareça no desktop */
@media (min-width: 1025px) {
  .mobile-menu { display: none; }
}

.mobile-menu .nav-link {
  display: block;
  padding: .75rem 1.5rem;
  border-radius: 0;
  font-size: .9375rem;
  border-left: 2px solid transparent;
}
.mobile-menu .nav-link:hover { border-left-color: var(--primary-400); }
.mobile-menu .nav-cta {
  display: block;
  margin: 1rem 1.5rem 0;
  text-align: center;
  background: var(--white);
  color: var(--primary-900) !important;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-md);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--primary-900);
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 100% 50%, rgba(16,112,163,.3) 0%, transparent 65%),
    radial-gradient(ellipse 50% 80% at 0% 100%, rgba(4,30,44,.9) 0%, transparent 60%),
    linear-gradient(155deg, #041e2c 0%, #073249 50%, #0a4768 100%);
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(58,164,212,.15);
  border: 1px solid rgba(58,164,212,.25);
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary-300);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary-400);
  animation: pulse 2s ease infinite;
}
.hero h1 {
  color: var(--white);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}
.hero h1 em {
  font-style: normal;
  color: var(--white);
}
.hero-desc {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}
.hero-divider {
  display: none;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}
.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: .3rem;
}
.hero-stat-label {
  font-size: .8125rem;
  color: rgba(255,255,255,.45);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Hero visual card (desktop) */
.hero-visual {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-h) 3rem 2rem 2rem;
  z-index: 2;
}
.hero-card {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  width: 100%;
  max-width: 340px;
}
#heroCardBody {
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
  padding-right: .25rem;
}
#heroCardBody::-webkit-scrollbar { width: 4px; }
#heroCardBody::-webkit-scrollbar-track { background: transparent; }
#heroCardBody::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 4px; }
.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.hero-card-title {
  font-size: .6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.45);
}
.hero-card-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .625rem;
  border-radius: var(--radius-full);
  background: var(--success-light);
  color: var(--success);
  font-size: .6875rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}
.hero-card-badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.5s ease infinite;
}
.hero-card-item {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .875rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hero-card-item:last-child { border-bottom: none; padding-bottom: 0; }
.hero-card-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: rgba(16,112,163,.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--primary-300);
}
.hero-card-icon svg { width: 18px; height: 18px; }
.hero-card-mun {
  font-weight: 700;
  color: var(--white);
  font-size: .9375rem;
  line-height: 1.25;
}
.hero-card-sub {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  margin-top: 1px;
}
.hero-card-status-open { color: var(--success); font-size: .6875rem; font-weight: 700; }
.hero-card-status-ongoing { color: var(--primary-300); font-size: .6875rem; font-weight: 700; }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--primary-800);
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-item { padding: .5rem 0; }
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: .375rem;
}
.stat-label {
  font-size: .8125rem;
  color: rgba(255,255,255,.45);
  font-weight: 600;
}

/* ============================================================
   OPEN COMPETITIONS (inscrições abertas) — destaque máximo
   ============================================================ */
.open-competitions {
  padding: 5rem 0;
  background: var(--white);
  border-top: 4px solid var(--success);
}
.open-competitions .section-label { color: var(--success); }
.open-competitions .section-label::before { background: var(--success); }
.open-competitions .section-title { color: var(--gray-900); }
.open-competitions .section-header { margin-bottom: 2.5rem; }

/* Ocupa a linha inteira da grid para não ficar preso a uma coluna */
.open-competitions-empty {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  background: var(--gray-50);
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  text-align: center;
}
.open-competitions-empty p { color: var(--gray-400); }

.open-card {
  background: var(--white);
  border: 2px solid var(--success-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all var(--t-base);
  box-shadow: 0 2px 8px rgb(5 150 105 / .08);
}
.open-card:hover {
  border-color: var(--success);
  box-shadow: 0 8px 24px rgb(5 150 105 / .15);
  transform: translateY(-3px);
}
.open-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.open-card-mun {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
}
.open-card-state {
  display: inline-block;
  padding: .2rem .625rem;
  background: var(--primary-50);
  color: var(--primary-700);
  border-radius: var(--radius-sm);
  font-size: .75rem;
  font-weight: 800;
  flex-shrink: 0;
}
.open-card-type { font-size: .875rem; color: var(--gray-500); margin-top: .25rem; }
.open-card-num  { font-size: .8125rem; color: var(--gray-400); }
.open-card-dates {
  background: var(--success-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.open-card-date-row {
  display: flex;
  justify-content: space-between;
  font-size: .875rem;
}
.open-card-date-label { color: var(--gray-600); font-weight: 600; }
.open-card-date-val   { color: var(--success); font-weight: 700; }
.open-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}
.open-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* ============================================================
   NEWS STRIP
   ============================================================ */
.news-strip {
  padding: 5rem 0;
  background: var(--gray-50);
}
.news-strip .section-header {
  display: flex;
  align-items: center; /* botão centralizado na altura do bloco título + descrição */
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
/* A descrição não deve empurrar o botão: sem margem inferior residual */
.news-strip .section-header .section-subtitle { margin-bottom: 0; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--t-base);
  overflow: hidden;
}
.news-card-img {
  height: 160px;
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
  margin: -1.75rem -1.75rem 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.news-card-img-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
}
.news-card-img-inner svg { width: 40px; height: 40px; opacity: .6; }
.news-card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.news-tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .625rem;
  border-radius: var(--radius-full);
  font-size: .6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.tag-comunicado  { background: var(--primary-50);   color: var(--primary-700); }
.tag-gabarito    { background: var(--success-light); color: var(--success); }
.tag-retificacao { background: var(--warning-light); color: var(--warning); }
.tag-convocacao  { background: #fdf2f8;              color: #9d174d; }
.tag-resultado   { background: var(--primary-50);    color: var(--primary-600); }
.tag-aviso       { background: var(--danger-light);  color: var(--danger); }
.news-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
}
.news-card-concurso {
  font-size: .8125rem;
  color: var(--gray-500);
  font-weight: 500;
}
.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .875rem;
  border-top: 1px solid var(--gray-100);
  margin-top: auto;
}
.news-card-date { font-size: .8125rem; color: var(--gray-400); }
.news-card-link {
  font-size: .875rem;
  font-weight: 700;
  color: var(--primary-600);
  display: flex;
  align-items: center;
  gap: .375rem;
  transition: gap var(--t-fast);
}
.news-card-link:hover { gap: .625rem; }

/* ============================================================
   ONGOING STRIP
   ============================================================ */
.ongoing-strip {
  padding: 5rem 0;
  background: var(--white);
}
.ongoing-strip .section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.ongoing-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.ongoing-item {
  display: flex;
  flex-direction: column;
  gap: .875rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--t-base);
  text-decoration: none;
  color: inherit;
}
.ongoing-item:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.ongoing-mun {
  font-weight: 800;
  color: var(--gray-900);
  font-size: 1rem;
  line-height: 1.3;
}
.ongoing-sub {
  font-size: .8125rem;
  color: var(--gray-500);
  font-weight: 500;
  line-height: 1.4;
}
.ongoing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .875rem;
  border-top: 1px solid var(--gray-100);
  margin-top: auto;
}
.ongoing-link {
  font-size: .875rem;
  font-weight: 700;
  color: var(--primary-600);
  display: flex;
  align-items: center;
  gap: .375rem;
  transition: gap var(--t-fast);
}
.ongoing-item:hover .ongoing-link { gap: .625rem; }

/* ============================================================
   FUTUROS / ENCERRADOS STRIPS (home)
   ============================================================ */
.futuros-strip {
  padding: 5rem 0;
  background: var(--primary-50);
}
.futuros-strip .section-header,
.encerrados-strip .section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.futuros-strip .section-label { color: var(--primary-700); }
.futuros-strip .section-label::before { background: var(--primary-700); }
.encerrados-strip {
  padding: 5rem 0;
  background: var(--gray-50);
}
.encerrados-strip .section-label { color: var(--gray-500); }
.encerrados-strip .section-label::before { background: var(--gray-400); }

/* ============================================================
   CANDIDATE AREA (dark section)
   ============================================================ */
.candidate-area {
  padding: 5rem 0;
  background: var(--primary-900);
  position: relative;
  overflow: hidden;
}
.candidate-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 40px 40px;
}
.candidate-area .section-label  { color: var(--primary-300); }
.candidate-area .section-label::before { background: var(--primary-400); }
.candidate-area .section-title  { color: var(--white); }
.candidate-area .section-subtitle { color: rgba(255,255,255,.5); }
.candidate-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
}
.candidate-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: all var(--t-base);
  cursor: pointer;
  text-decoration: none;
}
.candidate-card:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(58,164,212,.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.candidate-card-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(16,112,163,.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-300);
}
.candidate-card-icon svg { width: 28px; height: 28px; }
.candidate-card-label {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
}
.candidate-card-desc {
  font-size: .8125rem;
  color: rgba(255,255,255,.4);
  line-height: 1.5;
}

/* ============================================================
   ABOUT SUMMARY
   ============================================================ */
.about-summary {
  padding: 5rem 0;
  background: var(--white);
}
.about-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  /* start (e não center) é pré-requisito do sticky: um item esticado/centrado
     não tem folga para grudar */
  align-items: start;
}
/* A imagem acompanha a rolagem do texto e solta ao fim da seção */
.about-summary-visual {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.about-summary-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 100%);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
}
.about-summary-img img {
  width: 80%;
  max-width: 280px;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.about-stats-float {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--primary-900);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-xl);
  text-align: center;
  border: 2px solid rgba(255,255,255,.08);
}
.about-stats-float-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.about-stats-float-text {
  font-size: .6875rem;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .25rem;
}
.about-features {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
}
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
}
.about-feature-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--primary-600);
  margin-top: 2px;
}
.about-feature-icon svg { width: 20px; height: 20px; }
.about-feature-text h4 { font-size: 1rem; margin-bottom: .1rem; }
.about-feature-text p  { font-size: .875rem; color: var(--gray-500); margin: 0; line-height: 1.55; }

/* ============================================================
   DIFFERENTIALS
   ============================================================ */
.differentials {
  padding: 5rem 0;
  background: var(--gray-50);
}
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.diff-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  transition: all var(--t-base);
}
.diff-card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.diff-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  background: var(--primary-50);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary-700);
}
.diff-icon svg { width: 26px; height: 26px; }
.diff-card h4 { margin-bottom: .5rem; font-size: 1.0625rem; }
.diff-card p  { font-size: .9rem; color: var(--gray-500); margin: 0; line-height: 1.6; }

/* ============================================================
   HIRING CTA (discreto — para contratantes)
   ============================================================ */
.hiring-cta {
  padding: 4rem 0;
  background: var(--primary-900);
}
.hiring-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.hiring-cta-text .section-label { color: var(--primary-300); }
.hiring-cta-text .section-label::before { background: var(--primary-400); }
.hiring-cta-text h2 { color: var(--white); font-size: clamp(1.375rem, 2.5vw, 1.875rem); margin: 0; }
.hiring-cta-text p  { color: rgba(255,255,255,.5); margin: .5rem 0 0; font-size: .9375rem; }

/* ============================================================
   COMPETITIONS (full listing page)
   ============================================================ */
.competitions { padding: 5rem 0; background: var(--white); }
.tabs {
  display: flex;
  gap: .25rem;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--gray-200);
  overflow-x: auto;
  padding-bottom: 0;
}
.tab-btn {
  padding: .75rem 1.25rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
  border: none;
  background: none;
  position: relative;
  bottom: -2px;
  border-bottom: 2px solid transparent;
}
.tab-btn:hover { color: var(--primary-700); }
.tab-btn.active {
  color: var(--primary-900);
  border-bottom-color: var(--primary-900);
}
.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: .6875rem;
  font-weight: 800;
  margin-left: .375rem;
  padding: 0 .375rem;
}
.tab-btn.active .tab-count {
  background: var(--primary-100);
  color: var(--primary-800);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.competitions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.competition-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
}
.competition-card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.competition-card-foto {
  margin: -1.5rem -1.5rem 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  height: 140px;
  flex-shrink: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
}
.competition-card-foto img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.competition-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
}
.competition-card-mun {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
}
.competition-card-estado {
  display: inline-block;
  padding: .125rem .5rem;
  background: var(--primary-50);
  color: var(--primary-700);
  border-radius: var(--radius-sm);
  font-size: .75rem;
  font-weight: 800;
  flex-shrink: 0;
}
.competition-card-type { font-size: .8125rem; color: var(--gray-500); font-weight: 500; }
.competition-card-num  { font-size: .8125rem; color: var(--gray-400); }
.competition-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .875rem;
  border-top: 1px solid var(--gray-100);
}
.competition-card-link {
  font-size: .875rem;
  font-weight: 700;
  color: var(--primary-600);
  display: flex;
  align-items: center;
  gap: .375rem;
  transition: gap var(--t-fast);
}
.competition-card-link:hover { gap: .625rem; }
.competitions-footer { text-align: center; margin-top: 3rem; }
.competitions-empty {
  text-align: center;
  padding: 3rem;
  color: var(--gray-400);
}
.competitions-empty svg { margin-inline: auto; margin-bottom: 1rem; opacity: .4; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--primary-900);
  padding: calc(var(--nav-h) + 3rem) 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 40px 40px;
}
.page-hero-content { position: relative; }
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
  color: rgba(255,255,255,.35);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.4); transition: color var(--t-fast); }
.breadcrumb a:hover { color: rgba(255,255,255,.7); }
.breadcrumb span { color: rgba(255,255,255,.2); }
.page-hero h1 { color: var(--white); margin-bottom: .75rem; font-weight: 800; }
.page-hero .subtitle { font-size: 1.0625rem; color: rgba(255,255,255,.5); max-width: 600px; }

/* ============================================================
   INSTITUCIONAL PAGE
   ============================================================ */
.inst-section { padding: 5rem 0; }
.inst-section:nth-child(even) { background: var(--gray-50); }
.inst-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.inst-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
}
.inst-metric {
  background: var(--primary-900);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  text-align: center;
}
.inst-metric-num {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: .375rem;
}
.inst-metric-label {
  font-size: .8125rem;
  color: rgba(255,255,255,.5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.inst-timeline { display: flex; flex-direction: column; gap: 0; margin-top: 2.5rem; }
.inst-timeline-item {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  position: relative;
}
.inst-timeline-item:last-child { padding-bottom: 0; }
.inst-timeline-year {
  width: 80px;
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-600);
  padding-top: .125rem;
  text-align: right;
}
.inst-timeline-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
}
.inst-timeline-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary-600);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary-200);
  flex-shrink: 0;
  z-index: 1;
}
.inst-timeline-vline {
  flex: 1;
  width: 2px;
  background: var(--primary-100);
  margin-top: 4px;
}
.inst-timeline-item:last-child .inst-timeline-vline { display: none; }
.inst-timeline-body h4 { font-size: 1rem; margin-bottom: .25rem; }
.inst-timeline-body p  { font-size: .875rem; color: var(--gray-500); margin: 0; }

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.services-page { padding: 5rem 0; }
.services-page:nth-child(even) { background: var(--gray-50); }
.services-intro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}
.service-phase {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border-top: 4px solid var(--primary-600);
  transition: all var(--t-base);
}
.service-phase:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.service-phase-num {
  font-size: .75rem;
  font-weight: 800;
  color: var(--primary-500);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .5rem;
}
.service-phase h3 { font-size: 1.125rem; margin-bottom: 1rem; }
.service-phase ul { display: flex; flex-direction: column; gap: .5rem; }
.service-phase li {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.5;
}
.service-phase li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary-400);
  flex-shrink: 0;
  margin-top: .5em;
}
.etapas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.etapa-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .875rem;
  transition: all var(--t-base);
}
.etapa-card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-sm);
}
.etapa-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-lg);
  background: var(--primary-50);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-700);
}
.etapa-icon svg { width: 24px; height: 24px; }
.etapa-label { font-size: .9rem; font-weight: 700; color: var(--gray-800); }

/* ============================================================
   NEWS PAGE
   ============================================================ */
.news-page { padding: 5rem 0; background: var(--white); }
.news-filters {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: .5rem 1rem;
  border-radius: var(--radius-full);
  font-size: .875rem;
  font-weight: 700;
  color: var(--gray-600);
  background: var(--gray-100);
  border: 2px solid transparent;
  transition: all var(--t-fast);
  cursor: pointer;
}
.filter-btn:hover { background: var(--gray-200); color: var(--gray-800); }
.filter-btn.active {
  background: var(--primary-900);
  color: var(--white);
  border-color: var(--primary-900);
}
.news-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* ============================================================
   CANDIDATE PAGE
   ============================================================ */
.candidate-page { padding: 5rem 0; background: var(--white); }
.candidate-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.candidate-access-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  transition: all var(--t-base);
  cursor: pointer;
  text-decoration: none;
}
.candidate-access-card:hover {
  border-color: var(--primary-400);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.candidate-access-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-xl);
  background: var(--primary-50);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-700);
  transition: all var(--t-base);
}
.candidate-access-card:hover .candidate-access-icon {
  background: var(--primary-900);
  color: var(--white);
}
.candidate-access-icon svg { width: 30px; height: 30px; }
.candidate-access-label {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.3;
}
.candidate-access-desc { font-size: .875rem; color: var(--gray-500); line-height: 1.5; }
.faq-section { padding: 5rem 0; background: var(--gray-50); }
.faq-categories {
  display: flex;
  gap: .625rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.faq-list { display: flex; flex-direction: column; gap: .75rem; max-width: 800px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--gray-900);
  font-size: .9375rem;
  gap: 1rem;
  transition: background var(--t-fast);
  width: 100%;
  text-align: left;
  background: none;
  border: none;
}
.faq-question:hover { background: var(--gray-50); border-radius: var(--radius-lg); }
.faq-question svg { flex-shrink: 0; transition: transform var(--t-base); color: var(--gray-400); }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-item.open .faq-question { background: var(--gray-50); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  color: var(--gray-600);
  font-size: .9375rem;
  line-height: 1.7;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.open .faq-answer {
  max-height: 2000px;
  padding: 0 1.5rem 1.5rem;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page { padding: 5rem 0; background: var(--white); }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.contact-channel {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}
.contact-channel-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-900);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}
.contact-channel-icon svg { width: 20px; height: 20px; }
.contact-channel-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .25rem;
}
.contact-channel-value {
  font-size: .9375rem;
  color: var(--gray-800);
  font-weight: 600;
  line-height: 1.5;
}
.contact-channel-value a { color: var(--primary-600); transition: color var(--t-fast); }
.contact-channel-value a:hover { color: var(--primary-800); text-decoration: underline; }
.contact-form-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: .375rem;
}
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--gray-800);
  font-size: .9375rem;
  transition: all var(--t-fast);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(16,112,163,.12);
}
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
.form-submit { width: 100%; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--primary-950);
  padding: 4rem 0 0;
  border-top: 1px solid rgba(255,255,255,.04);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.25fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-logo-img {
  height: 96px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  margin-bottom: 1.25rem;
}
.footer-brand p {
  font-size: .875rem;
  color: rgba(255,255,255,.35);
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: 1.5rem;
}
.footer-social { display: flex; gap: .5rem; }
.social-link {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
  color: rgba(255,255,255,.4);
}
.social-link:hover { background: rgba(255,255,255,.12); color: var(--white); }
.social-link svg { width: 15px; height: 15px; }
.footer-col h5 {
  font-size: .75rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: .625rem; }
.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.4);
  transition: color var(--t-fast);
}
.footer-links a:hover { color: rgba(255,255,255,.8); }
.footer-contact-items { display: flex; flex-direction: column; gap: .875rem; }
.footer-contact-item { display: flex; align-items: flex-start; gap: .75rem; }
.footer-contact-item svg { color: var(--primary-400); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span { font-size: .875rem; color: rgba(255,255,255,.4); line-height: 1.6; }
.footer-contact-item a { color: rgba(255,255,255,.55); transition: color var(--t-fast); }
.footer-contact-item a:hover { color: rgba(255,255,255,.85); }
.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-copy { font-size: .8125rem; color: rgba(255,255,255,.25); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: .8125rem; color: rgba(255,255,255,.25); transition: color var(--t-fast); }
.footer-legal a:hover { color: rgba(255,255,255,.55); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.85); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.animate-in.visible { opacity: 1; transform: translateY(0); }
.animate-in.delay-1 { transition-delay: .1s; }
.animate-in.delay-2 { transition-delay: .2s; }
.animate-in.delay-3 { transition-delay: .3s; }
.animate-in.delay-4 { transition-delay: .4s; }
.animate-in.delay-5 { transition-delay: .5s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .candidate-grid { grid-template-columns: repeat(3, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }
  .hero-visual { display: none; }
  .about-summary-grid { grid-template-columns: 1fr; gap: 3rem; }
  /* Em coluna única a imagem já fica no topo — sticky aqui só atrapalharia */
  .about-summary-visual { max-width: 480px; position: static; }
  .about-stats-float { right: 0; }
  .inst-grid-2 { grid-template-columns: 1fr; gap: 3rem; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .services-intro-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-h: 70px; }
  .nav-logo-img { height: 64px; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 3rem; }
  .hero-desc { font-size: 1rem; }
  .hero-actions .btn { padding: .875rem 1.5rem; }
  .hero-stats { gap: 1.75rem; padding-top: 0; }
  .hero-stat-number { font-size: 1.625rem; }
  .open-competitions,
  .news-strip,
  .ongoing-strip,
  .candidate-area,
  .about-summary,
  .differentials,
  .hiring-cta,
  .competitions,
  .inst-section,
  .services-page,
  .news-page,
  .candidate-page,
  .faq-section,
  .contact-page { padding: 3.5rem 0; }
  .news-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .diff-card { padding: 1.5rem 1.25rem; }
  .candidate-grid { grid-template-columns: repeat(2, 1fr); }
  .candidate-card { padding: 1.5rem 1rem; }
  .ongoing-list { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .competitions-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .625rem; }
  .hiring-cta-inner { flex-direction: column; align-items: flex-start; }
  .inst-metrics { grid-template-columns: 1fr 1fr; }
  .etapas-grid { grid-template-columns: repeat(2, 1fr); }
  .candidate-hero-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form-card { padding: 1.75rem; }
  .form-row { grid-template-columns: 1fr; }
  .open-grid { grid-template-columns: 1fr; }
  .open-competitions-empty { padding: 2.5rem 1.5rem; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 1.25rem; }
  .hero-stat-number { font-size: 1.5rem; }
  .diff-grid { grid-template-columns: 1fr; }
  .candidate-grid { grid-template-columns: repeat(2, 1fr); }
  .inst-metrics { grid-template-columns: 1fr; }
  .etapas-grid { grid-template-columns: 1fr; }
  .candidate-hero-grid { grid-template-columns: 1fr; }
  .tab-btn { font-size: .875rem; padding: .625rem 1rem; }
}

/* ============================================================
   MOBILE BOTTOM NAVIGATION BAR
   ============================================================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: var(--white);
  border-top: 1.5px solid var(--gray-100);
  box-shadow: 0 -4px 20px rgba(7,50,73,.10);
  height: 62px;
}
.mobile-bottom-nav-items {
  display: flex;
  height: 100%;
  align-items: stretch;
}
.mobile-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--gray-400);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 6px 2px 8px;
  transition: color .15s ease, background .15s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.mobile-bottom-nav-item svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}
.mobile-bottom-nav-item span { line-height: 1; }
.mobile-bottom-nav-item.active {
  color: var(--primary-700);
}
.mobile-bottom-nav-item.active::after {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2.5px;
  background: var(--primary-700);
  border-radius: 0 0 3px 3px;
}
.mobile-bottom-nav-item.nav-cta-mobile {
  color: var(--white);
  background: var(--primary-700);
  margin: 9px 3px;
  padding: 6px 4px;
  border-radius: var(--radius-md);
  font-size: .5625rem;
  box-shadow: 0 2px 8px rgba(7,50,73,.3);
}
.mobile-bottom-nav-item.nav-cta-mobile.active {
  background: var(--primary-600);
  color: var(--white);
}
.mobile-bottom-nav-item.nav-cta-mobile.active::after { display: none; }

/* ============================================================
   MOBILE-FIRST IMPROVEMENTS  ≤ 768px
   ============================================================ */
@media (max-width: 768px) {

  /* Show bottom nav, compensate footer */
  .mobile-bottom-nav { display: block; }
  body { padding-bottom: 62px; }

  /* Toast: move above bottom nav */
  .toast { bottom: 80px !important; }

  /* ---- Hero ---- */
  .hero-title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .hero-actions { flex-direction: column; gap: .75rem; }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .625rem;
    text-align: center;
    padding-top: 2rem;
  }
  .hero-stat-divider { display: none; }
  .hero-stat { text-align: center; }

  /* ---- Section header ---- */
  .section-title { font-size: clamp(1.375rem, 5.5vw, 1.875rem); }
  .section-desc  { font-size: .9375rem; }
  .section-header { margin-bottom: 1.75rem; }

  /* ---- Page hero ---- */
  .page-hero { padding: calc(var(--nav-h) + 1.25rem) 0 2rem; }
  .page-hero h1 { font-size: clamp(1.375rem, 6vw, 2rem); }
  .page-hero .subtitle { font-size: .9375rem; }

  /* ---- Open-competitions cards ---- */
  .open-card { padding: 1.25rem; }
  .open-card-header { gap: .5rem; }
  .open-card-mun { font-size: 1.0625rem; font-weight: 800; }
  .open-card-dates { gap: .5rem; }
  .open-card-date-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem .75rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
  }
  .open-card-date-label { font-size: .75rem; }
  .open-card-date-val { font-size: .9375rem; font-weight: 700; }
  .open-card-footer .btn {
    width: 100%;
    justify-content: center;
  }

  /* ---- Competition cards (grid) ---- */
  .competition-card {
    padding: 1.125rem;
  }
  .competition-card-mun {
    font-size: 1.0625rem;
    font-weight: 800;
  }
  .competition-card-link {
    font-size: .875rem;
    min-height: 40px;
    align-items: center;
  }

  /* ---- Ongoing items ---- */
  .ongoing-item { padding: 1.25rem; }
  .ongoing-mun { font-size: .9375rem; }

  /* ---- Candidate quick-access cards ---- */
  .candidate-card {
    padding: 1.25rem 1rem;
    min-height: 120px;
    gap: .875rem;
  }
  .candidate-card-icon {
    width: 52px;
    height: 52px;
  }
  .candidate-card-icon svg { width: 26px; height: 26px; }
  .candidate-card-label {
    font-size: .9375rem;
    font-weight: 800;
  }
  .candidate-card-desc { font-size: .75rem; }

  /* ---- News cards (mobile-optimized) ---- */
  .news-card {
    padding: 1.125rem 1rem;
    border-left: 3px solid var(--primary-300);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    gap: .625rem;
  }
  .news-card-title {
    font-size: .9375rem;
    line-height: 1.4;
  }
  .news-card-concurso { font-size: .8125rem; }
  .news-card-footer {
    padding-top: .625rem;
  }

  /* ---- FAQ items ---- */
  .faq-question {
    padding: 1.125rem 1rem;
    min-height: 56px;
    font-size: 1rem;
  }
  .faq-answer { font-size: .9375rem; }

  /* ---- Diff cards ---- */
  .diff-card { min-height: 150px; }

  /* ---- Hiring CTA ---- */
  .hiring-cta-inner .btn {
    width: 100%;
    justify-content: center;
  }

  /* ---- Tabs — horizontal scroll ---- */
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    gap: .5rem;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab-btn { white-space: nowrap; flex-shrink: 0; }

  /* ---- Contact channels ---- */
  .contact-channel { gap: 1rem; padding: 1rem; }

  /* ---- Service phases ---- */
  .service-phase { padding: 1.5rem 1.25rem; }
  .service-phase-num { font-size: 2.5rem; }
}

/* ============================================================
   SMALL PHONE  ≤ 420px
   ============================================================ */
@media (max-width: 420px) {
  .mobile-bottom-nav-item span { font-size: .5rem; }

  /* Hero stats → 2 col on tiny */
  .hero-stats { grid-template-columns: 1fr 1fr; }

  /* Candidate grid → 2 col always */
  .candidate-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* News cards — keep single col */
  .news-card { padding: 1rem .875rem; }

  /* Open dates — keep single col */
  .open-card-date-row { flex-direction: column; align-items: flex-start; }

  /* Smaller section padding */
  .open-competitions,
  .news-strip,
  .ongoing-strip,
  .candidate-area,
  .about-summary,
  .differentials,
  .hiring-cta { padding: 2.5rem 0; }
}

/* ============================================================
   ACESSIBILIDADE — Skip Link & Focus Visible
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--primary-900);
  color: var(--white);
  padding: .75rem 1.5rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 700;
  font-size: .9375rem;
  transition: top .2s ease;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--primary-400);
  outline-offset: 3px;
  border-radius: 4px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary-400);
  outline-offset: 3px;
}

/* ============================================================
   CAROUSEL HORIZONTAL — Concursos em Andamento (Home)
   ============================================================ */
.ongoing-carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: .75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-300) var(--gray-100);
}
/* A barra nativa dá lugar ao indicador de progresso abaixo do trilho */
.ongoing-carousel { scrollbar-width: none; }
.ongoing-carousel::-webkit-scrollbar { height: 0; width: 0; }

/* ---- Indicador de rolagem horizontal (estilo Impact/Shopify) ---- */
.carousel-progress {
  position: relative;
  height: 3px;
  margin-top: 1.25rem;
  background: var(--gray-100);
  border-radius: 99px;
  overflow: hidden;
}
.carousel-progress[hidden] { display: none; }
.carousel-progress-bar {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 20%;
  background: var(--primary-600);
  border-radius: 99px;
  will-change: transform;
  transition: transform .12s linear;
}
@media (prefers-reduced-motion: reduce) {
  .carousel-progress-bar { transition: none; }
}
.ongoing-carousel .ongoing-item {
  flex: 0 0 300px;
  scroll-snap-align: start;
  min-height: 160px;
}
@media (max-width: 768px) {
  .ongoing-carousel .ongoing-item { flex: 0 0 260px; }
}

/* ============================================================
   NOSSOS CLIENTES — Institucional
   ============================================================ */
.clients-section { padding: 5rem 0; background: var(--gray-50); }
.clients-section:nth-child(even) { background: var(--white); }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.client-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .625rem;
  transition: all var(--t-base);
  min-height: 80px;
  justify-content: center;
}
.client-card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-sm);
}
.client-card img {
  max-height: 44px;
  max-width: 120px;
  object-fit: contain;
}
.client-card-name {
  font-size: .875rem;
  font-weight: 700;
  color: var(--gray-700);
  line-height: 1.3;
}
.client-card-uf {
  font-size: .75rem;
  color: var(--gray-400);
  font-weight: 600;
}
@media (max-width: 768px) {
  .clients-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .75rem; }
  .clients-section { padding: 3rem 0; }
}

/* ============================================================
   CHAT WIDGET
   ============================================================ */
.chat-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .75rem;
}
/* No mobile precisa ficar acima da barra de navegação inferior (62px) */
@media (max-width: 768px) {
  .chat-widget { bottom: 5rem; right: 1rem; }
}
.chat-toggle-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--primary-800);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(7,50,73,.4);
  cursor: pointer;
  border: none;
  transition: all var(--t-base);
  flex-shrink: 0;
}
.chat-toggle-btn:hover { background: var(--primary-600); transform: scale(1.08); }
.chat-toggle-btn svg { width: 22px; height: 22px; }
.chat-panel {
  display: none;
  flex-direction: column;
  width: 300px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: fadeUp .25s ease;
}
.chat-panel.open { display: flex; }
.chat-header {
  background: var(--primary-900);
  color: var(--white);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.chat-header-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary-700);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-header-icon svg { width: 17px; height: 17px; }
.chat-header-info { flex: 1; }
.chat-header-name { font-weight: 700; font-size: .9375rem; }
.chat-header-status { font-size: .75rem; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: .35rem; }
.chat-header-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--success); display: inline-block; }
.chat-close-btn { background: none; border: none; color: rgba(255,255,255,.55); cursor: pointer; padding: .25rem; line-height: 0; }
.chat-close-btn:hover { color: var(--white); }
.chat-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.chat-bubble {
  background: var(--primary-50);
  border-radius: var(--radius-md);
  padding: .875rem 1rem;
  font-size: .875rem;
  color: var(--gray-700);
  line-height: 1.6;
}
.chat-options { display: flex; flex-direction: column; gap: .5rem; margin-top: .25rem; }
.chat-option-btn {
  background: var(--white);
  border: 1.5px solid var(--primary-200);
  border-radius: var(--radius-md);
  padding: .625rem .875rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--primary-800);
  cursor: pointer;
  text-align: left;
  transition: all var(--t-fast);
}
.chat-option-btn:hover { background: var(--primary-50); border-color: var(--primary-400); }
.chat-footer {
  padding: .875rem 1.25rem;
  border-top: 1px solid var(--gray-100);
  display: flex;
  gap: .5rem;
}
.chat-input {
  flex: 1;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: .5rem .875rem;
  font-size: .875rem;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--t-fast);
}
.chat-input:focus { border-color: var(--primary-400); }
.chat-send-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--primary-900);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--t-fast);
}
.chat-send-btn:hover { background: var(--primary-700); }
.chat-send-btn svg { width: 15px; height: 15px; }

/* ============================================================
   CONTATO — Seção de telefones
   ============================================================ */
.contact-phones-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}
@media (max-width: 600px) {
  .contact-phones-grid { grid-template-columns: 1fr; }
}
