/* =========================================================
   Rau Consulting: custom styles on top of Bootstrap 5.3
   Edit the tokens in :root to re-skin the whole site.
   ========================================================= */

:root {
  /* Palette */
  --ink:        #0F2A2E;   /* bioreactor green-black: dark sections, headings */
  --ink-soft:   #1C4046;   /* raised surfaces on dark */
  --paper:      #F4F7F7;   /* cool lab-bench white */
  --glass:      #DCE8E8;   /* vial glass: borders, tinted sections */
  --phenol:     #C72F4B;   /* culture-medium red: the single accent */
  --phenol-dk:  #A92540;
  --text:       #22373B;
  --muted:      #5A7074;

  /* Type */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body:    "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Hook into Bootstrap */
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--text);
  --bs-body-bg: var(--paper);
  --bs-link-color: var(--ink);
  --bs-link-hover-color: var(--phenol);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-size: 1.0625rem; line-height: 1.65; }

h1, h2, h3, .brand { font-family: var(--font-display); color: var(--ink); }
p { max-width: 68ch; }

/* ---------- Accessibility ---------- */
.skip-link { position: absolute; z-index: 2000; top: .5rem; left: .5rem; background: #fff; padding: .5rem 1rem; }
a:focus-visible, button:focus-visible, .form-control:focus-visible, .form-select:focus-visible {
  outline: 3px solid var(--phenol); outline-offset: 2px; box-shadow: none;
}
.section-dark a:focus-visible, .hero a:focus-visible, .site-nav a:focus-visible { outline-color: #fff; }

/* ---------- Buttons ---------- */
.btn-phenol {
  --bs-btn-color: #fff; --bs-btn-bg: var(--phenol); --bs-btn-border-color: var(--phenol);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--phenol-dk); --bs-btn-hover-border-color: var(--phenol-dk);
  --bs-btn-active-bg: var(--phenol-dk); --bs-btn-active-border-color: var(--phenol-dk);
  border-radius: 2px; font-weight: 500;
}
.btn-outline-light { border-radius: 2px; }

/* ---------- Navbar ---------- */
.site-nav { background: rgba(15, 42, 46, .96); backdrop-filter: blur(6px); padding-block: .75rem; }
.brand { font-size: 1.5rem; font-weight: 500; color: #fff; text-decoration: none; letter-spacing: .01em; }
.brand span { font-style: italic; color: var(--glass); }
.site-nav .nav-link { color: rgba(255,255,255,.82); font-size: .975rem; }
.site-nav .nav-link:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink); color: #fff;
  padding: 9.5rem 0 4.5rem;
}
.hero-title {
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  line-height: 1.02; font-weight: 500; letter-spacing: -.02em;
  color: #fff; margin-bottom: 1.5rem;
}
.hero-lead { font-size: 1.25rem; color: rgba(255,255,255,.82); max-width: 40rem; }

/* Pipeline */
.pipeline { border-top: 1px solid rgba(255,255,255,.2); padding-top: 1.5rem; }
.pipeline-caption { font-size: .9rem; color: var(--glass); margin-bottom: 1rem; }
.pipeline-list { counter-reset: stage; }
.pipeline-list li { position: relative; padding: 0 1rem 1.5rem 0; }
.pipeline-list li::before {            /* node on the line */
  content: ""; display: block; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--phenol); margin-bottom: 1rem; position: relative; z-index: 1;
}
.pipeline-list li::after {             /* connecting line */
  content: ""; position: absolute; top: 6px; left: 14px; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--phenol), rgba(199,47,75,.25));
  transform-origin: left; animation: draw 1.2s ease-out .2s both;
}
.pipeline-list li:last-child::after { display: none; }
.pipeline-list a { display: block; text-decoration: none; color: #fff; }
.pipeline-list a:hover .stage-name { color: #FF8CA0; }
.stage-name { display: block; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.25; transition: color .15s; }
.stage-note { display: block; font-size: .875rem; color: var(--glass); margin-top: .25rem; }
.pipeline-foot { font-size: .95rem; color: var(--glass); margin: .5rem 0 0; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.12; font-weight: 500; letter-spacing: -.01em; margin-bottom: 1rem; }
.section-intro { font-size: 1.15rem; color: var(--muted); }
.section-tint { background: var(--glass); }
.section-dark { background: var(--ink); color: rgba(255,255,255,.85); }
.section-dark .section-title, .section-dark h3 { color: #fff; }
.section-dark .section-intro { color: var(--glass); }
.section-dark a { color: #fff; }

/* ---------- Services (ruled index, not cards) ---------- */
.service { padding-block: 2.5rem; border-top: 1px solid var(--glass); margin: 0; }
.service:last-child { border-bottom: 1px solid var(--glass); }
.service h3 { font-size: 1.65rem; font-weight: 500; line-height: 1.2; margin-bottom: .35rem; }
.service-tag { color: var(--phenol-dk); font-size: .95rem; font-weight: 500; margin: 0; }
.deliverables { list-style: none; padding: 0; margin: 0; font-size: .975rem; }
.deliverables li { padding: .45rem 0 .45rem 1.1rem; position: relative; border-bottom: 1px solid var(--glass); }
.deliverables li:last-child { border-bottom: 0; }
.deliverables li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 6px; height: 6px; background: var(--phenol); border-radius: 50%; }

/* ---------- Cell & gene therapy ---------- */
.cgt-row { padding: 1.1rem 0; border-top: 1px solid rgba(255,255,255,.18); display: block; }
.cgt-row:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.cgt-row dt { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: #fff; }
.cgt-row dd { margin: .25rem 0 0; color: var(--glass); font-size: .99rem; }

/* ---------- Approach (a real sequence, so numbered) ---------- */
.steps { counter-reset: step; border-left: 2px solid var(--glass); padding-left: 2rem; }
.steps li { position: relative; padding-bottom: 2rem; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: calc(-2rem - 15px); top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: .85rem; font-weight: 600;
  display: grid; place-items: center;
}
.steps h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: .25rem; }
.steps p { margin: 0; }

/* ---------- Clients ---------- */
.client-h { font-size: 1.3rem; font-weight: 500; padding-top: 1rem; border-top: 3px solid var(--ink); }

/* ---------- Team ---------- */
.person h3 { font-size: 1.35rem; font-weight: 500; margin-bottom: 0; }
.person-photo { aspect-ratio: 4 / 5; background: var(--glass); margin-bottom: 1rem; }
.person-role { color: var(--phenol-dk); font-weight: 500; font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-details a { text-decoration: underline; text-underline-offset: 3px; }
.contact-form .form-label { color: #fff; font-weight: 500; font-size: .95rem; }
.contact-form .form-control, .contact-form .form-select { border-radius: 2px; padding: .7rem .85rem; }
.contact-form .invalid-feedback { color: #FFB3C0; }

/* ---------- Footer ---------- */
.site-footer { background: #0A1D20; color: var(--glass); padding: 3.5rem 0 2rem; }
.site-footer .brand { font-size: 1.35rem; }
.site-footer a { color: var(--glass); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer li { margin-bottom: .35rem; }
.footer-h { color: #fff; font-weight: 600; font-size: .95rem; margin-bottom: .6rem; }
.copyright { margin-top: 2.5rem !important; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); color: #8FA8AC; }

/* ---------- Small screens ---------- */
@media (max-width: 767.98px) {
  .hero { padding-top: 7.5rem; }
  .section { padding: 4rem 0; }
  .pipeline-list li::after { display: none; }
  .pipeline-list li::before { margin-bottom: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pipeline-list li::after { animation: none; }
}

/* =========================================================
   Service pages
   ========================================================= */
.site-nav .dropdown-menu { border-radius: 2px; background: var(--ink-soft); border: 0; padding: .5rem 0; }
.site-nav .dropdown-item { padding: .5rem 1.1rem; font-size: .975rem; white-space: normal; }
.site-nav .dropdown-item.active, .site-nav .dropdown-item:active { background: var(--phenol); }
@media (min-width: 992px) { .site-nav .dropdown-menu { min-width: 19rem; } }

.more-link { display: inline-block; margin-top: .75rem; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--phenol); }
.more-link:hover { color: var(--phenol-dk); }

.page-hero { background: var(--ink); color: #fff; padding: 8rem 0 4rem; }
.crumbs { --bs-breadcrumb-divider-color: var(--glass); font-size: .9rem; margin-bottom: 2rem; }
.crumbs a { color: var(--glass); }
.crumbs a:hover { color: #fff; }
.crumbs .active { color: #fff; }
.page-tag { color: #FF8CA0; font-weight: 500; margin-bottom: .5rem; }
.page-title { color: #fff; font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.05; font-weight: 500; letter-spacing: -.015em; margin-bottom: 1.25rem; }

.lead-p { font-size: 1.25rem; color: var(--ink); }

.glance { border-top: 3px solid var(--ink); padding-top: 1rem; }
.glance h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: .75rem; }

.offer { padding-block: 1.75rem; border-top: 1px solid #b9cccc; }
.offer:last-child { border-bottom: 1px solid #b9cccc; }
.offer h3 { font-size: 1.4rem; font-weight: 500; margin: 0; }
.offer p { margin: 0; }

.when-list { list-style: none; padding: 0; margin: 0; }
.when-list li { position: relative; padding: .9rem 0 .9rem 1.5rem; border-top: 1px solid var(--glass); }
.when-list li:last-child { border-bottom: 1px solid var(--glass); }
.when-list li::before { content: ""; position: absolute; left: 0; top: 1.5rem; width: 8px; height: 8px; border-radius: 50%; background: var(--phenol); }

.faq { --bs-accordion-bg: transparent; --bs-accordion-border-color: #b9cccc; --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-active-bg: #fff; --bs-accordion-active-color: var(--ink); --bs-accordion-border-radius: 0; --bs-accordion-inner-border-radius: 0; }
.faq .accordion-button { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; color: var(--ink); }
.faq .accordion-button:focus-visible { outline: 3px solid var(--phenol); outline-offset: -3px; }

.related { display: block; height: 100%; padding: 1.25rem 0 0; border-top: 3px solid var(--ink); text-decoration: none; color: var(--text); }
.related h3 { font-size: 1.3rem; font-weight: 500; }
.related p { color: var(--muted); font-size: .95rem; margin: 0; }
.related:hover h3 { color: var(--phenol-dk); text-decoration: underline; text-underline-offset: 4px; }

.cta-band { background: var(--ink); color: #fff; margin-top: 6rem; }
.cta-band .section-title { color: #fff; }
.cta-band .section-intro { color: var(--glass); }

@media (max-width: 767.98px) { .page-hero { padding-top: 6.5rem; } .cta-band { margin-top: 4rem; } }
