/* ============================================================
   Collaborative Health — shared styles
   ============================================================ */

:root {
  /* Palette — Collaborative Health brand blues (from logo puzzle) */
  --ink:        #1c2b36;   /* near-navy, body text */
  --teal-900:   #265977;   /* deepest brand blue (navy piece) */
  --teal-700:   #1374b4;   /* primary brand blue */
  --teal-500:   #1f86c4;   /* accent / CTA */
  --teal-400:   #71bee7;   /* light sky-blue piece / bright accent */
  --steel:      #5191ba;   /* steel-blue piece */
  --sage-100:   #eef4f8;   /* soft page background (cool) */
  --sage-200:   #dbe7f0;   /* card / divider tint */
  --cream:      #f6f9fb;   /* light panel background */
  --white:      #ffffff;
  --muted:      #51687a;   /* secondary text */
  --line:       #cbdae6;   /* hairlines */

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw: 1160px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(38, 89, 119, 0.06);
  --shadow: 0 14px 40px rgba(38, 89, 119, 0.10);
  --shadow-lg: 0 30px 70px rgba(38, 89, 119, 0.14);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--sage-100);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--teal-900);
}

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

/* ---------- Eyebrow / connected-nodes motif ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 22px;
  background-image: url("images/puzzle-icon.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex: 0 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--teal-700);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(19, 116, 180, 0.32);
}
.btn-primary:hover { background: var(--teal-900); transform: translateY(-2px); box-shadow: 0 16px 30px rgba(19, 116, 180, 0.38); }
.btn-ghost {
  background: transparent;
  color: var(--teal-900);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--teal-500); color: var(--teal-700); transform: translateY(-2px); }
.btn-light {
  background: var(--white);
  color: var(--teal-900);
}
.btn-light:hover { background: var(--cream); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238, 243, 239, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.32rem;
  color: var(--teal-900);
  letter-spacing: -0.02em;
}
.brand img.logo-lockup { height: 46px; width: auto; display: block; }
@media (max-width: 520px) { .brand img.logo-lockup { height: 38px; } }
.brand .mark { width: 38px; height: 38px; flex: 0 0 auto; }
.brand span { line-height: 1; }
.brand small { display: block; font-family: var(--body); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal-500); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 0.4rem; list-style: none; }
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 0.5rem 0.85rem;
  border-radius: 100px;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-links a:hover { background: var(--sage-200); color: var(--teal-900); }
.nav-links a.active { color: var(--teal-700); font-weight: 600; }
.nav-cta { margin-left: 0.4rem; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 0.45rem;
  text-decoration: none; font-weight: 600; color: var(--teal-700);
  padding: 0.6rem 0.5rem;
}
.nav-phone svg { width: 17px; height: 17px; }

.nav-toggle {
  display: none;
  background: none; border: 1.5px solid var(--line);
  border-radius: 10px; padding: 0.5rem; cursor: pointer;
  color: var(--teal-900);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0.2rem;
    background: var(--sage-100);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem var(--gutter) 1.3rem;
    transform: translateY(-12px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { padding: 0.85rem 0.6rem; font-size: 1.05rem; }
  .nav-cta { margin: 0.5rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-phone { padding: 0.7rem 0.6rem; }
}

/* ---------- Sections ---------- */
section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); }
.section-head p { color: var(--muted); margin-top: 1rem; font-size: 1.08rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 7vw, 6rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 1.3rem + 4.4vw, 4.1rem);
  line-height: 1.04;
}
.hero h1 em { font-style: italic; color: var(--teal-500); }
.hero p.lede {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.22rem);
  color: var(--muted);
  max-width: 52ch;
}
.hero-actions { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero-note { margin-top: 1.5rem; font-size: 0.92rem; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; }
.hero-note strong { color: var(--teal-700); font-weight: 600; }

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--teal-700), var(--teal-900));
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(38,89,119,0.05) 40%, rgba(38,89,119,0.55) 100%);
}
.hero-badge {
  position: absolute; left: 1.2rem; bottom: 1.2rem; right: 1.2rem;
  background: rgba(247, 245, 239, 0.94);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  display: flex; gap: 0.9rem; align-items: center;
  box-shadow: var(--shadow-sm);
}
.hero-badge .nodes { width: 46px; height: 46px; flex: 0 0 auto; }
.hero-badge p { font-size: 0.9rem; line-height: 1.45; color: var(--ink); }
.hero-badge strong { color: var(--teal-900); }

/* placeholder visual when no photo is present */
.media-placeholder {
  position: absolute; inset: 0;
  display: grid; place-content: center; text-align: center;
  color: rgba(247,245,239,0.85); padding: 2rem;
  font-family: var(--body); font-size: 0.9rem; letter-spacing: 0.04em;
}
.media-placeholder svg { width: 88px; height: 88px; margin: 0 auto 1rem; opacity: 0.9; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 5 / 4; max-height: 460px; }
}

/* ---------- Band (full-width statement) ---------- */
.band {
  background: linear-gradient(150deg, var(--teal-900), var(--teal-700));
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.band::after {
  content: "";
  position: absolute; right: -40px; top: -40px;
  width: 260px; height: 260px;
  background-image: url("images/puzzle-lg.svg");
  background-size: contain; background-repeat: no-repeat;
  opacity: 0.16;
}
.band h2 { color: var(--cream); font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); max-width: 18ch; }
.band p { color: rgba(247,245,239,0.86); margin-top: 1.1rem; max-width: 60ch; font-size: 1.08rem; }

/* ---------- Story split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split .prose p + p { margin-top: 1.1rem; }
.split .prose p { color: var(--muted); }
.split .prose h2 { color: var(--teal-900); margin-bottom: 1.2rem; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--sage-200); }
.card .icon {
  width: 52px; height: 52px;
  display: grid; place-content: center;
  border-radius: 14px;
  background: var(--sage-100);
  color: var(--teal-700);
  margin-bottom: 1.1rem;
}
.card .icon svg { width: 26px; height: 26px; stroke: var(--teal-700); }
.card h3 { font-size: 1.28rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Trust builders ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2rem; }
@media (max-width: 820px) { .trust { grid-template-columns: 1fr; gap: 1.6rem; } }
.trust-item { display: flex; gap: 1rem; align-items: flex-start; }
.trust-item .tnum {
  font-family: var(--display); font-size: 1.05rem; font-weight: 600;
  color: var(--teal-500);
  border: 1.5px solid var(--line); border-radius: 50%;
  width: 42px; height: 42px; flex: 0 0 auto;
  display: grid; place-content: center;
}
.trust-item h3 { font-size: 1.18rem; margin-bottom: 0.35rem; }
.trust-item p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr; } }

.provider {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.provider:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.provider .photo {
  aspect-ratio: 5 / 4;
  background: linear-gradient(160deg, var(--teal-700), var(--teal-900));
  position: relative;
}
.provider .photo img { width: 100%; height: 100%; object-fit: cover; }
.provider .photo .ph {
  position: absolute; inset: 0; display: grid; place-content: center; color: rgba(247,245,239,0.8);
}
.provider .photo .ph svg { width: 64px; height: 64px; }
.provider .body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.provider h3 { font-size: 1.45rem; }
.provider .role {
  font-family: var(--body); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-500);
  margin-top: 0.35rem;
}
.provider .tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1rem 0 1.1rem; }
.provider .tags span {
  font-size: 0.78rem; font-weight: 500;
  background: var(--sage-100); color: var(--teal-700);
  border: 1px solid var(--line);
  padding: 0.3rem 0.7rem; border-radius: 100px;
}
.provider .bio p { color: var(--muted); font-size: 0.97rem; }
.provider .bio p + p { margin-top: 0.8rem; }

/* ---------- Team behind the team (support staff + Ollie) ---------- */
.staff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; max-width: 860px; margin-inline: auto; }
@media (max-width: 680px) { .staff-grid { grid-template-columns: 1fr; } }
.staff {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.staff:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.staff .photo { aspect-ratio: 5 / 4; background: var(--sage-200); }
.staff .photo img { width: 100%; height: 100%; object-fit: cover; }
.staff .body { padding: 1.4rem 1.5rem 1.6rem; }
.staff h3 { font-size: 1.3rem; }
.staff .role {
  font-family: var(--body); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel);
  margin-top: 0.3rem;
}
.staff .bio p { color: var(--muted); font-size: 0.97rem; margin-top: 0.9rem; }

/* provider website link */
.provider .site-link, .staff .site-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.1rem; font-weight: 600; font-size: 0.92rem;
  color: var(--teal-700); text-decoration: none;
}
.provider .site-link:hover, .staff .site-link:hover { color: var(--teal-900); text-decoration: underline; }
.provider .site-link svg, .staff .site-link svg { width: 15px; height: 15px; }

/* ---------- Contact: businesses list ---------- */
.biz-list { display: grid; gap: 0.1rem; }
.biz-list .row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.6rem 0; border-bottom: 1px solid var(--line);
}
.biz-list .row:last-child { border-bottom: 0; }
.biz-list .row span:first-child { color: var(--ink); font-weight: 500; font-size: 0.96rem; }
.biz-list .row a { color: var(--teal-700); text-decoration: none; font-weight: 600; white-space: nowrap; }
.biz-list .row a:hover { color: var(--teal-900); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list { display: grid; gap: 1.4rem; }
.info-block {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm);
}
.info-block h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; }
.info-block h3 svg { width: 19px; height: 19px; stroke: var(--teal-500); }
.info-block p, .info-block a { color: var(--muted); text-decoration: none; font-size: 0.98rem; }
.info-block a:hover { color: var(--teal-700); }
.hours { display: grid; gap: 0.4rem; }
.hours .row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.96rem; }
.hours .row span:first-child { color: var(--ink); font-weight: 500; }
.hours .row span:last-child { color: var(--muted); }
.placeholder-text { color: var(--teal-500); font-style: italic; }

.form-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow);
}
.form-card h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.form-card > p { color: var(--muted); margin-bottom: 1.6rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.45rem; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--sage-100);
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-500); background: var(--white);
  box-shadow: 0 0 0 4px rgba(19, 116, 180, 0.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 0.3rem; }
.form-status { margin-top: 1rem; font-size: 0.95rem; color: var(--teal-700); font-weight: 500; min-height: 1.2em; }

.map-embed {
  margin-top: 1.4rem; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 7; background: var(--sage-200);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.map-placeholder {
  height: 100%; display: grid; place-content: center; text-align: center;
  color: var(--muted); gap: 0.5rem; padding: 1.5rem;
}
.map-placeholder svg { width: 40px; height: 40px; margin: 0 auto; stroke: var(--teal-500); }

/* ---------- CTA strip ---------- */
.cta-strip { text-align: center; }
.cta-strip .inner {
  background: linear-gradient(150deg, var(--teal-900), var(--teal-700));
  border-radius: var(--radius-lg);
  padding: clamp(2.6rem, 5vw, 4.2rem) clamp(1.5rem, 4vw, 3rem);
  color: var(--cream);
  position: relative; overflow: hidden;
}
.cta-strip .inner::before {
  content: ""; position: absolute; left: -50px; bottom: -50px;
  width: 220px; height: 220px;
  background-image: url("images/puzzle-lg.svg"); background-size: contain; background-repeat: no-repeat;
  opacity: 0.14;
}
.cta-strip h2 { color: var(--cream); font-size: clamp(1.8rem, 1.3rem + 2.4vw, 2.8rem); position: relative; }
.cta-strip p { color: rgba(247,245,239,0.85); max-width: 48ch; margin: 1rem auto 1.8rem; position: relative; }
.cta-strip .btn { position: relative; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-900);
  color: rgba(247, 245, 239, 0.75);
  padding-block: clamp(2.6rem, 5vw, 3.6rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }
.footer-brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--cream); font-family: var(--display); font-size: 1.3rem; font-weight: 600; text-decoration: none; }
.footer-brand img.logo-lockup { height: 52px; width: auto; display: block; }
.footer-brand .mark { width: 36px; height: 36px; }
.site-footer p { font-size: 0.94rem; margin-top: 0.9rem; max-width: 36ch; }
.footer-col h4 { color: var(--cream); font-family: var(--body); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.9rem; font-weight: 600; }
.footer-col ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-col a { color: rgba(247,245,239,0.75); text-decoration: none; font-size: 0.96rem; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { border-top: 1px solid rgba(247,245,239,0.15); margin-top: 2.4rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; font-size: 0.86rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Skip link / a11y ---------- */
.skip-link {
  position: absolute; left: 0.75rem; top: -3rem;
  background: var(--teal-900); color: var(--cream);
  padding: 0.6rem 1rem; border-radius: 8px; z-index: 100;
  text-decoration: none; transition: top 0.2s ease;
}
.skip-link:focus { top: 0.75rem; }
:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 2px; border-radius: 4px; }

/* sub-hero for interior pages */
.page-hero { padding-block: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.6rem); max-width: 16ch; }
.page-hero p.lede { color: var(--muted); margin-top: 1.2rem; max-width: 58ch; font-size: 1.12rem; }
