/* =====================================================
   ORCA — Global Design System
   Observatório de Reflexão, Crítica e Análise
   ===================================================== */

/* ----- Google Fonts Import ----- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=League+Spartan:wght@300;400;500;600;700&family=Work+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

/* ----- CSS Variables / Design Tokens ----- */
:root {
  /* Paleta Institucional */
  --navy:        #162226;
  --beige:       #bfb7a8;
  --beige-dark:  #a68f72;
  --red:         #bf4d34;
  --white:       #f2f2f2;

  /* Paleta Acessória */
  --blue:        #3b67bf;
  --navy-deep:   #141a26;
  --blue-mid:    #4a88d9;
  --blue-light:  #63b0f2;
  --off-white:   #f2f2f0;

  /* Semântica */
  --bg:          var(--white);
  --text-primary: var(--navy);
  --text-muted:  #6b7a7e;
  --accent:      var(--red);
  --border:      #ddd8cf;
  --surface:     #ffffff;

  /* Tipografia */
  --font-display:  'Bebas Neue', sans-serif;
  --font-heading:  'League Spartan', sans-serif;
  --font-body:     'Work Sans', sans-serif;

  /* Escala tipográfica */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-md:    1.125rem;
  --text-lg:    1.25rem;
  --text-xl:    1.5rem;
  --text-2xl:   2rem;
  --text-3xl:   2.75rem;
  --text-4xl:   3.5rem;
  --text-5xl:   5rem;

  /* Espaçamento */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-24:  6rem;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;
  --nav-height: 68px;

  /* Bordas & sombras */
  --radius-sm:  2px;
  --radius-md:  4px;
  --radius-lg:  8px;
  --shadow-sm:  0 1px 3px rgba(22,34,38,0.08);
  --shadow-md:  0 4px 16px rgba(22,34,38,0.1);
  --shadow-lg:  0 12px 40px rgba(22,34,38,0.14);

  /* Transições */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --duration:   200ms;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ----- Tipografia Global ----- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.display {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

p {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-primary);
}

.text-muted {
  color: var(--text-muted);
}

/* ----- Layout Utilitários ----- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding: var(--space-16) 0;
}

/* ----- Tag / Categoria Label ----- */
.tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  padding: 0;
}

.tag--bordered {
  border: 1px solid currentColor;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* ----- Botões ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
}

.btn--primary:hover {
  background: var(--red);
  border-color: var(--red);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}

.btn--red {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}

.btn--red:hover {
  background: #a33d29;
  border-color: #a33d29;
}

/* ----- Divisor com acento ----- */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-8) 0;
}

.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ----- Section Header ----- */
.section-header {
  margin-bottom: var(--space-8);
  border-left: 3px solid var(--red);
  padding-left: var(--space-4);
}

.section-header__eyebrow {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-2);
}

.section-header__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  letter-spacing: 0.03em;
  color: var(--navy);
}

/* ----- Card base ----- */
.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* ----- Scrollbar ----- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--beige-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy); }

/* ----- Seleção de texto ----- */
::selection {
  background: var(--navy);
  color: var(--white);
}

/* =====================================================
   SHARE BUTTON
   ===================================================== */

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--navy);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.share-btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.share-btn--icon-only {
  padding: 6px;
  border: none;
  margin-left: auto;
  flex-shrink: 0;
}

.share-btn--icon-only:hover {
  background: var(--navy);
  color: var(--white);
}

.share-btn--copied {
  background: var(--red) !important;
  color: var(--white) !important;
  border-color: var(--red) !important;
}

/* ----- Responsividade base ----- */
@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .container {
    padding: 0 var(--space-4);
  }

  .section {
    padding: var(--space-12) 0;
  }
}