/*
 * Salt Lick Healthcare — site styles.
 *
 * Palette and structure follow the existing Wix site: a navy wordmark on
 * white, black bands behind the films, white content sections. One stylesheet,
 * no build step — the site is served as static files by the same nginx that
 * serves /.well-known, so anything needing a toolchain would be a liability.
 */

/*
 * Palette comes from the patient app's design tokens
 * (saltlick-patient-app/theme/tokens.js), so the site, the app and the report
 * read as one product rather than three.
 */
:root {
  --navy: #144194;         /* primary — buttons, links, active nav */
  --navy-deep: #0f3576;    /* primaryPressed */
  --navy-soft: #2757b8;    /* primaryLight — gradient end */
  --cyan: #38adb3;         /* teal accent */
  --leaf: #4a7c1f;
  --tint: #dce5f4;
  --ink: #1c1c1b;
  --ink-muted: #6b6b6b;
  --line: #e0e0d8;
  --surface: #ffffff;
  --surface-alt: #f5f5f0;  /* app background */
  --black: #0a0b0d;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 53, 118, 0.06), 0 12px 32px rgba(15, 53, 118, 0.09);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--navy-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--navy-deep);
}

h1 {
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 750;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1.1em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}

.skip:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

/* ── Header ──────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}

.wordmark img {
  height: 46px;
  width: auto;
  flex: none;
}

/* The mark carries its own small print, which is illegible at header size, so
   the readable name is set in type beside it. */
.wordmark b {
  display: block;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.wordmark span {
  display: block;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.4;
}

@media (max-width: 420px) {
  .wordmark span {
    display: none;
  }
}

/* The logo is a full-colour mark on a light ground; on the dark footer it sits
   on a white chip rather than being recoloured. */
.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-mark img {
  height: 46px;
  width: auto;
  background: #fff;
  border-radius: 10px;
  padding: 5px 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--cyan);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  cursor: pointer;
  color: var(--navy);
}

.nav-toggle svg {
  display: block;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: calc(68px + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    box-shadow: var(--shadow);
  }

  .nav[hidden] {
    display: none;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav a:last-child {
    border-bottom: none;
  }
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.97rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
}

/* On the navy hero the navy fill disappears into the background, so the
   primary button inverts there. */
.hero .btn-primary {
  background: #fff;
  color: var(--navy-deep);
}

.hero .btn-primary:hover {
  background: var(--tint);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline {
  border-color: var(--line);
  color: var(--navy);
  background: #fff;
}

.btn-outline:hover {
  border-color: var(--navy);
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(56, 173, 179, 0.28), transparent 60%),
    radial-gradient(900px 600px at 92% 0%, rgba(39, 87, 184, 0.55), transparent 62%),
    linear-gradient(165deg, #0f3576 0%, #144194 55%, #0b2a5e 100%);
  color: #fff;
  padding-block: clamp(64px, 9vw, 128px);
  overflow: hidden;
}

.hero::after {
  /* A faint grid, so the band reads as engineered rather than empty. */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 20%, transparent 100%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.4em;
}

.hero .lede {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 62ch;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.pill {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 7px 15px;
}

/* ── Sections ────────────────────────────────────────────────────────── */

section {
  padding-block: clamp(56px, 7vw, 104px);
}

.section-alt {
  background: var(--surface-alt);
}

.section-head {
  max-width: 68ch;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.section-head p {
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.22rem);
  color: var(--ink);
  max-width: 64ch;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.35em;
}

.card p {
  color: var(--ink-muted);
  margin-bottom: 0;
  font-size: 0.98rem;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(56, 173, 179, 0.2), rgba(20, 65, 148, 0.14));
  color: var(--navy);
  margin-bottom: 18px;
}

/* ── Film band ───────────────────────────────────────────────────────── */

.band-dark {
  background: var(--black);
  color: #fff;
}

.band-dark h2,
.band-dark h3 {
  color: #fff;
}

.band-dark .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.film {
  border-radius: var(--radius);
  overflow: hidden;
  background: #15171c;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.film video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.film-placeholder {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(56, 173, 179, 0.16), transparent 70%),
    #15171c;
}

.film-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}

.tag {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* ── Team ────────────────────────────────────────────────────────────── */

.person {
  display: grid;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.person-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(140deg, var(--navy-soft), var(--navy-deep));
  letter-spacing: 0.02em;
}

.person-head h3 {
  margin: 0;
}

.role {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.person p {
  color: var(--ink-muted);
  font-size: 0.97rem;
}

.person p:last-of-type {
  margin-bottom: 0;
}

.person ul {
  margin: 0 0 1em;
  padding-left: 1.1em;
  color: var(--ink-muted);
  font-size: 0.97rem;
}

.person li {
  margin-bottom: 0.5em;
}

.linkedin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
}

.linkedin:hover {
  text-decoration: underline;
}

.footprint {
  font-size: 0.88rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.footprint strong {
  color: var(--ink);
}

/* ── Contact ─────────────────────────────────────────────────────────── */

.contact {
  background:
    radial-gradient(800px 420px at 85% 10%, rgba(56, 173, 179, 0.2), transparent 60%),
    linear-gradient(160deg, #0f3576, #144194);
  color: #fff;
}

.contact h2 {
  color: #fff;
}

.contact p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 26px;
}

.contact-lines a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
}

.contact-lines a:hover {
  border-bottom-color: var(--cyan);
}

/* ── Footer ──────────────────────────────────────────────────────────── */

.site-footer {
  background: #0b2149;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
  padding-block: 40px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* ── Policy page ─────────────────────────────────────────────────────── */

.page-head {
  background: linear-gradient(160deg, #0f3576, #144194);
  color: #fff;
  padding-block: clamp(48px, 6vw, 88px);
}

.page-head h1 {
  color: #fff;
  margin-bottom: 0.3em;
}

.page-head .meta {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
  margin: 0;
}

.policy {
  padding-block: clamp(40px, 5vw, 72px);
}

.policy .wrap {
  max-width: 820px;
}

.policy h2 {
  font-size: 1.35rem;
  margin-top: 2.2em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.policy h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.policy h3 {
  font-size: 1.02rem;
  margin-top: 1.6em;
}

.policy ul {
  padding-left: 1.2em;
  color: var(--ink);
}

.policy li {
  margin-bottom: 0.6em;
}

.policy .note {
  background: var(--surface-alt);
  border-left: 3px solid var(--cyan);
  border-radius: 0 10px 10px 0;
  padding: 18px 20px;
  margin: 1.6em 0;
}

.policy .note p:last-child {
  margin-bottom: 0;
}

.toc {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 40px;
}

.toc h2 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 14px;
  border: none;
  padding: 0;
}

.toc ol {
  margin: 0;
  padding-left: 1.3em;
  columns: 2;
  column-gap: 32px;
  font-size: 0.94rem;
}

.toc li {
  margin-bottom: 0.45em;
  break-inside: avoid;
}

@media (max-width: 600px) {
  .toc ol {
    columns: 1;
  }
}

/* Data table — becomes stacked cards on a phone, so nothing scrolls sideways. */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.4em 0;
}

.data-table th,
.data-table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.data-table th {
  background: var(--surface-alt);
  font-weight: 700;
  color: var(--navy-deep);
}

.data-table tbody th {
  background: transparent;
  width: 28%;
}

@media (max-width: 720px) {
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td,
  .data-table th {
    display: block;
  }

  .data-table thead {
    display: none;
  }

  .data-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 6px 4px;
    margin-bottom: 14px;
    background: #fff;
  }

  .data-table td,
  .data-table tbody th {
    border-bottom: none;
    padding: 8px 16px;
    width: auto;
  }

  .data-table tbody th {
    font-weight: 700;
    color: var(--navy-deep);
    padding-bottom: 0;
  }

  .data-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 2px;
  }
}
