/* Purr Tipografia NLab: Sistema Editorial Aprovado (Manrope + Neulis Cursive + IBM Plex Mono)
   - Manrope: Leitura, interface, títulos dos 6 cases, subtítulos e cargos no currículo.
   - Neulis Cursive: Reservada a títulos principais e destaques expressivos.
   - IBM Plex Mono: Etiquetas, filtros, metadados e notas laboratoriais.
   - Detalhes manuscritos intencionais preservados.
*/

/* 1. Manrope WOFF2 (Arquivos locais otimizados) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../assets/fonts/Manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../assets/fonts/Manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --purr-font-expressive: "neulis-cursive", Lab, sans-serif;
  --purr-font-editorial: "Manrope", sans-serif;
  --purr-label-font: "IBM Plex Mono", monospace;
  --purr-font-principal: var(--purr-font-expressive);
}

/* 2. Manrope: Leitura e Interface Geral */
body,
button,
input,
select,
textarea,
#main-menu,
#main-menu a,
nav,
nav a,
.purr-nav-more summary,
.button,
.purr-ai-case-btn,
.console-tabs button,
.memory-close {
  font-family: var(--purr-font-editorial);
}

p,
.hero p,
.hero-copy,
.intro-line p,
.purr-selection-note,
.case-card-role,
.work-body p,
.timeline article p,
.purr-about-copy p,
.purr-panel-sub,
.purr-qualification p,
.services details p,
.window-body p,
.contact p,
.cv-lead,
.cv-item p,
.purr-programs-note,
.purr-ai-lab p {
  font-family: var(--purr-font-editorial);
  letter-spacing: -0.008em;
}

@media (min-width: 761px) {
  #main-menu a,
  nav a,
  #main-menu .purr-nav-more summary {
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -0.015em;
  }
}

/* 3. Títulos dos 6 Cases em Manrope 800 */
.case-label h3,
.case h3,
.case-grid h3,
.work-body h3,
.cases-header h3,
#projetos .case-grid h3,
.case-grid-divider h3 {
  font-family: var(--purr-font-editorial) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
}

/* 4. Subtítulos de Seções, Grupos, Cards e Currículo em Manrope 700 */
.timeline article h3,
.creative-console h3,
.window-body b,
.services summary,
.lab-folder-face strong,
.repertoire-card strong,
.volunteer-phase-content h3,
.purr-qualification h4,
.purr-qualification h5,
.purr-group-head h4,
.purr-skill-card h4,
.purr-academic-card h4,
.purr-ai-card h3,
.purr-cdms-col h4,
.purr-panel-head h3,
.purr-career-panel h3,
.formation-item h3,
.recognitions h3,
.dialog-text h3,
.cv-item h3 {
  font-family: var(--purr-font-editorial) !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em;
}

/* 5. Neulis Cursive: Títulos Principais e Destaques Expressivos */
h1,
h2,
.wordmark,
.hero h1,
.olympikus-hero h1,
.big-type,
.section-head h2,
.intro-line h2,
.about h2,
.purr-about-copy h2,
.process h2,
.contact h2,
#creations-title,
#repertoire-title,
#memory-title,
#criacoes h2,
#repertorio h2,
#memorias h2,
.memory-heading h2,
.memory-drawer-head h2,
.purr-eco-title,
.tcx-title,
.repertoire-lab .lab-archive--in-repertoire h3,
.cv-header h1,
#ai-lab-title,
.purr-ai-lab h2,
.purr-formation-vitrine h2,
#formation-title,
.purr-cdms-kpi strong,
.g-hero h1,
.g-applications h2,
.g-workflows h2,
.g-community h2,
.g-achievements h2,
.g-metrics-section h2,
.g-journal h2,
.g-certificates h2,
.g-context h2 {
  font-family: var(--purr-font-expressive) !important;
  font-weight: 600 !important;
  letter-spacing: -0.035em;
}

.wordmark {
  font-weight: 700 !important;
  letter-spacing: -0.045em;
}

/* Purr Ecosystem: Título expressivo com clamp ajustado para perfeita responsividade */
.mlab h2 {
  font-family: var(--purr-font-expressive) !important;
  font-weight: 600 !important;
  font-size: clamp(42px, 6.5vw, 84px) !important;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

/* 6. Destaques Autorais Preservados */
h1 em,
h2 em,
.hero h1 em,
.about h2 em,
#ai-lab h2 em,
.memory-heading h2 em,
.g-hero h1 em,
.g-journal h2 em,
.g-context h2 em {
  font-style: normal;
}

.volunteer-handwritten,
.repertoire-scribble,
.g-under-note,
.g-hand-arrow {
  font-family: italic Georgia, serif !important;
}

/* 7. IBM Plex Mono: Etiquetas, Filtros e Metadados */
.eyebrow,
h2.eyebrow,
.mono,
.sticker,
.note-paper,
.scribble,
.turn-note,
.lab-ticket span,
.development-stamp,
.case-filters button,
.repertoire-controls button,
.repertoire-controls button span,
.purr-archive-filters button,
.volunteer-phase,
.volunteer-phase span,
.volunteer-mono,
.volunteer-folder-tab,
.volunteer-frame-top,
.volunteer-thumbs span,
.ticker .shell,
.purr-ticker-group span,
.purr-ticker-pause,
.process .margin-note,
.purr-note-sheet,
.hero-lead-label,
.hero-chip,
.hero-role,
.timeline-kicker,
.timeline-meta time,
.timeline-meta span,
.timeline-counter,
.tag,
.case-tag,
.meta-pill,
.purr-badge,
.lab-ticket-counter,
.services-meta,
.cv-meta,
.cv-date,
.cv-badge,
.contact-channel,
.contact-channel .type,
.purr-qual-top .mono,
.purr-qual-status,
.purr-ai-card-top .mono,
.purr-ai-tag,
.purr-ai-showcase-label .mono,
.purr-cv-mini-head .mono,
.purr-cv-mini-tag,
.case-featured-label,
.case .mono,
.google-diary-page .g-mono,
.g-mono,
.g-kicker,
.g-status-chip,
.g-cutoff,
.g-highlights li,
.g-stamp,
.g-breadcrumb,
.g-inline-tags span,
.g-sticky small,
.g-board-google,
.g-disclaimer {
  font-family: var(--purr-label-font) !important;
}

/* ==========================================================================
   Rodapé Editorial NLab — Créditos (Ideias, Código e IA)
   ========================================================================== */
footer.site-footer {
  background: #24211e !important;
  color: #f4efdf !important;
  padding: 48px 0 32px !important;
  border-top: 2px solid #38322c !important;
  display: block !important;
}
footer.site-footer > .shell {
  display: block !important;
  width: min(1320px, calc(100% - 96px)) !important;
  margin: 0 auto !important;
}
.footer-credits {
  margin-bottom: 28px !important;
  max-width: 860px !important;
  text-align: left !important;
}
.footer-credits .footer-kicker {
  display: block !important;
  font-family: var(--purr-label-font, 'IBM Plex Mono', monospace) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  color: #ffe242 !important;
  margin: 0 0 12px 0 !important;
  text-transform: uppercase !important;
}
.footer-credits .footer-statement {
  font-family: var(--purr-body-font, Manrope, sans-serif) !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: #f4efdf !important;
  margin: 0 0 16px 0 !important;
}
.footer-meta {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  font-family: var(--purr-label-font, 'IBM Plex Mono', monospace) !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
  color: #c7beaf !important;
}
.footer-meta span {
  display: block !important;
}
.footer-meta strong {
  color: #ffffff !important;
}
.footer-bottom {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  padding-top: 20px !important;
  margin-top: 24px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
  font-family: var(--purr-label-font, 'IBM Plex Mono', monospace) !important;
  font-size: 12px !important;
  color: #9e9587 !important;
}
.footer-bottom a {
  color: #f4efdf !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
}
.footer-bottom a:hover {
  color: #ffe242 !important;
}
@media (max-width: 760px) {
  footer.site-footer {
    padding: 36px 0 28px !important;
  }
  footer.site-footer > .shell {
    width: calc(100% - 40px) !important;
  }
  .footer-credits .footer-statement {
    font-size: 15px !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
}

/* ==========================================================================
   Botão Flutuante Discreto WhatsApp — Apenas Mobile (Acessível)
   ========================================================================== */
.mobile-whatsapp-btn {
  display: none !important;
}
@media (max-width: 760px) {
  .mobile-whatsapp-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: fixed !important;
    bottom: 20px !important;
    right: 18px !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    background-color: #25d366 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important;
    z-index: 990 !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  }
  .mobile-whatsapp-btn:active {
    transform: scale(0.92) !important;
  }
  .mobile-whatsapp-btn:focus-visible {
    outline: 3px solid #ffe242 !important;
    outline-offset: 3px !important;
  }
  .mobile-whatsapp-btn svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    fill: #ffffff !important;
    display: block !important;
  }
}

/* ==========================================================================
   Seletor de Idiomas Discreto (PT | EN | ES) & Etiquetas CSS Multilingues
   ========================================================================== */
.lab-archive:before {
  content: var(--purr-archive-label, "ARQUIVO DE IDEIAS") !important;
}
.repertoire-lab .lab-archive--in-repertoire:before {
  content: var(--purr-dossier-label, "DOSSIÊ ABERTO / 2026") !important;
}
.header-inner .wordmark {
  order: 0;
  margin-right: auto;
}
.header-inner nav,
.header-inner #main-menu,
.header-inner > .text-link {
  order: 1;
}
.purr-lang-switcher {
  order: 2;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  padding: 2px 6px;
  border: 1px solid rgba(36, 34, 30, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.72);
  font-family: var(--purr-font-editorial, Arial, sans-serif);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: #24221e;
}
.purr-lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(36, 34, 30, 0.68);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 6px;
  border-radius: 999px;
  cursor: pointer;
  min-width: 26px;
  text-align: center;
  transition: color 0.16s ease, background-color 0.16s ease;
}
.purr-lang-btn:hover {
  color: #24221e;
  background: rgba(88, 21, 238, 0.06);
}
.purr-lang-btn.is-active {
  color: #5815ee;
  background: rgba(88, 21, 238, 0.11);
}
.purr-lang-btn:focus-visible {
  outline: 2px solid #ff8b24;
  outline-offset: 2px;
}
.purr-lang-sep {
  color: rgba(36, 34, 30, 0.28);
  font-size: 10px;
  user-select: none;
}
.cv-actions .purr-lang-switcher {
  margin-left: auto;
}
.error-card .purr-lang-switcher {
  margin: 0 auto 20px;
}
@media (max-width: 760px) {
  .header-inner {
    gap: 10px !important;
  }
  .header-inner .purr-lang-switcher {
    order: 1;
    padding: 2px 4px;
    font-size: 10px;
  }
  .header-inner .purr-lang-btn {
    padding: 5px 5px;
    min-width: 24px;
  }
  .header-inner .menu-toggle {
    order: 2;
  }
  .header-inner > .text-link {
    order: 2;
  }
}
@media (max-width: 560px) {
  .header-inner {
    flex-wrap: wrap;
    padding-block: 10px;
  }
  .header-inner > .text-link {
    flex-basis: 100%;
    order: 3;
    font-size: 13px;
  }
}
@media (min-width: 761px) and (max-width: 1020px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    padding-block: 12px;
    gap: 10px 14px;
  }
  .header-inner nav,
  .header-inner #main-menu {
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
  }
}
@media (max-width: 380px) {
  .hero .shell,
  .g-hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .hero h1,
  .google-hero h1,
  .g-hero h1 {
    font-size: clamp(36px, 11.5vw, 44px) !important;
    overflow-wrap: break-word;
  }
}
@media print {
  .purr-lang-switcher {
    display: none !important;
  }
}
