/* ===================================================================
   Pharmakon Medical Research — Site Styles
   A clean, professional, trustworthy theme for a clinical research org.
   =================================================================== */

:root {
  /* Brand palette — Pharmakon sage/olive green */
  --green-900: #46591c;   /* deep sage — hero/footer fills (white text) */
  --green-700: #5c7e2b;   /* primary buttons, links */
  --green-600: #6f9633;   /* accents, icons */
  --green-500: #8cb24e;   /* the logo sage — highlights/borders */
  --green-100: #dde9c4;
  --green-50:  #f1f6e7;

  --ink:       #1c2b24;
  --body:      #41514a;
  --muted:     #6b7c74;
  --line:      #e2e8e3;
  --bg:        #ffffff;
  --bg-soft:   #f6faf5;

  --gold:      #c9a24b;

  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(31, 61, 47, 0.08);
  --shadow-sm: 0 4px 14px rgba(31, 61, 47, 0.07);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --serif: "Georgia", "Times New Roman", serif;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--green { background: var(--green-900); color: #dfeee6; }
.section--green h2, .section--green h3 { color: #fff; }
.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem; font-weight: 700; color: var(--green-700);
  margin-bottom: 14px;
}
.section--green .eyebrow { color: var(--green-100); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-600); color: #fff; }
.btn--light { background: #fff; color: var(--green-900); }
.btn--light:hover { background: var(--green-50); }
.btn--ghost { background: transparent; color: var(--green-700); border-color: var(--green-700); }
.btn--ghost:hover { background: var(--green-700); color: #fff; }
.section--green .btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.section--green .btn--ghost:hover { background: #fff; color: var(--green-900); }
.hero .btn--ghost { color: #fff; border-color: #fff; }
.hero .btn--ghost:hover { background: #fff; color: var(--green-900); border-color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.center .btn-row { justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px; max-width: 1280px; margin: 0 auto; padding: 0 24px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.2rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--green-600), var(--green-900));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-family: var(--serif);
}
.brand small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.brand-logo { height: 52px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; flex-wrap: nowrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--body); font-weight: 500; font-size: .9rem; padding: 9px 9px; border-radius: 8px; white-space: nowrap;
}
.nav-links a:hover { background: var(--green-50); color: var(--green-900); text-decoration: none; }
.nav-links a.active { color: var(--green-900); font-weight: 700; }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px; width: 44px; height: 44px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, var(--green-900) 0%, var(--green-700) 60%, var(--green-600) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.12), transparent 45%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 96px; max-width: 880px; }
.hero h1 { color: #fff; margin-bottom: .3em; }
.hero p { font-size: 1.22rem; color: #e3f0e9; max-width: 640px; }
.hero .eyebrow { color: var(--green-100); }
.hero-sub {
  background: linear-gradient(120deg, var(--green-900), var(--green-700));
}

/* page hero (interior) */
.page-hero { background: linear-gradient(120deg, var(--green-900), var(--green-700)); color:#fff; position: relative; overflow: hidden; }
.page-hero .container { padding: 70px 24px; max-width: 820px; position: relative; z-index: 2; }

/* ---------- DNA helix decoration ---------- */
.helix { position: absolute; top: 0; bottom: 0; right: 0; width: 210px; z-index: 1; pointer-events: none; }
.helix svg { display: block; width: 100%; height: 100%; }
.helix .strand { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 2.5; stroke-linecap: round; }
.helix .rung { stroke: rgba(255,255,255,.16); stroke-width: 2; stroke-linecap: round; }
.helix .node { fill: rgba(255,255,255,.32); }
.helix-spin { animation: helixflow 11s linear infinite; }
@keyframes helixflow { from { transform: translateY(0); } to { transform: translateY(-132px); } }
@media (max-width: 700px) { .helix { width: 130px; opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .helix-spin { animation: none; } }

/* 3D helix (homepage hero) */
.helix3d { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; z-index: 1; pointer-events: none; }
.helix3d canvas { display: block; }
@media (max-width: 760px) { .helix3d { width: 64%; opacity: .55; } }
.page-hero h1 { color:#fff; margin-bottom:.2em; }
.page-hero p { color:#dceee5; font-size:1.15rem; margin-bottom:0; }
.page-hero .eyebrow { color: var(--green-100); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.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(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .ic {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700); margin-bottom: 18px;
}
.card .ic svg { width: 26px; height: 26px; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat { text-align: center; }
.stat .num { font-size: 2.6rem; font-weight: 800; color: #fff; line-height: 1; }
.stat .lbl { color: #bcdfce; font-size: .92rem; margin-top: 8px; }

/* split / media */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

/* checklist */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 8px 0 8px 36px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  width: 24px; height: 24px; border-radius: 50%; background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center; font-weight: 800; font-size: .85rem;
}

/* pills */
.pills { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; margin: 0; }
.pills li { background: var(--green-50); color: var(--green-900); border: 1px solid var(--line); padding: 9px 17px; border-radius: 999px; font-weight: 600; font-size: .92rem; }

/* study cards */
.study { display: flex; flex-direction: column; }
.study .tag {
  align-self: flex-start; background: var(--green-700); color: #fff; font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.study .meta { color: var(--muted); font-size: .9rem; margin-top: auto; padding-top: 14px; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-size: 1.08rem; font-weight: 600; color: var(--ink); padding: 22px 40px 22px 0;
  position: relative; font-family: inherit;
}
.faq-q::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--green-600); font-weight: 400; transition: transform .2s;
}
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding-bottom: 22px; margin: 0; color: var(--body); }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.info-line { display: flex; gap: 14px; margin-bottom: 22px; }
.info-line .ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; }
.info-line .ic svg { width: 20px; height: 20px; }
.info-line strong { color: var(--ink); display: block; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green-500); border-color: var(--green-500); }
.form-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }

/* ---------- Partner marquee (moving banner) ---------- */
.marquee-section { padding: 54px 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee-label { text-align: center; text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 30px; }
.marquee {
  overflow: hidden; position: relative; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 72px; width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  flex: 0 0 auto; display: flex; align-items: center; height: 52px;
}
.marquee-item img { max-height: 48px; width: auto; filter: grayscale(1); opacity: .65; transition: .25s ease; }
.marquee-item:hover img { filter: none; opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* note / callout */
.note {
  background: var(--green-50); border: 1px dashed var(--green-500); border-radius: var(--radius-sm);
  padding: 16px 20px; color: var(--green-900); font-size: .92rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #c9ddcf; padding: 64px 0 28px; }
.site-footer a { color: #c9ddcf; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand small { color: #cfe0c2; }
.footer-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 13px 18px; line-height: 0; }
.footer-logo img { height: 46px; width: auto; display: block; }
.footer-brand p { color: #a9c8b4; font-size: .95rem; max-width: 280px; margin-top: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .86rem; color: #91b29c; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(2,1fr); gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 20px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 12px; border-radius: 8px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { display: block; text-align: center; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .brand-logo { height: 34px; }
}
