/* ============================================================
   TheraTrials Oncology — Sistema de Design
   Concept 18 · Orbital Elegance
   ============================================================ */

:root {
  /* Brand colors */
  --graphite: #0E0F12;
  --graphite-2: #14161B;
  --graphite-3: #1B1E25;
  --graphite-4: #252932;
  --off-white: #F5F6F7;
  --amber: #FF8400;
  --amber-glow: #FFA640;
  --amber-soft: rgba(255, 132, 0, 0.12);
  --amber-strong: rgba(255, 132, 0, 0.85);
  --teal: #0EA5B7;
  --teal-glow: #2BBED1;
  --teal-soft: rgba(14, 165, 183, 0.12);
  --stone: #8E949C;
  --stone-2: #5C616A;

  /* Functional */
  --border-soft: rgba(143, 148, 156, 0.18);
  --border-mid: rgba(143, 148, 156, 0.35);
  --success: #34D399;
  --success-soft: rgba(52, 211, 153, 0.12);
  --warn: #FBBF24;
  --warn-soft: rgba(251, 191, 36, 0.14);

  /* Tipografia */
  --font-sans: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --maxw: 1280px;

  /* Sombras / glow */
  --glow-amber: 0 0 24px rgba(255, 132, 0, 0.15);
  --glow-teal: 0 0 24px rgba(14, 165, 183, 0.15);
}

/* ============================================================
   Reset / Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--graphite);
  color: var(--off-white);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-glow); }
button { font-family: inherit; cursor: pointer; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--graphite-2); }
::-webkit-scrollbar-thumb { background: var(--graphite-4); border-radius: 5px; border: 2px solid var(--graphite-2); }
::-webkit-scrollbar-thumb:hover { background: var(--stone-2); }

/* ============================================================
   Background ornamentos (grid sutil + glow orbital)
   ============================================================ */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 132, 0, 0.12), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 25%, rgba(14, 165, 183, 0.06), transparent 65%),
    radial-gradient(ellipse 70% 40% at 15% 70%, rgba(255, 132, 0, 0.05), transparent 70%);
  pointer-events: none;
  z-index: -2;
}

/* ============================================================
   Tipografia
   ============================================================ */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
h4 { font-size: 1rem; font-weight: 600; }

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
  display: inline-block;
  max-width: 100%;
}
@media (max-width: 480px) {
  .eyebrow { letter-spacing: 0.08em; font-size: 0.62rem; }
}

.subtitle {
  font-size: 1.1rem;
  color: var(--stone);
  font-weight: 300;
  letter-spacing: 0.005em;
}

.tagline {
  font-size: 0.875rem;
  color: var(--amber);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.text-amber { color: var(--amber); }
.text-teal { color: var(--teal); }
.text-stone { color: var(--stone); }
.text-off-white { color: var(--off-white); }
.text-mono { font-family: var(--font-mono); }

/* Wordmark TheraTrials Oncology — fiel à logo atualizada */
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 0.95;
}
.wordmark-main {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  color: var(--off-white);
  font-weight: 700;
}
.wordmark-sub {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  color: var(--amber);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: 0;
}

/* ============================================================
   Layout / containers
   ============================================================ */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 1.5rem; }

section { padding: 5rem 0; }
section.compact { padding: 3rem 0; }

.divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  margin: 2rem auto;
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 15, 18, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  /* PWA iOS · empurra o conteudo abaixo da status bar (notch/Dynamic Island) */
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  gap: 1.25rem;
  max-width: 1520px;            /* mais largo que --maxw: os 12 itens do nav cabem no desktop */
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--off-white);
}
.brand-logo { width: 42px; height: 42px; flex-shrink: 0; border-radius: 8px; }
.brand-text { display: flex; flex-direction: row; align-items: baseline; gap: 6px; line-height: 1; }
.brand-name { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; color: var(--off-white); }
.brand-sub { font-size: 1.15rem; letter-spacing: -0.02em; color: var(--amber); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 0.1rem; }
.nav a {
  color: var(--stone);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
  letter-spacing: 0.01em;
  line-height: 1.18;
  white-space: nowrap;            /* itens sempre em 1 linha -> espacamento uniforme */
}
.nav a:hover { color: var(--off-white); background: rgba(143, 148, 156, 0.08); }
.nav a.active { color: var(--amber); background: var(--amber-soft); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-mid);
  color: var(--off-white);
  padding: 0.5rem 0.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  line-height: 0;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-toggle:hover { border-color: var(--amber); color: var(--amber); }

/* ── Navegação premium: vira drawer suspenso abaixo de 1420px (laptops + tablets + celular).
      Acima disso, os 12 itens cabem em UMA linha com espacamento uniforme (white-space: nowrap). ── */
@media (max-width: 1420px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-header .container { gap: 1rem; position: relative; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0; right: 0;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(17, 19, 24, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
    max-height: 78dvh;
    overflow-y: auto;
    animation: navDrop 0.22s ease;
  }
  .nav.open { display: grid; }
  .nav a {
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid transparent;
    line-height: 1.2;
  }
  .nav a:hover,
  .nav a.active {
    color: var(--amber);
    background: rgba(255, 132, 0, 0.08);
    border-color: rgba(255, 132, 0, 0.22);
  }
  .nav .lang-toggle {
    grid-column: 1 / -1;
    justify-content: center;
    margin: 0.35rem 0 0;
    padding: 0.7rem;
    font-size: 0.85rem;
  }
}
@media (max-width: 560px) {
  .nav { grid-template-columns: 1fr; }
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--amber);
  color: var(--graphite);
  border-color: var(--amber);
}
.btn-primary:hover {
  background: var(--amber-glow);
  border-color: var(--amber-glow);
  box-shadow: var(--glow-amber);
  color: var(--graphite);
}
.btn-secondary {
  background: transparent;
  color: var(--off-white);
  border-color: var(--border-mid);
}
.btn-secondary:hover {
  background: rgba(143, 148, 156, 0.08);
  border-color: var(--stone);
  color: var(--off-white);
}
.btn-ghost {
  background: transparent;
  color: var(--amber);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--amber-glow); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--graphite-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.25s ease;
}
.card:hover {
  border-color: var(--border-mid);
  background: var(--graphite-3);
}
.card-glow:hover {
  border-color: rgba(255, 132, 0, 0.4);
  box-shadow: var(--glow-amber);
}

.card-pillar {
  text-align: left;
  position: relative;
  overflow: hidden;
}
.card-pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 0;
  background: var(--amber);
  transition: height 0.3s ease;
}
.card-pillar:hover::before { height: 100%; }

/* Stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.stat-card {
  background: var(--graphite-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.stat-value {
  font-size: 2rem;
  font-weight: 300;
  color: var(--off-white);
  letter-spacing: -0.02em;
  font-feature-settings: 'tnum';
  line-height: 1;
}
.stat-suffix { font-size: 0.85rem; color: var(--stone); margin-top: 0.25rem; }

/* ============================================================
   Hero — composição limpa (orbital + wordmark + subtítulo)
   ============================================================ */
.hero {
  position: relative;
  padding: 4rem 0 5rem;
  text-align: center;
  overflow: hidden;
}

/* Orbital sem fundo (logo-circular.png) — funde no fundo escuro do site */
.hero-orbit {
  position: relative;
  width: clamp(200px, 28vw, 320px);
  margin: 0 auto 2rem;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 0 60px rgba(255, 132, 0, 0.25));
}
.hero-orbit img {
  width: 100%;
  height: auto;
  display: block;
}

/* Wordmark recriado com Outfit Bold (fiel ao mockup) */
.hero-wordmark {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  z-index: 2;
}
.hero-thera { color: var(--off-white); }
.hero-onco {
  color: var(--amber);
  text-shadow: 0 0 40px rgba(255, 132, 0, 0.3);
}

/* Subtítulo descritivo */
.hero-sub {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--stone);
  font-weight: 400;
  line-height: 1.55;
}

/* Tagline em três blocos */
.hero-tagline {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.25rem;
  font-size: 0.92rem;
  color: var(--off-white);
  font-weight: 500;
  letter-spacing: 0.005em;
  margin: 0 auto 2.5rem;
}
.hero-tagline span:first-child { color: var(--amber); }
.hero-tagline span:nth-child(2) { color: var(--off-white); }
.hero-tagline span:nth-child(3) { color: var(--teal); }


.hero-tags {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  background: var(--amber-soft);
  border: 1px solid rgba(255, 132, 0, 0.25);
  border-radius: 100px;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  color: var(--amber);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.hero-tags::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
  animation: pulse-soft 2s infinite;
}

.hero-subtitle {
  max-width: 720px;
  margin: 1.5rem auto 0;
  font-size: 1.05rem;
  color: var(--stone);
  line-height: 1.65;
  font-weight: 300;
}

.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* ============================================================
   Section helpers
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 { color: var(--off-white); }
.section-header .subtitle { max-width: 620px; margin: 0.75rem auto 0; }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   Concept (4 pilares orbital)
   ============================================================ */
.concept-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.concept-item {
  text-align: left;
}
.concept-icon {
  width: 56px; height: 56px;
  margin-bottom: 1rem;
  color: var(--amber);
}
.concept-icon.teal { color: var(--teal); }
.concept-title {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.concept-title.teal { color: var(--teal); }
.concept-text { color: var(--stone); font-size: 0.92rem; line-height: 1.6; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  color: var(--stone);
  font-size: 0.85rem;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 240px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid .footer-col h4 {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-grid .footer-col a { display: block; color: var(--stone); padding: 0.25rem 0; }
.footer-grid .footer-col a:hover { color: var(--amber); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid var(--border-soft); flex-wrap: wrap; gap: 1rem; font-size: 0.75rem; color: var(--stone-2); }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes pulse-soft {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}
@keyframes orbit-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade { animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ============================================================
   Utilities
   ============================================================ */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

/* Categoria dots (database e mais) */
.cat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.cat-lupsma_prostata { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.cat-ra223_prostata { background: #C084FC; box-shadow: 0 0 8px #C084FC; }
.cat-net_gep { background: #10B981; box-shadow: 0 0 8px #10B981; }
.cat-lupsma_ccrcc { background: #38BDF8; box-shadow: 0 0 8px #38BDF8; }
.cat-hepatobiliar { background: #FBBF24; box-shadow: 0 0 8px #FBBF24; }
.cat-novos_psma { background: #F87171; box-shadow: 0 0 8px #F87171; }
.cat-ppgl { background: #EC4899; box-shadow: 0 0 8px #EC4899; }
.cat-neuroblastoma { background: #8B5CF6; box-shadow: 0 0 8px #8B5CF6; }
.cat-prostata_contexto { background: var(--stone); box-shadow: 0 0 8px var(--stone); }

/* Phase badges */
.phase-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid;
}
.phase-3 { background: rgba(52, 211, 153, 0.12); color: #6EE7B7; border-color: rgba(52, 211, 153, 0.3); }
.phase-2 { background: rgba(96, 165, 250, 0.12); color: #93C5FD; border-color: rgba(96, 165, 250, 0.3); }
.phase-1 { background: rgba(192, 132, 252, 0.12); color: #DDB4F9; border-color: rgba(192, 132, 252, 0.3); }
.phase-other { background: rgba(251, 191, 36, 0.12); color: #FCD34D; border-color: rgba(251, 191, 36, 0.3); }

/* Status badges */
.status-pub { background: var(--success-soft); color: var(--success); border: 1px solid rgba(52, 211, 153, 0.3); padding: 0.15rem 0.5rem; border-radius: 100px; font-size: 0.65rem; font-weight: 500; }
.status-ongoing { background: var(--warn-soft); color: var(--warn); border: 1px solid rgba(251, 191, 36, 0.3); padding: 0.15rem 0.5rem; border-radius: 100px; font-size: 0.65rem; font-weight: 500; }

/* Decorative */
.preserve-newlines { white-space: pre-line; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* superscript alinhamento isótopo (177Lu, 223Ra, 90Y etc) */
sup {
  font-size: 0.62em;
  line-height: 0;
  vertical-align: super;
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
  position: relative;
  top: -0.05em;
}

/* ── Language toggle (i18n) — compartilhado entre páginas ── */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.7rem; border-radius: 8px;
  border: 1px solid var(--border-soft, rgba(143,148,156,0.18));
  background: var(--graphite-3, #1B1E25);
  color: var(--stone, #8E949C); font-family: 'Inter', sans-serif; font-size: 0.75rem;
  font-weight: 600; cursor: pointer; transition: all 0.2s; margin-left: 0.5rem;
}
.lang-toggle:hover { border-color: var(--amber, #FF8400); color: var(--amber, #FF8400); }
.lang-toggle .lang-label { font-size: 0.72rem; letter-spacing: 0.03em; }
