/* ===========================================================
   ADR Solutions — minimal Jekyll theme
   Palette: forest green / sage / cream / white
   =========================================================== */

:root {
  --green-900: #143421;
  --green-700: #1f4d2c;
  --green-600: #2c6b3f;
  --green-500: #3f8657;
  --green-300: #7ba05b;
  --green-100: #d6e3cf;
  --cream:     #faf6ec;
  --cream-2:   #f3eedf;
  --paper:     #fdfcf8;
  --ink:       #1a1f1a;
  --ink-2:     #4a5249;
  --ink-3:     #7a8278;
  --line:      #e6e1d3;
  --shadow:    0 1px 2px rgba(20,52,33,.05), 0 8px 24px rgba(20,52,33,.06);
  --radius:    14px;
  --radius-sm: 8px;
  --maxw:      1180px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--green-700);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
a:hover { color: var(--green-900); border-bottom-color: currentColor; }

h1, h2, h3, h4 {
  color: var(--green-900);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--ink-2); }
p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 1rem;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header / nav ---------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 252, 248, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo img { height: 44px; width: auto; }
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.93rem;
  color: var(--ink);
  font-weight: 500;
  border: none;
}
.nav-links a.active { color: var(--green-700); }
.nav-links .btn { margin-left: .5rem; }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .5rem;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--green-900);
  margin: 5px 0;
  transition: transform .2s, opacity .2s;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.25rem;
    gap: 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .15s, color .15s;
}
.btn-primary {
  background: var(--green-700);
  color: #fff;
}
.btn-primary:hover {
  background: var(--green-900);
  color: #fff;
  border-bottom: 1px solid transparent;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(20,52,33,.18);
}
.btn-ghost {
  background: transparent;
  color: var(--green-700);
  border: 1px solid var(--green-700);
}
.btn-ghost:hover {
  background: var(--green-700);
  color: #fff;
  border-bottom: 1px solid var(--green-700);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
  color: var(--green-700);
  border: none;
}
.arrow-link::after { content: "→"; transition: transform .15s; }
.arrow-link:hover::after { transform: translateX(3px); }

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

.hero {
  position: relative;
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 2.5rem 0 2rem;
}
.hero h1 { color: var(--green-900); }
.hero h1 .accent { color: var(--green-600); }
.hero p.lead {
  font-size: 1.18rem;
  color: var(--ink-2);
  margin: 1.25rem 0 2rem;
  max-width: 36ch;
}
.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; }

.hero-right-stack {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  width: 100%;
}
.hero-circles-wrap {
  position: relative;
  aspect-ratio: 5 / 1;
  width: 100%;
}
.hero-circles-wrap canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.hero-canvas-wrap {
  position: relative;
  aspect-ratio: 1.35 / 1;
  border-radius: var(--radius);
  background: radial-gradient(circle at 30% 20%, #18391f 0%, #0d2415 70%, #081c10 100%);
  box-shadow:
    0 30px 60px -25px rgba(20,52,33,.45),
    0 8px 24px -10px rgba(20,52,33,.25),
    inset 0 0 0 1px rgba(123,160,91,.18);
  overflow: hidden;
}
.hero-canvas-wrap canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.hero-canvas-label {
  position: absolute;
  left: 1rem; bottom: .35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .68rem;
  letter-spacing: .14em;
  color: rgba(214, 227, 207, 0.65);
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
}
.hero-canvas-label .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7ba05b;
  margin-right: .5rem;
  animation: pulse 1.6s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes pulse {
  0%, 100% { opacity: .4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 0; }
  .hero-right-stack { max-width: 520px; margin: 0 auto; }
}

/* --- Sections -------------------------------------------- */

section { padding: 5rem 0; }
section.tight { padding: 3.5rem 0; }
section.alt   { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.dark  {
  background: linear-gradient(180deg, var(--green-900), #0e2616);
  color: var(--cream);
}
section.dark h2, section.dark h3 { color: var(--cream); }
section.dark p { color: rgba(250,246,236,.78); }
section.dark .eyebrow { color: var(--green-300); }

.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* --- Card grids ------------------------------------------ */

.grid { display: grid; gap: 1.5rem; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .grid.cols-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.card-icon {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 76px;
  height: 76px;
  display: block;
  color: var(--green-600);
  transition: color .15s, transform .15s;
  margin: 0;
}
.card > .eyebrow,
.card > h3 { padding-right: 84px; }
.card:hover .card-icon { color: var(--green-700); transform: translateY(-1px); }
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--green-300);
}
.card h3 { color: var(--green-900); margin-top: .25rem; }
.card p  { color: var(--ink-2); }
.card .arrow-link { margin-top: auto; padding-top: 1rem; }

section.dark .card {
  background: rgba(255,255,255,.04);
  border-color: rgba(123,160,91,.2);
}
section.dark .card h3 { color: var(--cream); }
section.dark .card p { color: rgba(250,246,236,.72); }
section.dark .card:hover { border-color: var(--green-300); }

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

.team-grid { gap: 1.75rem; }
.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.team-card .role {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
  font-weight: 700;
  margin-bottom: .35rem;
}
.team-card h3 { margin-bottom: .5rem; font-size: 1.1rem; }
.team-card p { font-size: 0.95rem; }

/* Team name + degrees split */
.team-grid h3 { font-size: 1.3rem; }
.team-grid h3 .name {
  display: block;
  white-space: nowrap;
}
.team-grid h3 .degrees {
  display: block;
  font-size: 0.8em;
  font-weight: 600;
  margin-top: 0.2rem;
  opacity: 0.82;
}

/* --- Founder bios (vertical cards) ----------------------- */

.bio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.bio-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.bio-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--green-300);
}
.bio-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--cream-2), var(--green-100));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-300);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.bio-img svg { width: 56px; height: 56px; }
.bio-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bio-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.bio-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-900);
  line-height: 1.2;
}
.bio-degrees {
  font-size: 0.9rem;
  color: var(--ink-2);
  margin-top: .15rem;
}
.bio-role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-top: .55rem;
  padding-bottom: .9rem;
  margin-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}
.bio-text {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0;
}
.bio-text .hl {
  color: var(--green-700);
  font-weight: 600;
}
@media (max-width: 900px) {
  .bio-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .bio-img { aspect-ratio: 16 / 7; }
}

/* --- Page hero (sub-pages) ------------------------------- */

.page-hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  padding: 4.5rem 0 3.5rem;
}
.page-hero h1 { margin-top: .25rem; }
.page-hero p.lead { color: var(--ink-2); max-width: 60ch; }
.page-hero .ctas { margin-top: 1.5rem; }

/* --- Bullet lists ---------------------------------------- */

.checklist { list-style: none; padding: 0; margin: 1rem 0 0; }
.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: .6rem;
  color: var(--ink-2);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--green-500);
  border-bottom: 2px solid var(--green-500);
  transform: rotate(-45deg);
}

/* --- Steps ----------------------------------------------- */

.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.25rem;
  padding: 1rem 0;
  align-items: start;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}
.step h3 { margin-bottom: .25rem; }
.step p { margin: 0; }

/* --- Assay catalog --------------------------------------- */

.assay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.assay-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.assay-tag {
  align-self: flex-start;
  background: var(--green-700);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: .38rem .85rem;
  border-radius: 999px;
}
.assay-species {
  font-style: italic;
  color: var(--ink-2);
  font-size: 1.02rem;
  margin-top: -.4rem;
}
.assay-meta-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: .45rem;
}
.assay-stages, .assay-phenos {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.stage {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-700);
  background: var(--cream-2);
  border: 1px solid var(--line);
  padding: .18rem .55rem;
  border-radius: 999px;
}
.chip {
  background: var(--green-100);
  color: var(--green-900);
  font-size: 0.72rem;
  font-weight: 600;
  padding: .18rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--green-300);
  height: fit-content;
}
.assay-card--soon {
  opacity: 0.78;
  border-style: dashed;
}
.assay-soon {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--cream-2);
  border: 1px solid var(--line);
  padding: .22rem .6rem;
  border-radius: 999px;
}
.assay-soon-note {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--ink-3);
}
@media (max-width: 900px) {
  .assay-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .assay-grid { grid-template-columns: 1fr; }
}

/* --- Callout / notice ------------------------------------- */

.notice {
  background: var(--cream-2);
  border-left: 3px solid var(--green-500);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.96rem;
  color: var(--ink-2);
}
.notice a { font-weight: 600; }

/* --- CTA band -------------------------------------------- */

.cta-band {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: var(--cream);
  border-radius: var(--radius);
  padding: 3rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
/* CTA band appended to the end of a content section */
.cta-band.cta-tail { margin-top: 3rem; }
.cta-band::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,160,91,.35), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { color: var(--cream); margin: 0; max-width: 22ch; }
.cta-band p { color: rgba(250,246,236,.85); margin: .5rem 0 0; }
.cta-band .btn-primary {
  background: var(--cream);
  color: var(--green-900);
}
.cta-band .btn-primary:hover { background: #fff; color: var(--green-900); }

/* --- Forms ----------------------------------------------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-card .eyebrow { margin-bottom: .25rem; }
.form-card h2 { font-size: 1.5rem; }

form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { form .row { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1rem 0 .35rem;
}
label .req { color: var(--green-600); }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: .7rem .85rem;
  font: inherit;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(63,134,87,.18);
}
textarea { min-height: 120px; resize: vertical; }

/* Honeypot — visible to bots, hidden from users and screen readers */
.hp-website {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none;
}
.form-status {
  margin-top: .75rem;
  font-size: .9rem;
  color: var(--ink-2);
  min-height: 1.25em;
}
.form-status.is-error { color: #b34040; }
.form-success {
  background: var(--cream-2);
  border: 1px solid var(--green-300);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--green-900);
  line-height: 1.5;
}

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

.site-footer {
  background: var(--green-900);
  color: rgba(250,246,236,.78);
  padding: 1.75rem 0 1.25rem;
}
.site-footer a { color: var(--cream); border: none; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-grid h4 {
  font-size: 0.78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-300);
  margin-bottom: 1rem;
  font-weight: 700;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5rem; font-size: 0.95rem; }
.footer-brand p { color: rgba(250,246,236,.7); font-size: .95rem; margin-top: .75rem; }
.footer-brand .footer-logo {
  height: 36px;
  filter: brightness(0) invert(1) opacity(.95);
}
.footer-bottom {
  border-top: 1px solid rgba(123,160,91,.2);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: rgba(250,246,236,.55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Small utilities ------------------------------------- */

.muted { color: var(--ink-3); }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
