/* LifeSci Index Partners — Global Stylesheet */
/* Bloomberg meets Biotech: data-forward, science-credible */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0B1D3A;
  --navy-light: #122B52;
  --teal: #00B4D8;
  --teal-dark: #0096B4;
  --green: #2DC653;
  --green-dark: #24A344;
  --bg: #F7F8FC;
  --white: #FFFFFF;
  --text: #1A1A2E;
  --text-light: #6B7280;
  --border: #E5E7EB;
  --card-shadow: 0 4px 24px rgba(11,29,58,0.08);
  --card-shadow-hover: 0 8px 32px rgba(11,29,58,0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === NAVIGATION === */
.site-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(11,29,58,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 72px;
}

.nav-logo img { height: 40px; width: auto; }
.nav-logo span {
  color: var(--white); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.75); font-size: 0.9rem; font-weight: 500;
  padding: 8px 16px; border-radius: var(--radius-sm);
  transition: all var(--transition); text-decoration: none;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white); background: rgba(255,255,255,0.08);
}

.hamburger {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--white);
  margin: 5px 0; transition: all var(--transition); border-radius: 2px;
}

/* === HERO === */
.hero {
  position: relative; min-height: 560px;
  display: flex; align-items: center;
  background: var(--navy); overflow: hidden;
  padding: 80px 0;
}

.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.25;
}

.hero-content { position: relative; z-index: 2; }

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800; color: var(--white);
  line-height: 1.15; letter-spacing: -0.03em;
  max-width: 720px; margin-bottom: 20px;
}

.hero h1 .accent { color: var(--teal); }

.hero p.subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.7); max-width: 600px;
  line-height: 1.7; margin-bottom: 36px;
}

/* === PAGE HERO (inner pages) === */
.page-hero {
  background: var(--navy); padding: 64px 0 48px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; color: var(--white);
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.page-hero p {
  color: rgba(255,255,255,0.65); font-size: 1.05rem;
  max-width: 600px; margin: 0 auto;
}

/* === SECTIONS === */
.section { padding: 80px 0; }
.section--dark { background: var(--navy); color: var(--white); }
.section--alt { background: var(--white); }
.section--overlay {
  position: relative; background: var(--navy); color: var(--white);
}
.section--overlay .section-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.15;
}
.section--overlay .container { position: relative; z-index: 2; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px;
}
.section-header p {
  color: var(--text-light); font-size: 1.05rem; max-width: 560px; margin: 0 auto;
}
.section--dark .section-header p,
.section--overlay .section-header p { color: rgba(255,255,255,0.65); }

/* === INDEX CARDS (Homepage) === */
.index-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

.index-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--card-shadow); overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none; color: var(--text);
  display: flex; flex-direction: column;
}
.index-card:hover {
  box-shadow: var(--card-shadow-hover); transform: translateY(-4px);
}

.index-card-img {
  height: 200px; background-size: cover; background-position: center;
  position: relative;
}
.index-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,29,58,0.6), transparent);
}

.index-card-badge {
  position: absolute; bottom: 16px; left: 16px; z-index: 2;
  background: var(--teal); color: var(--white);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 4px 12px; border-radius: 4px;
}
.index-card-badge--green { background: var(--green); }

.index-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.index-card-body h3 {
  font-size: 1.2rem; font-weight: 700; margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.index-card-body .card-subtitle {
  font-size: 0.85rem; color: var(--teal); font-weight: 600;
  margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.03em;
}
.index-card-body .card-subtitle--green { color: var(--green); }
.index-card-body p { font-size: 0.92rem; color: var(--text-light); line-height: 1.6; margin-bottom: 20px; }

.stat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.stat-pill {
  background: var(--bg); padding: 6px 14px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 600; color: var(--navy);
  white-space: nowrap;
}

/* === WHY BIOTECH COLUMNS === */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.why-card h3 {
  font-size: 1.15rem; font-weight: 700; margin-bottom: 12px;
  color: var(--white);
}
.why-card h3 .icon { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.why-card p { font-size: 0.92rem; color: rgba(255,255,255,0.7); line-height: 1.65; }

/* === QUOTES === */
.quotes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }

.quote-card {
  border-left: 3px solid var(--teal); padding-left: 24px;
}
.quote-card blockquote {
  font-size: 1.05rem; font-style: italic; color: rgba(255,255,255,0.85);
  line-height: 1.7; margin-bottom: 16px;
}
.quote-card cite {
  display: block; font-style: normal; font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.quote-card cite strong { color: var(--teal); font-weight: 600; }

/* === CHART SECTION === */
.chart-wrapper {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--card-shadow); padding: 32px;
  overflow-x: auto;
}
.chart-wrapper canvas { max-width: 100%; }
.chart-disclaimer {
  font-size: 0.75rem; color: var(--text-light);
  margin-top: 20px; line-height: 1.5; text-align: center;
}

/* === COMPARISON TABLE === */
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.comparison-table th {
  background: var(--navy); color: var(--white); font-weight: 600;
  padding: 14px 20px; text-align: left;
}
.comparison-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.comparison-table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.comparison-table th.col-teal { background: var(--teal); }
.comparison-table th.col-green { background: var(--green); }
.comparison-table td {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: rgba(0,180,216,0.04); }
.comparison-table .row-label { font-weight: 600; color: var(--navy); white-space: nowrap; }

/* === HOLDINGS TABLE === */
.holdings-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.holdings-table th {
  background: var(--navy); color: var(--white); font-weight: 600;
  padding: 12px 16px; text-align: left;
}
.holdings-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.holdings-table tr:hover td { background: rgba(0,180,216,0.04); }
.holdings-table .ticker { font-weight: 700; color: var(--teal); font-family: 'Inter', monospace; }

/* === METHODOLOGY STEPS === */
.method-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.method-table th {
  background: var(--navy); color: var(--white); font-weight: 600;
  padding: 14px 20px; text-align: left;
}
.method-table td { padding: 14px 20px; border-bottom: 1px solid var(--border); vertical-align: top; }
.method-table .row-label { font-weight: 600; color: var(--navy); width: 220px; }
.method-table tr:hover td { background: rgba(0,180,216,0.04); }

/* === ANNOUNCEMENTS === */
.announcement-list { list-style: none; }
.announcement-item {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--card-shadow); padding: 24px 28px;
  margin-bottom: 16px; display: flex; gap: 24px; align-items: flex-start;
  transition: box-shadow var(--transition);
}
.announcement-item:hover { box-shadow: var(--card-shadow-hover); }
.announcement-date {
  font-size: 0.8rem; font-weight: 600; color: var(--teal);
  white-space: nowrap; min-width: 100px; padding-top: 2px;
}
.announcement-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.announcement-body p { font-size: 0.88rem; color: var(--text-light); }

/* === CONTACT === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.contact-form label {
  display: block; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 6px; color: var(--navy);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 0.9rem;
  transition: border-color var(--transition); background: var(--white);
  margin-bottom: 20px;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,180,216,0.12);
}
.contact-form textarea { min-height: 120px; resize: vertical; }

.contact-info-card {
  background: var(--navy); color: var(--white); padding: 36px;
  border-radius: var(--radius);
}
.contact-info-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.contact-info-item { margin-bottom: 20px; }
.contact-info-item .label {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5); margin-bottom: 4px;
}
.contact-info-item .value { font-size: 0.95rem; color: var(--white); }
.contact-info-item .value a { color: var(--teal); }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.9rem; border: none; cursor: pointer;
  transition: all var(--transition); text-decoration: none;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-white-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-white-outline:hover { background: rgba(255,255,255,0.1); color: var(--white); }

/* === FOOTER === */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,0.5);
  padding: 48px 0 32px; font-size: 0.82rem;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; margin-bottom: 32px;
}
.footer-brand p { max-width: 320px; line-height: 1.6; margin-top: 12px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px; text-align: center; line-height: 1.7;
}
.footer-bottom .disclaimer { font-size: 0.72rem; margin-top: 8px; max-width: 800px; margin-left: auto; margin-right: auto; }

/* === CTA BANNER === */
.cta-banner { background: var(--teal); padding: 56px 0; text-align: center; }
.cta-banner h2 { font-size: 1.6rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* === DETAIL PAGE === */
.detail-header { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.detail-badge {
  background: var(--teal); color: var(--white);
  font-size: 0.8rem; font-weight: 700; padding: 6px 16px;
  border-radius: 4px; letter-spacing: 0.04em;
}
.detail-badge--green { background: var(--green); }

.detail-stats { display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 40px; }
.detail-stat {
  text-align: center; padding: 20px 28px;
  background: var(--white); border-radius: var(--radius-sm);
  box-shadow: var(--card-shadow);
}
.detail-stat .stat-value {
  font-size: 1.6rem; font-weight: 800; color: var(--navy); display: block;
}
.detail-stat .stat-label { font-size: 0.78rem; color: var(--text-light); margin-top: 4px; }

.detail-prose { max-width: 800px; }
.detail-prose h2 { font-size: 1.3rem; font-weight: 700; margin: 32px 0 12px; color: var(--navy); }
.detail-prose p { color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }

/* === PDF DOWNLOAD === */
.pdf-download {
  background: var(--white); border: 2px dashed var(--border);
  border-radius: var(--radius); padding: 32px; text-align: center;
  margin-top: 32px;
}
.pdf-download p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 12px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .index-cards { gap: 24px; }
  .why-grid { gap: 28px; }
}

@media (max-width: 900px) {
  .index-cards { grid-template-columns: 1fr; }
  .quotes-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 24px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--navy); padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; }
  .hamburger { display: block; }

  .hero { min-height: 440px; padding: 60px 0; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 56px 0; }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .detail-stats { gap: 16px; }
  .detail-stat { padding: 16px 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-inner { padding: 0 16px; }
  .stat-pills { gap: 6px; }
  .stat-pill { font-size: 0.72rem; padding: 5px 10px; }
  .announcement-item { flex-direction: column; gap: 8px; }
  .comparison-table { font-size: 0.8rem; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }
}
