/* ======================================================================
   NASSAR TALEB — Tema WP custom (visual base)
   Portado 1:1 de artifacts/nassartaleb/src/index.css (Oswald + Inter).
   Apenas tokens, reset, layout, header, footer, botoes e page-headline.
   ====================================================================== */

/* ======================================
   DESIGN TOKENS
   ====================================== */
:root {
  /* Backgrounds */
  --cream:         #FAF8F5; /* fundo padrao (creme) */
  --light-gray:    #F0EDEA; /* fundo .section-alt */
  --search-beige:  #E8E3DC; /* area de busca global */
  --subtle-border: #E0DCD7; /* divisores, bordas de card */

  /* Texto */
  --body-text:     #222222; /* texto principal */
  --body-text-2:   #6B6B7B; /* subtitulos, meta-texto */

  /* Dourados */
  --gold:          #8B7355; /* accent principal, drop cap, filetes, dividers */
  --bronze-hover:  #A0845C; /* hover, botao primario, fim do degrade */
  --gold-light:    #C9A876; /* labels/badges sobre fundo escuro */

  /* Escuros */
  --petrol-blue:   #1A1A2E; /* fundo .section-dark (newsletter) */
  --footer-coal:   #222222; /* fundo .site-footer */
  --interview-dark:#1A1A1A; /* banner interview (existente) */

  /* ----------------------------------------------------------------
     ALIASES SEMANTICOS — os templates PHP usam estes nomes inline
     (var(--color-accent) etc.). Mapeiam para a paleta da marca acima.
     ---------------------------------------------------------------- */
  --color-accent:  #8B7355; /* dourado — labels, links, ratings */
  --color-heading: #222222; /* titulos */
  --color-text:    #222222; /* texto de corpo */
  --color-surface: #F0EDEA; /* superficie clara — pills, placeholders */
  --color-bg:      #FFFFFF; /* fundo de cards (branco) */
  --color-border:  #E0DCD7; /* bordas e divisores */
  --font-heading:  'Oswald', sans-serif;
  --font-body:     'Inter', sans-serif;
}

/* ======================================
   RESET MINIMO
   ====================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #222222;
  background-color: #FAF8F5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  line-height: 1.2;
  color: #222222;
  margin: 0 0 0.5em;
}

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

a {
  color: inherit;
}

/* ======================================
   LAYOUT BASE
   ====================================== */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ======================================
   HEADER
   ====================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #FAF8F5;
  border-bottom: 1px solid #E0DCD7;
  backdrop-filter: blur(8px);
  background-color: rgba(250, 248, 245, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  text-decoration: none;
}

.logo-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #222222;
  letter-spacing: 0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: #6B6B7B;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link-active {
  color: #8B7355;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #222222;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mobile-menu-toggle svg {
  display: block;
}

.mobile-menu-toggle .icon-close {
  display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem;
  border-top: 1px solid #E0DCD7;
  background: #FAF8F5;
  gap: 0.75rem;
}

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

.mobile-nav-link {
  font-size: 0.9rem;
  color: #222222;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid #E0DCD7;
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-nav {
    display: flex;
  }
}

/* ======================================
   BUTTONS
   ====================================== */
.btn-primary {
  display: inline-block;
  background-color: #8B7355;
  color: #FAF8F5;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.btn-primary:hover {
  background-color: #A0845C;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}

/* ======================================
   PAGE HEADERS (com gold divider)
   ====================================== */
.page-headline {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 500;
  color: #222222;
  margin-bottom: 1.25rem;
  line-height: 1.04;
}

.page-headline::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, #8B7355, #A0845C);
  margin-top: 1.5rem;
}

.cta-center .page-headline::after {
  margin-left: auto;
  margin-right: auto;
}

.page-subheadline {
  font-size: 1.0625rem;
  color: #6B6B7B;
  line-height: 1.75;
  max-width: 580px;
}

/* Section title (para templates de archive/single — gold divider) */
.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 500;
  color: #222222;
  line-height: 1.10;
  margin-bottom: 1.25rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, #8B7355, #A0845C);
  margin-top: 1.5rem;
}

.cta-center .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

/* ======================================
   SECTION SPACING
   ====================================== */
.section {
  padding: 7.5rem 0;
}

.section-header {
  margin-bottom: 4.5rem;
}

@media (max-width: 768px) {
  .section {
    padding: 4.5rem 0;
  }
  .section-header {
    margin-bottom: 2.75rem;
  }
}

/* ======================================
   FOOTER
   ====================================== */
.site-footer {
  background-color: #222222;
  color: #FAF8F5;
  padding: 4rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.site-footer .logo-text {
  color: #FAF8F5;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: rgba(250, 248, 245, 0.6);
  margin-top: 0.75rem;
  line-height: 1.6;
}

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

.footer-nav-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8B7355;
  margin-bottom: 1rem;
}

.footer-link {
  display: block;
  font-size: 0.9375rem;
  color: rgba(250, 248, 245, 0.7);
  text-decoration: none;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #FAF8F5;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-icon {
  color: rgba(250, 248, 245, 0.6);
  font-size: 1.125rem;
  text-decoration: none;
  transition: color 0.2s;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-icon:hover {
  color: #A0845C;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(250, 248, 245, 0.4);
  text-align: center;
  margin: 0;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-nav {
    grid-template-columns: 1fr 1fr;
  }
}

/* ======================================================================
   COMPONENTES EDITORIAIS — portados de src/index.css
   (insights, glossary, resources, breadcrumb, share, CTA)
   ====================================================================== */

/* ======================================
   SECTION ALT (fundo cinza claro)
   ====================================== */
.section-alt {
  background-color: #F0EDEA;
}

/* ======================================
   CTA CENTRALIZADO
   ====================================== */
.cta-center {
  text-align: center;
}

.cta-prompt {
  font-size: 1.0625rem;
  color: #6B6B7B;
  margin-bottom: 1.5rem;
}

/* ======================================
   BREADCRUMB
   ====================================== */
.breadcrumb {
  padding: 1rem 0;
  border-bottom: 1px solid #E0DCD7;
  background: #FAF8F5;
}

.breadcrumb a {
  font-size: 0.8125rem;
  color: #8B7355;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  font-size: 0.8125rem;
  color: #6B6B7B;
}

.breadcrumb-sep {
  margin: 0 0.5rem;
  color: #E0DCD7;
}

/* ======================================
   BOTAO SECUNDARIO (borda escura)
   ====================================== */
.btn-secondary-dark {
  display: inline-block;
  background: transparent;
  color: #222222;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border: 1px solid #222222;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.btn-secondary-dark:hover {
  background-color: #222222;
  color: #FAF8F5;
}

/* ======================================
   FOOTER — colunas (template usa estes nomes)
   ====================================== */
.footer-brand {
  max-width: 320px;
}

.footer-nav-group {
  display: block;
}

.footer-social {
  display: block;
}

/* ======================================
   SHARE BAR (single-insight)
   ====================================== */
.insight-sharebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #6B6B7B;
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  border: 1px solid #E0DCD7;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.share-btn:hover {
  border-color: #8B7355;
  color: #8B7355;
}

/* ======================================
   INSIGHT — cards do archive
   ====================================== */
.insight-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.insight-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
  overflow: hidden;
  display: flex;
  flex-direction: row;
}

.insight-card:hover {
  border-color: var(--color-accent);
}

.insight-thumb {
  flex-shrink: 0;
  width: 200px;
  position: relative;
  overflow: hidden;
  background: #E0DCD7;
}

.insight-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.insight-body {
  padding: 1.5rem 1.75rem;
  flex: 1;
  min-width: 0;
}

.insight-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.75rem;
}

.insight-subtitle {
  font-style: italic;
  color: #6B6B7B;
  font-size: 1.05rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .insight-card {
    flex-direction: column;
  }
  .insight-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .insight-body {
    padding: 1.1rem 1.25rem;
  }
}

/* ======================================
   CONTEUDO EDITORIAL (the_content) — prosa
   compartilhado por insight, glossary e fallback
   ====================================== */
.insight-content,
.glossary-def-content,
.entry-content {
  font-family: 'Inter', sans-serif;
  color: #444444;
  line-height: 1.85;
}

.insight-content p,
.glossary-def-content p,
.entry-content p {
  font-size: 1.0625rem;
  color: #444444;
  line-height: 1.85;
  margin: 0 0 1.25rem;
}

.insight-content h2,
.entry-content h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #222222;
  line-height: 1.2;
  margin: 2.5rem 0 1rem;
}

.insight-content h3,
.entry-content h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #222222;
  line-height: 1.25;
  margin: 2rem 0 0.75rem;
}

.insight-content a,
.glossary-def-content a,
.entry-content a {
  color: #8B7355;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.insight-content a:hover,
.glossary-def-content a:hover,
.entry-content a:hover {
  color: #A0845C;
}

.insight-content ul,
.insight-content ol,
.glossary-def-content ul,
.glossary-def-content ol,
.entry-content ul,
.entry-content ol {
  font-size: 1.0625rem;
  color: #444444;
  line-height: 1.85;
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.insight-content li,
.glossary-def-content li,
.entry-content li {
  margin-bottom: 0.5rem;
}

.insight-content blockquote,
.entry-content blockquote {
  margin: 2.75rem 0;
  padding: 2rem 2rem 1.75rem;
  text-align: center;
  border-top: 2px solid #8B7355;
  border-bottom: 2px solid #8B7355;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-style: italic;
  color: #222222;
}

.insight-content img,
.entry-content img {
  border-radius: 8px;
  margin: 1.5rem 0;
}

.insight-content strong,
.glossary-def-content strong,
.entry-content strong {
  color: #222222;
  font-weight: 600;
}

/* Drop cap dourado — opt-in via .drop-cap no paragrafo */
.drop-cap::first-letter {
  font-family: 'Oswald', sans-serif;
  font-size: 3.2em;
  font-weight: 600;
  line-height: 0.78;
  float: left;
  margin: 0.08em 0.14em 0 0;
  color: #8B7355;
}

/* ======================================
   GLOSSARY — archive
   ====================================== */
.glossary-search-wrapper {
  margin-top: 2rem;
  max-width: 480px;
}

.glossary-search-input {
  width: 100%;
  padding: 0.75rem 1.125rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  border: 1.5px solid #E0DCD7;
  border-radius: 4px;
  background: #fff;
  color: #222222;
  outline: none;
  transition: border-color 0.2s;
}

.glossary-search-input:focus {
  border-color: #8B7355;
}

.glossary-empty {
  color: #6B6B7B;
  font-size: 1rem;
  padding: 2rem 0;
}

.glossary-letter-group {
  margin-bottom: 3rem;
}

.glossary-letter-anchor {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #8B7355;
  border-bottom: 2px solid #E0DCD7;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.glossary-terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.glossary-term-card {
  display: block;
  background: #fff;
  border: 1.5px solid #E0DCD7;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.glossary-term-card:hover {
  border-color: #8B7355;
  box-shadow: 0 2px 12px rgba(139, 115, 85, 0.1);
}

.glossary-term-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #222222;
  margin-bottom: 0.5rem;
}

.glossary-term-short {
  font-size: 0.875rem;
  color: #6B6B7B;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

/* ======================================
   GLOSSARY — single (term page)
   ====================================== */
.glossary-term-header {
  max-width: 760px;
}

.glossary-published-date {
  font-size: 0.8rem;
  color: #6B6B7B;
  margin-top: 0.75rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}

.glossary-short-def {
  font-size: 1.125rem;
  color: #6B6B7B;
  line-height: 1.7;
  font-style: italic;
  margin-top: 1rem;
  max-width: 640px;
}

.glossary-term-body {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.glossary-def-block {
  display: block;
}

.glossary-def-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #222222;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.glossary-perspective-block {
  border-left: 3px solid #8B7355;
  padding-left: 1.5rem;
}

/* ======================================
   GLOSSARY — related terms (helper PHP)
   ====================================== */
.glossary-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.glossary-related-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: #F0EDEA;
  border-radius: 5px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.glossary-related-card:hover {
  background: #E0DCD7;
}

.glossary-related-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #222222;
}

.glossary-related-short {
  font-size: 0.8125rem;
  color: #6B6B7B;
  line-height: 1.5;
}

/* ======================================
   RESOURCE — archive
   ====================================== */
.resource-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.resource-filter-btn {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: #6B6B7B;
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.resource-filter-btn:hover {
  border-color: #8B7355;
  color: #8B7355;
}

.resource-filter-btn.is-active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.resource-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}

.resource-card-cta {
  padding-top: 0.2rem;
}

@media (max-width: 640px) {
  .resource-card {
    grid-template-columns: 1fr;
  }
  .resource-card-cta {
    padding-top: 0;
  }
}
