/* ==========================================================================
   "More ways we support you" — tabbed panel, index.html only.
   Rebuilt 2026-09-09 as a ditto copy of new-designs/Care that travels,
   works and grows with you/... (client's "HOMEPAGE TAB MODULE — FOUR
   STATES" reference) — a 4-tab interface (International Care / Corporate
   Healthcare / Home Healthcare / Healthcare Careers), one panel visible at
   a time, every panel sharing ONE uniform structure: eyebrow pill, 2-line
   heading, subtitle, 3 quick-link tiles, a single CTA button, a photo with
   a 4-item floating list, and a 4-item icon stats strip. Superseded an
   earlier (2026-08-24) version where each tab had its own bespoke extra
   piece not in this reference (a care-journey timeline, a dark gradient
   panel + 6-stat CTA banner, feature-description pairs) — removed rather
   than kept alongside, per the client's exact-copy instruction.
   ========================================================================== */

.support-tabs { margin-top: var(--sp-2); }

.support-tabs__bar {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--white);
  overflow-x: auto;
  scrollbar-width: none;
}
.support-tabs__bar::-webkit-scrollbar { display: none; }

.support-tabs__tab {
  flex: 1 1 0;
  min-width: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--ink-500);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.support-tabs__tab svg { width: 17px; height: 17px; flex-shrink: 0; }
.support-tabs__tab:hover { color: var(--ink-900); }
.support-tabs__tab.is-active { color: var(--brand-700); border-bottom-color: var(--brand-700); }

/* ---- Panel shell ---- */
.support-tabs__panel {
  display: none;
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.support-tabs__panel.is-active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: var(--sp-5);
}

.support-tabs__copy {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.support-tabs__pill {
  align-self: flex-start;
  font-size: .6875rem;
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-tint);
  padding: 3px 10px;
  border-radius: var(--r-full);
  max-width: 100%;
}
.support-tabs__copy h3 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--ink-900);
}
.support-tabs__copy h3 em { font-style: normal; color: var(--brand-700); }
.support-tabs__copy p {
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  color: var(--ink-500);
  max-width: 46ch;
}
.support-tabs__copy > .btn { align-self: flex-start; }
/* Reference's CTA button is the site's teal brand color, not the sitewide
   .btn-primary gold — scoped override here only, .btn-primary stays gold
   everywhere else (e.g. the header's "Find care" button). */
.support-tabs__copy > .btn-primary { background: var(--brand-700); }
.support-tabs__copy > .btn-primary:hover { background: var(--brand-900); }

/* ---- Quick-link tiles (3 per tab, every tab) ---- */
.support-tabs__tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
}
.support-tabs__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--ink-900);
  line-height: 1.25;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.support-tabs__tile:hover { border-color: var(--brand-700); box-shadow: var(--shadow-1); }
.support-tabs__tile small { display: block; font-weight: var(--fw-medium); color: var(--brand-700); font-size: .6875rem; }
.support-tabs__tile-icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  background: var(--brand-tint);
  color: var(--brand-700);
}
.support-tabs__tile-icon svg { width: 17px; height: 17px; }
.support-tabs__tile-arrow { position: absolute; top: var(--sp-3); right: var(--sp-3); width: 14px; height: 14px; color: var(--ink-300); }

/* ---- Stat strip — lives INSIDE .support-tabs__copy (last child), so it's
   confined to the copy column's width, not spanning full width under the
   photo too (that was a real bug: the client's reference and tweaks.jpg
   both keep it narrow, to the left of the photo — a change first missed
   because a stray divider-border fix was mistaken for the real ask).
   Same 4-icon-stat structure on every tab — replaces every tab's earlier
   bespoke variant: the Corporate dark 6-stat+CTA banner, the Home/Careers
   5-stat description rows. ---- */
.support-tabs__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--surface);
  border-radius: var(--r-lg);
}
/* No divider borders between stats — the icon sits directly in the row's
   own grid gap on its left, matching new-designs/.../tweaks.jpg (which
   dropped the vertical divider lines this component had before). */
.support-tabs__stat { display: flex; align-items: center; gap: var(--sp-3); }
.support-tabs__stat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--white);
  color: var(--brand-700);
  flex-shrink: 0;
}
.support-tabs__stat-icon svg { width: 19px; height: 19px; }
/* Scoped to the text wrapper div's own span, not `.support-tabs__stat span`
   generically — that broader selector also matches .support-tabs__stat-icon
   (itself a <span>) and, at higher specificity than the single-class icon
   rule, was overriding its display:inline-flex to block — the icon then
   rendered above the white circle instead of centered inside it. */
.support-tabs__stat b { display: block; font-size: var(--fs-sm); color: var(--ink-900); }
.support-tabs__stat > div span { display: block; font-size: var(--fs-2xs); color: var(--ink-500); margin-top: 2px; }

/* ---- Right column: photo + floating overlays ---- */
.support-tabs__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 260px;
}
.support-tabs__photo { width: 100%; height: 100%; object-fit: cover; display: block; }

.support-tabs__floatcard {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 190px;
  padding: var(--sp-3);
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
}
.support-tabs__floatcard ul { display: flex; flex-direction: column; gap: 6px; }
.support-tabs__floatcard li {
  display: flex; align-items: center; gap: 7px;
  font-size: .6875rem; color: var(--ink-700);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.support-tabs__floatcard li:last-child { border-bottom: none; padding-bottom: 0; }
.support-tabs__floatcard li svg { width: 14px; height: 14px; color: var(--brand-700); flex-shrink: 0; }

@media (max-width: 900px) {
  .support-tabs__panel.is-active { grid-template-columns: 1fr; }
  .support-tabs__media { order: -1; min-height: 0; height: auto; }
  .support-tabs__photo { height: 220px; }
  .support-tabs__tiles { grid-template-columns: 1fr; }
  .support-tabs__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-tabs__floatcard { position: static; width: 100%; margin-top: var(--sp-3); }
}

@media (max-width: 640px) {
  .support-tabs__tab { font-size: .6875rem; padding: var(--sp-3); }
  .support-tabs__stats { grid-template-columns: 1fr; }
}
