/* ==========================================================================
   PHM TECH — DESIGN SYSTEM INSTITUCIONAL
   Tipografia Acadêmica, Sobriedade Visual e Elegância
   ========================================================================== */

@import url('tokens.css');

/* ===== Reset Semântico ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 65px;
  background-color: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: #0f766e;
}

/* ===== Tipografia Acadêmica Balanceada ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  margin-bottom: 0.6rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-soft);
}

p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--teal);
  margin-bottom: 0.4rem;
}

.eyebrow.gold {
  color: #b8860b;
}

/* ===== Container Global ===== */
.container {
  max-width: 1360px;
  width: 100%;
  margin-inline: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-sizing: border-box;
}

.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  background: var(--navy);
  color: var(--text-inverse);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
}

.skip-link:focus {
  top: 1rem;
}

/* ==========================================================================
   CABEÇALHO INSTITUCIONAL & MARCA (BRAND)
   ========================================================================== */

:root {
  --header-total-height: 54px;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(8px);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  gap: 1rem;
}

/* Bloco Esquerdo: Logo + Divisor + Links */
.nav-left-cluster {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-svg-badge {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(11, 30, 61, 0.14));
  transition: transform var(--transition);
}

.brand:hover .brand-svg-badge {
  transform: rotate(-10deg) scale(1.08);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.brand-accent-gold {
  color: var(--gold);
}

.nav-divider {
  width: 1px;
  height: 22px;
  background: var(--line-strong);
  opacity: 0.7;
}

/* Navegação Principal Estilo Microsoft */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.main-nav a {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 0.35rem 0.2rem;
  position: relative;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition);
}

.main-nav a:hover {
  color: var(--navy);
}

.main-nav a.active {
  color: var(--navy);
  font-weight: 700;
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--teal);
  border-radius: var(--radius-pill);
}

/* Bloco Direito: Utilidades Sutis */
.nav-right-cluster {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

/* Seletor de Tema Universal (Claro / Sépia / Escuro) */
.theme-switcher-pill {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 1px 2px;
  gap: 2px;
}

.theme-pill-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.16rem 0.5rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  transition: var(--transition);
  white-space: nowrap;
}

.theme-pill-btn:hover {
  color: var(--text);
}

.theme-pill-btn.active {
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  font-weight: 600;
}

[data-theme="sepia"] .theme-pill-btn.active {
  background: #704214;
  color: #ffffff;
}

[data-theme="dark"] .theme-pill-btn.active {
  background: #38bdf8;
  color: #0f172a;
}

/* Botão PWA Discreto (Micro-Pill) */
.pwa-install-pill {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  box-shadow: none;
  transition: var(--transition);
  margin: 0;
}

.pwa-install-pill:hover {
  background: var(--surface-soft);
  color: var(--navy);
  border-color: var(--teal);
}

[data-theme="sepia"] .pwa-install-pill {
  background: var(--surface);
  color: #463425;
}

[data-theme="dark"] .pwa-install-pill {
  background: var(--surface);
  color: #cbd5e1;
}

[data-theme="dark"] .pwa-install-pill:hover {
  color: #38bdf8;
  border-color: #38bdf8;
}

/* Controles de Escala de Fonte (Texto: A- A A+) */
.font-size-controls {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 2px 6px;
  gap: 2px;
}

.font-control-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 3px;
  user-select: none;
}

.font-ctrl-btn {
  background: transparent;
  border: none;
  color: var(--text-soft);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.18rem 0.42rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.font-ctrl-btn:hover {
  color: var(--navy);
  background: var(--surface-soft);
}

.font-ctrl-btn.active {
  background: var(--navy);
  color: #ffffff;
  border-radius: var(--radius-pill);
}

[data-theme="dark"] .font-ctrl-btn.active {
  background: #38bdf8;
  color: #0f172a;
}

/* Leitor de Tela / Áudio em Voz Alta */
.speech-reader-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.24rem 0.65rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: var(--transition);
}

.speech-reader-btn:hover {
  background: var(--teal);
  color: #ffffff;
  border-color: var(--teal);
}

.speech-reader-btn.speaking {
  background: #dc2626;
  color: #ffffff;
  border-color: #ef4444;
  animation: speechPulse 1.4s infinite;
}

@keyframes speechPulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* Escalas de Tamanho de Fonte Global */
html[data-font-size="sm"] {
  font-size: 92%;
}

html[data-font-size="normal"] {
  font-size: 100%;
}

html[data-font-size="lg"] {
  font-size: 112%;
}

html[data-font-size="xl"] {
  font-size: 122%;
}

/* ==========================================================================
   HERO INSTITUCIONAL CENTRALIZADO & NOBRE (PADRÃO APPLE / NOTION / VERCEL)
   ========================================================================== */
.hero-centered {
  text-align: center;
  padding: 3.75rem 0 3.25rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-centered-box {
  max-width: 820px;
  margin: 0 auto;
}

.hero-title-centered {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0.65rem auto 1.25rem;
  max-width: 780px;
}

.hero-lead-centered {
  font-size: 1.15rem;
  color: var(--text-soft);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto;
}

.section-heading-centered {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.25rem;
}

.section-heading-centered h2 {
  font-size: 1.85rem;
  color: var(--navy);
  margin: 0.25rem 0 0.5rem;
  font-weight: 800;
}

.section-sub-lead {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 860px) {
  .ia-home-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .ia-home-showcase {
    padding: 1.75rem;
  }
}

/* Proteção da Folha A4 nos modos Sépia e Dark */
.doc-sheet, .lesson-document {
  background: #ffffff !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
}

.doc-sheet *, .lesson-document * {
  color: inherit;
}

.doc-sheet h1, .lesson-document h1 {
  color: #123b72 !important;
}

.doc-sheet h2, .lesson-document h2 {
  color: #123b72 !important;
}

.doc-sheet strong, .lesson-document strong {
  color: #0b1e3d !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

/* ==========================================================================
   BOTÕES & AÇÕES
   ========================================================================== */

.button, button.button, a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.68rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  line-height: 1.2;
}

.button.primary {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.button.primary:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.button.secondary {
  background: var(--teal);
  color: #ffffff;
  border-color: var(--teal);
}

.button.secondary:hover {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.button.light {
  background: var(--surface);
  color: var(--text-soft);
  border-color: var(--line-strong);
}

.button.light:hover {
  background: var(--surface-soft);
  color: var(--navy);
  border-color: var(--navy);
}

.text-link {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.text-link:hover {
  color: var(--teal);
}

/* ==========================================================================
   HERO INSTITUCIONAL & SEÇÕES
   ========================================================================== */

/* ==========================================================================
   HERO INSTITUCIONAL & SEÇÕES
   ========================================================================== */

.page-hero, .hero {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-soft) 100%);
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 0 3rem;
}

.page-hero.small {
  padding: 2.2rem 0 2rem;
}

.page-hero h1, .hero-title {
  max-width: 800px;
}

.page-hero p, .hero-lead {
  font-size: 1.1rem;
  max-width: 720px;
  color: var(--text-soft);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.section {
  padding: 3.5rem 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  gap: 1.5rem;
}

.section-heading p {
  max-width: 620px;
  margin-bottom: 0;
}

/* ==========================================================================
   PALETA DE 9 CORES EXCLUSIVAS & DE ALTO CONTRASTE (UMA PARA CADA CARD)
   ========================================================================== */

/* 1. Ciano Elétrico (PHM IA) */
.theme-cyan, .theme-sky {
  --theme-bg-soft: #f0f9ff;
  --theme-badge-bg: #e0f2fe;
  --theme-badge-color: #0284c7;
  --theme-border-hover: #0284c7;
  --theme-icon-bg: #e0f2fe;
  --theme-icon-color: #0284c7;
}

/* 2. Violeta / Roxo Nobre (PHM Academy) */
.theme-violet, .theme-lavender {
  --theme-bg-soft: #faf5ff;
  --theme-badge-bg: #f3e8ff;
  --theme-badge-color: #7e22ce;
  --theme-border-hover: #7c3aed;
  --theme-icon-bg: #f3e8ff;
  --theme-icon-color: #7e22ce;
}

/* 3. Verde Esmeralda / Teal (PHM EduProject) */
.theme-teal {
  --theme-bg-soft: #f0fdfa;
  --theme-badge-bg: #ccfbf1;
  --theme-badge-color: #0f766e;
  --theme-border-hover: #0d9488;
  --theme-icon-bg: #ccfbf1;
  --theme-icon-color: #0f766e;
}

/* 4. Azul Safira / Royal (Biblioteca Virtual) */
.theme-sapphire {
  --theme-bg-soft: #eff6ff;
  --theme-badge-bg: #dbeafe;
  --theme-badge-color: #1d4ed8;
  --theme-border-hover: #2563eb;
  --theme-icon-bg: #dbeafe;
  --theme-icon-color: #1d4ed8;
}

/* 5. Laranja Solar / Fogo (PHM Games) */
.theme-orange, .theme-amber, .theme-peach {
  --theme-bg-soft: #fff7ed;
  --theme-badge-bg: #ffedd5;
  --theme-badge-color: #c2410c;
  --theme-border-hover: #ea580c;
  --theme-icon-bg: #ffedd5;
  --theme-icon-color: #ea580c;
}

/* 6. Verde Lima / Tech Floresta (PHM Open Source) */
.theme-lime, .theme-mint, .theme-emerald {
  --theme-bg-soft: #f0fdf4;
  --theme-badge-bg: #dcfce7;
  --theme-badge-color: #15803d;
  --theme-border-hover: #16a34a;
  --theme-icon-bg: #dcfce7;
  --theme-icon-color: #15803d;
}

/* 7. Dourado / Ouro Nobre (A História de Jesus) */
.theme-gold, .theme-butter {
  --theme-bg-soft: #fefce8;
  --theme-badge-bg: #fef9c3;
  --theme-badge-color: #a16207;
  --theme-border-hover: #ca8a04;
  --theme-icon-bg: #fef9c3;
  --theme-icon-color: #a16207;
}

/* 8. Índigo Profundo (Orando com Jesus) */
.theme-indigo {
  --theme-bg-soft: #eef2ff;
  --theme-badge-bg: #e0e7ff;
  --theme-badge-color: #4338ca;
  --theme-border-hover: #4f46e5;
  --theme-icon-bg: #e0e7ff;
  --theme-icon-color: #4338ca;
}

/* 9. Rosa Carmim / Framboesa (FiloMente) */
.theme-crimson, .theme-rose, .theme-terracotta {
  --theme-bg-soft: #fff1f2;
  --theme-badge-bg: #ffe4e6;
  --theme-badge-color: #be123c;
  --theme-border-hover: #e11d48;
  --theme-icon-bg: #ffe4e6;
  --theme-icon-color: #be123c;
}

/* Adaptação Temática no Modo Sépia */
[data-theme="sepia"] .theme-cyan, [data-theme="sepia"] .theme-sky { --theme-badge-bg: #dceaf2; --theme-badge-color: #1e5270; --theme-border-hover: #26729c; --theme-icon-bg: #dceaf2; --theme-icon-color: #1e5270; }
[data-theme="sepia"] .theme-violet, [data-theme="sepia"] .theme-lavender { --theme-badge-bg: #ebdcf7; --theme-badge-color: #632a9c; --theme-border-hover: #7b38bc; --theme-icon-bg: #ebdcf7; --theme-icon-color: #632a9c; }
[data-theme="sepia"] .theme-teal { --theme-badge-bg: #d7ede8; --theme-badge-color: #165b53; --theme-border-hover: #26897d; --theme-icon-bg: #d7ede8; --theme-icon-color: #165b53; }
[data-theme="sepia"] .theme-sapphire { --theme-badge-bg: #d9e5f5; --theme-badge-color: #1a427a; --theme-border-hover: #275ca8; --theme-icon-bg: #d9e5f5; --theme-icon-color: #1a427a; }
[data-theme="sepia"] .theme-orange, [data-theme="sepia"] .theme-amber, [data-theme="sepia"] .theme-peach { --theme-badge-bg: #fae7cf; --theme-badge-color: #8c4e0b; --theme-border-hover: #c45e23; --theme-icon-bg: #fae7cf; --theme-icon-color: #8c4e0b; }
[data-theme="sepia"] .theme-lime, [data-theme="sepia"] .theme-mint, [data-theme="sepia"] .theme-emerald { --theme-badge-bg: #dbeede; --theme-badge-color: #235e32; --theme-border-hover: #2e7a42; --theme-icon-bg: #dbeede; --theme-icon-color: #235e32; }
[data-theme="sepia"] .theme-gold, [data-theme="sepia"] .theme-butter { --theme-badge-bg: #f5eed3; --theme-badge-color: #7a540b; --theme-border-hover: #ab7c1c; --theme-icon-bg: #f5eed3; --theme-icon-color: #7a540b; }
[data-theme="sepia"] .theme-indigo { --theme-badge-bg: #dedef5; --theme-badge-color: #3b3687; --theme-border-hover: #5850b8; --theme-icon-bg: #dedef5; --theme-icon-color: #3b3687; }
[data-theme="sepia"] .theme-crimson, [data-theme="sepia"] .theme-rose, [data-theme="sepia"] .theme-terracotta { --theme-badge-bg: #f5dbdf; --theme-badge-color: #8a243b; --theme-border-hover: #b83c58; --theme-icon-bg: #f5dbdf; --theme-icon-color: #8a243b; }

/* Adaptação Temática no Modo Escuro (Dark Mode) */
[data-theme="dark"] .theme-cyan, [data-theme="dark"] .theme-sky { --theme-border-hover: #38bdf8; --theme-icon-bg: rgba(56, 189, 248, 0.16); --theme-icon-color: #38bdf8; --theme-badge-bg: rgba(56, 189, 248, 0.16); --theme-badge-color: #7dd3fc; }
[data-theme="dark"] .theme-violet, [data-theme="dark"] .theme-lavender { --theme-border-hover: #a855f7; --theme-icon-bg: rgba(168, 85, 247, 0.16); --theme-icon-color: #a855f7; --theme-badge-bg: rgba(168, 85, 247, 0.16); --theme-badge-color: #d8b4fe; }
[data-theme="dark"] .theme-teal { --theme-border-hover: #2dd4bf; --theme-icon-bg: rgba(45, 212, 191, 0.16); --theme-icon-color: #2dd4bf; --theme-badge-bg: rgba(45, 212, 191, 0.16); --theme-badge-color: #5eead4; }
[data-theme="dark"] .theme-sapphire { --theme-border-hover: #60a5fa; --theme-icon-bg: rgba(96, 165, 250, 0.16); --theme-icon-color: #60a5fa; --theme-badge-bg: rgba(96, 165, 250, 0.16); --theme-badge-color: #93c5fd; }
[data-theme="dark"] .theme-orange, [data-theme="dark"] .theme-amber, [data-theme="dark"] .theme-peach { --theme-border-hover: #fb923c; --theme-icon-bg: rgba(251, 146, 60, 0.16); --theme-icon-color: #fb923c; --theme-badge-bg: rgba(251, 146, 60, 0.16); --theme-badge-color: #fed7aa; }
[data-theme="dark"] .theme-lime, [data-theme="dark"] .theme-mint, [data-theme="dark"] .theme-emerald { --theme-border-hover: #4ade80; --theme-icon-bg: rgba(74, 222, 128, 0.16); --theme-icon-color: #4ade80; --theme-badge-bg: rgba(74, 222, 128, 0.16); --theme-badge-color: #86efac; }
[data-theme="dark"] .theme-gold, [data-theme="dark"] .theme-butter { --theme-border-hover: #facc15; --theme-icon-bg: rgba(250, 204, 21, 0.16); --theme-icon-color: #facc15; --theme-badge-bg: rgba(250, 204, 21, 0.16); --theme-badge-color: #fef08a; }
[data-theme="dark"] .theme-indigo { --theme-border-hover: #818cf8; --theme-icon-bg: rgba(129, 140, 248, 0.16); --theme-icon-color: #818cf8; --theme-badge-bg: rgba(129, 140, 248, 0.16); --theme-badge-color: #a5b4fc; }
[data-theme="dark"] .theme-crimson, [data-theme="dark"] .theme-rose, [data-theme="dark"] .theme-terracotta { --theme-border-hover: #fb7185; --theme-icon-bg: rgba(251, 113, 133, 0.16); --theme-icon-color: #fb7185; --theme-badge-bg: rgba(251, 113, 133, 0.16); --theme-badge-color: #fda4af; }

/* Adaptação Sóbria, com Relevo e Elegância no Modo Escuro (Dark Mode) */
[data-theme="dark"] .project-card,
[data-theme="dark"] .edu-suite-card,
[data-theme="dark"] .book-card,
[data-theme="dark"] .values-grid > div,
[data-theme="dark"] .contact-list > div,
[data-theme="dark"] .area-list > div {
  background: #14213d !important;
  border: 1px solid #233760 !important;
  border-top: 3.5px solid var(--theme-border-hover, #38bdf8) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .project-card:hover,
[data-theme="dark"] .edu-suite-card:hover,
[data-theme="dark"] .book-card:hover {
  background: #182849 !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(-3px) !important;
}

[data-theme="dark"] .project-icon-box,
[data-theme="dark"] .edu-suite-icon-box {
  background: rgba(56, 189, 248, 0.12) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
}

[data-theme="dark"] .project-badge,
[data-theme="dark"] .edu-suite-badge {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  font-weight: 600;
}

[data-theme="dark"] .project-card h3,
[data-theme="dark"] .edu-suite-card h3,
[data-theme="dark"] .book-card h3 {
  color: #ffffff !important;
}

[data-theme="dark"] .project-card p,
[data-theme="dark"] .edu-suite-card p,
[data-theme="dark"] .book-card p {
  color: #cbd5e1 !important;
}

/* [data-theme="dark"] .card-link */ [data-theme="dark"] .card-link-legacy {
  color: #38bdf8 !important;
}

[data-theme="dark"] .button.primary {
  background: #075985;
  border-color: #0284c7;
  color: #ffffff;
}

[data-theme="dark"] .button.primary:hover {
  background: #0369a1;
  border-color: #0369a1;
  color: #ffffff;
}

[data-theme="dark"] .button.light {
  background: #14213d;
  border-color: #233760;
  color: #ffffff;
}

[data-theme="dark"] .button.light:hover {
  background: #182849;
  color: #ffffff;
}

.project-grid, .all-projects, .compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
}

.project-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3.5px solid var(--theme-border-hover, var(--teal));
  border-radius: var(--radius-md);
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  outline: none;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: var(--theme-border-hover, var(--teal));
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.project-card:focus-visible {
  outline: 2px solid var(--theme-border-hover, var(--teal));
  outline-offset: 3px;
}

.project-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.project-card-badges {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.project-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--theme-icon-bg, var(--surface-soft));
  color: var(--theme-icon-color, var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-icon-box,
.project-card:focus-visible .project-icon-box {
  transform: scale(1.08);
}

.project-badge {
  background: var(--theme-badge-bg, var(--surface-soft));
  color: var(--theme-badge-color, var(--text-soft));
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
}

.project-card h3 {
  font-size: 1.12rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
  font-weight: 700;
  line-height: 1.25;
  transition: color 0.2s ease;
}

.project-card:hover h3 {
  color: var(--theme-border-hover, var(--teal));
}

.project-card p {
  font-size: 0.85rem;
  color: var(--text-soft);
  flex-grow: 1;
  line-height: 1.55;
  margin-bottom: 0.4rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--theme-badge-color, var(--blue));
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.card-link svg {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.project-card:hover .card-link,
.project-card:focus-visible .card-link {
  color: var(--theme-border-hover, var(--teal));
  gap: 0.6rem;
}

.project-card:hover .card-link svg,
.project-card:focus-visible .card-link svg {
  transform: translateX(4px);
}

/* Filtros */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}

.filter {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
}

.filter:hover, .filter.active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

/* Duas colunas */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: center;
}

.dark-section, .pillars-section {
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  margin: 2rem auto;
}

.dark-section h2, .pillars-section h2 {
  color: var(--navy);
}

.dark-section p, .pillars-section p {
  color: var(--text-soft);
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.area-list {
  display: grid;
  gap: 1.2rem;
}

.area-list > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  box-shadow: var(--shadow-xs);
}

.area-list span {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--teal);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.2rem;
}

.area-list strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.area-list p {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-top: 0.3rem;
  margin-bottom: 0;
}

/* ==========================================================================
   BIBLIOTECA VIRTUAL
   ========================================================================== */

.library-hero-intro {
  margin-top: 0.5rem;
}

.library-about-trigger {
  background: none;
  border: none;
  color: var(--teal);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
  margin-left: 0.5rem;
}

/* ==========================================================================
   BIBLIOTECA VIRTUAL MARIA CELENY MACIEL (DESIGN EDITORIAL 3D & NOBRE)
   ========================================================================== */


/* ==========================================================================
   ESTANTE VIRTUAL DE LIVROS (BOOKSHELF DESIGN)
   ========================================================================== */

/* Barra de Filtros e Busca da Estante */
.bookshelf-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-xs);
  margin-bottom: 2rem;
}

.bookshelf-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bs-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1;
}

.bs-tab-btn:hover {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--blue);
  transform: translateY(-1px);
}

.bs-tab-btn.active {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
}

.bookshelf-search-box {
  flex-grow: 1;
  max-width: 380px;
}

.bs-search-input-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.bs-search-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  pointer-events: none;
  transition: color var(--transition);
}

.bs-search-input-wrap:focus-within .bs-search-icon {
  color: var(--teal);
}

.bs-search-input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.4rem;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  outline: none;
  transition: all var(--transition);
}

.bs-search-input:focus {
  border-color: var(--teal);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Seções e Prateleiras */
.bookshelf-section-block {
  margin-bottom: 3.5rem;
}

.shelf-header {
  margin-bottom: 1.5rem;
}

.shelf-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.shelf-badge-highlight {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(202, 138, 4, 0.12);
  color: #b45309;
  border: 1px solid rgba(202, 138, 4, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.shelf-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  font-family: var(--font-heading);
}

.shelf-desc {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin: 0;
  max-width: 720px;
}

.bookshelf-row {
  position: relative;
}

.bookshelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem 1.5rem;
  padding-bottom: 1.25rem;
}

/* Card Individual de Livro na Estante */
.shelf-book-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}

.shelf-book-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -6px rgba(11, 30, 61, 0.12);
  border-color: var(--teal);
}

/* Capa 3D Realista de Livro */
.shelf-book-cover-wrap {
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  margin-bottom: 1.1rem;
}

.shelf-book-3d {
  width: 148px;
  height: 210px;
  position: relative;
  display: block;
  text-decoration: none;
  transform: rotateY(-8deg) rotateX(2deg);
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  box-shadow: 
    -6px 10px 20px rgba(11, 30, 61, 0.2),
    0 2px 6px rgba(0, 0, 0, 0.1);
  border-radius: 4px 8px 8px 4px;
}

.shelf-book-item:hover .shelf-book-3d {
  transform: rotateY(0deg) rotateX(0deg) scale(1.04);
  box-shadow: 0 16px 32px rgba(11, 30, 61, 0.28);
}

.shelf-book-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(255, 255, 255, 0.18) 30%, transparent 90%);
  z-index: 5;
  border-radius: 4px 0 0 4px;
}

.shelf-book-face {
  width: 100%;
  height: 100%;
  border-radius: 4px 8px 8px 4px;
  background: linear-gradient(145deg, #1e3a8a, #0f172a);
  color: #ffffff;
  overflow: hidden;
  position: relative;
}

.shelf-book-edge {
  position: absolute;
  right: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: linear-gradient(to right, #e2e8f0, #cbd5e1);
  border-radius: 0 2px 2px 0;
  box-shadow: inset 1px 0 2px rgba(0,0,0,0.15);
}

/* Conteúdo da Capa Padrão */
.shelf-cover-content {
  padding: 0.85rem 0.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 70%);
}

.shelf-cover-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shelf-seal {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.shelf-initials {
  font-size: 0.7rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.22);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

.shelf-cover-center {
  margin: auto 0;
  text-align: center;
}

.shelf-book-title-cover {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
}

.shelf-book-sub-cover {
  font-size: 0.62rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.shelf-cover-bottom {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

/* Metadados e Ações do Livro */
.shelf-book-meta {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
}

.shelf-book-cat {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal);
  margin-bottom: 0.25rem;
}

.shelf-book-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  margin: 0 0 0.25rem 0;
}

.shelf-book-name a {
  color: inherit;
  text-decoration: none;
}

.shelf-book-author {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 0.5rem 0;
}

.shelf-book-synopsis {
  font-size: 0.82rem;
  line-height: 1.48;
  color: var(--text-soft);
  margin: 0 0 1rem 0;
  flex-grow: 1;
}

.shelf-book-footer {
  width: 100%;
  margin-top: auto;
}

.shelf-btn-action {
  width: 100%;
  font-size: 0.82rem;
  padding: 0.6rem 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 700;
}

.shelf-badge-waiting {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}

/* Prateleira de Madeira 3D */
.bookshelf-plank {
  height: 16px;
  background: linear-gradient(to bottom, #c49258 0%, #a46830 50%, #76441b 100%);
  border-radius: 4px 4px 8px 8px;
  box-shadow: 
    0 10px 24px rgba(0, 0, 0, 0.16),
    inset 0 2px 3px rgba(255, 255, 255, 0.4),
    inset 0 -2px 3px rgba(0, 0, 0, 0.3);
  margin-top: 0.5rem;
  position: relative;
}

.bookshelf-plank::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 2%;
  right: 2%;
  height: 8px;
  background: rgba(0, 0, 0, 0.12);
  filter: blur(4px);
  border-radius: 50%;
}

/* Temas de Cores das Capas */
.theme-gold .shelf-book-face { background: linear-gradient(145deg, #ca8a04, #78350f); }
.theme-lime .shelf-book-face { background: linear-gradient(145deg, #16a34a, #064e3b); }
.theme-sapphire .shelf-book-face { background: linear-gradient(145deg, #2563eb, #0f172a); }
.theme-violet .shelf-book-face { background: linear-gradient(145deg, #7c3aed, #3b0764); }
.theme-orange .shelf-book-face { background: linear-gradient(145deg, #ea580c, #7c2d12); }
.theme-cyan .shelf-book-face { background: linear-gradient(145deg, #0284c7, #0c4a6e); }
.theme-indigo .shelf-book-face { background: linear-gradient(145deg, #4338ca, #1e1b4b); }
.theme-crimson .shelf-book-face { background: linear-gradient(145deg, #e11d48, #881337); }
.theme-teal .shelf-book-face { background: linear-gradient(145deg, #0d9488, #134e4a); }
.theme-terracotta .shelf-book-face { background: linear-gradient(145deg, #b45309, #451a03); }

/* ==========================================================================
   NOVO HERO BANNER EDITORIAL & NOBRE DA BIBLIOTECA
   ========================================================================== */

.lib-hero-banner {
  padding: 2.5rem 0 1.5rem 0;
  position: relative;
}

.lib-hero-main-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 253, 250, 0.75));
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem 2.5rem 2.5rem;
  text-align: center;
  box-shadow: 
    0 20px 40px -15px rgba(11, 30, 61, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.lib-hero-main-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0d9488, #ca8a04, #2563eb, #7c3aed);
}

.lib-hero-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
  margin-bottom: 1.5rem;
}

.lib-hero-pill-tag {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lib-hero-pill-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  border-left: 1px solid var(--line);
  padding-left: 0.5rem;
}

.lib-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 auto 1.25rem auto;
  max-width: 860px;
  letter-spacing: -0.02em;
}

.lib-hero-highlight {
  background: linear-gradient(135deg, #0d9488 0%, #ca8a04 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.lib-hero-lead {
  font-size: 1.1rem;
  line-height: 1.68;
  color: var(--text-soft);
  max-width: 740px;
  margin: 0 auto 2rem auto;
}

.lib-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.lib-memorial-hero-btn {
  padding: 0.85rem 1.95rem;
  font-size: 0.98rem;
  font-weight: 700;
  font-family: var(--font-body);
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 50%, #be123c 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(225, 29, 72, 0.38), 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.lib-memorial-hero-btn svg {
  color: #ffffff !important;
  fill: #ffffff !important;
  transition: transform var(--transition);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.lib-memorial-hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(225, 29, 72, 0.52);
  background: linear-gradient(135deg, #fb7185 0%, #f43f5e 50%, #e11d48 100%) !important;
  color: #ffffff !important;
}

.lib-memorial-hero-btn:hover svg {
  transform: scale(1.22);
}

.lib-hero-pills-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .lib-hero-pills-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .lib-hero-pills-row {
    grid-template-columns: 1fr;
  }
}

.lib-hero-pill-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  font-size: 0.84rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
  text-align: center;
}

.lib-hero-pill-item:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.15);
}

.memorial-modal-badge svg {
  color: #e11d48 !important;
  fill: rgba(225, 29, 72, 0.2);
}

.lib-hero-pill-item svg {
  color: var(--teal);
}

/* Card de Destaque / Notificação do Dicionário no Hero */
.lib-dict-spotlight-card {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.6), rgba(255, 255, 255, 0.95));
  border: 1.5px solid rgba(202, 138, 4, 0.35);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition);
}

.lib-dict-spotlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(202, 138, 4, 0.15);
  border-color: #ca8a04;
}

.lib-dict-spotlight-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ca8a04, #b45309);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(202, 138, 4, 0.3);
}

.lib-dict-spotlight-body {
  flex-grow: 1;
}

.lib-dict-spotlight-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b45309;
  margin-bottom: 0.15rem;
}

.lib-dict-spotlight-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 0.25rem 0;
}

.lib-dict-spotlight-desc {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.45;
  margin: 0;
}

.lib-spotlight-cta {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-pill);
  border-color: #ca8a04;
  color: #b45309;
  white-space: nowrap;
}

.lib-spotlight-cta:hover {
  background: #ca8a04;
  color: #ffffff;
}

@media (max-width: 768px) {
  .lib-dict-spotlight-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* ==========================================================================
   MODAL MEMORIAL (QUEM FOI MARIA CELENY MACIEL)
   ========================================================================== */

.memorial-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 30, 61, 0.65);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.memorial-modal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.memorial-modal-overlay.active .memorial-modal-card {
  transform: translateY(0) scale(1);
}

.memorial-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.memorial-modal-close:hover {
  background: var(--teal);
  color: #ffffff;
  border-color: var(--teal);
}

.memorial-modal-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.memorial-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(13, 148, 136, 0.12);
  color: var(--teal);
  border: 1px solid rgba(13, 148, 136, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
}

.memorial-modal-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--navy);
  margin: 0 0 0.4rem 0;
}

.memorial-modal-sub {
  font-size: 0.95rem;
  color: var(--text-soft);
  font-style: italic;
  margin: 0;
}

.memorial-modal-body {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text);
}

.memorial-modal-body p {
  margin-bottom: 1.2rem;
}

.memorial-modal-quote {
  background: var(--surface-soft);
  border-left: 4px solid #ca8a04;
  padding: 1rem 1.4rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--navy);
  margin: 1.5rem 0;
  line-height: 1.6;
}

.memorial-modal-footer {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  margin-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.memorial-modal-footer-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   NOVO CABEÇALHO MONUMENTAL DO DICIONÁRIO TÉCNICO INTERATIVO
   ========================================================================== */

.dict-monumental-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 2.5rem auto;
}

.dict-header-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.dict-badge-pill {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(202, 138, 4, 0.14);
  color: #b45309;
  border: 1px solid rgba(202, 138, 4, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dict-badge-author {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.dict-monumental-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.dict-title-gradient {
  background: linear-gradient(135deg, #ca8a04 0%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dict-monumental-lead {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 720px;
  margin: 0 auto 2rem auto;
}

.dict-stats-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-xs);
  flex-wrap: wrap;
  justify-content: center;
}

.dict-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dict-stat-num {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  color: #ca8a04;
  line-height: 1.1;
}

.dict-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.dict-stat-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}

.dict-btn-docx {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ca8a04;
  border-color: #ca8a04;
}

.dict-btn-docx:hover {
  background: #b45309;
  border-color: #b45309;
}

/* ==========================================================================
   ESTILIZAÇÃO COMPLETA DO PAINEL DE BUSCA & GRID DE TERMOS DO DICIONÁRIO
   ========================================================================== */

.lib-dict-search-wrapper {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-xs);
  margin-bottom: 2rem;
}

.lib-dict-search-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.lib-dict-input-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.lib-dict-search-icon {
  position: absolute;
  left: 1.15rem;
  color: var(--teal);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.lib-dict-search-wrapper .lib-dict-input {
  width: 100%;
  padding: 0.9rem 2.85rem 0.9rem 3rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  color: var(--text);
  font-size: 1.02rem;
  outline: none;
  transition: all var(--transition);
}

.lib-dict-input:focus {
  border-color: var(--teal);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

.lib-dict-clear-btn {
  position: absolute;
  right: 1.15rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all var(--transition);
}

.lib-dict-clear-btn:hover {
  background: #e11d48;
  color: #ffffff;
}

/* Sugestões de Busca Rápida (Tags Populares) */
.dict-quick-tags-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}

.dict-quick-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.25rem;
}

.dict-tag-btn {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: all var(--transition);
}

.dict-tag-btn:hover {
  background: var(--teal);
  color: #ffffff;
  border-color: var(--teal);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.25);
}

/* Barra de Letras A-Z */
.lib-letters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  margin-bottom: 0.75rem;
}

.lib-letter-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.lib-letter-btn:hover,
.lib-letter-btn.active {
  background: var(--teal);
  color: #ffffff;
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
}

.lib-letter-btn.all-btn {
  width: auto;
  padding: 0 0.85rem;
}

.dict-results-counter {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Grade de Verbetes */
.lib-terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.lib-term-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid #ca8a04;
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.lib-term-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(11, 30, 61, 0.1);
  border-color: #ca8a04;
}

.lib-term-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.lib-term-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  line-height: 1.25;
  word-break: break-word;
}

.lib-term-en {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.65rem;
}

.lib-term-badge-cat {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(202, 138, 4, 0.12);
  color: #b45309;
  border: 1px solid rgba(202, 138, 4, 0.25);
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
  display: inline-block;
  line-height: 1.35;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
}

.lib-term-def-text {
  font-size: 0.9rem;
  line-height: 1.58;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.lib-term-ex-text {
  font-size: 0.84rem;
  background: var(--surface-soft);
  border-left: 3.5px solid var(--teal);
  padding: 0.55rem 0.75rem;
  border-radius: 0 6px 6px 0;
  color: var(--text-soft);
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.lib-term-rel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.lib-term-rel-pill {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--surface-soft);
  color: var(--text-muted);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--line);
}

/* Adaptações para Modo Escuro */
[data-theme="dark"] .lib-hero-main-card {
  background: linear-gradient(135deg, rgba(20, 33, 61, 0.95), rgba(15, 23, 42, 0.85)) !important;
  border-color: rgba(13, 148, 136, 0.3) !important;
}

[data-theme="dark"] .lib-hero-top-badge,
[data-theme="dark"] .lib-hero-pill-item {
  background: #0f1a30 !important;
  border-color: #233760 !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .lib-hero-title,
[data-theme="dark"] .dict-monumental-title,
[data-theme="dark"] .lib-dict-spotlight-title {
  color: #ffffff !important;
}

[data-theme="dark"] .lib-dict-spotlight-card {
  background: linear-gradient(135deg, rgba(40, 30, 15, 0.75), rgba(20, 33, 61, 0.95)) !important;
  border-color: rgba(202, 138, 4, 0.4) !important;
}

[data-theme="dark"] .dict-stats-bar {
  background: #0f1a30 !important;
  border-color: #233760 !important;
}

[data-theme="dark"] .dict-tag-btn {
  background: #0f1a30 !important;
  border-color: #233760 !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .dict-tag-btn:hover {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .lib-book-card {
  background: #14213d !important;
  border-color: #233760 !important;
}

[data-theme="dark"] .lib-book-card:hover {
  background: #182849 !important;
  border-color: var(--theme-border-hover, #38bdf8) !important;
}

[data-theme="dark"] .lib-book-heading {
  color: #ffffff !important;
}

[data-theme="dark"] .lib-book-info-list {
  background: rgba(0, 0, 0, 0.25) !important;
  border-color: #233760 !important;
}

[data-theme="dark"] .lib-info-item strong {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .lib-trail-step {
  background: #14213d !important;
  border-color: #233760 !important;
}

[data-theme="dark"] .lib-trail-step h3 {
  color: #ffffff !important;
}

[data-theme="dark"] .lib-step-number {
  color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .lib-accordion-header {
  background: #14213d !important;
}

[data-theme="dark"] .lib-acc-title-group strong {
  color: #ffffff !important;
}

[data-theme="dark"] .lib-accordion-body {
  background: #0f1a30 !important;
  border-color: #233760 !important;
}

[data-theme="dark"] .lib-memorial-card {
  background: #14213d !important;
  border-color: #233760 !important;
}

[data-theme="dark"] .lib-memorial-card h3 {
  color: #ffffff !important;
}

[data-theme="dark"] .shelf-book-item,
[data-theme="dark"] .bookshelf-toolbar {
  background: #14213d !important;
  border-color: #233760 !important;
}

[data-theme="dark"] .shelf-book-name {
  color: #ffffff !important;
}

[data-theme="dark"] .bs-tab-btn {
  background: var(--surface-soft) !important;
  border-color: var(--line) !important;
  color: var(--text-soft) !important;
}

[data-theme="dark"] .bs-tab-btn:hover {
  background: var(--surface) !important;
  color: var(--navy) !important;
  border-color: var(--blue) !important;
}

[data-theme="dark"] .bs-tab-btn.active {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(56, 189, 248, 0.3) !important;
}

[data-theme="dark"] .bs-search-input {
  background: #0f1a30 !important;
  border-color: #233760 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .bookshelf-plank {
  background: linear-gradient(to bottom, #3b2a1a 0%, #2b1f14 50%, #1c130b 100%) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.1), inset 0 -2px 3px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .lib-quote {
  background: #0f1a30 !important;
  color: #e2e8f0 !important;
  border-color: #38bdf8 !important;
}

[data-theme="dark"] .lib-dict-search-wrapper,
[data-theme="dark"] .lib-term-box {
  background: #14213d !important;
  border-color: #233760 !important;
}

[data-theme="dark"] .lib-dict-input {
  background: #0f1a30 !important;
  border-color: #233760 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .lib-letter-btn {
  background: #0f1a30 !important;
  border-color: #233760 !important;
  color: #e2e8f0 !important;
}

[data-theme="dark"] .lib-letter-btn.active,
[data-theme="dark"] .lib-letter-btn:hover {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .lib-term-name {
  color: #ffffff !important;
}

[data-theme="dark"] .lib-term-badge-cat {
  background: rgba(202, 138, 4, 0.2) !important;
  color: #fbbf24 !important;
  border-color: rgba(202, 138, 4, 0.4) !important;
}

[data-theme="dark"] .lib-term-ex-text {
  background: #0f1a30 !important;
  color: #cbd5e1 !important;
  border-color: #38bdf8 !important;
}

[data-theme="dark"] .lib-term-rel-pill {
  background: #0f1a30 !important;
  color: #94a3b8 !important;
}

/* Adaptações para Modo Sépia */
[data-theme="sepia"] .lib-hero-main-card {
  background: linear-gradient(135deg, rgba(251, 247, 238, 0.95), rgba(245, 238, 225, 0.85)) !important;
  border-color: #dfd4bf !important;
}

[data-theme="sepia"] .lib-hero-top-badge,
[data-theme="sepia"] .lib-hero-pill-item,
[data-theme="sepia"] .dict-stats-bar {
  background: #f5eee1 !important;
  border-color: #dfd4bf !important;
}

[data-theme="sepia"] .dict-tag-btn {
  background: #f5eee1;
  border-color: #dfd4bf;
  color: #2e2116;
}

[data-theme="sepia"] .dict-tag-btn:hover {
  background: var(--teal) !important;
  border-color: var(--teal) !important;
  color: #ffffff !important;
}

[data-theme="sepia"] .lib-term-badge-cat {
  background: rgba(180, 83, 9, 0.12) !important;
  color: #92400e !important;
  border-color: rgba(180, 83, 9, 0.25) !important;
}

[data-theme="sepia"] .lib-dict-spotlight-card {
  background: linear-gradient(135deg, #fbf7ee, #f5eee1) !important;
  border-color: rgba(202, 138, 4, 0.35) !important;
}

[data-theme="sepia"] .shelf-book-item,
[data-theme="sepia"] .bookshelf-toolbar,
[data-theme="sepia"] .lib-dict-search-wrapper,
[data-theme="sepia"] .lib-term-box {
  background: #fbf7ee !important;
  border-color: #dfd4bf !important;
}

[data-theme="sepia"] .bs-tab-btn {
  background: #f5eee1;
  border-color: #dfd4bf;
  color: #2e2116;
}

[data-theme="sepia"] .bs-tab-btn.active,
[data-theme="sepia"] .bs-tab-btn:hover {
  background: var(--teal) !important;
  border-color: var(--teal) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3) !important;
}

[data-theme="sepia"] .bs-search-input,
[data-theme="sepia"] .lib-dict-input {
  background: #f5eee1 !important;
  border-color: #dfd4bf !important;
  color: #2e2116 !important;
}

[data-theme="sepia"] .lib-letter-btn {
  background: #f5eee1;
  border-color: #dfd4bf;
  color: #2e2116;
}

[data-theme="sepia"] .lib-letter-btn.active,
[data-theme="sepia"] .lib-letter-btn:hover {
  background: var(--teal) !important;
  border-color: var(--teal) !important;
  color: #ffffff !important;
}

[data-theme="sepia"] .bookshelf-plank {
  background: linear-gradient(to bottom, #c99a6b 0%, #b07d4b 50%, #7d4d24 100%) !important;
}

[data-theme="sepia"] .lib-trail-step {
  background: #fbf7ee !important;
  border-color: #dfd4bf !important;
}

[data-theme="sepia"] .lib-quote {
  background: #f5eee1 !important;
  color: #2e2116 !important;
}

/* ==========================================================================
   ESTILOS PREMIUM DA PÁGINA SOBRE.PHP
   ========================================================================== */

.about-hero-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 253, 250, 0.8));
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: var(--radius-lg);
  padding: 3.2rem 2.5rem 2.5rem 2.5rem;
  text-align: center;
  box-shadow: 0 20px 40px -15px rgba(11, 30, 61, 0.08);
  position: relative;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.about-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0d9488, #2563eb, #ca8a04, #7c3aed);
}

.about-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
  box-shadow: var(--shadow-xs);
  margin-bottom: 1.25rem;
}

.about-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 auto 1.25rem auto;
  max-width: 860px;
}

.about-hero-highlight {
  background: linear-gradient(135deg, #0d9488 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-hero-lead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 760px;
  margin: 0 auto 2rem auto;
}

.about-hero-pills {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.about-hero-pill {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-xs);
}

.about-hero-pill svg {
  color: var(--teal);
}

/* Card do Autor & Idealizador */
.about-author-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-xs);
  margin-bottom: 3.5rem;
  position: relative;
}

.about-author-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-author-photo-box {
  text-align: center;
}

.about-author-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488, #2563eb);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  box-shadow: 0 10px 25px rgba(13, 148, 136, 0.3);
  font-size: 3rem;
  font-weight: 900;
  font-family: var(--font-heading);
  border: 4px solid var(--surface);
}

.about-author-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.about-author-role {
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-author-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}

.about-author-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--text-muted);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

.about-author-bio h2 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.about-author-bio p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.2rem;
}

.about-author-quote {
  background: var(--surface-soft);
  border-left: 4px solid var(--teal);
  padding: 1.15rem 1.4rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.6;
  margin: 1.5rem 0;
}

@media (max-width: 860px) {
  .about-author-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Grid dos 4 Pilares do Ecossistema */
.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 3.5rem;
}

.about-pillar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.about-pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--pillar-color, var(--teal));
}

.about-pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -10px rgba(11, 30, 61, 0.12);
  border-color: var(--pillar-color, var(--teal));
}

.about-pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--pillar-color, var(--teal));
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.about-pillar-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.about-pillar-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.about-pillar-btn {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
}

/* Grid do Manifesto & Princípios */
.about-principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 3.5rem;
}

.about-principle-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), border-color var(--transition);
}

.about-principle-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
}

.about-principle-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.about-principle-num {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--teal);
  background: rgba(13, 148, 136, 0.1);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-principle-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}

.about-principle-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0;
}

/* Card de Filosofia Técnica & Qualidade */
.about-tech-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.03), rgba(13, 148, 136, 0.05));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 3.5rem;
}

.about-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.about-tech-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  box-shadow: var(--shadow-xs);
}

.about-tech-item-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.about-tech-item-title svg {
  color: var(--teal);
}

.about-tech-item-desc {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 0;
}

/* CTA Final na página Sobre */
.about-cta-card {
  background: linear-gradient(135deg, #0b1e3d 0%, #1e3a8a 50%, #0d9488 100%);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 20px 50px -10px rgba(11, 30, 61, 0.25);
  margin-bottom: 2rem;
}

.about-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.about-cta-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  max-width: 680px;
  margin: 0 auto 2rem auto;
}

.about-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.about-cta-btn-main {
  background: #ffffff;
  color: var(--navy);
  font-weight: 800;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.about-cta-btn-main:hover {
  background: var(--surface-soft);
  transform: translateY(-2px);
  color: var(--teal);
}

.about-cta-btn-alt {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(5px);
}

.about-cta-btn-alt:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Adaptações da página Sobre para Modo Escuro */
[data-theme="dark"] .about-hero-card {
  background: linear-gradient(135deg, rgba(20, 33, 61, 0.95), rgba(15, 23, 42, 0.85)) !important;
  border-color: rgba(13, 148, 136, 0.3) !important;
}

[data-theme="dark"] .about-hero-badge,
[data-theme="dark"] .about-hero-pill {
  background: #0f1a30 !important;
  border-color: #233760 !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .about-hero-title,
[data-theme="dark"] .about-author-name,
[data-theme="dark"] .about-author-bio h2,
[data-theme="dark"] .about-pillar-title,
[data-theme="dark"] .about-principle-title,
[data-theme="dark"] .about-tech-item-title {
  color: #ffffff !important;
}

[data-theme="dark"] .about-author-card,
[data-theme="dark"] .about-pillar-card,
[data-theme="dark"] .about-principle-card,
[data-theme="dark"] .about-tech-item {
  background: #14213d !important;
  border-color: #233760 !important;
}

[data-theme="dark"] .about-author-quote {
  background: #0f1a30 !important;
  color: #e2e8f0 !important;
  border-color: #38bdf8 !important;
}

[data-theme="dark"] .about-tech-card {
  background: #0f1a30 !important;
  border-color: #233760 !important;
}

/* Adaptações da página Sobre para Modo Sépia */
[data-theme="sepia"] .about-hero-card {
  background: linear-gradient(135deg, rgba(251, 247, 238, 0.95), rgba(245, 238, 225, 0.85)) !important;
  border-color: #dfd4bf !important;
}

[data-theme="sepia"] .about-hero-badge,
[data-theme="sepia"] .about-hero-pill,
[data-theme="sepia"] .about-tech-item {
  background: #f5eee1 !important;
  border-color: #dfd4bf !important;
}

[data-theme="sepia"] .about-author-card,
[data-theme="sepia"] .about-pillar-card,
[data-theme="sepia"] .about-principle-card {
  background: #fbf7ee !important;
  border-color: #dfd4bf !important;
}

[data-theme="sepia"] .about-author-quote {
  background: #f5eee1 !important;
  color: #2e2116 !important;
}

[data-theme="sepia"] .about-tech-card {
  background: #f5eee1 !important;
  border-color: #dfd4bf !important;
}

/* ==========================================================================
   ESTILOS PREMIUM DA PÁGINA CONTATO.PHP (SEM FORMULÁRIO DE SPAM)
   ========================================================================== */

.contact-hero-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(238, 242, 255, 0.85));
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-lg);
  padding: 3.2rem 2.5rem 2.5rem 2.5rem;
  text-align: center;
  box-shadow: 0 20px 40px -15px rgba(11, 30, 61, 0.08);
  position: relative;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.contact-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #0d9488, #ca8a04, #7c3aed);
}

.contact-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue);
  box-shadow: var(--shadow-xs);
  margin-bottom: 1.25rem;
}

.contact-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 auto 1.25rem auto;
  max-width: 860px;
}

.contact-hero-highlight {
  background: linear-gradient(135deg, #2563eb 0%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-hero-lead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 760px;
  margin: 0 auto 2rem auto;
}

.contact-hero-pills {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contact-hero-pill {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-xs);
}

.contact-hero-pill svg {
  color: var(--blue);
}

/* Grid de Canais Principais de E-mail & Instituição (3 Colunas Nobres) */
.contact-main-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.contact-card-premium {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.85rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.contact-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, var(--blue));
}

.contact-card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -10px rgba(11, 30, 61, 0.12);
  border-color: var(--card-accent, var(--blue));
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--card-accent, var(--blue));
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.contact-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}

.contact-email-box {
  font-family: monospace;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--navy);
  background: var(--surface-soft);
  border: 1.5px solid var(--line);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  display: block;
  margin-bottom: 1rem;
  word-break: break-all;
  text-align: center;
}

.contact-card-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.contact-card-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.contact-action-btn-main {
  flex-grow: 1;
  padding: 0.7rem 1.2rem;
  font-size: 0.86rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.contact-action-btn-copy {
  padding: 0.7rem 1rem;
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* Redes Sociais em Grid de 3 Colunas */
.contact-social-grid-three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 3.5rem;
}

.contact-social-card-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.contact-social-card-item:hover {
  transform: translateY(-3px);
  border-color: var(--card-social-color, var(--blue));
  box-shadow: 0 10px 25px -5px rgba(11, 30, 61, 0.1);
}

.contact-social-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--card-social-color, var(--blue));
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-social-card-info h4 {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 0.2rem 0;
}

.contact-social-card-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.contact-social-card-arrow {
  margin-left: auto;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.contact-social-card-item:hover .contact-social-card-arrow {
  color: var(--card-social-color, var(--blue));
  transform: translateX(4px);
}

/* Seção de Formas de Participação & Colaboração */
.contact-collab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 3.5rem;
}

.contact-collab-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), border-color var(--transition);
}

.contact-collab-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
}

.contact-collab-badge {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.contact-collab-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.contact-collab-desc {
  font-size: 0.88rem;
  line-height: 1.58;
  color: var(--text-soft);
  margin: 0;
}

/* FAQ Rápido de Contato */
.contact-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.contact-faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3.5px solid var(--teal);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
}

.contact-faq-q {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.contact-faq-a {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0;
}

/* Toast de Feedback de Cópia */
.contact-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--navy);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
  z-index: 99999;
}

.contact-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Adaptações da página Contato para Modo Escuro */
[data-theme="dark"] .contact-hero-card {
  background: linear-gradient(135deg, rgba(20, 33, 61, 0.95), rgba(15, 23, 42, 0.85)) !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
}

[data-theme="dark"] .contact-hero-badge,
[data-theme="dark"] .contact-hero-pill {
  background: #0f1a30 !important;
  border-color: #233760 !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .contact-hero-title,
[data-theme="dark"] .contact-card-title,
[data-theme="dark"] .contact-social-card-info h4,
[data-theme="dark"] .contact-collab-title,
[data-theme="dark"] .contact-faq-q,
[data-theme="dark"] .contact-email-box {
  color: #ffffff !important;
}

[data-theme="dark"] .contact-card-premium,
[data-theme="dark"] .contact-social-card-item,
[data-theme="dark"] .contact-collab-card,
[data-theme="dark"] .contact-faq-item {
  background: #14213d !important;
  border-color: #233760 !important;
}

[data-theme="dark"] .contact-email-box {
  background: #0f1a30 !important;
  border-color: #233760 !important;
}

/* Adaptações da página Contato para Modo Sépia */
[data-theme="sepia"] .contact-hero-card {
  background: linear-gradient(135deg, rgba(251, 247, 238, 0.95), rgba(245, 238, 225, 0.85)) !important;
  border-color: #dfd4bf !important;
}

[data-theme="sepia"] .contact-hero-badge,
[data-theme="sepia"] .contact-hero-pill {
  background: #f5eee1 !important;
  border-color: #dfd4bf !important;
}

[data-theme="sepia"] .contact-card-premium,
[data-theme="sepia"] .contact-social-card-item,
[data-theme="sepia"] .contact-collab-card,
[data-theme="sepia"] .contact-faq-item {
  background: #fbf7ee !important;
  border-color: #dfd4bf !important;
}

[data-theme="sepia"] .contact-email-box {
  background: #f5eee1 !important;
  border-color: #dfd4bf !important;
}

/* ==========================================================================
   ESTILOS PREMIUM DE PÁGINAS JURÍDICAS & INSTITUCIONAIS (TERMOS E PRIVACIDADE)
   ========================================================================== */

.legal-hero-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.85));
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: var(--radius-lg);
  padding: 3.2rem 2.5rem 2.5rem 2.5rem;
  text-align: center;
  box-shadow: 0 20px 40px -15px rgba(11, 30, 61, 0.08);
  position: relative;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.legal-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0d9488, #2563eb, #ca8a04, #475569);
}

.legal-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  box-shadow: var(--shadow-xs);
  margin-bottom: 1.25rem;
}

.legal-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 auto 1.25rem auto;
  max-width: 860px;
}

.legal-hero-lead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 760px;
  margin: 0 auto 2rem auto;
}

.legal-hero-pills {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.legal-hero-pill {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-xs);
}

/* Layout Legal de 2 Colunas (Sumário Fixo + Conteúdo Estruturado) */
.legal-layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 4rem;
}

@media (max-width: 960px) {
  .legal-layout-grid {
    grid-template-columns: 1fr;
  }
}

.legal-sidebar {
  position: sticky;
  top: 6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
}

.legal-sidebar-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.legal-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.legal-nav-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  display: block;
  transition: all var(--transition);
  line-height: 1.35;
}

.legal-nav-link:hover {
  background: var(--surface-soft);
  color: var(--teal);
  transform: translateX(3px);
}

.legal-content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-xs);
}

.legal-section-block {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.legal-section-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-section-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.legal-section-num {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--teal);
  background: rgba(13, 148, 136, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.legal-subheading {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--navy);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-paragraph {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.25rem;
  text-align: justify;
}

.legal-list {
  padding-left: 1.4rem;
  margin-bottom: 1.25rem;
}

.legal-list li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.legal-callout {
  background: var(--surface-soft);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-soft);
}

.legal-callout strong {
  color: var(--navy);
}

.legal-callout-warning {
  border-left-color: #ca8a04;
  background: rgba(254, 243, 199, 0.4);
}

.legal-info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.88rem;
}

.legal-info-table th,
.legal-info-table td {
  border: 1px solid var(--line);
  padding: 0.75rem 1rem;
  text-align: left;
}

.legal-info-table th {
  background: var(--surface-soft);
  font-weight: 800;
  color: var(--navy);
}

/* Rodapé dos Termos */
.legal-meta-box {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Adaptações para Modo Escuro */
[data-theme="dark"] .legal-hero-card {
  background: linear-gradient(135deg, rgba(20, 33, 61, 0.95), rgba(15, 23, 42, 0.85)) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .legal-hero-badge,
[data-theme="dark"] .legal-hero-pill {
  background: #0f1a30 !important;
  border-color: #233760 !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .legal-hero-title,
[data-theme="dark"] .legal-sidebar-title,
[data-theme="dark"] .legal-section-title,
[data-theme="dark"] .legal-subheading,
[data-theme="dark"] .legal-info-table th,
[data-theme="dark"] .legal-callout strong {
  color: #ffffff !important;
}

[data-theme="dark"] .legal-sidebar,
[data-theme="dark"] .legal-content-card,
[data-theme="dark"] .legal-meta-box {
  background: #14213d !important;
  border-color: #233760 !important;
}

[data-theme="dark"] .legal-paragraph,
[data-theme="dark"] .legal-list li {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .legal-callout {
  background: #0f1a30 !important;
  border-color: #38bdf8 !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .legal-info-table td {
  background: #14213d !important;
  border-color: #233760 !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .legal-info-table th {
  background: #0f1a30 !important;
  border-color: #233760 !important;
}

/* Adaptações para Modo Sépia */
[data-theme="sepia"] .legal-hero-card {
  background: linear-gradient(135deg, rgba(251, 247, 238, 0.95), rgba(245, 238, 225, 0.85)) !important;
  border-color: #dfd4bf !important;
}

[data-theme="sepia"] .legal-hero-badge,
[data-theme="sepia"] .legal-hero-pill {
  background: #f5eee1 !important;
  border-color: #dfd4bf !important;
}

[data-theme="sepia"] .legal-sidebar,
[data-theme="sepia"] .legal-content-card,
[data-theme="sepia"] .legal-meta-box {
  background: #fbf7ee !important;
  border-color: #dfd4bf !important;
}

[data-theme="sepia"] .legal-callout {
  background: #f5eee1 !important;
  color: #2e2116 !important;
}

[data-theme="sepia"] .legal-info-table th,
[data-theme="sepia"] .legal-info-table td {
  background: #fbf7ee !important;
  border-color: #dfd4bf !important;
}

/* ==========================================================================
   RODAPÉ INSTITUCIONAL SLIM & MINIMALISTA
   ========================================================================== */

.site-footer {
  background: var(--surface);
  color: var(--text-soft);
  padding: 1.25rem 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand-side {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.footer-brand-sep {
  color: var(--text-light);
  font-size: 0.85rem;
}

.footer-brand-tagline {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--text-soft);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--navy);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Ajustes de hover nos links por tema */
[data-theme="dark"] .footer-brand-side .brand-title {
  color: #ffffff;
}

[data-theme="dark"] .footer-nav a:hover {
  color: #38bdf8;
}

[data-theme="sepia"] .footer-brand-side .brand-title {
  color: #3c2817;
}

[data-theme="sepia"] .footer-nav a:hover {
  color: #b45309;
}

@media (max-width: 860px) {
  .footer-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
  }

  .footer-nav {
    justify-content: center;
    gap: 0.85rem;
  }
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */

@media (max-width: 860px) {
  .nav-wrap {
    height: 52px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    box-shadow: var(--shadow-md);
  }

  .main-nav.open {
    display: flex;
  }

  .two-col, .vision-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sub-bar-wrap {
    justify-content: center;
    gap: 0.5rem;
  }
}


/* ==========================================================================
   PHM OPEN SOURCE — DESIGN SYSTEM & ESTILOS MODERNOS
   ========================================================================== */

.os-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.os-section-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
  overflow: hidden;
}

.os-section-card[open] {
  border-color: var(--teal);
  box-shadow: var(--shadow-sm);
}

.os-section-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  cursor: pointer;
  background: var(--surface);
  list-style: none;
  user-select: none;
  transition: background var(--transition);
}

.os-section-summary::-webkit-details-marker {
  display: none;
}

.os-section-summary:hover {
  background: var(--surface-soft);
}

.os-summary-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.os-summary-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--teal);
  opacity: 0.85;
  line-height: 1;
}

.os-summary-info h3 {
  font-size: 1.35rem;
  color: var(--navy);
  margin: 0.2rem 0;
}

.os-summary-info p {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin: 0;
  max-width: 680px;
  line-height: 1.5;
}

.os-summary-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.os-summary-badge-count {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-soft);
}

.os-toggle-chevron {
  font-size: 0.75rem;
  transition: transform var(--transition);
  color: var(--teal);
}

.os-section-card[open] .os-toggle-chevron {
  transform: rotate(180deg);
}

.os-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
}

.os-item-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
}

.os-item-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.os-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.os-item-module {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}

.os-lang-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.os-lang-badge.lang-c {
  background: rgba(13, 148, 136, 0.12);
  color: var(--teal);
  border: 1px solid rgba(13, 148, 136, 0.3);
}

.os-lang-badge.lang-js {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.os-lang-badge.lang-py {
  background: rgba(37, 99, 235, 0.12);
  color: var(--blue);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.os-lang-badge.lang-sh {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.os-item-title {
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0 0 0.5rem 0;
  line-height: 1.35;
}

.os-item-context {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.5;
  margin: 0 0 1rem 0;
  flex-grow: 1;
}

.os-terminal-box {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.85rem;
}

.os-terminal-header {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
}

.os-terminal-code {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  color: #38bdf8;
  word-break: normal;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  display: block;
  line-height: 1.45;
}

.os-file-info-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
  background: var(--surface-soft);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.os-file-label {
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
}

.os-file-name {
  font-family: var(--font-mono, monospace);
  color: var(--teal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.os-item-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.os-btn-download,
.os-btn-run {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md, 8px);
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

.os-btn-full {
  width: 100%;
  flex: 1 1 100%;
}

/* Modo Escuro */
[data-theme="dark"] .os-terminal-box {
  background: #050811;
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .os-lang-badge.lang-js {
  color: #facc15;
}

[data-theme="dark"] .os-lang-badge.lang-sh {
  color: #34d399;
}

@media (max-width: 768px) {
  .os-summary-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .os-section-summary {
    padding: 1.25rem 1rem;
  }
  
  .os-items-grid {
    padding: 1rem;
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   BANNER DESTAQUE ESPECIAL: LABORATÓRIO WEB (MONTE O SEU SITE)
   ========================================================================== */

.os-featured-studio-card {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(37, 99, 235, 0.08) 100%);
  border: 1.5px solid rgba(13, 148, 136, 0.35);
  border-radius: var(--radius-lg, 16px);
  padding: 2.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: all var(--transition);
}

.os-featured-studio-card:hover {
  border-color: var(--teal);
  box-shadow: 0 14px 40px rgba(13, 148, 136, 0.12);
  transform: translateY(-2px);
}

.os-featured-studio-left {
  flex: 1;
}

.os-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(13, 148, 136, 0.12);
  border: 1px solid rgba(13, 148, 136, 0.3);
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.os-featured-studio-left h2 {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--navy);
  margin: 0 0 0.6rem 0;
  line-height: 1.25;
}

.os-featured-studio-left p {
  font-size: 0.96rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
  max-width: 720px;
}

.os-featured-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.os-featured-tag {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.os-featured-studio-right {
  flex-shrink: 0;
}

.os-btn-launch-studio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.65rem;
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.25);
}

/* Modo Escuro */
[data-theme="dark"] .os-featured-studio-card {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15) 0%, rgba(37, 99, 235, 0.12) 100%);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .os-featured-tag {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

@media (max-width: 860px) {
  .os-featured-studio-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.75rem 1.5rem;
  }
  
  .os-btn-launch-studio {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   MENU SUSPENSO DE PREFERÊNCIAS & LEITURA (MICROSOFT / FLUENT STYLE)
   ========================================================================== */
.nav-preferences-dropdown {
  position: relative;
}

.nav-pref-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.32rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: all var(--transition);
  height: 34px;
  box-sizing: border-box;
}

.nav-pref-trigger:hover,
.nav-pref-trigger.active {
  background: var(--surface);
  border-color: var(--teal);
  color: #0f766e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pref-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.pref-chevron {
  font-size: 0.8rem;
  line-height: 1;
  color: var(--text-soft);
  transition: transform var(--transition);
}

.nav-pref-trigger.active .pref-chevron {
  transform: rotate(180deg);
}

/* Painel Popover */
.nav-pref-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 300px;
  width: max-content;
  max-width: 90vw;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 12px 36px rgba(11, 30, 61, 0.14);
  z-index: 1100;
  animation: hubFadeIn 0.2s ease;
}

.nav-pref-panel[hidden] {
  display: none !important;
}

.pref-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.pref-panel-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--navy);
}

.pref-panel-close {
  background: transparent;
  border: none;
  font-size: 0.85rem;
  color: var(--text-soft);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color var(--transition);
}

.pref-panel-close:hover {
  color: var(--navy);
}

.pref-group {
  margin-bottom: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pref-group:last-child {
  margin-bottom: 0;
}

.pref-group-label {
  font-family: var(--font-heading);
  font-size: 0.70rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
}

.pref-group .theme-switcher-pill {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  box-sizing: border-box;
}

.pref-group .theme-pill-btn {
  text-align: center;
  justify-content: center;
  padding: 0.4rem 0.2rem;
  font-size: 0.78rem;
}

.pref-group .font-size-controls {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  box-sizing: border-box;
}

.pref-group .font-ctrl-btn {
  text-align: center;
  justify-content: center;
  padding: 0.4rem 0.2rem;
  font-size: 0.78rem;
}

.pref-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.85rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: all var(--transition);
}

.pref-action-btn:hover {
  border-color: var(--teal);
  background: var(--surface);
  color: var(--teal);
}

.nav-pref-trigger .pref-svg-icon,
.nav-pref-trigger svg:first-child {
  color: var(--teal) !important;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.nav-pref-trigger .pref-chevron,
.nav-pref-trigger svg:last-child {
  color: var(--text-soft);
  display: inline-block;
  vertical-align: middle;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.nav-pref-trigger.active .pref-chevron,
.nav-pref-trigger.active svg:last-child {
  transform: rotate(180deg);
}

.pref-panel-title .phm-svg-icon {
  color: var(--teal);
  margin-right: 0.35rem;
}

.pref-panel-close .phm-svg-icon {
  color: var(--text-soft);
}

.pref-panel-close:hover .phm-svg-icon {
  color: var(--navy);
}

.theme-pill-btn .phm-svg-icon {
  margin-right: 0.25rem;
  vertical-align: -2px;
}

.pref-action-btn .phm-svg-icon {
  color: var(--teal);
  flex-shrink: 0;
}

/* ==========================================================================
   DESIGN SYSTEM OFICIAL — CABEÇALHOS DOS APLICATIVOS (PHM APP FRAMEWORK)
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
}

[data-theme="light"] .app-header {
  background: var(--surface);
  border-bottom-color: var(--line);
}

[data-theme="sepia"] .app-header {
  background: var(--surface);
  border-bottom-color: var(--line);
}

[data-theme="dark"] .app-header {
  background: var(--surface);
  border-bottom-color: var(--line);
}

.header-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.header-top-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
}

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease;
  flex-shrink: 0;
}

.logo-area:hover .logo-icon {
  transform: rotate(-10deg) scale(1.08);
  border-color: currentColor;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
  gap: 1px;
}

.logo-text h1 {
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  color: var(--text) !important;
  line-height: 1.15 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.logo-text p {
  font-size: 0.68rem !important;
  color: var(--text-muted) !important;
  font-weight: 500 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  padding: 0 0.7rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  vertical-align: middle;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.btn-header-action:hover {
  background: var(--surface-soft);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .header-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
  }

  .header-top-row {
    width: 100%;
    justify-content: space-between;
  }

  .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
  }
}

@media (max-width: 640px) {
  .header-actions {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }

  .logo-text p {
    display: none;
  }
}
/* ==========================================================================
   SELETOR DE TEMAS PADRÃO UNIVERSAL PHM TRAVELS (PERFEITAMENTE PROPORCIONAL)
   ========================================================================== */
.theme-switcher-pill,
.app-header .theme-switcher-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2px 4px;
  flex-shrink: 0;
  box-sizing: border-box;
}

[data-theme="dark"] .theme-switcher-pill,
[data-theme="dark"] .app-header .theme-switcher-pill {
  background: #0e172e;
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="sepia"] .theme-switcher-pill,
[data-theme="sepia"] .app-header .theme-switcher-pill {
  background: #fbf7ee;
  border-color: #dfd4bf;
}

[data-theme="light"] .theme-switcher-pill,
[data-theme="light"] .app-header .theme-switcher-pill {
  background: #ffffff;
  border-color: #cbd5e1;
}

.theme-pill-btn,
.app-header .theme-pill-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  line-height: 1.2;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.theme-pill-btn:hover,
.app-header .theme-pill-btn:hover {
  color: var(--text);
}

.theme-pill-btn.active,
.app-header .theme-pill-btn.active {
  background: #075985;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.theme-pill-btn svg,
.app-header .theme-pill-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ==========================================================================
   BOTÃO FLUTUANTE VOLTAR AO TOPO (PHM TECH)
   ========================================================================== */
.btn-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy, #0f172a);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.2s ease,
              box-shadow 0.2s ease;
}

.btn-back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.btn-back-to-top:hover {
  background: var(--sky, #0284c7);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.38);
}

.btn-back-to-top:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .btn-back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}





/* ==========================================================================
   BOTÕES DOS CARDS DE PROJETO (.card-link) — PADRÃO INTERATIVO HARMONIOSO
   - Normal: Neutro, elegante e discreto
   - Hover: Ganha cor vibrante (Azul no Claro, Café no Sépia, Azul Céu no Escuro)
   ========================================================================== */

/* 1. MODO CLARO (PADRÃO) */
.project-card .card-link,
.card-link,
[data-theme="light"] .project-card .card-link,
[data-theme="light"] .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.52rem 1.05rem;
  border-radius: var(--radius-md, 8px);
  background: var(--surface-soft, #f1f5f9) !important;
  color: var(--navy, #0b1e3d) !important;
  border: 1.5px solid var(--line-strong, #cbd5e1) !important;
  text-decoration: none;
  transition: all 0.22s ease;
  width: fit-content;
  margin-top: auto;
  box-sizing: border-box;
  box-shadow: none !important;
}

.project-card .card-link svg,
.card-link svg,
[data-theme="light"] .project-card .card-link svg,
[data-theme="light"] .card-link svg {
  transition: transform 0.22s ease;
  flex-shrink: 0;
  color: var(--blue, #2563eb) !important;
}

/* Hover no Modo Claro: Ganha o AZUL VIBRANTE (#0284c7) */
.project-card:hover .card-link,
.project-card:focus-visible .card-link,
[data-theme="light"] .project-card:hover .card-link,
[data-theme="light"] .project-card:focus-visible .card-link {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4) !important;
  transform: translateX(3px);
}

.project-card:hover .card-link svg,
.project-card:focus-visible .card-link svg,
[data-theme="light"] .project-card:hover .card-link svg,
[data-theme="light"] .project-card:focus-visible .card-link svg {
  color: #ffffff !important;
  transform: translateX(4px);
}

/* 2. MODO SÉPIA */
[data-theme="sepia"] .project-card .card-link,
[data-theme="sepia"] .card-link {
  background: #eae1cf !important;
  color: #3c2817 !important;
  border: 1.5px solid #ded2bd !important;
  box-shadow: none !important;
}

[data-theme="sepia"] .project-card .card-link svg,
[data-theme="sepia"] .card-link svg {
  color: #78401a !important;
}

[data-theme="sepia"] .project-card:hover .card-link,
[data-theme="sepia"] .project-card:focus-visible .card-link {
  background: #78401a !important;
  color: #ffffff !important;
  border-color: #78401a !important;
  box-shadow: 0 3px 10px rgba(120, 64, 26, 0.25) !important;
  transform: translateX(3px);
}

[data-theme="sepia"] .project-card:hover .card-link svg,
[data-theme="sepia"] .project-card:focus-visible .card-link svg {
  color: #ffffff !important;
  transform: translateX(4px);
}

/* 3. MODO ESCURO (DARK MODE) */
[data-theme="dark"] .project-card .card-link,
[data-theme="dark"] .card-link {
  background: #0f1a30 !important;
  color: #ffffff !important;
  border: 1.5px solid #334e7a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .project-card .card-link svg,
[data-theme="dark"] .card-link svg {
  color: #38bdf8 !important;
}

[data-theme="dark"] .project-card:hover .card-link,
[data-theme="dark"] .project-card:focus-visible .card-link {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.45) !important;
  transform: translateX(3px);
}

[data-theme="dark"] .project-card:hover .card-link svg,
[data-theme="dark"] .project-card:focus-visible .card-link svg {
  color: #ffffff !important;
  transform: translateX(4px);
}

/* P1-10 — contraste compartilhado das preferências e do rodapé */
[data-theme="dark"] .nav-pref-trigger.active,
[data-theme="dark"] .nav-pref-trigger.active .pref-text { color: #5eead4 !important; }
[data-theme="dark"] .font-ctrl-btn.active { background: #075985 !important; color: #ffffff !important; }
:root[data-theme="sepia"] body .footer-brand-sep { color: #475569 !important; }
:root[data-theme="dark"] body .footer-brand-sep { color: #94a3b8 !important; }
