/* ============================================================
   Biopath Ltd — biopath.uk
   Hand-authored stylesheet. Design tokens as CSS custom props.
   ============================================================ */

:root {
  /* palette */
  --ink:        #0B1F2A;
  --ink-2:      #12303c;
  --teal:       #0EA5A4;
  --teal-700:   #0b7f7e;
  --green:      #22C55E;
  --paper:      #F7FAF9;
  --white:      #ffffff;
  --text:       #21343b;
  --muted:      #5c6f76;
  --border:     #E3ECEA;
  --grad:       linear-gradient(120deg, #0EA5A4 0%, #22C55E 100%);
  --grad-soft:  linear-gradient(120deg, rgba(14,165,164,.12), rgba(34,197,94,.12));

  /* type */
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* structure */
  --maxw: 1140px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11,31,42,.06), 0 4px 14px rgba(11,31,42,.05);
  --shadow-md: 0 8px 30px rgba(11,31,42,.10);
  --shadow-lg: 0 24px 60px rgba(11,31,42,.14);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.02em; }
h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }
p  { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal-700);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.lead { font-size: 1.12rem; color: var(--muted); margin: 0; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { --bg: transparent; color: #fff; background-image: var(--grad); box-shadow: 0 8px 22px rgba(14,165,164,.28); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--border); }
.btn--ghost:hover { background: var(--paper); border-color: #cfe0dd; }
.btn--light { --bg: #fff; --fg: var(--ink); }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; color: var(--ink); letter-spacing: -.02em; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .mark rect { rx: 10; }
.nav-menu { display: flex; align-items: center; gap: 22px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--font-display); font-weight: 500; font-size: .97rem;
  color: var(--ink); padding: 9px 14px; border-radius: 10px;
  transition: background .18s, color .18s;
}
.nav-links a:hover { background: var(--paper); }
.nav-links a.active { color: var(--teal-700); background: var(--grad-soft); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(34,197,94,.20), transparent 60%),
    radial-gradient(55% 60% at 8% 92%, rgba(14,165,164,.18), transparent 60%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 84px 0 90px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.7rem); }
.hero .lead { font-size: 1.2rem; max-width: 40ch; margin: 18px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tag { font-family: var(--font-display); font-weight: 500; font-size: .82rem; color: var(--teal-700); background: rgba(14,165,164,.10); border: 1px solid rgba(14,165,164,.22); padding: 6px 13px; border-radius: 999px; }
.hero-art { position: relative; }
.hero-art .art-card {
  background: #fff; border: 1px solid var(--border); border-radius: 24px;
  box-shadow: var(--shadow-lg); padding: 20px; overflow: hidden;
}
.hero-art img { border-radius: 14px; width: 100%; height: auto; }
.hero-badge {
  position: absolute; left: -14px; bottom: 26px; background: #fff;
  border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-md);
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
}
.hero-badge .dot { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #fff; }
.hero-badge b { font-family: var(--font-display); color: var(--ink); display: block; font-size: 1.05rem; }
.hero-badge span { font-size: .8rem; color: var(--muted); }

/* ---------- generic cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d3e5e2; }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--teal-700); margin-bottom: 18px;
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card--num .ico { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--teal-700); }

/* ---------- split (vision / mission / about) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.vm-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.vm-card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; margin-bottom: 14px; }
.vm-card h3 { font-size: 1.15rem; }
.vm-card p { color: var(--muted); margin: 0; }

/* ---------- stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 26px 16px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); }
.stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.3rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .95rem; font-weight: 500; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink);
  padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-q .chev { flex: none; width: 22px; height: 22px; color: var(--teal-700); transition: transform .3s var(--ease); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { color: var(--muted); padding: 0 22px 20px; margin: 0; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-family: var(--font-display); font-weight: 500; font-size: .85rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff;
  border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px; transition: border-color .18s, box-shadow .18s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14,165,164,.14); }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }

/* newsletter inline */
.subscribe { display: flex; gap: 10px; max-width: 460px; }
.subscribe input { flex: 1; font: inherit; border: 1px solid var(--border); border-radius: 999px; padding: 13px 18px; background: #fff; }
.subscribe input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14,165,164,.14); }

/* ---------- callout / contact strip ---------- */
.callout {
  position: relative; overflow: hidden; color: #fff; border-radius: 28px;
  background: var(--ink); padding: 56px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center;
}
.callout::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 120% at 100% 0, rgba(34,197,94,.4), transparent 55%), radial-gradient(60% 120% at 0 100%, rgba(14,165,164,.4), transparent 55%); opacity: .5; }
.callout > * { position: relative; z-index: 1; }
.callout h2 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.callout p { color: rgba(255,255,255,.82); margin: 0; }
.callout .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 66px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-family: var(--font-display); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-tag { max-width: 34ch; color: rgba(255,255,255,.62); }
.contact-list li { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 12px; }
.contact-list svg { width: 19px; height: 19px; color: var(--green); flex: none; margin-top: 3px; }
.contact-list a:hover { color: #fff; }
.site-footer .subscribe input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #fff; }
.site-footer .subscribe input::placeholder { color: rgba(255,255,255,.5); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 46px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: rgba(255,255,255,.55); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 60px 0 70px; }
  .hero-art { order: -1; max-width: 460px; }
  .split, .callout { grid-template-columns: 1fr; }
  .callout { padding: 40px; }
  .callout .actions { justify-content: flex-start; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .section { padding: 66px 0; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 16px 20px 22px; box-shadow: var(--shadow-md);
  }
  .site-header.open .nav-menu { display: flex; }
  .nav-menu .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-menu .nav-links a { padding: 13px 14px; font-size: 1.05rem; }
  .nav-menu .nav-cta .btn { width: 100%; margin-top: 6px; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .vm-grid, .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .subscribe { flex-direction: column; }
  .subscribe .btn { width: 100%; }
  .footer-bottom { flex-direction: column; }
}
