/* Global Trial Consultants — marketing site
   Palette from the Website Expansion Strategy doc:
   navy #17324D · blue #2D6E9E · teal #2A8C8C · tints #EEF4F7 / #F7FAFC / #EAF5F3
*/

:root {
  --navy: #17324d;
  --navy-900: #0f2338;
  --blue: #2d6e9e;
  --blue-600: #255d86;
  --teal: #2a8c8c;
  --teal-700: #217272;
  --ink: #1c2b39;
  --muted: #566573;
  --line: #dbe4ea;
  --tint: #eef4f7;
  --tint-2: #f7fafc;
  --tint-teal: #eaf5f3;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(23, 50, 77, .06), 0 12px 32px rgba(23, 50, 77, .08);
  --shadow-sm: 0 1px 2px rgba(23, 50, 77, .06), 0 6px 16px rgba(23, 50, 77, .06);
  --container: 1140px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-600); }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.15; color: var(--navy); letter-spacing: -0.01em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.container.center, .center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--navy); color: #fff; border: 1px solid var(--navy);
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
  line-height: 1;
}
.btn:hover { background: var(--navy-900); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--teal { background: var(--teal); border-color: var(--teal); }
.btn--teal:hover { background: var(--teal-700); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); }

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600;
  color: var(--teal); margin: 0 0 14px;
}
.eyebrow a { color: inherit; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand__logo { width: auto; height: 44px; }
.primary-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.primary-nav a:hover { color: var(--navy); }
.primary-nav a.is-active { color: var(--navy); border-bottom-color: var(--teal); }
.primary-nav__cta a { color: #fff; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #0b1f33;
  color: #fff;
  padding: 104px 0 96px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background: #0b1f33 url("/img/neuron-bg.jpg") center right / cover no-repeat;
  transform: scale(1.1);
  animation: heroDrift 34s ease-in-out infinite alternate;
  will-change: transform;
}
.hero__net {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: .85;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(97deg,
      rgba(9, 26, 43, .93) 0%,
      rgba(9, 26, 43, .82) 34%,
      rgba(9, 26, 43, .45) 64%,
      rgba(9, 26, 43, .30) 100%),
    linear-gradient(180deg, rgba(9, 26, 43, .55) 0%, rgba(9, 26, 43, 0) 22%, rgba(9, 26, 43, 0) 74%, rgba(9, 26, 43, .55) 100%);
}
.hero__inner { position: relative; z-index: 3; }

.hero .eyebrow { color: #7ad3d3; }
.hero__title { font-size: clamp(2.6rem, 6vw, 4rem); margin: 0 0 22px; color: #fff; }
.hero__title .accent { color: #6fd0d0; }
.hero__lede { font-size: 1.16rem; max-width: 640px; color: rgba(255, 255, 255, .82); margin: 0 0 20px; }
.hero__areas { font-weight: 600; color: #eaf4f4; font-size: .95rem; margin: 0 0 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Buttons sit on a dark photo here — flip them light. */
.hero .btn { background: #fff; color: var(--navy); border-color: #fff; }
.hero .btn:hover { background: #e6efef; }
.hero .btn--ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .55); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, .16); }

@keyframes heroDrift {
  0%   { transform: scale(1.10) translate3d(0, 0, 0); }
  100% { transform: scale(1.20) translate3d(-2.5%, -2%, 0); }
}

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy); }
.section__title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0 0 16px; }
.section__lede { color: var(--muted); font-size: 1.08rem; max-width: 640px; margin: 0 0 34px; }

.page-hero {
  background: linear-gradient(180deg, var(--tint), #fff);
  padding: 68px 0 52px; border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); margin: 0 0 18px; }
.page-hero__lede { font-size: 1.14rem; color: var(--muted); max-width: 680px; margin: 0; }
.page-hero--navy { background: linear-gradient(180deg, #e7eef4, #fff); }
.page-hero--teal { background: linear-gradient(180deg, var(--tint-teal), #fff); }
.page-hero--blue { background: linear-gradient(180deg, #e6f0f7, #fff); }
.page-hero--teal .eyebrow { color: var(--teal-700); }

/* ---------- connect diagram ---------- */
.connect__diagram {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin-top: 8px;
}
.connect__node {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); text-align: center;
}
.connect__node h3 { margin: 0 0 6px; font-size: 1.12rem; }
.connect__node p { margin: 0; color: var(--muted); font-size: .95rem; }
.connect__link { display: flex; align-items: center; justify-content: center; position: relative; min-width: 96px; }
.connect__link::before, .connect__link::after {
  content: ""; position: absolute; top: 50%; width: 26px; height: 2px; background: var(--teal);
}
.connect__link::before { left: 0; }
.connect__link::after { right: 0; }
.connect__hub {
  font-family: var(--font-serif); font-weight: 600; background: var(--navy); color: #fff;
  width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
}

/* ---------- area cards ---------- */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.area-card {
  display: block; text-decoration: none; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .12s ease;
}
.area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.area-card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.area-card p { margin: 0 0 16px; color: var(--muted); font-size: .95rem; }
.area-card__more { font-weight: 600; color: var(--blue-600); font-size: .9rem; }
.area-card--navy { border-top-color: var(--navy); }
.area-card--teal { border-top-color: var(--teal); }
.area-card--teal .area-card__more { color: var(--teal-700); }

/* ---------- area detail list ---------- */
.area-detail-list { display: grid; gap: 20px; }
.area-detail {
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--blue);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
}
.area-detail--navy { border-left-color: var(--navy); }
.area-detail--teal { border-left-color: var(--teal); }
.area-detail__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.area-detail__head h2 { font-size: 1.4rem; margin: 0; }
.area-detail__link { font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.area-detail__summary { color: var(--muted); margin: 10px 0 16px; }

.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li {
  background: var(--tint); border: 1px solid var(--line); color: var(--navy);
  padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 500;
}
.tag-list--lg { margin-bottom: 40px; }
.tag-list--lg li { font-size: .95rem; padding: 8px 15px; }

/* ---------- flow ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: none; }
.flow__step {
  background: var(--tint-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: relative;
}
.flow__num { font-family: var(--font-serif); color: var(--teal); font-size: 1.5rem; display: block; margin-bottom: 6px; }
.flow__label { font-weight: 600; color: var(--navy); }

/* ---------- pitch ---------- */
.pitch__quote {
  font-family: var(--font-serif); font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.4;
  color: var(--navy); margin: 0; border-left: 4px solid var(--teal); padding-left: 26px; max-width: 900px;
}
.pitch__quote--light { color: #fff; border-left-color: var(--teal); }

/* ---------- entry points ---------- */
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.entry-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm);
  background: var(--tint);
}
.entry-card--physician { background: var(--tint-teal); }
.entry-card__audience { text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; font-weight: 700; color: var(--navy); margin: 0 0 10px; }
.entry-card h3 { margin: 0 0 12px; font-size: 1.35rem; }
.entry-card p { color: var(--muted); margin: 0 0 20px; }

/* ---------- feature list ---------- */
.feature-list { display: grid; gap: 8px; }
.feature { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }
.feature__num { font-family: var(--font-serif); font-size: 1.6rem; color: var(--teal); }
.feature h2 { font-size: 1.3rem; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); }

/* ---------- mini grid ---------- */
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.mini-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.mini-card--plain { box-shadow: none; background: var(--tint-2); }
.mini-card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.mini-card p { margin: 0; color: var(--muted); font-size: .96rem; }

.check-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li { padding-left: 30px; position: relative; color: var(--ink); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--teal);
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--teal);
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.inline-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.prose h2 { font-size: 1.3rem; margin: 32px 0 10px; }
.prose p { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--blue-600)); color: #fff; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 54px 0; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 8px; font-size: 1.8rem; }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); max-width: 520px; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: 320px 1fr; gap: 48px; }
.contact-info h2 { font-size: 1.3rem; }
.contact-info dl { margin: 0; }
.contact-info dt { font-weight: 700; color: var(--navy); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-top: 20px; }
.contact-info dd { margin: 4px 0 0; color: var(--muted); }
.contact-info dd span { display: block; }

.contact-form { display: grid; gap: 18px; }
.contact-form fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin: 0; }
.contact-form legend { font-weight: 600; color: var(--navy); padding: 0 6px; font-size: .92rem; }
.radio-row { display: grid; gap: 8px; }
.radio { display: flex; align-items: center; gap: 10px; font-size: .95rem; cursor: pointer; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.field input, .field textarea, .admin select {
  font: inherit; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.field__error { color: #b3261e; font-size: .85rem; margin: 0; }
.form-note { font-size: .84rem; color: var(--muted); margin: 4px 0 0; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.alert { padding: 14px 16px; border-radius: var(--radius-sm); font-size: .95rem; margin-bottom: 18px; }
.alert--success { background: var(--tint-teal); border: 1px solid var(--teal); color: var(--teal-700); }
.alert--success p { margin: 6px 0 0; color: var(--ink); }
.alert--error { background: #fdeceb; border: 1px solid #e3a9a4; color: #8a2c24; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); padding: 56px 0 28px; margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h3 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; font-family: var(--font-sans); font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__name { font-family: var(--font-serif); font-size: 1.15rem; color: #fff; margin: 10px 0 8px; }
.site-footer__mark { opacity: .95; }
.site-footer__legal {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding-top: 20px;
  font-size: .85rem; color: rgba(255,255,255,.6);
}
.site-footer__legal p { margin: 0; }

/* ---------- admin ---------- */
.admin { padding: 40px 0 80px; }
.admin__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-auth { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.admin-card { width: 100%; max-width: 380px; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.admin-card h1 { font-size: 1.4rem; margin: 0 0 18px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 900px; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table thead th { background: var(--tint); font-family: var(--font-sans); }
.admin-table__msg { max-width: 320px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .primary-nav {
    position: fixed; inset: 74px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .22s ease; padding: 16px 24px 24px;
  }
  .primary-nav.is-open { transform: translateY(0); }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .primary-nav li { width: 100%; }
  .primary-nav a { display: block; padding: 12px 0; width: 100%; }
  .primary-nav__cta { margin-top: 8px; }
  .nav-toggle { display: block; }
  .area-grid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .split, .entry-grid, .mini-grid, .contact-layout { grid-template-columns: 1fr; }
  .connect__diagram { grid-template-columns: 1fr; }
  .connect__link { transform: rotate(90deg); min-height: 60px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .area-grid, .flow { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 52px 0; }
}

@media (max-width: 700px) {
  .hero__bg { background-position: center center; }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(9, 26, 43, .78) 0%, rgba(9, 26, 43, .62) 45%, rgba(9, 26, 43, .82) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .hero__bg { transform: scale(1.05); }
}
