/* ============================================================
   BDH Pharma — stylesheet
   ============================================================ */

:root {
  --navy: #152a52;
  --navy-dark: #0d1b38;
  --blue: #2b98d6;
  --blue-light: #5cc0ef;
  --blue-pale: #eaf6fd;
  --ink: #1c2333;
  --ink-soft: #4a5468;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f6f9fc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(21, 42, 82, 0.08);
  --shadow-sm: 0 4px 14px rgba(21, 42, 82, 0.06);
  --max-width: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

section { padding: 96px 0; }

.section-alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

h1, h2, h3, h4 {
  color: var(--navy);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
}

h2 {
  font-size: clamp(28px, 3.6vw, 38px);
}

h3 { font-size: 22px; }

.section-intro {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-intro p {
  color: var(--ink-soft);
  font-size: 18px;
  margin: 0;
}

p { margin: 0 0 16px; }

.lede {
  font-size: 20px;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--blue-pale);
  color: var(--navy);
}

.btn-ghost:hover {
  background: #dbeffb;
  transform: translateY(-2px);
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 42px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
}

.nav-links a:hover { color: var(--blue); text-decoration: none; }

.nav-cta { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 55%, #1b3f78 100%);
  color: var(--white);
  padding: 110px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 18%, rgba(92, 192, 239, 0.28), transparent 55%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-logo {
  background: var(--white);
  border-radius: 20px;
  padding: 34px 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.hero-logo img { width: 100%; height: auto; }

.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 18px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(32px, 4.4vw, 46px);
  margin-bottom: 22px;
}

.hero-mission {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 34px;
  max-width: 560px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Stat cards (Our Focus) ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0 56px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: 34px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 10px;
  line-height: 1.1;
}

.stat-card p {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.stat-source {
  display: block;
  font-size: 12.5px;
  color: #8993a8;
  line-height: 1.5;
}

.focus-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.focus-block h3 { margin-bottom: 14px; }

.focus-block ul { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.focus-block li { margin-bottom: 10px; }
.focus-block .source { font-size: 12.5px; color: #8993a8; }

.focus-statement {
  background: var(--blue-pale);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 32px;
  font-size: 18px;
  color: var(--navy);
  font-weight: 600;
}

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.team-photo {
  width: 100%;
  aspect-ratio: 4 / 4.1;
  object-fit: cover;
  background: var(--bg-alt);
}

.team-body { padding: 24px 24px 28px; }

.team-body h3 { margin-bottom: 4px; }

.team-title {
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.team-bio { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ---------- Pipeline ---------- */

.pipeline-diagram-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 56px;
  overflow-x: auto;
}

.pipeline-diagram-wrap img { min-width: 640px; }

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.pipeline-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.pipeline-card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-pale);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.pipeline-card p { color: var(--ink-soft); margin: 0; }

.funding-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.funding-block h3 { margin-bottom: 12px; }
.funding-block p { color: var(--ink-soft); margin-bottom: 20px; }

.grant-detail {
  display: block;
  background: var(--bg-alt);
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.grant-title {
  display: block;
  font-style: italic;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.grant-meta {
  display: block;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.science-block {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 24px;
}

.science-block h3 { color: var(--white); }
.science-block p { color: rgba(255, 255, 255, 0.85); }

.paper-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
}

.paper-link:hover {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.paper-link small {
  display: block;
  font-weight: 400;
  opacity: 0.8;
  font-size: 12.5px;
  margin-top: 2px;
}

.application-block {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 32px;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 { margin-bottom: 10px; }
.contact-info p { color: var(--ink-soft); }

.contact-detail {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}

.contact-detail .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-pale);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.contact-detail strong { display: block; color: var(--navy); font-size: 14px; }
.contact-detail span, .contact-detail a { color: var(--ink-soft); font-size: 15px; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

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

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-alt);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-note {
  font-size: 13px;
  color: #8993a8;
  margin-top: 4px;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 9px;
  font-size: 14px;
  background: var(--blue-pale);
  color: var(--navy);
}

.form-status.visible { display: block; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 700; }
.footer-logo img { height: 26px; width: auto; }

.footer-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.footer-links a:hover { color: var(--white); }

.footer-copy { font-size: 13px; color: rgba(255, 255, 255, 0.5); width: 100%; margin-top: 8px; }
.footer-copy a { color: rgba(255, 255, 255, 0.6); text-decoration: underline; text-underline-offset: 2px; }
.footer-copy a:hover { color: var(--white); }

/* ---------- Policy page (legal / long-form text) ---------- */

.policy-hero {
  background: var(--bg-alt);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}

.policy-hero .container { max-width: 780px; }

.policy-hero h1 { margin-bottom: 10px; }

.policy-meta { color: var(--ink-soft); font-size: 14.5px; }

.policy-body {
  padding: 56px 0 100px;
}

.policy-body .container {
  max-width: 780px;
}

.policy-body h2 {
  font-size: 21px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--navy);
  margin-top: 44px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.policy-body section:first-of-type h2 { margin-top: 0; border-top: none; padding-top: 0; }

.policy-body p {
  color: var(--ink-soft);
  font-size: 16px;
}

.policy-body ol,
.policy-body ul {
  color: var(--ink-soft);
  font-size: 16px;
  padding-left: 22px;
  margin: 0 0 16px;
}

.policy-body li { margin-bottom: 10px; }

.policy-body ol ol,
.policy-body ul ul,
.policy-body ol ul {
  margin-top: 10px;
}

.policy-body dl { margin: 0 0 16px; }
.policy-body dt {
  font-weight: 700;
  color: var(--navy);
  margin-top: 16px;
}
.policy-body dd {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.policy-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 24px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-logo { max-width: 380px; }
  .stat-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .pipeline-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--border);
    gap: 18px;
  }
}

@media (max-width: 600px) {
  section { padding: 64px 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
