/* FreshLIMS marketing site — fresh design system. */

:root {
  --color-navy: #0F3B5F;
  --color-navy-deep: #0B2A47;
  --color-navy-ink: #0B1F31;
  --color-teal: #2A8C82;
  --color-teal-deep: #1F6E66;
  --color-mint: #5EEAD4;
  --color-mint-soft: #C4F4EB;
  --color-amber: #F59E0B;
  --color-text: #1B2A3A;
  --color-body: #3B4A5C;
  --color-muted: #64748B;
  --color-border: #E2E8F0;
  --color-border-strong: #CBD5E1;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F4F7FA;
  --color-surface-dark: #0B2A47;
  --color-success: #10B981;
  --color-danger: #DC2626;

  --shadow-sm: 0 1px 2px rgba(15, 59, 95, .06), 0 1px 3px rgba(15, 59, 95, .08);
  --shadow-md: 0 4px 12px rgba(15, 59, 95, .08), 0 2px 4px rgba(15, 59, 95, .06);
  --shadow-lg: 0 18px 40px -16px rgba(15, 59, 95, .25), 0 6px 12px -4px rgba(15, 59, 95, .12);
  --shadow-xl: 0 30px 60px -20px rgba(15, 59, 95, .35);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Manrope', 'Inter', system-ui, sans-serif;

  --container-max: 1200px;
  --container-pad: clamp(1rem, 4vw, 2.25rem);

  --section-pad: clamp(3.5rem, 8vw, 6rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--color-teal-deep); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--color-navy); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-text);
  margin: 0 0 .5em 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { margin: 0 0 1em 0; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1rem 0; }
ul li, ol li { margin-bottom: .35rem; }

.skip-link { position: absolute; left: -9999px; top: 0; padding: .75rem 1rem; background: var(--color-navy); color: #fff; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; border-radius: var(--radius-md); color: #fff; }

.container { max-width: var(--container-max); margin: 0 auto; padding-left: var(--container-pad); padding-right: var(--container-pad); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255, .92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 36px; width: auto; }

.nav-toggle { display: none; background: transparent; border: 0; padding: .5rem; cursor: pointer; gap: 4px; flex-direction: column; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-navy); border-radius: 2px; }

.primary-nav__list { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 1.5rem; }
.primary-nav__list li { margin: 0; position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .95rem; font-weight: 500; color: var(--color-text);
  padding: .5rem .25rem; border: 0; background: transparent; cursor: pointer; font-family: inherit;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--color-teal-deep); }
.nav-link.is-active, .has-menu.is-active > .nav-link { color: var(--color-teal-deep); border-bottom-color: var(--color-mint); }

.has-menu .mega-menu {
  position: absolute; top: calc(100% + 8px); left: -1rem;
  min-width: 360px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: .75rem;
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.has-menu:hover .mega-menu,
.has-menu:focus-within .mega-menu,
.has-menu.is-open .mega-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mega-menu__item { display: block; padding: .85rem 1rem; border-radius: var(--radius-md); color: var(--color-text); }
.mega-menu__item:hover { background: var(--color-surface-alt); color: var(--color-navy); }
.mega-menu__title { display: block; font-weight: 600; font-family: var(--font-display); font-size: 1rem; color: var(--color-navy); }
.mega-menu__desc { display: block; font-size: .875rem; color: var(--color-muted); margin-top: .15rem; }

.primary-nav__cta { margin-left: .5rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: all .15s ease;
  text-decoration: none; line-height: 1;
}
.btn--sm { padding: .55rem 1rem; font-size: .875rem; }
.btn--lg { padding: 1.05rem 1.75rem; font-size: 1.05rem; }

.btn--primary { background: var(--color-teal-deep); color: #fff; box-shadow: 0 8px 20px -8px rgba(42, 140, 130, .55); }
.btn--primary:hover { background: var(--color-navy); color: #fff; transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(15, 59, 95, .45); }

.btn--ghost { background: transparent; color: var(--color-navy); border-color: var(--color-border-strong); }
.btn--ghost:hover { background: var(--color-surface-alt); color: var(--color-navy); border-color: var(--color-navy); }

.btn--white { background: #fff; color: var(--color-navy); }
.btn--white:hover { background: var(--color-mint-soft); color: var(--color-navy); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255, .55); }
.btn--outline-light:hover { background: rgba(255,255,255, .12); color: #fff; border-color: #fff; }

/* ===== Layout primitives ===== */
.section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.section--tight { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.section--alt { background: var(--color-surface-alt); }
.section--dark { background: linear-gradient(160deg, var(--color-navy-deep) 0%, var(--color-navy) 60%, var(--color-teal-deep) 130%); color: #DBE8F1; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: var(--color-mint); }

.eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; font-size: .75rem;
  color: var(--color-teal-deep);
  background: var(--color-mint-soft); padding: .4rem .8rem; border-radius: var(--radius-pill);
}
.section--dark .eyebrow { background: rgba(94, 234, 212, .15); color: var(--color-mint); }

.section-title { margin-top: .9rem; }
.section-lede { font-size: 1.125rem; color: var(--color-muted); max-width: 56ch; }
.section--dark .section-lede { color: #B7C7D7; }

/* ===== Grid helpers ===== */
.grid { display: grid; gap: clamp(1.25rem, 2vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
@media (max-width: 960px) { .grid--2, .grid--3, .grid--4, .grid--split { grid-template-columns: 1fr; } }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(94,234,212, .25) 0%, transparent 60%),
    radial-gradient(700px 400px at -10% 100%, rgba(42,140,130, .25) 0%, transparent 65%),
    linear-gradient(160deg, #0B2A47 0%, #0F3B5F 55%, #1F6E66 130%);
  color: #DBE8F1;
  padding-top: clamp(4rem, 9vw, 6.5rem);
  padding-bottom: clamp(4rem, 9vw, 6.5rem);
}
.hero h1 { color: #fff; }
.hero__lede { font-size: 1.2rem; line-height: 1.6; color: #C8D6E4; max-width: 56ch; margin-top: 1.25rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__visual {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(255,255,255, .06) 0%, rgba(255,255,255, .02) 100%);
  border: 1px solid rgba(255,255,255, .12);
  backdrop-filter: blur(6px);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
}
.hero__visual h3 { color: #fff; font-family: var(--font-display); font-size: 1.05rem; }
.hero__visual ul { list-style: none; padding: 0; margin: 0; }
.hero__visual li {
  display: flex; gap: .65rem; align-items: flex-start; padding: .55rem 0;
  border-bottom: 1px dashed rgba(255,255,255, .12);
}
.hero__visual li:last-child { border-bottom: 0; }
.hero__visual li::before {
  content: ""; flex: 0 0 auto; margin-top: .45rem;
  width: 8px; height: 8px; border-radius: 50%; background: var(--color-mint);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, .15);
}

/* ===== Cards ===== */
.feature-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column; gap: .75rem; height: 100%;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--color-border-strong); }
.feature-card h3 { font-size: 1.15rem; margin: 0; }
.feature-card p { color: var(--color-body); margin: 0; }
.feature-card__icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--color-mint-soft); color: var(--color-teal-deep);
  display: inline-flex; align-items: center; justify-content: center;
}

.stat-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); text-align: center;
}
.stat-card__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 2.75rem); color: var(--color-navy);
  letter-spacing: -.02em; display: block;
}
.stat-card__label { color: var(--color-muted); font-size: .9rem; margin-top: .25rem; }

/* ===== Pricing ===== */
.pricing-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.75rem 1.5rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 1rem; position: relative;
}
.price-card--feature { border-color: var(--color-teal-deep); box-shadow: 0 24px 48px -22px rgba(42,140,130, .35); }
.price-card__badge {
  position: absolute; top: -12px; right: 18px;
  background: var(--color-teal-deep); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .35rem .65rem; border-radius: var(--radius-pill);
}
.price-card__tier { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--color-navy); margin: 0; }
.price-card__sub { color: var(--color-muted); font-size: .85rem; margin: 0; }
.price-card__price { font-family: var(--font-display); font-weight: 800; color: var(--color-text); font-size: 2rem; letter-spacing: -.02em; line-height: 1; }
.price-card__price small { font-size: .85rem; font-weight: 500; color: var(--color-muted); margin-left: .35rem; }
.price-card__price--was { font-size: .9rem; color: var(--color-muted); text-decoration: line-through; font-weight: 500; margin-left: .5rem; }
.price-card__features { list-style: none; padding: 0; margin: 0; }
.price-card__features li { display: flex; gap: .5rem; align-items: flex-start; padding: .35rem 0; font-size: .92rem; color: var(--color-body); }
.price-card__features li::before {
  content: ""; flex: 0 0 auto; margin-top: .55rem;
  width: 14px; height: 14px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--color-mint) 35%, transparent 36%),
    var(--color-mint-soft);
}
.price-card__cta { margin-top: auto; }

/* ===== Forms ===== */
.form { display: grid; gap: 1.1rem; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 700px) { .form-grid-2 { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; gap: .35rem; }
.form-field label { font-weight: 600; font-size: .9rem; color: var(--color-text); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--color-text);
  background: #fff; border: 1px solid var(--color-border-strong); border-radius: var(--radius-md);
  padding: .8rem 1rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--color-teal-deep);
  box-shadow: 0 0 0 4px rgba(42, 140, 130, .15);
}
.form-field--inline { flex-direction: row; align-items: center; gap: .65rem; }

.field-error { color: var(--color-danger); font-size: .85rem; }
.form-status { border-radius: var(--radius-md); padding: .9rem 1rem; font-size: .92rem; margin-bottom: 1rem; }
.form-status--err { background: #FEF2F2; color: var(--color-danger); border: 1px solid #FECACA; }
.form-status--ok  { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }

.honeypot { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* ===== Selector switch (lab vs clinic) ===== */
.choice-switch { display: inline-flex; padding: 4px; background: var(--color-surface-alt); border: 1px solid var(--color-border); border-radius: var(--radius-pill); }
.choice-switch label { position: relative; cursor: pointer; padding: .55rem 1.2rem; font-weight: 600; font-size: .9rem; color: var(--color-muted); border-radius: var(--radius-pill); transition: all .15s ease; }
.choice-switch input { position: absolute; opacity: 0; pointer-events: none; }
.choice-switch label:has(input:checked) { background: #fff; box-shadow: var(--shadow-sm); color: var(--color-navy); }

/* ===== Tables ===== */
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.spec-table th, .spec-table td { padding: .9rem 1.1rem; text-align: left; vertical-align: top; }
.spec-table th { background: var(--color-surface-alt); color: var(--color-text); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.spec-table tr + tr { border-top: 1px solid var(--color-border); }

.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: .15rem .55rem; border-radius: var(--radius-pill); background: var(--color-mint-soft); color: var(--color-teal-deep); }
.tag--amber { background: #FEF3C7; color: #92400E; }

/* ===== Trust bar ===== */
.trust-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.25rem; border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); margin-top: 2rem; }
@media (max-width: 760px) { .trust-bar { grid-template-columns: repeat(2, 1fr); } }
.trust-bar__item { display: flex; gap: .75rem; align-items: center; color: var(--color-text); }
.trust-bar__item svg { color: var(--color-teal-deep); flex: 0 0 auto; }
.trust-bar__item span { font-size: .9rem; font-weight: 500; }

/* ===== Big CTA ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-teal-deep) 100%);
  color: #fff; border-radius: var(--radius-xl); padding: clamp(2rem, 5vw, 3.5rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  box-shadow: var(--shadow-xl);
}
.cta-banner h2 { color: #fff; max-width: 32ch; }
.cta-banner p { color: #C8D6E4; max-width: 50ch; }

/* ===== Footer ===== */
.site-footer { background: var(--color-surface-dark); color: #B7C7D7; padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: .75rem; font-family: var(--font-display); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer a { color: #B7C7D7; }
.site-footer a:hover { color: var(--color-mint); }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__brand p { color: #94A8BD; max-width: 36ch; }
.site-footer__logo { height: 32px; width: auto; margin-bottom: 1rem; filter: brightness(1.05); }
.site-footer__contact a { color: #fff; font-weight: 600; }
.site-footer__bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255, .08); display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; font-size: .85rem; color: #94A8BD; }
.site-footer__bottom p { margin: 0; }

/* ===== Misc utilities ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ===== Mobile nav ===== */
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed; inset: 72px 0 0 0;
    background: var(--color-surface);
    transform: translateX(100%); transition: transform .25s ease;
    overflow-y: auto;
    border-top: 1px solid var(--color-border);
  }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: .25rem; padding: 1rem var(--container-pad); }
  .primary-nav__list li { width: 100%; }
  .nav-link, .primary-nav__list .btn { width: 100%; justify-content: flex-start; padding: 1rem; border-radius: var(--radius-md); }
  .nav-link.is-active, .has-menu.is-active > .nav-link { background: var(--color-surface-alt); border-bottom-color: transparent; }
  .has-menu .mega-menu { position: static; opacity: 1; transform: none; pointer-events: auto; box-shadow: none; border: 0; padding: 0 .5rem .5rem 1rem; min-width: 0; }
  .primary-nav__cta { margin-top: .75rem; margin-left: 0; }
  .primary-nav__cta .btn { justify-content: center; }
}

/* ===== Page hero variant ===== */
.page-hero {
  background:
    radial-gradient(700px 360px at 95% 0%, rgba(94,234,212, .18) 0%, transparent 60%),
    linear-gradient(160deg, #0B2A47 0%, #0F3B5F 70%, #1F6E66 130%);
  color: #DBE8F1;
  padding: clamp(3rem, 8vw, 5rem) 0;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #C8D6E4; max-width: 60ch; }

/* ===== Image media block ===== */
.media-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-muted); font-size: .9rem;
  background-size: cover; background-position: center;
}
.media-card[data-placeholder]::before {
  content: attr(data-placeholder);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1rem; color: var(--color-muted);
  background: repeating-linear-gradient(45deg, var(--color-surface-alt) 0 12px, #EDF2F7 12px 24px);
}
.media-card img { width: 100%; height: 100%; object-fit: cover; }
