/* /business-solutions/ overview (copy v3). Loads after base.css. */

/* Hero: the v3 H1 runs long, so the column widens and the type steps down to hold it to four lines at 1440. */
.bs-overview #bs-hero .bs-sub { max-width: 52ch; }
#bs-main.bs-overview #bs-hero .bs-sub p { margin: 0; color: inherit; font: inherit; letter-spacing: inherit; text-wrap: pretty; }
#bs-main.bs-overview #bs-hero .bs-sub p + p { margin-top: .875rem; }
#bs-main.bs-overview .bs-h1 { max-width: 16ch; font-size: clamp(2.35rem, 5.2vw, 4rem); line-height: 1.04; }
@media (min-width: 1180px) {
  .bs-overview .bs-hero-inner { width: min(600px, calc(100vw - 640px)); }
  /* The leads sit at the fragments' height, so they stay narrower than the H1 and clear both clusters. */
  .bs-overview #bs-hero .bs-sub { max-width: 30rem; }
  #bs-main.bs-overview .bs-h1 { max-width: none; font-size: 3.75rem; }
}

/* Selected projects: each solution group is a split row, heading left, its cards (or its one CTA) right. */
.bs-projects { padding: clamp(4.5rem, 10vw, 8rem) 1.25rem; background: var(--hge-paper); }
.bs-sol { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding: clamp(2.5rem, 5vw, 3.5rem) 0; border-top: 1px solid rgba(9, 64, 132, .12); }
.bs-sol:first-child { padding-top: 0; border-top: 0; }
.bs-sol:last-child { padding-bottom: 0; }
#bs-main .bs-sol .bs-h2 { font-size: clamp(1.6rem, 2.6vw, 2.125rem); line-height: 1.1; }
#bs-main .bs-sol .bs-lead { max-width: 46ch; margin-top: .875rem; }
.bs-sol-cta { display: flex; align-items: center; }
@media (min-width: 1024px) {
  .bs-sol { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
  .bs-sol-head { position: sticky; top: 120px; }
  .bs-sol-cta { min-height: 100%; }
}

.bs-cards { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 640px) {
  .bs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bs-card--wide { grid-column: 1 / -1; }
}
.bs-card-p { flex: 1 0 auto; }
#bs-main .bs-card-p { color: var(--hge-navy); font-size: 1.125rem; line-height: 1.5; }
#bs-main .bs-card-h { font-size: 1rem; letter-spacing: .02em; color: var(--hgb-muted); }
/* Static stills: cards without a loop show a quiet frame built from the hero's own UI fragments, so every card in a row carries the same stage. */
.bs-loop.bs-still { align-items: center; justify-content: center; }
.bs-still-row, .bs-still-check, .bs-still-score { background: #fff; border-radius: var(--hge-radius); box-shadow: 0 1px 2px rgba(9, 64, 132, .08); }
.bs-still-row { display: inline-flex; align-items: center; gap: 1rem; padding: .625rem .75rem .625rem 1rem; white-space: nowrap; }
.bs-still-check { display: inline-flex; align-items: center; gap: .625rem; padding: .5rem 1.125rem .5rem .5rem; border-radius: 999px; font-weight: 600; }
.bs-still-score { display: block; width: 11rem; padding: .875rem 1rem; }
.bs-still-score .bs-frag-num { font-size: 1.75rem; }
.bs-still-label { display: block; margin-top: .25rem; color: var(--hgb-muted); font-size: .8125rem; }
.bs-still-score .bs-frag-meter { margin-top: .5rem; }
.bs-loop.bs-still--ba { flex-direction: row; gap: 0; }
.bs-still-page { display: grid; align-content: center; gap: .5rem; width: 6.5rem; height: 5.5rem; padding: .875rem; background: #fff; border: 1px solid rgba(9, 64, 132, .10); }
.bs-still-page--old { border-radius: 8px 0 0 8px; background: #EEF0EC; }
.bs-still-page--new { border-radius: 0 8px 8px 0; border-left: 0; }
.bs-still-page i { display: block; height: 5px; border-radius: 8px; background: rgba(90, 100, 114, .22); }
.bs-still-page i:last-child { width: 65%; }
.bs-still-page--new i:first-child { background: var(--hgb-green-fill); }
.bs-still-handle { position: relative; width: 2px; height: 6.5rem; background: var(--hge-navy); }
.bs-still-handle::after { content: ''; position: absolute; top: 50%; left: 50%; width: 1.25rem; height: 1.25rem; margin: -.625rem 0 0 -.625rem; border-radius: 50%; background: #fff; border: 2px solid var(--hge-navy); }

/* A line button for light grounds (research group). */
.bs-btn--line { border: 1.5px solid var(--hge-navy); color: var(--hge-navy) !important; background: transparent; }
.bs-btn--line:hover { background: var(--hge-navy); color: #fff !important; }

/* Card loops (booking, gift cards): CSS draws each loop's end frame; loops.js animates toward it. */
.bs-loop { height: 140px; flex: 0 0 140px; border-radius: 10px; background: var(--hge-paper); margin-bottom: .5rem; overflow: hidden; padding: .75rem; display: flex; flex-direction: column; justify-content: center; gap: .25rem; color: var(--hge-navy); font-family: var(--hge-body); font-size: .875rem; font-weight: 500; line-height: 1.5; letter-spacing: .005em; }
.bs-l-bubble { padding: .25rem .5rem; border-radius: 12px; }
.bs-l-bubble--in { align-self: flex-start; max-width: 80%; background: #fff; }
.bs-l-bubble--out { align-self: flex-end; background: var(--hgb-green-deep); color: #fff; min-width: 2rem; text-align: center; }
/* Green-deep text needs a white base under a light tint to reach 4.5:1 (4.59:1 at .14). */
.bs-l-slot { align-self: center; width: fit-content; padding: 0 .5rem; border-radius: 999px; background: linear-gradient(rgba(61,192,102,.14), rgba(61,192,102,.14)), #fff; color: var(--hgb-green-deep); }
.bs-loop[data-loop="giftcards"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; align-content: center; }
.bs-l-tile { position: relative; background: #fff; border: 1px solid rgba(9,64,132,.10); border-radius: 10px; padding: .75rem 2.25rem .75rem .75rem; text-decoration: none; }
.bs-l-tile::after { content: ''; position: absolute; right: .75rem; top: 50%; width: 1.125rem; height: .75rem; margin-top: -.375rem; border-radius: 3px; background: rgba(61,192,102,.35); }
.bs-loop[data-loop="booking"] { flex-direction: row; align-items: stretch; justify-content: center; gap: 1.5rem; padding: 1rem 1.25rem 0; }
.bs-l-phone { position: relative; flex: 0 1 15rem; min-width: 0; display: flex; flex-direction: column; gap: .5rem; padding: 1.375rem .75rem .75rem; background: #fff; border: 1px solid rgba(9,64,132,.14); border-bottom: 0; border-radius: 22px 22px 0 0; font-size: .75rem; line-height: 1.4; }
.bs-l-phone::before { content: ''; position: absolute; top: .5rem; left: 50%; width: 2.25rem; height: .25rem; margin-left: -1.125rem; border-radius: 4px; background: rgba(9,64,132,.14); }
.bs-l-phone .bs-l-bubble--in { max-width: 88%; background: var(--hge-paper); }
.bs-l-cal { flex: 0 1 9.5rem; min-width: 0; align-self: center; display: grid; gap: .375rem; padding: .625rem; margin-bottom: 1rem; background: #fff; border: 1px solid rgba(9,64,132,.10); border-radius: 10px; }
.bs-l-row { display: block; height: 1.5rem; border-radius: 6px; background: rgba(90,100,114,.12); }
.bs-l-row:first-child { width: 70%; }
.bs-l-row:last-child { width: 55%; }
.bs-l-cal .bs-l-slot { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0 .5rem; border-radius: 6px; font-size: .75rem; font-weight: 600; white-space: nowrap; }

/* Useful information first: heading left, copy and button right. */
.bs-useful { padding: clamp(4rem, 9vw, 7rem) 1.25rem; background: #fff; }
.bs-useful-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
#bs-main .bs-useful .bs-lead { margin: 0 0 2rem; }
@media (min-width: 1024px) {
  .bs-useful-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
}

/* Closing CTA: the question sets on two balanced lines, matching the project pages. */
#bs-main.bs-overview #bs-cta .bs-h2 { max-width: 28ch; margin: 0 auto; }

@media (max-width: 767px) {
  .bs-loop[data-loop="booking"] { gap: .75rem; padding: .75rem .75rem 0; }
  .bs-l-phone { flex: 1 1 auto; padding: 1.25rem .5rem .5rem; gap: .375rem; font-size: .6875rem; line-height: 1.35; }
  .bs-l-phone .bs-l-bubble--in { max-width: 100%; }
  .bs-l-cal { flex: 0 0 6.5rem; padding: .5rem; }
  .bs-l-cal .bs-l-slot { padding: 0 .25rem; font-size: .6875rem; }
  .bs-l-tile { padding-right: .75rem; }
  .bs-l-tile::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bs-btn--line { transition: none; }
}
