/* Bobby S. Lee, DDS: the hub group (INTERIOR-PLAN 10.7, B6a): services.html.
   HUB component (v2-specs/components/HUB.md, from newlife-int/07 + newlife-mobile/07). Group-only component
   classes (.hub*); no shared class is restyled. Tokens only; layout is pure CSS @media. */

/* ================================================================ HUB container (newlife, full-bleed on phones) */
.hub__wrap { width: min(1600px, 100%); margin: 0 auto; padding: 0 48px; }

/* ================================================================ Block A: the four family cards */
.hub--cards { padding: 64px 0; }
.hub__grid { display: grid; grid-template-columns: 1fr; row-gap: 64px; }
.hub__card {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; overflow: hidden;
  border-radius: 25px; background: var(--sky); box-shadow: var(--shadow-eh);
}
.hub__media { position: relative; overflow: hidden; width: 100%; min-width: 0; aspect-ratio: 672 / 493; align-self: stretch; }
.hub__img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
}
.hub__card:nth-child(even) .hub__media { order: 2; }       /* newlife order:9999: the photo alternates */
.hub__body {
  display: flex; flex-direction: column; justify-content: center; padding: 64px; min-width: 0;
}
.hub__h2 {
  margin: 0 0 24px; font: 700 36px/40.5px var(--font-display); color: var(--grey-logo); text-wrap: balance;
}
.hub__blurb { max-width: 90%; margin: 0 0 32px; font: 400 19.2px/33.6px var(--font-body); color: var(--body-ink); }
.hub__links { display: flex; flex-wrap: wrap; gap: 16px 32px; margin: 32px 0 0; padding: 0; list-style: none; }
.hub__links > li { display: flex; }
.hub__pill { --pill-h: 44px; --pill-px: 16px; --pill-fs: 16px; }

/* ================================================================ Block B: the flat A to Z slab */
.hub--az { padding: 64px 0; }
.hub__slab {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 1fr;
  grid-template-areas: "media list" "call list";
  background: var(--sky-strong); border-radius: 0; box-shadow: none;
}
.hub__slab > .hub__media { grid-area: media; align-self: start; aspect-ratio: 986 / 1024; }   /* the file's own aspect: 1.47x at 1440 */
.hub__az { grid-area: list; padding: 64px; min-width: 0; }
.hub__intro { max-width: 90%; margin: 0 0 32px; font: 400 19.2px/28.8px var(--font-body); color: var(--body-ink); }
.hub__list { margin: 0; padding: 16px 0 0; list-style: none; border-top: 4px solid var(--white); }
.hub__row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 0 16px; margin: 0 0 16px; border-bottom: 1px solid var(--white); border-radius: 0;
  font: 700 16px/28px var(--font-body); color: var(--body-ink); text-decoration: none;
  transition: color .2s linear;
}
.hub__chev { display: block; flex: none; width: 10px; height: 16px; color: var(--grey-logo); opacity: .75; }
@media (hover: hover) { .hub__row:hover { color: var(--primary-deep); } }
.hub__row:focus-visible { outline: var(--focus-light); outline-offset: 2px; border-radius: var(--radius-button); }
.hub__call { grid-area: call; align-self: start; padding: 64px; }
.hub__callp { margin: 0; font: 400 19.2px/28.8px var(--font-body); color: var(--body-ink); }
.hub__callp a { color: var(--link, var(--primary-deep)); text-decoration: underline; text-underline-offset: 2px; }
@media (hover: hover) { .hub__callp a:hover { text-decoration-thickness: 2px; } }
.hub__callp a:focus-visible { outline: var(--focus-light); outline-offset: 2px; border-radius: var(--radius-button); }
.hub__slab { --link: var(--primary-deep); }                 /* --link on --sky-strong: 5.02:1 */
.hub__callbtn { margin: 32px 0 0; }

/* ================================================================ one track (<= 1024): photo first everywhere */
@media (max-width: 1024px) {
  .hub__card { grid-template-columns: minmax(0, 1fr); }
  .hub__card .hub__media, .hub__card:nth-child(even) .hub__media { order: -1; }
  .hub__slab { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "media" "list" "call"; }
  .hub__slab > .hub__media { aspect-ratio: 672 / 493; }
}

/* ================================================================ phones (<= 600): full-bleed media, vw - 64 wells */
@media (max-width: 600px) {
  .hub__wrap { padding: 0; }
  .hub--cards { padding: 48px 0; }
  .hub__grid { row-gap: 48px; }
  .hub__media, .hub__slab > .hub__media { aspect-ratio: 390 / 286.4; }
  .hub__body { padding: 32px; }
  .hub__h2 { font-size: 28px; line-height: 31.5px; }   /* TITLES 2026-09-27: H2 tier 36 / 28 */
  .hub__links { justify-content: center; }
  .hub--az { padding: 0; }
  .hub__az { padding: 32px; }
  .hub__call { padding: 32px; }
  .hub__callbtn { display: flex; justify-content: center; }
}
