/* ==========================================================================
   ICR HORIZON LLC — Life Sciences Consulting (with a technology backbone)
   Clean, clinical, premium light theme
   ========================================================================== */

/* ---- Design Tokens ---- */
:root {
  /* Backgrounds — soft, clinical, near-white */
  --bg:      #ffffff;
  --bg-soft: #f4f8f9;   /* section tint */
  --bg-mint: #eef6f5;   /* faint teal wash */
  --surface: #ffffff;

  /* Deep petrol-teal primary + emerald accent */
  --ink:        #0b2a30;   /* headings, deep text */
  --primary:    #0d3b45;   /* deep teal */
  --primary-2:  #0e5c66;
  --accent:     #0f9d8f;   /* emerald-teal accent */
  --accent-2:   #14b8a6;
  --accent-3:   #0d7d72;
  --accent-grad: linear-gradient(135deg, #2dd4bf 0%, #0f9d8f 48%, #0d7d72 100%);
  --accent-soft: #d9efec;  /* icon backgrounds */

  /* Text */
  --text:      #16323a;
  --text-soft: #47616a;
  --text-mute: #7c9198;

  /* Lines / borders */
  --line:   #e2ecee;
  --line-2: #edf3f4;

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow-sm: 0 4px 18px -8px rgba(13, 59, 69, 0.18);
  --shadow: 0 26px 60px -28px rgba(13, 59, 69, 0.34);
  --shadow-accent: 0 20px 42px -16px rgba(15, 157, 143, 0.42);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.68;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Ambient clinical background wash */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 45% at 82% -8%, rgba(20, 184, 166, 0.10), transparent 60%),
    radial-gradient(50% 40% at 6% 4%, rgba(13, 125, 114, 0.07), transparent 55%),
    var(--bg);
}

/* ---- Layout helpers ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.section { padding: clamp(72px, 11vw, 138px) 0; }
.section--tight { padding: clamp(48px, 7vw, 90px) 0; }
.section--soft { background: var(--bg-soft); }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); }
.display {
  font-size: clamp(2.7rem, 6.4vw, 4.9rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.h2 { font-size: clamp(1.95rem, 4.3vw, 3.05rem); }
.h3 { font-size: clamp(1.3rem, 2.3vw, 1.65rem); }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-3);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--accent-grad); display: inline-block; border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.55vw, 1.24rem); color: var(--text-soft); max-width: 62ch; }
.text-accent {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.muted { color: var(--text-mute); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--accent {
  background: var(--accent-grad);
  color: #ffffff;
  box-shadow: var(--shadow-accent);
}
.btn--accent:hover { transform: translateY(-3px); box-shadow: 0 26px 52px -14px rgba(15, 157, 143, 0.55); }
.btn--outline {
  border: 1.5px solid var(--line);
  color: var(--primary);
  background: #fff;
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent-3); transform: translateY(-3px); }

/* ---- Header / Nav ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px -18px rgba(13, 59, 69, 0.4);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand__mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; letter-spacing: 0.005em; color: var(--ink); }
.brand__tag { font-size: 0.57rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent-3); margin-top: 4px; font-weight: 700; }
.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__link { font-size: 0.92rem; font-weight: 600; color: var(--text-soft); position: relative; transition: color 0.3s var(--ease); }
.nav__link::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--accent-grad); border-radius: 2px; transition: width 0.35s var(--ease); }
.nav__link:hover, .nav__link.active { color: var(--ink); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.nav__cta { margin-left: 4px; }

.nav__toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.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; padding-top: 176px; padding-bottom: clamp(72px, 11vw, 140px); overflow: hidden; }
.hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(13, 59, 69, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 59, 69, 0.05) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(72% 62% at 50% 16%, #000 18%, transparent 74%);
  -webkit-mask-image: radial-gradient(72% 62% at 50% 16%, #000 18%, transparent 74%);
}
.hero__inner { max-width: 900px; }
.hero .display { margin: 22px 0 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(28px, 6vw, 68px); margin-top: 68px; padding-top: 40px; border-top: 1px solid var(--line); }
.stat__num { font-family: var(--font-display); font-size: clamp(2.1rem, 3.8vw, 2.9rem); font-weight: 600; }
.stat__label { font-size: 0.82rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.13em; margin-top: 4px; }

/* Trust bar */
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 44px; }
.trust__label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-mute); font-weight: 700; }
.trust__item { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 600; color: var(--primary); }
.trust__item svg { width: 16px; height: 16px; color: var(--accent); }

/* ---- Section heading block ---- */
.sec-head { max-width: 660px; margin-bottom: clamp(40px, 6vw, 66px); }
.sec-head .h2 { margin: 18px 0 18px; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }

/* ---- Cards / grid ---- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
  overflow: hidden;
}
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent-grad); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.card:hover { transform: translateY(-6px); border-color: var(--accent-soft); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.card__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent-3); margin-bottom: 22px; }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-soft); font-size: 0.97rem; }

/* Feature list */
.feat-list { display: grid; gap: 15px; margin-top: 8px; }
.feat-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--text-soft); font-size: 0.99rem; }
.feat-list svg { width: 21px; height: 21px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.feat-list strong { color: var(--ink); font-weight: 600; }

/* ---- Split ---- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 78px); align-items: center; }
.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, var(--bg-mint));
  padding: clamp(30px, 4vw, 46px);
  box-shadow: var(--shadow);
}
.panel--stack { display: grid; gap: 22px; }
.panel-row { display: flex; gap: 18px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.panel-row:last-child { border-bottom: none; padding-bottom: 0; }
.panel-row__k { font-family: var(--font-display); font-size: 1.9rem; color: var(--accent); line-height: 1; min-width: 54px; font-weight: 600; }

/* ---- Services detailed ---- */
.svc {
  display: grid; grid-template-columns: 66px 1fr; gap: 26px;
  padding: clamp(30px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.svc:hover { border-color: var(--accent-soft); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.svc__icon { width: 66px; height: 66px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-3); }
.svc__icon svg { width: 30px; height: 30px; }
.svc h3 { margin-bottom: 10px; }
.svc p { color: var(--text-soft); margin-bottom: 20px; }
.svc__sub { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.13em; color: var(--accent-3); margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tag { font-size: 0.79rem; font-weight: 600; color: var(--primary); padding: 7px 15px; border: 1px solid var(--line); border-radius: 100px; background: var(--bg-soft); }

/* ---- Process steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding-top: 30px; }
.step__n { font-family: var(--font-display); font-size: 2.9rem; color: transparent; -webkit-text-stroke: 1.4px var(--accent); line-height: 1; margin-bottom: 14px; font-weight: 600; }
.step h4 { font-size: 1.15rem; margin-bottom: 8px; font-family: var(--font-body); font-weight: 700; color: var(--ink); }
.step p { color: var(--text-soft); font-size: 0.93rem; }

/* ---- Values ---- */
.value { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.value:hover { border-color: var(--accent-soft); box-shadow: var(--shadow-sm); }
.value h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; color: var(--accent-3); }
.value p { color: var(--text-soft); font-size: 0.95rem; }

/* Owner */
.owner { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; }
.owner__avatar { width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; color: #fff; background: var(--accent-grad); box-shadow: var(--shadow-accent); }
.owner__role { color: var(--accent-3); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }

/* ---- CTA band ---- */
.cta-band {
  position: relative;
  border-radius: clamp(20px, 3vw, 28px);
  padding: clamp(48px, 7vw, 84px) clamp(28px, 5vw, 64px);
  text-align: center;
  overflow: hidden;
  color: #eafcf9;
  background:
    radial-gradient(90% 130% at 50% 0%, rgba(45, 212, 191, 0.28), transparent 62%),
    linear-gradient(160deg, var(--primary) 0%, #0a2f37 60%, #08262d 100%);
}
.cta-band .eyebrow { color: #7fe9db; }
.cta-band .eyebrow::before { background: #7fe9db; }
.cta-band .h2 { color: #ffffff; margin-bottom: 18px; }
.cta-band .lead { color: #b9ded9; }
.cta-band__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.cta-band .btn--outline { background: transparent; border-color: rgba(255,255,255,0.28); color: #fff; }
.cta-band .btn--outline:hover { border-color: #7fe9db; color: #d6fbf5; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 70px); align-items: start; }
.contact-info { display: grid; gap: 6px; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: none; }
.contact-item__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-3); flex-shrink: 0; }
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item__label { display: block; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-mute); margin-bottom: 4px; font-weight: 700; }
.contact-item__val { font-size: 1.04rem; color: var(--ink); font-weight: 600; }
.contact-item__val:hover { color: var(--accent-3); }

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--primary); letter-spacing: 0.01em; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit; font-size: 0.98rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #9fb2b7; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 4px rgba(15, 157, 143, 0.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__note { font-size: 0.82rem; color: var(--text-mute); }
.form__status { font-size: 0.92rem; padding: 12px 16px; border-radius: var(--radius-sm); display: none; }
.form__status.ok { display: block; background: #e4f6ef; border: 1px solid #b6e4d1; color: #1c7a53; }
.form__status.err { display: block; background: #fdecec; border: 1px solid #f4c6c6; color: #b4433f; }

/* ---- Footer ---- */
.site-footer { background: var(--primary); color: #cfe6e3; padding: clamp(56px, 8vw, 86px) 0 38px; margin-top: clamp(40px, 6vw, 80px); }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__tag { color: #7fe9db; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 52px; }
.footer-brand p { color: #9dc4bf; font-size: 0.95rem; margin-top: 18px; max-width: 34ch; }
.footer-col h5 { font-family: var(--font-body); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.14em; color: #7fe9db; margin-bottom: 18px; }
.footer-col a { display: block; color: #cfe6e3; font-size: 0.94rem; margin-bottom: 12px; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom p { font-size: 0.85rem; color: #8fb6b1; }

/* ---- Reveal animation (progressive enhancement) ---- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }

/* ---- Interior page hero ---- */
.page-hero { padding-top: 168px; padding-bottom: clamp(30px, 5vw, 54px); }
.page-hero .display { font-size: clamp(2.4rem, 5.4vw, 3.9rem); margin: 20px 0 20px; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__links {
    position: fixed; inset: 82px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 24px clamp(20px, 5vw, 40px) 34px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -24px rgba(13,59,69,0.4);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  }
  .nav__links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link { padding: 12px 0; font-size: 1.05rem; width: 100%; }
  .nav__link::after { display: none; }
  .nav__cta { margin: 12px 0 0; }
  .nav__toggle { display: flex; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; gap: 18px; }
  .field--row { grid-template-columns: 1fr; }
  .owner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__stats { gap: 28px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
