/* ============================================================
   Lumetrix Labs — Depression Diagnostics
   Shared stylesheet (all pages)
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Tokens ---------- */
:root {
  --ink:        #0a0a0a;
  --ink-soft:   #1a1a1a;
  --muted:      #5a5a5a;
  --line:       #d8d8d8;
  --bg:         #ffffff;
  --bg-tint:    #f6f5f3;

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

  --container:  1240px;
  --gutter:     clamp(20px, 4vw, 56px);

  --fs-display: clamp(40px, 5.2vw, 76px);
  --fs-h1:      clamp(34px, 4.4vw, 60px);
  --fs-h2:      clamp(28px, 3vw, 44px);
  --fs-h3:      clamp(18px, 1.4vw, 20px);
  --fs-body:    clamp(16px, 1.15vw, 18px);
  --fs-small:   14px;

  --lh-tight:   1.08;
  --lh-snug:    1.25;
  --lh-body:    1.55;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size:   var(--fs-body);
  line-height: var(--lh-body);
  color:       var(--ink);
  background:  var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 64px);
}
@media (min-width: 840px) {
  .row { grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 120px); }
}

.section {
  padding-block: clamp(64px, 10vw, 140px);
}
.section + .section { padding-top: 0; }

/* ---------- Site header / nav ---------- */
.site-header {
  position: relative;
  z-index: 30;
  padding-block: 26px;
}
.site-header.is-overlay {
  position: absolute;
  inset: 0 0 auto 0;
  background: transparent;
  color: #fff;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-weight: 600;
  font-size: clamp(16px, 1.4vw, 19px);
  letter-spacing: -0.005em;
  line-height: 1.2;
}

.nav {
  display: none;
  align-items: center;
  gap: clamp(20px, 2.4vw, 36px);
}
@media (min-width: 880px) { .nav { display: flex; } }

.nav a {
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 500;
  padding-block: 6px;
  border-bottom: 1.5px solid transparent;
  transition: border-color .15s ease, opacity .15s ease;
}
.nav a:hover { opacity: .75; }
.nav a[aria-current="page"] { border-bottom-color: currentColor; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  color: inherit;
}
@media (min-width: 880px) { .nav-toggle { display: none; } }
.nav-toggle span {
  width: 24px; height: 1.5px; background: currentColor; display: block;
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  color: var(--ink);
  z-index: 100;
  padding: 28px var(--gutter);
}
.mobile-nav.is-open { display: block; }
.mobile-nav .mn-top {
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-nav ul {
  margin-top: 60px;
  display: flex; flex-direction: column; gap: 24px;
}
.mobile-nav a {
  font-size: 28px; font-weight: 600; letter-spacing: -0.01em;
}
.mobile-nav .close {
  background: none; border: 0; font-size: 28px; line-height: 1; color: inherit;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 78vh, 820px);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background: #2b2b2b var(--hero-image) center/cover no-repeat;
  filter: grayscale(1) contrast(1.02);
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.05) 30%, rgba(0,0,0,.35) 100%);
}
.hero > .container {
  position: relative;
  padding-top: clamp(120px, 16vh, 180px);
  padding-bottom: clamp(80px, 12vh, 140px);
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(40px, 8vh, 100px);
}

.hero-title {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  font-weight: 700;
  max-width: 16ch;
}
.hero-title.center { margin-inline: auto; text-align: center; }

.hero-lede {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.45;
  max-width: 28ch;
  margin-inline: auto;
  text-align: center;
  font-weight: 400;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: end;
}
@media (min-width: 840px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); }
}

.hero-sub {
  font-size: clamp(20px, 1.7vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  max-width: 18ch;
}

/* Lighter hero variant (eyebrow style) */
.hero-eyebrow {
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: .9;
  margin-bottom: 18px;
}

/* ---------- Two-column section ---------- */
.col-heading {
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.col-body h3 {
  font-size: clamp(18px, 1.35vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 18px;
}

.col-body p + p,
.col-body p + ul,
.col-body ul + p,
.col-body h3 + p,
.col-body p + h3,
.col-body ul + h3 {
  margin-top: 18px;
}

.col-body ul.bullets {
  list-style: none;
  padding-left: 22px;
}
.col-body ul.bullets li {
  position: relative;
  padding-left: 0;
  margin-bottom: 14px;
  line-height: var(--lh-body);
}
.col-body ul.bullets li::before {
  content: "•";
  position: absolute;
  left: -22px;
  top: 0;
  color: var(--ink);
}

.col-body ol.steps {
  list-style: none;
  counter-reset: step;
  padding-left: 28px;
}
.col-body ol.steps li {
  counter-increment: step;
  position: relative;
  margin-bottom: 22px;
}
.col-body ol.steps li::before {
  content: counter(step) ".";
  position: absolute;
  left: -28px;
  top: 0;
  font-weight: 700;
}
.col-body ol.steps li strong {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

.col-body .sub {
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 16px 38px;
  border: 1.5px solid currentColor;
  background: transparent;
  color: currentColor;
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background-color .18s ease, color .18s ease;
}
.btn:hover {
  background: currentColor;
}
.btn:hover { color: var(--bg); }
.hero .btn:hover { color: var(--ink); }

.btn--block { display: block; max-width: 280px; }

/* ---------- Centred title section ---------- */
.title-block {
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
}
.title-block h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  margin-bottom: 28px;
}
.title-block p {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--ink);
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 22px;
  max-width: 640px;
}
.form .field {
  display: grid;
  gap: 8px;
}
.form label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.form input,
.form select,
.form textarea {
  font: inherit;
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 0;
  transition: border-color .15s ease;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.form textarea { min-height: 160px; resize: vertical; }
.form .row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px) {
  .form .row-2 { grid-template-columns: 1fr 1fr; }
}
.form .submit-row {
  margin-top: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 48px;
  margin-top: 40px;
  color: var(--muted);
  font-size: var(--fs-small);
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}
@media (min-width: 720px) {
  .site-footer .container { flex-direction: row; align-items: center; }
}
.site-footer .legal { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Utility ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
