/* Justin Clifford — personal brand site
   Palette adapted from the Sanorra healthcare theme. */

:root {
  --navy: #22374f;
  --teal-deep: #005f73;
  --teal: #0a9396;
  --amber: #ffb759;
  --bg: #f0f3f5;
  --white: #ffffff;
  --border: rgba(34, 55, 79, 0.18);
  --border-light: rgba(255, 255, 255, 0.28);
  --text: #22374f;
  --text-soft: rgba(20, 44, 92, 0.72);
  --text-on-dark: rgba(255, 255, 255, 0.78);

  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system,
    "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }

p { margin: 0 0 1.1em; }

a { color: var(--teal-deep); }

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

section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { color: var(--text-soft); font-size: 1.08rem; margin-bottom: 0; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 36, 53, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.22);
}

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

.brand {
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  font-size: 1.05rem;
}
.brand span { color: var(--teal); font-weight: 500; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }

.nav a {
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.18s ease;
}
.nav a:hover { color: var(--white); }

.nav .btn { color: var(--navy); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { transform: translateY(-2px); background: #ffc477; }

.btn-ghost { border-color: var(--border-light); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(115% 85% at 88% 95%, rgba(72, 200, 198, 0.34) 0%, transparent 62%),
    linear-gradient(168deg, #012b38 0%, #00566a 46%, #0a8b8e 100%);
  color: var(--white);
  padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(3rem, 7vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero .eyebrow { color: var(--amber); }
.hero h1 { color: var(--white); margin-bottom: 0.4em; }
.hero h1 .credential { color: var(--teal); font-weight: 500; }

.hero-lede {
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.25rem;
  padding: 0.55rem 1.1rem 0.55rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(1, 43, 56, 0.32);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.94);
}
.availability::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 183, 89, 0.22);
}

.portrait {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(165deg, #ffffff 0%, #eef2f4 100%);
  border: 1px solid var(--border-light);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  display: block;
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 95, 115, 0.16), transparent 42%);
}
.portrait figcaption {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 1rem;
}
.portrait figcaption small { font-weight: 400; font-size: 0.8rem; opacity: 0.75; }
.portrait figcaption[hidden] { display: none; }

/* ---------- stat strip ---------- */

.stats { background: var(--bg); }
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.stats { padding-block: clamp(2.5rem, 5vw, 3.75rem); }

.stat { border-left: 3px solid var(--teal); padding-left: 1.15rem; }

.stat b {
  display: block;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* Fixed width so a counting number can never reflow the layout. */
.stat b .num {
  display: inline-block;
  min-width: 2ch;
  text-align: right;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  letter-spacing: inherit;
  font-variant-numeric: tabular-nums;
}
.stat b em { font-style: normal; color: var(--amber); }

/* Direct child only — must not catch the .num span nested inside <b>. */
.stat > span { font-size: 0.92rem; color: var(--text-soft); }

/* ---------- value chain ---------- */

.chain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.15rem;
  counter-reset: step;
}

.chain-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.chain-item:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow: 0 12px 30px rgba(34, 55, 79, 0.09);
}
.chain-item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 0.7rem;
}
.chain-item h3 { margin-bottom: 0.35em; }
.chain-item p { font-size: 0.95rem; color: var(--text-soft); margin: 0; }

/* ---------- experience ---------- */

.experience { background: var(--bg); }

.role {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(1.25rem, 3vw, 3rem);
  padding-block: 2.25rem;
  border-top: 1px solid var(--border);
}
.role:last-child { border-bottom: 1px solid var(--border); }

.role-meta .org { font-weight: 700; font-size: 1.05rem; display: block; }
.role-meta .dates { font-size: 0.88rem; color: var(--text-soft); }

.role-body h3 { color: var(--teal-deep); margin-bottom: 0.5em; }
.role-body ul { margin: 0; padding-left: 1.1rem; }
.role-body li { margin-bottom: 0.5rem; color: var(--text-soft); }
.role-body li::marker { color: var(--teal); }

/* ---------- capability ---------- */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.15rem;
}
.cap {
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.cap h3 { font-size: 1.08rem; margin-bottom: 0.4em; }
.cap p { font-size: 0.95rem; color: var(--text-soft); margin: 0; }

/* ---------- looking for ---------- */

.looking {
  background:
    radial-gradient(100% 120% at 12% 0%, rgba(10, 147, 150, 0.35) 0%, transparent 60%),
    var(--navy);
  color: var(--white);
}
.looking h2 { color: var(--white); }
.looking .section-head p { color: var(--text-on-dark); }

.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tags li {
  list-style: none;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  font-size: 0.92rem;
  color: var(--white);
}

.looking-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
  margin-top: 2.5rem;
}
.looking-cols h3 { color: var(--amber); font-size: 1rem; letter-spacing: 0.04em; }
.looking-cols p, .looking-cols li { color: var(--text-on-dark); }
.looking-cols ul { margin: 0; padding-left: 1.1rem; }
.looking-cols li { margin-bottom: 0.45rem; }

/* ---------- blog: shared card grid ---------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow: 0 16px 34px rgba(34, 55, 79, 0.12);
}

.blog-card-media {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--navy);
}
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.blog-card:hover .blog-card-media img { transform: scale(1.04); }

.blog-card-body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-body .eyebrow { margin-bottom: 0.6rem; }
.blog-card-body h3 { margin-bottom: 0.5em; }
.blog-card-body h3 a { color: var(--text); text-decoration: none; }
.blog-card-body h3 a:hover { color: var(--teal-deep); }
.blog-card-body p { font-size: 0.95rem; color: var(--text-soft); flex: 1; }

.blog-card-link {
  color: var(--teal-deep);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.blog-card-link:hover { color: var(--navy); }

/* ---------- blog: homepage teaser section ---------- */

.insights { background: var(--bg); }
.insights .section-foot { margin-top: 2.5rem; text-align: center; }
.insights .btn-primary { background: var(--navy); color: var(--white); }
.insights .btn-primary:hover { background: var(--teal-deep); }

/* ---------- blog: index hero ---------- */

.blog-hero {
  background:
    radial-gradient(100% 120% at 12% 0%, rgba(10, 147, 150, 0.35) 0%, transparent 60%),
    var(--navy);
  color: var(--white);
  padding-block: clamp(3rem, 7vw, 4.5rem);
}
.blog-hero .eyebrow { color: var(--amber); }
.blog-hero h1 { color: var(--white); margin-bottom: 0.4em; }
.blog-hero p { color: var(--text-on-dark); max-width: 42rem; margin: 0; font-size: 1.08rem; }

/* ---------- blog: article page ---------- */

.post-article .wrap { max-width: 44rem; }

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--teal-deep);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 1.75rem;
}
.post-back:hover { color: var(--navy); }

.post-article .eyebrow { display: block; }
.post-article h1 { margin-bottom: 0.5em; }

.post-dek {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.post-body p { font-size: 1.05rem; }
.post-body p + h3, .post-body p + h2 { margin-top: 1.5em; }

.pull-quote {
  position: relative;
  margin: 2.5rem 0;
  padding: 2.5rem clamp(1.5rem, 5vw, 3rem);
  border-radius: var(--radius);
  background:
    radial-gradient(115% 85% at 88% 95%, rgba(72, 200, 198, 0.34) 0%, transparent 62%),
    linear-gradient(168deg, #012b38 0%, #00566a 46%, #0a8b8e 100%);
  box-shadow: 0 20px 44px rgba(1, 43, 56, 0.22);
}
.pull-quote-mark {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--amber);
  margin-bottom: 0.25rem;
}
.pull-quote p {
  color: var(--white);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 0;
}
.pull-quote footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 2px solid var(--amber);
  display: inline-block;
}
.pull-quote footer strong { display: block; color: var(--white); font-size: 0.95rem; }
.pull-quote footer span { display: block; color: var(--text-on-dark); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }

.post-question {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-soft);
  border-left: 3px solid var(--amber);
  padding-left: 1.25rem;
  margin: 2rem 0;
}

.post-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.post-nav .btn-ghost { border-color: var(--border); color: var(--navy); }
.post-nav .btn-ghost:hover { background: rgba(34, 55, 79, 0.05); border-color: var(--navy); }
.post-nav .btn-primary { background: var(--navy); color: var(--white); }
.post-nav .btn-primary:hover { background: var(--teal-deep); }

/* ---------- education + contact ---------- */

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.15rem;
}
.edu {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.edu h3 { margin-bottom: 0.25em; }
.edu span { color: var(--text-soft); font-size: 0.95rem; }

.contact { background: var(--bg); text-align: center; }
.contact .section-head { margin-inline: auto; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}
.contact .btn-ghost { border-color: var(--border); color: var(--navy); }
.contact .btn-ghost:hover { background: rgba(34, 55, 79, 0.05); border-color: var(--navy); }

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  padding-block: 2rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}
.site-footer a { color: rgba(255, 255, 255, 0.8); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 340px; order: -1; }
  .role { grid-template-columns: 1fr; gap: 0.75rem; }
  .nav a:not(.btn) { display: none; }
  .post-nav { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}
