/* ============================================================
   TNT Nursing Partners — styles.css
   Sibling of tntdatapartners.com: same brand system (Style Guide
   v1.9.1 tokens, Poppins/Inter, navy anchor, green accent,
   lavender on navy) and the same layout vocabulary.
   ============================================================ */

/* ---- Tokens ---- */
:root {
  --navy:        #002F74;
  --navy-deep:   #002458;
  --green:       #0C473F;
  --green-hover: #0a3b34;
  --lavender:    #A8B4EB;
  --slate:       #5B6478;
  --cool-gray:   #A4A4A4;
  --white:       #FFFFFF;
  --off-white:   #F6F7FB;
  --ink:         #1C2536;

  --font-head: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(0,47,116,.06), 0 6px 18px rgba(0,47,116,.05);
  --shadow-md: 0 10px 30px rgba(0,47,116,.10), 0 2px 8px rgba(0,47,116,.06);
  --shadow-navy: 0 24px 60px rgba(0,20,60,.28);

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p { overflow-wrap: break-word; }

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -.012em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }

::selection { background: var(--lavender); color: var(--navy); }

/* ---- Layout ---- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--navy { background: var(--navy); color: rgba(255,255,255,.85); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--soft { background: var(--off-white); }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 .9rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.section--navy .eyebrow { color: var(--lavender); }
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: currentColor;
  display: inline-block;
}

.lead { font-size: 1.2rem; line-height: 1.6; color: var(--slate); max-width: 46ch; }
.section--navy .lead { color: rgba(255,255,255,.82); }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }

/* ---- Buttons ---- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--green { --btn-bg: var(--green); border-color: var(--green); }
.btn--green:hover { background: var(--green-hover); border-color: var(--green-hover); }
.btn--on-navy { background: #fff; color: var(--navy); border-color: #fff; }
.btn--on-navy:hover { background: var(--lavender); border-color: var(--lavender); color: var(--navy); }
.btn--ghost-navy { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-navy:hover { border-color: #fff; background: rgba(255,255,255,.06); box-shadow: none; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
.section--navy :focus-visible { outline-color: var(--lavender); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid #ECEEF4;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 74px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 56px; width: auto; }
.brand:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav .nav-inline-cta { display: none; }
.nav a {
  font-family: var(--font-head);
  font-weight: 500; font-size: .95rem; color: var(--ink);
  position: relative; padding: .25rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--green); transition: width .2s var(--ease);
}
.nav a:hover { text-decoration: none; }
.nav a:hover::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: .4rem; color: var(--navy);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .nav, .header-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 74px; left: 0; right: 0;
    background: #fff; padding: 1.25rem var(--gutter) 1.75rem;
    gap: 1.1rem; border-bottom: 1px solid #ECEEF4; box-shadow: var(--shadow-md);
  }
  .nav.open .btn { display: inline-flex; margin-top: .4rem; color: #fff; }
  .nav.open .btn::after { display: none; }
  .nav.open .nav-inline-cta { display: inline-flex; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 82% -8%, rgba(168,180,235,.22), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 62%, #001a44 100%);
  color: #fff;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 100% 46px;
  mask-image: linear-gradient(to bottom, transparent, #000 40%, transparent);
  opacity: .5;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-grid > * { min-width: 0; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  line-height: 1.05; letter-spacing: -.02em; margin-bottom: 1.1rem;
}
.hero h1 .accent { color: var(--lavender); }
.hero-sub { font-size: 1.2rem; color: rgba(255,255,255,.84); max-width: 46ch; margin-bottom: 1.9rem; }
.hero-slogan {
  font-family: var(--font-head); font-style: italic; font-weight: 500;
  color: var(--lavender); font-size: 1.02rem; margin-top: 2rem;
}
.hero-slogan small { display: block; font-style: normal; font-weight: 400; color: rgba(255,255,255,.6); font-size: .82rem; margin-top: .35rem; }
.hero-slogan small a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-sub { max-width: none; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(1.75rem, 7.4vw, 2.4rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; width: 100%; }
}

/* ---- Signature: the coverage board ---- */
.board {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(168,180,235,.28);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: var(--shadow-navy);
  backdrop-filter: blur(4px);
}
.board-label {
  font-family: var(--font-head); font-weight: 600; font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--lavender);
  margin: 0 0 .8rem; padding-left: .2rem;
}
.shift {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  background: #fff; border-radius: 12px; padding: .78rem 1rem;
  color: var(--ink);
}
.shift + .shift { margin-top: .55rem; }
.shift .who { min-width: 0; }
.shift .unit { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink); display: block; line-height: 1.3; }
.shift .meta { font-size: .8rem; color: var(--slate); }
.status {
  flex: none;
  font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  border-radius: 999px; padding: .34rem .8rem;
  background: #EEF0F6; color: var(--slate);
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.shift.covered .status { background: var(--green); color: #fff; transform: scale(1.04); }
.board-note {
  margin: .9rem .2rem 0; font-size: .82rem; color: rgba(255,255,255,.72);
  font-family: var(--font-head);
}
.board-note b { color: #fff; font-weight: 600; }

/* ---- Cards ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(1.1rem, 2.5vw, 1.6rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(1.1rem, 2.5vw, 1.6rem); }
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid #E9ECF3; border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #DCE0EC; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(12,71,63,.08); color: var(--green);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { color: var(--ink); margin-bottom: .4rem; }
.card p { margin: 0; font-size: .98rem; }

/* ---- Story ---- */
.story-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } }
.story-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.story-photo img { width: 100%; height: clamp(280px, 44vw, 460px); object-fit: cover; }
.story-photo figcaption {
  background: var(--navy); color: var(--lavender);
  font-family: var(--font-head); font-style: italic; font-size: .9rem;
  padding: .8rem 1.2rem; text-align: center;
}
.belief-quote {
  border-left: 4px solid var(--green);
  padding: .35rem 0 .35rem 1.1rem;
  margin: 1.4rem 0 0;
  font-family: var(--font-head); font-style: italic; font-weight: 600;
  color: var(--green); font-size: 1.15rem; line-height: 1.5;
}

/* ---- Services (navy) ---- */
.svc-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(168,180,235,.28);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.svc-card h3 { color: #fff; margin-bottom: 1rem; }
.svc-card ul { list-style: none; margin: 0; padding: 0; }
.svc-card li {
  display: flex; gap: .65rem; align-items: flex-start;
  padding: .42rem 0; color: rgba(255,255,255,.88); font-size: .98rem; line-height: 1.5;
}
.svc-card li svg { flex: none; width: 18px; height: 18px; margin-top: .18rem; stroke: var(--lavender); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.svc-note { font-family: var(--font-head); font-style: italic; color: var(--lavender); font-size: .92rem; margin: .9rem 0 0; }

/* ---- The difference ---- */
.diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.1rem, 2.5vw, 1.6rem); align-items: stretch; }
@media (max-width: 820px) { .diff-grid { grid-template-columns: 1fr; } }
.diff-col { border-radius: var(--radius-lg); padding: 1.75rem; border: 1px solid #E9ECF3; background: var(--off-white); }
.diff-col.tnt { background: var(--green); border-color: var(--green); }
.diff-tag {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  border-radius: 999px; padding: .5rem 1.15rem; margin-bottom: 1.1rem;
  background: #DFE3EE; color: var(--ink);
}
.diff-col.tnt .diff-tag { background: rgba(255,255,255,.14); color: #fff; }
.diff-col ul { list-style: none; margin: 0; padding: 0; }
.diff-col li {
  display: flex; gap: .65rem; align-items: flex-start;
  padding: .42rem 0; font-size: .98rem; line-height: 1.5; color: var(--slate);
}
.diff-col.tnt li { color: rgba(255,255,255,.92); font-weight: 500; }
.diff-col li svg { flex: none; width: 18px; height: 18px; margin-top: .18rem; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.diff-col.old li svg { stroke: var(--cool-gray); }
.diff-col.tnt li svg { stroke: var(--lavender); }

/* ---- Photo band ---- */
.band-photo { position: relative; height: clamp(220px, 34vw, 380px); overflow: hidden; }
.band-photo img { width: 100%; height: 100%; object-fit: cover; }
.band-photo .veil { position: absolute; inset: 0; background: linear-gradient(rgba(0,47,116,.28), rgba(0,47,116,.28)); }
.band-photo blockquote {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  margin: 0; padding: 0 var(--gutter); text-align: center;
}
.band-photo blockquote p {
  font-family: var(--font-head); font-style: italic; font-weight: 600;
  color: #fff; font-size: clamp(1.15rem, 2.6vw, 1.8rem); max-width: 26ch;
  text-shadow: 0 2px 18px rgba(0,23,58,.55); margin: 0;
}

/* ---- Contact ---- */
.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(1.1rem, 2.5vw, 1.6rem); margin-bottom: clamp(2rem, 4vw, 3rem); }
@media (max-width: 820px) { .people-grid { grid-template-columns: 1fr; } }
.person-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(168,180,235,.28);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
}
.person-card h3 { color: #fff; margin-bottom: .1rem; }
.person-card .role { font-family: var(--font-head); font-style: italic; font-size: .88rem; color: var(--lavender); margin: 0 0 1rem; }
.person-card a {
  display: flex; align-items: center; gap: .6rem;
  color: rgba(255,255,255,.9); font-size: .95rem; font-weight: 500;
  padding: .28rem 0;
}
.person-card a:hover { color: #fff; }
.person-card a svg { flex: none; width: 16px; height: 16px; stroke: var(--lavender); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-cta { text-align: center; }
.contact-cta .lead { margin-inline: auto; }

/* ---- Footer ---- */
.site-footer { background: #fff; border-top: 1px solid #ECEEF4; padding-block: 2.5rem 2rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.footer-top img { height: 52px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-links a { font-family: var(--font-head); font-size: .9rem; font-weight: 500; color: var(--slate); }
.footer-links a:hover { color: var(--navy); }
.footer-bottom { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid #F0F2F7; font-size: .82rem; color: var(--cool-gray); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .shift.covered .status { transform: none; }
}

/* ---- Brand family strip (footer continuity across TNT sites) ---- */
.footer-slogan { font-family: var(--font-head); font-style: italic; font-weight: 500; color: var(--green); font-size: .9rem; margin: .6rem 0 0; }
.family-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.2rem; }
.family-strip img { height: 40px; width: auto; filter: grayscale(1); opacity: .55; transition: opacity .18s var(--ease), filter .18s var(--ease); }
.family-strip a:hover img { opacity: 1; filter: none; }
