/* ==========================================================================
   APEJUST-GO (www.apejustgo.com.br) - Design System & Stylesheet
   Associação dos Peritos na Justiça do Trabalho da 18ª Região - GO
   ========================================================================== */

:root {
  /* Color Palette */
  --navy-950: #050c17;
  --navy-900: #0a1728;
  --navy-850: #0e1e35;
  --navy-800: #142845;
  --navy-700: #1b355c;
  --navy-600: #25497d;

  --gold-300: #f7e7b8;
  --gold-400: #e5c575;
  --gold-500: #c9a44c;
  --gold-600: #a88432;
  --gold-700: #856520;
  
  --emerald-500: #059669;
  --emerald-600: #047857;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Typography */
  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(10, 23, 40, 0.08), 0 2px 4px -2px rgba(10, 23, 40, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(10, 23, 40, 0.09), 0 4px 6px -4px rgba(10, 23, 40, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(10, 23, 40, 0.12), 0 8px 10px -6px rgba(10, 23, 40, 0.08);
  --shadow-gold: 0 10px 25px -3px rgba(201, 164, 76, 0.35);

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  background-color: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1340px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

/* Top bar */
.top-bar {
  background: var(--navy-950);
  color: var(--slate-300);
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
  position: relative;
  z-index: 50;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 164, 76, 0.15);
  color: var(--gold-400);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.3px;
  border: 1px solid rgba(201, 164, 76, 0.3);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--slate-300);
  transition: color var(--transition-fast);
}

.top-link:hover {
  color: var(--gold-400);
}

/* Main Navbar */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 23, 40, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 164, 76, 0.2);
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(7, 15, 27, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(201, 164, 76, 0.3);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  flex-shrink: 0;
}

.brand-logo {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: clamp(14px, 1.8vw, 28px);
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.nav-link {
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-400);
  transition: width var(--transition-smooth);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-400);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.925rem;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  line-height: 1.25;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
  white-space: nowrap;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1.05rem;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 100%);
  color: var(--navy-950);
  border-color: var(--gold-400);
  box-shadow: 0 4px 14px rgba(201, 164, 76, 0.25);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-400) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-400);
  border-color: rgba(201, 164, 76, 0.6);
}

.btn-outline-gold:hover {
  background: rgba(201, 164, 76, 0.12);
  border-color: var(--gold-400);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy-850);
  color: #ffffff;
  border-color: var(--navy-700);
}

.btn-navy:hover {
  background: var(--navy-700);
  color: var(--gold-400);
  transform: translateY(-2px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #f8fafc;
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-color: var(--navy-950);
  color: #ffffff;
  overflow: hidden;
  padding: 80px 0 100px;
}

.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.35) contrast(1.1);
  transform: scale(1.02);
  transition: transform 10s ease;
}

.hero-section:hover .hero-bg-img {
  transform: scale(1.06);
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5, 12, 23, 0.95) 0%,
    rgba(14, 30, 53, 0.82) 45%,
    rgba(5, 12, 23, 0.9) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 820px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 164, 76, 0.16);
  border: 1px solid rgba(201, 164, 76, 0.4);
  color: var(--gold-400);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  background: var(--gold-400);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-400);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero-title span {
  background: linear-gradient(135deg, #ffffff 30%, var(--gold-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 700px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

/* Hero Stats Bar */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 24px 30px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.hero-stat-item {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 15px;
}

.hero-stat-item:last-child {
  border-right: none;
  padding-right: 0;
}

.hero-stat-num {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1.1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ==========================================================================
   Section Headers & Common Components
   ========================================================================== */

.section-padding {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gold-600);
  background: rgba(201, 164, 76, 0.12);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  border: 1px solid rgba(201, 164, 76, 0.25);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-description {
  font-size: 1.05rem;
  color: var(--slate-600);
  line-height: 1.7;
}

/* ==========================================================================
   Pesquisa de Peritos da 18ª Região (Interactive Directory)
   ========================================================================== */

.experts-section {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
  position: relative;
}

.experts-search-card {
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
  margin-bottom: 36px;
}

.search-inputs-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr auto;
  gap: 16px;
  align-items: center;
}

.input-group {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-400);
  pointer-events: none;
}

.form-control {
  width: 100%;
  height: 48px;
  padding: 10px 14px 10px 42px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  color: var(--slate-800);
  background-color: var(--slate-50);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-500);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(201, 164, 76, 0.15);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

/* Filtro com várias opções marcáveis (especialidades do diretório) */
.ms {
  position: relative;
}

/* O ícone fica por cima do botão (que vem depois no HTML). */
.input-group .input-icon {
  z-index: 1;
}

.ms-toggle {
  display: flex;
  align-items: center;
  text-align: left;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.ms-rotulo {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ms-toggle.is-ativo {
  border-color: var(--gold-600);
  font-weight: 600;
}

.ms-painel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 260px;
  background: #fff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  padding: 8px;
}

.ms-painel[hidden] {
  display: none;
}

.ms-opcoes {
  max-height: 280px;
  overflow-y: auto;
}

.ms-opcao {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--slate-800);
  font-size: 0.95rem;
}

.ms-opcao:hover {
  background: var(--slate-50);
}

.ms-opcao input {
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--navy-900);
}

.ms-rodape {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--slate-200);
  margin-top: 6px;
  padding-top: 8px;
}

.ms-limpar {
  background: none;
  border: 0;
  color: var(--slate-500);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 6px 8px;
}

.ms-limpar:hover {
  color: var(--navy-900);
  text-decoration: underline;
}

/* Category Filter Chips */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--slate-100);
}

.chip-btn {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chip-btn:hover {
  background: var(--slate-200);
  color: var(--navy-900);
}

.chip-btn.active {
  background: var(--navy-850);
  color: var(--gold-400);
  border-color: var(--navy-850);
  box-shadow: 0 2px 6px rgba(10, 23, 40, 0.2);
}

/* Experts Grid */
.experts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.expert-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.expert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-400), var(--navy-700));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.expert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(201, 164, 76, 0.4);
}

.expert-card:hover::before {
  opacity: 1;
}

.expert-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.expert-avatar {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 100%);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 2px solid var(--gold-400);
}

.expert-title-wrap {
  flex: 1;
}

.expert-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy-950);
  margin-bottom: 2px;
}

.expert-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--emerald-600);
  font-weight: 600;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.expert-specialty {
  font-weight: 600;
  color: var(--gold-600);
  font-size: 0.9rem;
  margin-top: 4px;
}

.expert-details-list {
  list-style: none;
  font-size: 0.875rem;
  color: var(--slate-600);
  margin-bottom: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.expert-details-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.expert-details-list svg {
  color: var(--slate-400);
  flex-shrink: 0;
}

.expert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.expert-tag-pill {
  font-size: 0.75rem;
  background: var(--slate-100);
  color: var(--slate-700);
  padding: 2px 8px;
  border-radius: 4px;
}

.expert-card-footer {
  display: flex;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--slate-100);
}

/* ==========================================================================
   About Section (Institucional / TRT-18)
   ========================================================================== */

.about-section {
  background: #ffffff;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.about-img-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-200);
}

.about-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-img-card:hover .about-img {
  transform: scale(1.03);
}

.about-experience-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(10, 23, 40, 0.92);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 16px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 164, 76, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.about-experience-badge .years {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1;
}

.about-experience-badge .text {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #cbd5e1;
  letter-spacing: 0.5px;
}

.about-feature-box {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.about-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(201, 164, 76, 0.15);
  color: var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.about-feature-desc {
  font-size: 0.925rem;
  color: var(--slate-600);
  line-height: 1.5;
}

/* ==========================================================================
   Services & Member Benefits
   ========================================================================== */

.services-section {
  background: var(--navy-950);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.services-section .section-title {
  color: #ffffff;
}

.services-section .section-description {
  color: #94a3b8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.service-card {
  background: rgba(20, 40, 69, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition-smooth);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  background: rgba(27, 53, 92, 0.7);
  border-color: rgba(201, 164, 76, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
}

.service-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(201, 164, 76, 0.2) 0%, rgba(201, 164, 76, 0.05) 100%);
  border: 1px solid rgba(201, 164, 76, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  margin-bottom: 20px;
}

.service-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.service-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-400);
  font-weight: 600;
  font-size: 0.9rem;
}

.service-link:hover {
  color: var(--gold-300);
  gap: 10px;
}

/* ==========================================================================
   Honorários & PJe-Calc Calculator Demonstration (Unique Value Feature)
   ========================================================================== */

.calc-section {
  background: #ffffff;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.calc-box {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.calc-result-card {
  background: var(--navy-900);
  color: #ffffff;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 164, 76, 0.3);
  box-shadow: 0 10px 25px rgba(10, 23, 40, 0.25);
  text-align: center;
}

.calc-result-val {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold-400);
  margin: 10px 0;
}

/* ==========================================================================
   Courses & Events Section
   ========================================================================== */

.courses-section {
  background: #f8fafc;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.course-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 164, 76, 0.4);
}

.course-badge-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.badge-open {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-upcoming {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.course-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-meta {
  display: flex;
  gap: 16px;
  font-size: 0.825rem;
  color: var(--slate-500);
  margin-bottom: 12px;
}

.course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.course-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.35;
  margin-bottom: 10px;
}

.course-desc {
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--slate-100);
}

.course-price {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy-900);
}

.course-price small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gold-600);
}

/* ==========================================================================
   News / Blog Section (Comunicação)
   ========================================================================== */

.news-section {
  background: #ffffff;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  background: #ffffff;
  border-color: var(--gold-500);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.news-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-600);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.news-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.4;
  margin-bottom: 12px;
}

.news-excerpt {
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.news-date {
  font-size: 0.8rem;
  color: var(--slate-400);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Associe-se (Membership CTA & Step Form)
   ========================================================================== */

.join-section {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-850) 100%);
  color: #ffffff;
  position: relative;
}

.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.join-benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.join-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.join-benefit-item svg {
  color: var(--gold-400);
  flex-shrink: 0;
  margin-top: 3px;
}

.join-card-form {
  background: #ffffff;
  color: var(--slate-800);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
}

.join-card-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.join-card-subtitle {
  font-size: 0.9rem;
  color: var(--slate-500);
  margin-bottom: 24px;
}

/* ==========================================================================
   Modals (Área Restrita do Associado / Perito Detail)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 12, 23, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--slate-200);
  position: relative;
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: transform var(--transition-smooth);
}

.modal-backdrop.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  background: var(--navy-900);
  color: #ffffff;
  padding: 24px 28px;
  position: relative;
}

.modal-header-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-400);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.modal-body {
  padding: 28px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-950);
  color: #94a3b8;
  font-size: 0.9rem;
  border-top: 1px solid rgba(201, 164, 76, 0.25);
  padding: 70px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gold-400);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--gold-400);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.825rem;
}

/* Floating Actions */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  z-index: 90;
  transition: transform var(--transition-bounce);
}

.floating-whatsapp:hover {
  transform: scale(1.12);
  color: #ffffff;
}

/* Toast alert */
.toast-msg {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--navy-900);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gold-400);
  z-index: 1100;
  font-weight: 500;
  font-size: 0.9rem;
  opacity: 0;
  transition: all var(--transition-smooth);
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .about-grid, .join-grid, .calc-box {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .search-inputs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.mobile-only-item {
  display: none;
}

@media (max-width: 992px) {
  .top-bar {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy-950);
    flex-direction: column;
    padding: 24px 20px 30px;
    gap: 14px;
    border-bottom: 1px solid rgba(201, 164, 76, 0.3);
    box-shadow: var(--shadow-xl);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-menu .nav-link {
    font-size: 1.05rem;
    padding: 8px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav-actions {
    display: none;
  }
  .mobile-only-item {
    display: block;
    width: 100%;
  }
  .search-inputs-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
