/* ===== KCLEAGENICS MEDICAL INC. — Shared Stylesheet ===== */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;0,900;1,400&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --red:        #9b1c2e;
  --red-dark:   #7a1523;
  --red-light:  #f9eced;
  --navy:       #1a2a3a;
  --gray-900:   #1f2937;
  --gray-700:   #374151;
  --gray-500:   #6b7280;
  --gray-300:   #d1d5db;
  --gray-200:   #e5e7eb;
  --gray-100:   #f3f4f6;
  --gray-50:    #f8f9fa;
  --white:      #ffffff;
  --gold:       #c9922a;
  --gold-light: #fdf6ec;
  --teal:       #2a7a8c;
  --font-serif: 'Merriweather', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --max-width:  1140px;
  --radius:     4px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-900);
  background: var(--white);
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.25; color: var(--gray-900); }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--red); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.section-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 0.75rem;
  display: block;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  padding: 6px 0;
  font-family: var(--font-sans);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: #fff; text-decoration: underline; }
.top-bar-badges { display: flex; gap: 16px; flex-wrap: wrap; }
.top-bar-badge {
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 2px;
  padding: 1px 8px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

/* ===== HEADER / NAV ===== */
header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}
.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}
.logo-mark {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--red);
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  line-height: 1;
}
.logo:hover { text-decoration: none; }

nav { display: flex; align-items: center; gap: 4px; }
nav a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  padding: 6px 11px;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
nav a:hover { color: var(--red); background: var(--red-light); text-decoration: none; }
nav a.active { color: var(--red); border-bottom: 2px solid var(--red); border-radius: 0; }
.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  border-radius: var(--radius) !important;
  padding: 7px 16px !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--red-dark) !important; text-decoration: none !important; }

/* ===== HERO ===== */
.hero {
  background: var(--white);
  border-bottom: 4px solid var(--red);
  padding: 72px 0 64px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.hero-eyebrow-line {
  width: 32px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  flex-shrink: 0;
}
.hero-eyebrow-text {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.hero h1 { margin-bottom: 20px; }
.hero-lead {
  font-size: 1.1rem;
  color: var(--gray-700);
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--red-dark); text-decoration: none; color: var(--white); }
.btn-outline {
  display: inline-block;
  border: 2px solid var(--red);
  color: var(--red);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s;
}
.btn-outline:hover { background: var(--red); color: var(--white); text-decoration: none; }

.hero-stat-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 32px;
}
.hero-stat-card h3 { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-500); margin-bottom: 20px; }
.stat-row { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-serif); font-size: 2rem; font-weight: 900; color: var(--red); line-height: 1; }
.stat-label { font-size: 0.72rem; color: var(--gray-500); margin-top: 4px; }
.hero-quote {
  border-top: 1px solid var(--gray-200);
  padding-top: 20px;
  margin-top: 4px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 14px 0;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--gray-700);
  font-weight: 500;
}
.trust-icon { color: var(--red); font-size: 0.9rem; }

/* ===== SECTION BASE ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--gray-50); }
.section-header { margin-bottom: 48px; }
.section-header .section-label { margin-bottom: 8px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--gray-700); max-width: 620px; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0 auto; }

/* ===== CARD GRID ===== */
.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: 24px; }
.card-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-light);
  border-radius: 2px;
  padding: 2px 8px;
  margin-bottom: 12px;
}
.card h3 { font-size: 1.05rem; margin-bottom: 10px; line-height: 1.35; }
.card p { font-size: 0.88rem; color: var(--gray-700); }
.card-meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--gray-500);
}
.card-meta a { color: var(--red); font-weight: 600; font-size: 0.8rem; }

/* ===== PILLARS / VALUES ===== */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--gray-200); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.pillar { background: var(--white); padding: 32px 24px; }
.pillar-icon { font-size: 1.6rem; margin-bottom: 12px; }
.pillar h3 { font-size: 1rem; margin-bottom: 8px; }
.pillar p { font-size: 0.86rem; color: var(--gray-700); }

/* ===== TRIAL STATUS BADGES ===== */
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  padding: 2px 8px;
}
.badge-recruiting { background: #d1fae5; color: #065f46; }
.badge-development { background: #fef3c7; color: #92400e; }
.badge-ongoing { background: #dbeafe; color: #1e40af; }
.badge-completed { background: #f3f4f6; color: #374151; }

/* ===== TRIAL CARD ===== */
.trial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}
.trial-card:last-child { margin-bottom: 0; }
.trial-id { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: var(--gray-500); text-transform: uppercase; margin-bottom: 6px; }
.trial-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.trial-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font-size: 0.8rem; color: var(--gray-600); align-items: center; }
.trial-meta-item { display: flex; align-items: center; gap: 5px; }

/* ===== QUOTE / CALLOUT ===== */
.callout {
  background: var(--red-light);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 40px 0;
}
.callout blockquote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gray-900);
  line-height: 1.65;
  margin-bottom: 12px;
}
.callout cite { font-size: 0.8rem; color: var(--gray-500); font-style: normal; }

/* ===== ARTICLE CARD (Insights) ===== */
.article-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.article-card:hover { box-shadow: var(--shadow-md); }
.article-img {
  background: var(--gray-100);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  font-size: 2rem;
  flex-shrink: 0;
}
.article-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.article-tag { margin-bottom: 10px; }
.article-body h3 { font-size: 1rem; margin-bottom: 8px; line-height: 1.4; flex: 1; }
.article-body p { font-size: 0.84rem; color: var(--gray-700); }
.article-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: var(--gray-500);
}

/* ===== PUBLICATION ===== */
.pub {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.pub-journal {
  background: var(--red);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 4px;
}
.pub-body {}
.pub-body h3 { font-size: 0.95rem; margin-bottom: 6px; }
.pub-body p { font-size: 0.82rem; color: var(--gray-700); }

/* ===== CONTACT FORM ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(155,28,46,0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== SIDE INFO PANEL ===== */
.info-panel {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
}
.info-panel h3 { font-size: 1rem; margin-bottom: 16px; }
.info-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.86rem;
  color: var(--gray-700);
}
.info-row-icon { color: var(--red); flex-shrink: 0; margin-top: 2px; }

/* ===== NEWSLETTER ===== */
.newsletter {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.newsletter h2 { color: var(--white); margin-bottom: 12px; }
.newsletter p { color: rgba(255,255,255,0.75); margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }
.newsletter-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.newsletter-form input {
  flex: 1;
  padding: 11px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font-sans);
}
.newsletter-form input:focus { outline: 2px solid var(--red); }
.newsletter-form button {
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 11px 22px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.newsletter-form button:hover { background: var(--red-dark); }

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 28px;
  font-size: 0.84rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 240px 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo-mark { color: var(--white); font-size: 1.2rem; }
.footer-brand .logo-sub { color: rgba(255,255,255,0.45); }
.footer-brand p { margin-top: 14px; font-size: 0.82rem; line-height: 1.6; }
.footer-col h4 { color: var(--white); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; font-family: var(--font-sans); }
.footer-col a { display: block; color: rgba(255,255,255,0.65); margin-bottom: 8px; font-size: 0.83rem; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 52px 0 44px;
}
.page-hero-inner { max-width: 700px; }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { font-size: 1.05rem; color: var(--gray-700); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-bottom: 14px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.breadcrumb a { color: var(--red); }
.breadcrumb-sep { color: var(--gray-300); }

/* ===== SIDEBAR LAYOUT ===== */
.sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--gray-200); }
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--red);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--red);
}
.timeline-year { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; color: var(--red); text-transform: uppercase; margin-bottom: 4px; }
.timeline-item h3 { font-size: 1rem; margin-bottom: 6px; }
.timeline-item p { font-size: 0.86rem; color: var(--gray-700); }

/* ===== METHODOLOGY LIST ===== */
.method-list { list-style: none; }
.method-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9rem;
}
.method-list li:last-child { border-bottom: none; }
.method-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 1px;
}
.method-text strong { display: block; margin-bottom: 2px; color: var(--gray-900); }
.method-text span { color: var(--gray-700); }

/* ===== FEATURED ARTICLE ===== */
.featured-article {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}
.featured-article-body { padding: 36px 36px 36px 0; }
.featured-article-body:first-child { padding: 36px; }
.featured-article-img {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--gray-300);
}

/* ===== UTILITY ===== */
.text-red { color: var(--red); }
.text-muted { color: var(--gray-500); }
.text-small { font-size: 0.82rem; }
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 40px 0; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stat-card { display: none; }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sidebar-layout { grid-template-columns: 1fr; }
  .featured-article { grid-template-columns: 1fr; }
  .featured-article-img { min-height: 200px; }
  .featured-article-body { padding: 28px; }
}
@media (max-width: 600px) {
  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  nav { gap: 2px; }
  nav a { padding: 6px 10px; font-size: 0.8rem; }
  .newsletter-form { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
