/* ==========================================================================
   Tilth Health Strategies — site styles
   Brand: teal #0F7A70 / bright teal #3FD9C7 / navy #1E3A5F / light blue #7FA8D9
   ========================================================================== */

:root {
  --navy: #1E3A5F;
  --navy-deep: #162C48;
  --navy-deeper: #102138;
  --teal: #0F7A70;
  --teal-dark: #0B5F57;
  --teal-bright: #3FD9C7;
  --blue-light: #7FA8D9;

  --ink: #17293D;
  --muted: #5B6B7C;
  --muted-dark: #A9BBD0;

  --paper: #FCFBF8;
  --paper-alt: #F3F1EA;
  --paper-tint: #EEF4F3;

  --line: rgba(30, 58, 95, 0.13);
  --line-strong: rgba(30, 58, 95, 0.22);
  --line-dark: rgba(255, 255, 255, 0.14);

  --font-display: "Poppins", "Century Gothic", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-ui: "Poppins", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1140px;
  --wrap-narrow: 760px;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(23, 41, 61, 0.06), 0 4px 14px rgba(23, 41, 61, 0.05);
  --shadow-md: 0 2px 6px rgba(23, 41, 61, 0.07), 0 14px 40px rgba(23, 41, 61, 0.09);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; }

a { color: var(--teal-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(2.05rem, 4.6vw, 3.15rem); }
h2 { font-size: clamp(1.65rem, 3.3vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.35rem); font-weight: 600; letter-spacing: -0.005em; }
h4 { font-size: 1.02rem; font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--wrap-narrow); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 12px 18px; z-index: 100;
  font-family: var(--font-ui); font-size: 0.9rem;
}
.skip-link:focus { left: 8px; top: 8px; }

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

/* ---------- Logo lockup ------------------------------------------------- */

.lockup { display: inline-flex; align-items: center; gap: 15px; text-decoration: none; }
.lockup:hover { color: inherit; }
.lockup .mark { display: block; width: auto; height: 62px; flex: none; }
.lockup .wordmark { display: flex; flex-direction: column; justify-content: center; }
.lockup .wm-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.98rem;
  letter-spacing: 0.02em; color: var(--navy); line-height: 1;
}
.lockup .wm-sub {
  font-family: var(--font-display); font-weight: 500; font-size: 0.8rem;
  letter-spacing: 0.235em; color: var(--teal); line-height: 1; margin-top: 6px;
  white-space: nowrap;
}

/* ---------- Header ------------------------------------------------------ */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(252, 251, 248, 0.93);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 104px;
}
.site-nav { display: flex; align-items: center; gap: 30px; flex: none; }
.site-nav a:not(.btn) {
  font-family: var(--font-ui); font-size: 0.875rem; font-weight: 500;
  color: var(--navy); text-decoration: none; padding: 6px 0;
  border-bottom: 2px solid transparent; letter-spacing: 0.01em;
}
.site-nav a:not(.btn):hover { color: var(--teal); }
.site-nav a:not(.btn)[aria-current="page"] { color: var(--teal); border-bottom-color: var(--teal); }

/* ---------- Buttons ----------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-ui); font-size: 0.9rem; font-weight: 600;
  padding: 13px 26px; border-radius: var(--radius);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  white-space: nowrap; flex: none;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); background: rgba(30, 58, 95, 0.04); }
.btn-on-dark { background: var(--teal-bright); color: var(--navy-deeper); border-color: var(--teal-bright); }
.btn-on-dark:hover { background: #6FE7D9; border-color: #6FE7D9; color: var(--navy-deeper); }
.btn-ghost-dark { background: transparent; color: #fff; border-color: var(--line-dark); }
.btn-ghost-dark:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-sm { padding: 10px 20px; font-size: 0.83rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Section scaffolding ----------------------------------------- */

.section { padding: clamp(64px, 8.5vw, 116px) 0; }
.section-tight { padding: clamp(48px, 6vw, 76px) 0; }
.section-alt { background: var(--paper-alt); }
.section-tint { background: var(--paper-tint); }
.section-dark { background: var(--navy); color: #E8EEF6; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark a { color: var(--teal-bright); }

.eyebrow {
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal);
  margin: 0 0 18px;
}
.section-dark .eyebrow { color: var(--teal-bright); }

.lede { font-size: clamp(1.15rem, 2.1vw, 1.35rem); line-height: 1.58; color: var(--muted); }
.section-dark .lede { color: var(--muted-dark); }

.rule { width: 54px; height: 3px; background: var(--teal); border: 0; margin: 0 0 26px; }
.section-dark .rule { background: var(--teal-bright); }

/* ---------- Hero -------------------------------------------------------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 460px at 88% -8%, rgba(63, 217, 199, 0.13), transparent 62%),
    radial-gradient(760px 420px at 6% 108%, rgba(30, 58, 95, 0.07), transparent 60%),
    var(--paper);
  padding: clamp(72px, 10vw, 132px) 0 clamp(64px, 8vw, 104px);
  border-bottom: 1px solid var(--line);
}
.hero h1 { max-width: 21ch; }
.hero .lede { max-width: 56ch; margin-top: 4px; }
.hero .btn-row { margin-top: 36px; }
.hero-inner { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 56px; align-items: center; }
.hero-mark { justify-self: center; opacity: 0.95; }
.hero-mark svg { width: min(230px, 100%); height: auto; display: block; }

/* ---------- Cards / grids ----------------------------------------------- */

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 32px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.5em; }
.card-num {
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; color: var(--teal); display: block; margin-bottom: 14px;
}
.card-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 20px;
  font-family: var(--font-ui); font-size: 0.85rem; font-weight: 600;
  color: var(--teal-dark); text-decoration: none;
}
.card-link:hover { gap: 11px; color: var(--teal); }
.card-link svg { transition: transform .16s ease; }

.card-dark {
  background: rgba(255, 255, 255, 0.05); border-color: var(--line-dark); box-shadow: none;
}

/* ---------- Feature list ------------------------------------------------ */

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative; padding-left: 30px; margin-bottom: 13px; line-height: 1.55;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--teal-bright); border: 2px solid var(--teal);
}
.section-dark .checklist li::before { background: var(--teal-bright); border-color: var(--teal-bright); }

/* ---------- Service blocks ---------------------------------------------- */

/* keep in-page anchor targets clear of the sticky header */
section[id], article[id], div[id] { scroll-margin-top: 128px; }

.service {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 52px;
  padding: clamp(44px, 5vw, 62px) 0;
  border-top: 1px solid var(--line);
}
.service:first-of-type { border-top: 0; padding-top: 0; }
.service-head h2 { margin-bottom: 0.4em; }

/* ---------- Stat / pillar row ------------------------------------------- */

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.pillar h3 { margin-bottom: 0.45em; text-wrap: balance; }
.pillar p { color: var(--muted); font-size: 1rem; text-wrap: pretty; }
.section-dark .pillar p { color: var(--muted-dark); }

/* ---------- Quote / callout --------------------------------------------- */

.callout {
  border-left: 3px solid var(--teal); padding: 4px 0 4px 28px;
  font-size: clamp(1.2rem, 2.3vw, 1.5rem); line-height: 1.5; color: var(--navy);
  font-style: italic;
}

/* ---------- CTA band ---------------------------------------------------- */

.cta-band {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-deeper) 100%);
  color: #fff; padding: clamp(56px, 7vw, 88px) 0; text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 0.45em; }
.cta-band p { color: var(--muted-dark); max-width: 52ch; margin: 0 auto 32px; font-size: 1.1rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Contact ----------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.contact-method {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px 0; border-top: 1px solid var(--line);
}
.contact-method:first-of-type { border-top: 0; padding-top: 0; }
.contact-icon {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: var(--paper-tint); display: grid; place-items: center; color: var(--teal-dark);
}
.contact-method h3 { margin-bottom: 0.2em; font-size: 1.05rem; }
.contact-method a { font-family: var(--font-ui); font-size: 0.98rem; font-weight: 500; }
.contact-method .note { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Footer ------------------------------------------------------ */

.site-footer { background: var(--navy-deeper); color: #B9C9DC; padding: 56px 0 34px; }
.site-footer .lockup .wm-name { color: #fff; }
.site-footer .lockup .wm-sub { color: var(--teal-bright); }
.footer-top {
  display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: center;
  padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-nav a {
  font-family: var(--font-ui); font-size: 0.86rem; color: #C9D7E6;
  text-decoration: none; font-weight: 500;
}
.footer-nav a:hover { color: var(--teal-bright); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between;
  padding-top: 24px; font-family: var(--font-ui); font-size: 0.78rem; color: #8FA5BE;
}
.footer-bottom a { color: #8FA5BE; text-decoration: none; }
.footer-bottom a:hover { color: var(--teal-bright); }

/* ---------- Interior page header ---------------------------------------- */

.page-head {
  background:
    radial-gradient(760px 380px at 92% -20%, rgba(63, 217, 199, 0.12), transparent 62%),
    var(--paper);
  padding: clamp(56px, 7vw, 92px) 0 clamp(40px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { max-width: 18ch; }
.page-head .lede { max-width: 60ch; margin-top: 6px; }

.meta-line {
  font-family: var(--font-ui); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
  margin: -0.3em 0 1em;
}
.card .meta-line { margin: -0.2em 0 0.9em; color: var(--teal-dark); }

/* ---------- Numbered steps ---------------------------------------------- */

.steps { list-style: none; counter-reset: step; margin: 38px 0 0; padding: 0; }
.steps > li {
  counter-increment: step; position: relative;
  padding: 0 0 30px 62px; margin: 0;
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--font-ui); font-size: 0.82rem; font-weight: 600;
  color: var(--teal-dark); background: var(--paper-tint);
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
}
.steps > li::after {
  content: ""; position: absolute; left: 21px; top: 50px; bottom: 8px;
  width: 1px; background: var(--line-strong);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h3 { margin-bottom: 0.35em; padding-top: 8px; }
.steps h4 { margin-bottom: 0.3em; padding-top: 10px; color: var(--navy); }
.steps p { color: var(--muted); }

.steps-compact > li { padding-left: 52px; padding-bottom: 24px; }
.steps-compact > li::before { width: 34px; height: 34px; font-size: 0.74rem; }
.steps-compact > li::after { left: 17px; top: 42px; }
.steps-compact p { font-size: 0.97rem; }

/* ---------- About ------------------------------------------------------- */

.about-grid { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 60px; align-items: start; }
.portrait-frame {
  margin: 0; aspect-ratio: 1164 / 1410; border-radius: var(--radius);
  background: var(--paper-alt); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.portrait-frame img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
}

/* ---------- Selected experience list ------------------------------------ */

.cv-list { list-style: none; margin: 40px 0 0; padding: 0; }
.cv-list li {
  /* fixed final track: each li is its own grid, so an `auto` column would be
     sized per-row and the columns would not line up down the list */
  display: grid; grid-template-columns: 1.15fr 0.85fr 104px;
  gap: 8px 28px; align-items: baseline;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.cv-list li:last-child { border-bottom: 1px solid var(--line); }
.cv-role { font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.cv-org { color: var(--ink); }
.cv-years {
  font-family: var(--font-ui); font-size: 0.82rem; color: var(--muted);
  font-variant-numeric: tabular-nums; white-space: nowrap; justify-self: end;
}

@media (max-width: 720px) {
  .cv-list li { grid-template-columns: 1fr 92px; gap: 2px 16px; }
  .cv-role { grid-column: 1 / -1; }
  .cv-years { justify-self: end; }
}

/* ---------- Contact aside ----------------------------------------------- */

.contact-aside {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 32px; box-shadow: var(--shadow-sm);
}
.contact-aside h3 { margin-bottom: 0.2em; }
.contact-aside .steps { margin-top: 26px; }
.aside-foot {
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 0.95rem; color: var(--muted);
}

/* ---------- Footer brand block ------------------------------------------ */

.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-tagline {
  font-family: var(--font-body); font-style: italic; font-size: 0.97rem;
  color: #A9BBD0; margin: 0; max-width: 34ch;
}

/* ---------- Draft placeholder marker (remove before launch) -------------- */

.todo {
  background: #FFF3C4; color: #6B4E00; padding: 0 5px; border-radius: 3px;
  box-shadow: inset 0 -1px 0 #E0B400; font-style: normal;
}

/* ---------- Responsive -------------------------------------------------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-mark { display: none; }
  .service { grid-template-columns: 1fr; gap: 26px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .pillars { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  /* keep the portrait's 4:5 ratio here — a landscape frame would crop the face */
  .portrait-frame { max-width: 340px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
  .site-header .wrap { min-height: 80px; }
  .site-nav { gap: 18px; }
  .site-nav .nav-cta { display: none; }
  .lockup { gap: 11px; }
  .lockup .mark { height: 48px; }
  .lockup .wm-name { font-size: 1.5rem; }
  .lockup .wm-sub { font-size: 0.62rem; letter-spacing: 0.2em; }
  body { font-size: 1.02rem; }
  .card { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .site-header .wrap { gap: 10px; }
  .site-nav { gap: 13px; }
  .site-nav a:not(.btn) { font-size: 0.78rem; }
  .lockup { gap: 9px; }
  .lockup .mark { height: 40px; }
  .lockup .wm-name { font-size: 1.16rem; }
  .lockup .wm-sub { font-size: 0.47rem; letter-spacing: 0.15em; }
  .btn { padding: 12px 20px; }
}

/* Very narrow phones: give the lockup its own row so the full wordmark
   always reads, rather than dropping "HEALTH STRATEGIES". */
@media (max-width: 370px) {
  .site-header .wrap {
    flex-direction: column; align-items: flex-start;
    gap: 8px; padding-top: 12px; padding-bottom: 12px; min-height: 0;
  }
  .site-nav { gap: 16px; }
}

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

@media print {
  .site-header, .cta-band, .btn-row { display: none; }
  body { background: #fff; }
}
