/* Synergy BioResearch: site styles
   Colors are sampled from the logo and fonts are a system stack.
   Both are placeholders until Patrick confirms the official values:
   change them here and nothing else needs to move. */
:root {
  --navy: #123956;        /* wordmark navy */
  --navy-deep: #002647;   /* mark navy */
  --yellow: #FFC501;      /* mark gold, sampled; never as text on white */
  --gray: #545454;        /* "BIORESEARCH" gray */
  --ink: #1d2a36;         /* body text */
  --tint: #f2f5f8;        /* alternate section background */
  --line: #d8dee6;
  --white: #ffffff;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --narrow: 44rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --space: clamp(4rem, 9vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

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

h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2.25rem, 5.6vw, 4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: 1.1875rem; font-weight: 700; }
p { margin: 0 0 1rem; max-width: 66ch; }

a { color: var(--navy); }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow > * { max-width: var(--narrow); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--navy-deep); color: var(--white); padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Buttons and links */
.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  padding: 0.9rem 1.5rem;
  border-radius: 4px;
  line-height: 1.2;
}
.btn-primary { background: var(--yellow); color: var(--navy-deep); }
.btn-primary:hover { background: #ffd43d; }
.btn-small { padding: 0.6rem 1rem; font-size: 0.9375rem; }

.text-link {
  display: inline-block;
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}
.text-link:hover { text-decoration-color: var(--navy); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: relative; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand img { height: 2.25rem; width: auto; }
.nav { display: flex; align-items: center; gap: 1rem; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav-links { display: none; }
.nav .btn-small { display: none; }

.nav-menu { position: relative; }
.nav-menu summary {
  cursor: pointer; list-style: none; font-weight: 700; color: var(--navy);
  padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: 4px;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu ul {
  position: absolute; right: 0; top: calc(100% + 0.5rem);
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  min-width: 12rem; padding: 0.5rem 0;
}
.nav-menu a { display: block; padding: 0.6rem 1rem; text-decoration: none; font-weight: 600; }

@media (min-width: 72rem) {
  .nav-menu { display: none; }
  .nav-links { display: flex; gap: 1.75rem; }
  .nav-links a { text-decoration: none; font-weight: 600; color: var(--navy); }
  .nav-links a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }
  .nav .btn-small { display: inline-block; }
  .brand img { height: 2.75rem; }
}

/* Hero: the diagonal bands echo the slope of the logo's mark (about 33 degrees off vertical) */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(4rem, 10vw, 8rem); }
.hero-inner { position: relative; z-index: 1; }
.hero h1 { max-width: 16ch; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: var(--gray); max-width: 46ch; margin-bottom: 2rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }

.hero-mark { position: absolute; inset: 0 0 0 auto; width: 38%; pointer-events: none; }
.band { position: absolute; inset: 0; }
.band-navy { background: var(--navy-deep); clip-path: polygon(70% 0, 100% 0, 100% 100%, 0% 100%); }
.band-yellow { background: var(--yellow); clip-path: polygon(52% 0, 70% 0, 0% 100%, 0% 74%); }

@media (max-width: 63.99rem) {
  .hero-mark { width: 30%; opacity: 0.15; }
}
@media (max-width: 47.99rem) {
  .hero .hero-mark { display: none; }
}

/* Sections */
.section { padding: var(--space) 0; }
.section-tint { background: var(--tint); }
.section-head { margin-bottom: 2.5rem; }
.section-head p { font-size: 1.125rem; color: var(--gray); }

.proof, .offers, .steps { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; gap: 2rem; }
.proof li { padding-left: 1.25rem; border-left: 4px solid var(--yellow); }
.proof p, .offers p, .steps p { margin: 0; color: var(--ink); }
.note { font-weight: 600; color: var(--navy); margin-bottom: 1.5rem; }

.offers li { background: var(--white); padding: 1.75rem; border-top: 4px solid var(--navy); }
.offers .text-link { margin-top: 1rem; }

.steps { counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 3.25rem; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-deep); color: var(--yellow); font-weight: 800;
}

@media (min-width: 48rem) {
  .proof, .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .offers { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

/* Closing call to action */
.closing {
  position: relative; overflow: hidden;
  background: var(--navy-deep); color: var(--white);
  padding: var(--space) 0;
}
.closing h2 { color: var(--white); }
.closing p { color: #dbe4ee; margin-bottom: 2rem; }
.closing .wrap { position: relative; z-index: 1; }
.hero-mark-closing .band-navy { background: var(--navy); }
@media (max-width: 63.99rem) {
  .hero-mark-closing { opacity: 0.35; }
}

/* Footer: white, because the stopgap logo has an opaque white background and no reversed version exists */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 3rem 0 1.5rem; font-size: 0.9375rem; }
.footer-inner { display: grid; gap: 2rem; }
.footer-brand img { height: 2.5rem; width: auto; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--navy); }
.site-footer address { font-style: normal; color: var(--gray); }
.footer-legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--gray); }
.footer-legal p { margin: 0; }
@media (min-width: 48rem) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Numbered references (claims discipline: every clinical claim is cited) */
.ref { font-size: 0.7em; line-height: 0; margin-left: 0.1em; }
.ref a { text-decoration: none; font-weight: 700; }
.references-block { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.references-h { font-size: 0.8125rem; font-weight: 700; color: var(--gray); margin: 0.75rem 0 0.25rem; }
.references { margin: 0; padding-left: 1.25rem; font-size: 0.875rem; color: var(--gray); }
.references li { margin-bottom: 0.25rem; }
.references li:target { background: #fff3c4; }

/* Brief v2: two audiences */
.audience-links { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.6rem; color: var(--gray); }
.audience-links .text-link { margin-left: 0.35rem; }
.problem-grid { display: grid; gap: 2.5rem; margin-bottom: 1rem; }
.problem-grid h3 { font-size: 1rem; text-transform: none; color: var(--navy); }
.question { font-weight: 700; color: var(--navy); font-size: 1.125rem; }
@media (min-width: 48rem) {
  .problem-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}
