/* ==========================================================================
   At a glance cards
   --------------------------------------------------------------------------
   From the conditions mock-up: a row of up to five softly tinted cards, icon
   centred at the top, a short bulleted list beneath. Tints run in a fixed
   order so the row always reads as deliberate. They are the brand tints
   diluted with white, because at full strength the teal tint behind a list
   of small text is heavier than the mock-up and starts to compete with the
   hero above it.
   ========================================================================== */

.glance { padding-block-start: var(--sp-6); }

.glance__heading {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--color-heading);
  font-size: var(--fs-h4);
  margin: 0 0 var(--sp-5);
}

.glance__heading-mark { color: var(--color-accent-gold); stroke-width: 1.5; flex: none; }

.glance__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .glance__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
  .glance__grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .glance__grid[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .glance__grid[data-count="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.glance-card {
  --glance-tint: var(--color-tile-gold);
  background: color-mix(in srgb, var(--glance-tint) 45%, var(--color-surface));
  border: 1px solid color-mix(in srgb, var(--glance-tint) 80%, var(--color-divider));
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-4) var(--sp-5);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.glance-card:nth-child(5n + 2) { --glance-tint: var(--color-tile-teal); }
.glance-card:nth-child(5n + 3) { --glance-tint: var(--color-tile-blush); }
.glance-card:nth-child(5n + 4) { --glance-tint: var(--color-tile-stone); }
.glance-card:nth-child(5n + 5) { --glance-tint: var(--color-tile-teal); }

.glance-card__icon { color: var(--color-heading); line-height: 0; margin-block-end: var(--sp-2); }
.glance-card__icon svg { stroke-width: 1.25; }

.glance-card__title {
  font-size: var(--fs-h6);
  font-weight: var(--fw-semi);
  color: var(--color-heading);
  text-align: center;
  margin: 0 0 var(--sp-3);
  text-wrap: balance;
  /* Reserve one line so a card whose heading does wrap still lines its list
     up with its neighbours rather than starting lower. */
  min-block-size: calc(var(--lh-snug) * 1em);
}

.glance-card__list,
.glance-card__text {
  align-self: stretch;
  margin: 0;
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  color: var(--color-text-on-tint);
}

.glance-card__list { padding-inline-start: 1.1em; }
.glance-card__list li + li { margin-block-start: var(--sp-1); }
.glance-card__list li::marker { color: var(--color-heading); }
/* Left aligned whether the card holds bullets or one line of text (client,
   27 Nov 2026): a centred line beside a neighbour's bulleted list looked like
   two different kinds of card. */
.glance-card__text { text-align: left; }

/* --- Card link (9 Oct 2026) ----------------------------------------------
   Pinned to the bottom of the card with margin-top: auto, so links sit on one
   line across the row even when one card's list is shorter. */
.glance-card__link {
  margin-top: auto;
  padding-top: var(--sp-4);
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-color: var(--color-accent-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.glance-card__link:hover { color: var(--color-link-hover); text-decoration-color: currentColor; }
.glance-card__link-icon { flex: none; stroke-width: 2; }

/* --- FAQ shortcut card ----------------------------------------------------
   Dark teal with the gold left edge of the blog sidebar's booking card
   (.pcard--book), and the gold accent button. Same size and padding as the
   other cards so the row stays even. */
.glance-card--faq {
  background: var(--color-surface-invert);
  border-color: transparent;
  border-left: 4px solid var(--color-accent-gold);
  color: var(--color-text-invert);
}
.glance-card--faq .glance-card__icon,
.glance-card--faq .glance-card__title { color: var(--color-heading-invert); }
.glance-card--faq .glance-card__list,
.glance-card--faq .glance-card__text,
.glance-card--faq .glance-card__list li { color: var(--color-text-invert); }
.glance-card--faq .glance-card__list li::marker { color: var(--color-accent-gold); }

.glance-card__cta {
  margin-top: auto;
  align-self: stretch;
  justify-content: center;
  padding: 0.625rem 1rem;
  font-size: var(--fs-sm);
}
/* Keeps the button clear of the list when the list is long. */
.glance-card--faq .glance-card__list,
.glance-card--faq .glance-card__text { margin-bottom: var(--sp-4); }

/* Phones: a swipe row (components.css). Five stacked cards were about
   1,000px; as a row they are one card tall. Icon and heading sit side by
   side so each card is shorter still. */
@media (max-width: 39.99rem) {
  .glance { padding-block: var(--sp-5) var(--sp-4); }
  .glance__heading { font-size: var(--fs-h5); margin-block-end: var(--sp-4); }
  .glance-card { align-items: stretch; }
  .glance-card__icon { align-self: center; }
}
