/* ============================================================
   RenuviaMD® Research — Clinical Navy theme
   ============================================================ */

:root {
  /* Backgrounds */
  --bg-primary:    #0A1628;
  --bg-surface:    #0F2138;
  --bg-border:     #16304D;

  /* Text */
  --text-primary:   #F1F5F9;
  --text-secondary: #94A3B8;

  /* Accents */
  --accent-teal:  #2DD4BF;
  --accent-blue:  #38BDF8;

  /* Status */
  --status-active:    #22C55E;
  --status-startup:   #FBBF24;
  --status-completed: #94A3B8;
  --status-alert:     #F87171;

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Radius */
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Layout */
  --maxw: 1140px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; color: var(--text-secondary); }

a { color: var(--accent-teal); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 6vw; }

.eyebrow {
  display: inline-block;
  color: var(--accent-teal);
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  margin-bottom: 1rem;
}

.text-secondary { color: var(--text-secondary); }
.lead { font-size: 1.15rem; color: var(--text-secondary); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .8rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary {
  background: var(--accent-teal);
  color: #04342C;
  border: 1px solid var(--accent-teal);
}
.btn--primary:hover { background: #2ce0ca; }

.btn--secondary {
  background: transparent;
  color: var(--accent-blue);
  border: 0.5px solid var(--bg-border);
}
.btn--secondary:hover { border-color: var(--accent-blue); }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bg-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 6vw;
  max-width: var(--maxw);
  margin: 0 auto;
}
.nav__brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}
.nav__brand:hover { text-decoration: none; }
.nav__brand .reg { color: var(--accent-teal); }

.nav__links { display: flex; gap: 1.5rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: var(--text-secondary);
  font-size: .92rem;
  font-weight: 500;
}
.nav__links a:hover, .nav__links a.active { color: var(--text-primary); text-decoration: none; }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1.3rem;
  padding: .3rem .6rem;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--bg-border);
    padding: 0 6vw;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease, padding .25s ease;
  }
  .nav__links.open { max-height: 400px; padding: .5rem 6vw 1rem; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: .75rem 0; width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  background: url('/assets/img/research_hero_clinical_trials.png') center/cover no-repeat;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,22,40,0.97) 0%, rgba(10,22,40,0.93) 48%, rgba(10,22,40,0.5) 66%, rgba(10,22,40,0) 84%);
}
.hero__content { position: relative; max-width: 560px; padding: 0 6vw; }
.hero h1 { margin-bottom: 1rem; }
.hero .lead { color: #cbd5e1; }

@media (max-width: 768px) {
  .hero::before { background: rgba(10,22,40,0.72); }
  .hero__content { max-width: 100%; text-align: left; }
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section--surface { background: var(--bg-surface); border-top: 1px solid var(--bg-border); border-bottom: 1px solid var(--bg-border); }
.section__head { max-width: 65ch; margin-bottom: 2.5rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--accent-teal); transform: translateY(-2px); }
.card h3 { color: var(--text-primary); }
.card p:last-child { margin-bottom: 0; }
.card__icon { font-size: 1.5rem; color: var(--accent-blue); margin-bottom: .75rem; }

/* ---------- Metrics ---------- */
.metrics { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 2rem; }
.metric__value { font-size: 2rem; font-weight: 700; color: var(--accent-blue); }
.metric__label { font-size: .9rem; color: var(--text-secondary); }

/* ---------- Status badges ---------- */
.badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .6rem;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.badge--active    { color: var(--status-active); }
.badge--startup   { color: var(--status-startup); }
.badge--completed { color: var(--status-completed); }

/* ---------- Tier blocks ---------- */
.tier { margin-bottom: 2rem; }
.tier__label {
  display: flex; align-items: center; gap: .75rem;
  font-size: 1.1rem; font-weight: 700; color: var(--text-primary);
  margin-bottom: 1rem;
}
.tier__tag { font-size: .75rem; font-weight: 600; color: var(--accent-teal); text-transform: uppercase; letter-spacing: .08em; }
.taglist { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.taglist li {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: .5rem .9rem;
  font-size: .9rem;
  color: var(--text-secondary);
}

/* ---------- Definition / profile list ---------- */
.deflist { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.deflist li {
  display: flex; gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--bg-border);
}
.deflist li:last-child { border-bottom: none; }
.deflist dt { min-width: 180px; font-weight: 600; color: var(--text-primary); }
.deflist dd { margin: 0; color: var(--text-secondary); }
@media (max-width: 600px) { .deflist li { flex-direction: column; gap: .25rem; } }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  background: linear-gradient(135deg, #0F2138 0%, #16304D 100%);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
}
.cta-band h2 { margin-bottom: .75rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Forms ---------- */
.form { max-width: 640px; margin-top: 2rem; }
.form__group { margin-bottom: 1.25rem; }
.form label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .4rem; color: var(--text-primary); }
.form input, .form select, .form textarea {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: .75rem .9rem;
  font-family: inherit;
  font-size: .95rem;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--accent-teal);
}
.form textarea { min-height: 140px; resize: vertical; }
.form__note { font-size: .82rem; color: var(--text-secondary); margin-top: 1rem; }

/* ---------- Notice / guardrail callout ---------- */
.notice {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-left: 3px solid var(--accent-blue);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
}
.notice p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--bg-border);
  padding: 3rem 0 2rem;
  color: var(--text-secondary);
  font-size: .88rem;
}
.site-footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.site-footer a { color: var(--text-secondary); }
.site-footer a:hover { color: var(--text-primary); }
.site-footer__brand { font-weight: 700; color: var(--text-primary); font-size: 1rem; margin-bottom: .5rem; }
.site-footer__legal { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--bg-border); font-size: .8rem; line-height: 1.7; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.hide { display: none; }
