/* ═══════════════════════════════════════════════════════
   INFO-PAGE.CSS — Template for static-content sub-pages
   Anchor: /about/. Reused for our-team, careers, innovation,
   veterans, customer-care, billing, order-supplies,
   patient-resources, clinical-resources, payors, etc.

   Reuses tokens / nav / components / layout from homepage.
   Page-specific classes prefixed `ip-`.
   ═══════════════════════════════════════════════════════ */


/* ── HERO ────────────────────────────────────────────────
   Lighter than test-page hero — no product image required.
   Single column on mobile, optional two-column on desktop
   if .ip-hero__visual is present. */
.ip-hero {
  position: relative;
  padding: var(--gap-3xl) 0 var(--gap-2xl);
  background:
    radial-gradient(ellipse 80% 60% at 30% 0%, rgba(143, 202, 235, 0.18) 0%, transparent 70%),
    linear-gradient(180deg, #f5f3ff 0%, #ffffff 70%);
  overflow: hidden;
}

.ip-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-2xl);
  align-items: center;
}

/* If a visual is included, switch to two-column on desktop */
.ip-hero__inner:has(.ip-hero__visual) {
  /* fallback for browsers without :has — single column is fine */
}

@media (min-width: 1024px) {
  .ip-hero {
    padding: var(--gap-3xl) 0 var(--gap-3xl);
  }
  .ip-hero__inner:has(.ip-hero__visual) {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--gap-3xl);
  }
}

.ip-hero__overline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-coral-dark);
  margin-bottom: var(--gap-sm);
}

.ip-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-purple);
  margin: 0 0 var(--gap-md);
  max-width: 880px;
}

.ip-hero__title em {
  font-style: italic;
  color: var(--color-coral-dark);
}

.ip-hero__title sup {
  font-size: 0.4em;
  vertical-align: super;
  font-weight: 500;
}

.ip-hero__lede {
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  line-height: 1.5;
  color: var(--color-purple-mid);
  font-weight: 500;
  margin: 0 0 var(--gap-xl);
  max-width: 640px;
}

.ip-hero__body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--on-surface-variant);
  margin: 0 0 var(--gap-xl);
  max-width: 640px;
}

.ip-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
}

.ip-hero__visual {
  position: relative;
}

.ip-hero__visual img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 640px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
}


/* ── MISSION / STATEMENT BLOCK ───────────────────────────
   Single big-type statement on a clean surface. Reusable
   for "what we believe", "values", "the why" content. */
.ip-mission {
  padding: var(--gap-3xl) 0;
  background: var(--surface);
  text-align: center;
}

.ip-mission .overline {
  display: block;
  margin-bottom: var(--gap-md);
  color: var(--color-coral-dark);
}

.ip-mission__statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--color-purple);
  max-width: 920px;
  margin: 0 auto;
}

.ip-mission__statement em {
  font-style: italic;
  color: var(--color-coral-dark);
}


/* ── TWO-COLUMN COHORT / LIST PATTERN ────────────────────
   Two columns of headed lists. Used for "who we serve",
   "what we do", "team areas", etc. */
.ip-cohort {
  padding: var(--gap-3xl) 0;
  background: linear-gradient(180deg, #ffffff 0%, rgba(143, 202, 235, 0.10) 100%);
}

.ip-cohort__header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto var(--gap-2xl);
}

.ip-cohort__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.875rem, 3.5vw, 2.875rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-purple);
  margin: var(--gap-sm) 0 0;
}

.ip-cohort__title em {
  font-style: italic;
  color: var(--color-coral-dark);
}

.ip-cohort__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-xl);
  max-width: 920px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .ip-cohort__grid { grid-template-columns: 1fr 1fr; }
}

.ip-cohort__col {
  padding: var(--gap-xl);
  background: #ffffff;
  border: 1px solid rgba(57, 55, 143, 0.10);
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 0 rgba(57, 55, 143, 0.04);
}

.ip-cohort__col-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-coral-dark);
  margin: 0 0 var(--gap-md);
}

.ip-cohort__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ip-cohort__list li {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  color: var(--on-surface);
  font-weight: 500;
  padding-left: 22px;
  position: relative;
}

.ip-cohort__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--color-coral);
  border-radius: 50%;
}


/* ── CONTENT BLOCK PATTERN ───────────────────────────────
   Long-form text section. Use for body content from the
   scraped markdown when there's no special pattern.

   Usage: <section class="ip-content"><div class="container">
   ... markdown-rendered HTML inside .ip-content__body ...
   </div></section>
   ─────────────────────────────────────────────────────── */
.ip-content {
  padding: var(--gap-2xl) 0;
  background: #ffffff;
}

.ip-content__body {
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--on-surface);
}

.ip-content__body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-purple);
  margin: var(--gap-2xl) 0 var(--gap-md);
}

.ip-content__body h2:first-child { margin-top: 0; }

.ip-content__body h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-purple);
  margin: var(--gap-xl) 0 var(--gap-sm);
}

.ip-content__body p {
  margin: 0 0 var(--gap-md);
}

.ip-content__body ul,
.ip-content__body ol {
  margin: 0 0 var(--gap-md) 0;
  padding-left: 1.5em;
}

.ip-content__body li {
  margin-bottom: 6px;
}

.ip-content__body a {
  color: var(--color-coral-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.ip-content__body a:hover { color: var(--color-coral); }

.ip-content__body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: var(--gap-md) 0;
}


/* ── TEAM / PROFILE GRID PATTERN ─────────────────────────
   For Our Team page: grid of cards with photo, name, title.
   Sessions can use this when scraped content has team members. */
.ip-team {
  padding: var(--gap-3xl) 0;
  background: var(--surface);
}

.ip-team__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--gap-2xl);
}

.ip-team__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
}

@media (min-width: 640px)  { .ip-team__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .ip-team__grid { grid-template-columns: repeat(3, 1fr); } }

.ip-team__card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(57, 55, 143, 0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ip-team__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(57, 55, 143, 0.18);
}

/* Stretched-link pattern — when a team card's name is wrapped in an
   anchor (i.e. the team member has a bio page), the anchor covers the
   whole card so clicks anywhere on the card navigate to the bio. */
.ip-team__name a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.ip-team__name a:hover { color: var(--color-coral-dark); }

.ip-team__name a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

/* Photo container — soft brand mesh-gradient backdrop with the
   circular headshot centered inside. Pre-cropped circular PNGs sit on
   top of a white ring + drop-shadow for definition against the gradient. */
.ip-team__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 25% 20%, rgba(143, 202, 235, 0.32) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 85%, rgba(232, 32, 101, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(57, 55, 143, 0.08) 0%, transparent 70%),
    linear-gradient(180deg, #f5f3ff 0%, #ffffff 100%);
}

.ip-team__photo img {
  width: 62%;
  max-width: 180px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.85),
    0 12px 28px -8px rgba(57, 55, 143, 0.28);
  display: block;
}

/* Empty placeholder cards (when an image is genuinely missing) — fall
   back to a subtle silhouette ring so the card still feels intentional. */
.ip-team__photo:empty::after {
  content: '';
  width: 62%;
  max-width: 180px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.85),
              0 12px 28px -8px rgba(57, 55, 143, 0.18);
}

.ip-team__body {
  padding: var(--gap-md) var(--gap-lg) var(--gap-lg);
}

.ip-team__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--color-purple);
  margin: 0 0 4px;
}

.ip-team__title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-coral-dark);
  margin: 0 0 var(--gap-sm);
}

.ip-team__bio {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--on-surface-variant);
  margin: 0;
}


/* ── JOB LISTINGS / CAREERS PATTERN ──────────────────────
   For Careers page: list of open positions.
   Each row links out to the actual ATS posting. */
.ip-jobs {
  padding: var(--gap-3xl) 0;
}

.ip-jobs__list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.ip-jobs__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  padding: var(--gap-lg) 0;
  border-bottom: 1px solid rgba(57, 55, 143, 0.10);
  font-family: var(--font-body);
}

.ip-jobs__row:first-child { border-top: 1px solid rgba(57, 55, 143, 0.10); }

.ip-jobs__role {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-purple);
}

.ip-jobs__meta {
  font-size: 13px;
  color: var(--on-surface-variant);
}


/* ── CONTACT FORM PATTERN ───────────────────────────────
   Used on /contact/. Vanilla form using the brand
   palette — no third-party form library. */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  margin-top: var(--gap-lg);
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}

@media (min-width: 640px) {
  .contact-form__row { grid-template-columns: 1fr 1fr; }
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-coral-dark);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  color: var(--on-surface);
  background: #ffffff;
  border: 1px solid rgba(57, 55, 143, 0.18);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%2339378f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='2 4 5 7 8 4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 38px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-coral);
  box-shadow: 0 0 0 3px rgba(232, 32, 101, 0.15);
}

.contact-form button[type="submit"] {
  align-self: flex-start;
  margin-top: var(--gap-sm);
}


/* ── TESTIMONIAL CARD PATTERN ───────────────────────────
   Used on /testimonials/. Avatar circle + pull-quote +
   long-form body. Stacks on mobile, two-column on desktop. */
.ip-quotes {
  padding: var(--gap-3xl) 0;
}

.ip-quotes__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-2xl);
  max-width: 1080px;
  margin: 0 auto;
}

.ip-quote {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
  padding: var(--gap-xl);
  background: #ffffff;
  border: 1px solid rgba(57, 55, 143, 0.10);
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 0 rgba(57, 55, 143, 0.04);
}

@media (min-width: 768px) {
  .ip-quote { grid-template-columns: 200px 1fr; gap: var(--gap-xl); }
}

.ip-quote__avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(57,55,143,0.12), rgba(232,32,101,0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--color-purple);
  font-weight: 400;
  margin: 0 auto;
  box-shadow: 0 8px 22px -8px rgba(57, 55, 143, 0.22);
}

@media (min-width: 768px) {
  .ip-quote__avatar { margin: 0; }
}

.ip-quote__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--color-purple);
  margin: 0 0 4px;
}

.ip-quote__title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-coral-dark);
  margin: 0 0 var(--gap-md);
}

.ip-quote__pull {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.4;
  color: var(--color-purple);
  margin: 0 0 var(--gap-md);
  border-left: 3px solid var(--color-coral);
  padding-left: var(--gap-md);
}

.ip-quote__body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--on-surface);
  margin: 0;
}

.ip-quote__body p { margin: 0 0 var(--gap-sm); }
.ip-quote__body p:last-child { margin-bottom: 0; }
