/* ==========================================================================
   components.css — the card system.

   Before this layer, eight components each invented their own radius (10 /
   12 / 20 / 30px), their own shadow (or none), and their own border. Nothing
   looked related. Everything below shares one surface recipe and differs only
   where the difference carries meaning.
   ========================================================================== */

/* One surface definition. Every named component below inherits it, so the
   family cannot drift apart again. */
.card,
.solution-card,
.blog-card,
.hold-card,
.contact-card,
.faq-item {
  position: relative;
  background: var(--c-white);
  border: 1px solid #E6EAF0;
  border-radius: var(--r-card);
  box-shadow: var(--e-1);
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
.card { display: flex; flex-direction: column; }
.card--pad    { padding: var(--s-7); }
.card--pad-lg { padding: var(--s-8) var(--s-7); }
.card--flush  { overflow: hidden; }
.card--center { align-items: center; text-align: center; }

/* Only cards that lead somewhere lift on hover. Static panels stay put —
   motion should signal affordance, not decorate. */
.card--interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--e-3);
  border-color: #D8DFE9;
}

/* Tinted panel — no border, sits on white as a soft block. */
.card--soft { background: #F4F6F9; border-color: transparent; box-shadow: none; }
.card--soft.card--interactive:hover { background: #EEF2F7; box-shadow: var(--e-2); }

/* On a dark band. */
.card--onDark {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: none;
  color: #fff;
}
.card--onDark.card--interactive:hover {
  background: rgba(255, 255, 255, .13);
  border-color: rgba(255, 255, 255, .26);
  transform: translateY(-3px);
}

/* Outlined, weightier — used where the card *is* the content (rate figures). */
.card--stroke {
  border: 2px solid var(--c-navy);
  box-shadow: var(--e-1);
}
.card--stroke.card--interactive:hover { box-shadow: var(--e-3); border-color: var(--c-navy); }

/* --- Shared card parts --------------------------------------------------- */
.card__band {
  background: var(--c-navy-alt); color: #fff;
  padding: var(--s-6) var(--s-7);
  margin: calc(var(--s-7) * -1) calc(var(--s-7) * -1) var(--s-6);
  border-radius: calc(var(--r-card) - 1px) calc(var(--r-card) - 1px) 0 0;
}
.card--flush > .card__band { margin: 0 0 var(--s-6); border-radius: 0; }

.card__media { overflow: hidden; background: #E9EDF2; aspect-ratio: 3 / 2; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.card--interactive:hover .card__media img { transform: scale(1.04); }

.card__body  { display: flex; flex-direction: column; flex: 1; padding: var(--s-6) var(--s-7) var(--s-7); }
.card__title { font-family: var(--font-body); font-weight: 600; font-size: 21px; line-height: 1.3; color: var(--c-navy); }
.card__text  { margin-top: var(--s-3); font-size: 15px; line-height: 1.7; color: var(--c-body-soft); flex: 1; }
.card__foot  { margin-top: var(--s-5); }
.card--onDark .card__title { color: #fff; }
.card--onDark .card__text  { color: rgba(255, 255, 255, .82); }

.card__icon {
  width: 68px; height: 68px; border-radius: var(--r-card);
  display: grid; place-items: center;
  background: linear-gradient(150deg, #E8F4F7, #F3F8FA);
  color: var(--c-teal-deep); margin-bottom: var(--s-5);
}
.card--center .card__icon { margin-inline: auto; }
.card__icon svg { width: 34px; height: 34px; }

/* Eyebrow chip (e.g. "Featured") */
.chip {
  align-self: flex-start;
  display: inline-block; background: var(--c-teal-deep); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px var(--s-3); border-radius: var(--r-pill);
}
.card--center .chip { align-self: center; }

/* --- Section rhythm ------------------------------------------------------ */
.section          { padding-block: var(--pad); position: relative; }
.section--dense   { padding-block: var(--pad-dense); }
.section--loose   { padding-block: var(--pad-loose); }
.section--flush   { padding-block: 0; }
.section--top-0   { padding-top: 0; }
.section--bottom-0{ padding-bottom: 0; }

/* Section heading block */
.section-head   { max-width: 760px; margin-inline: auto; text-align: center; }
.section-head p { margin-top: var(--s-4); color: var(--c-body-soft); }
.section-head--left { margin-inline: 0; text-align: left; }

/* `.section-head p` outranks `.on-dark--muted`, so on dark bands the subtitle
   would silently fall back to body grey. Restore the light treatment there —
   same override pattern as the headings in base.css. */
:is(.hero, .bg-navy, .bg-navy-alt, .marquee-section, .contact-band, .on-dark)
  .section-head p { color: rgba(255, 255, 255, .88); }
.marquee-section--light .section-head p { color: var(--c-body-soft); }
.section-head + * { margin-top: var(--s-9); }

.eyebrow-label {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-teal-deep); margin-bottom: var(--s-3);
}
.on-dark .eyebrow-label, .bg-navy .eyebrow-label, .bg-navy-alt .eyebrow-label,
.marquee-section .eyebrow-label { color: var(--c-teal-light); }

/* --- Location map --------------------------------------------------------
   Three things were wrong here before.

   1. The card was a raster OpenStreetMap iframe: cluttered, off-brand, and
      pinned to a fixed height, so it floated mid-way down a ~700px form
      column with dead space above and below it.
   2. The floating address chip sat on top of the tile attribution, so the
      licence credit was half-covered.
   3. "Directions" pointed at openstreetmap.org — nobody navigates with that.

   Now: a vector map drawn with MapLibre GL JS using
   openmaptiles/maptiler-basic-gl-style (assets/map/maptiler-basic.json),
   served keyless from OpenFreeMap. The map is deliberately NOT pannable —
   the whole surface is one link, so a click always lands the visitor in
   Google Maps rather than fighting a drag gesture. Address and directions
   sit in a solid footer panel on their own aligned row.
   ------------------------------------------------------------------------- */
.map {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid #E6EAF0;
  box-shadow: var(--e-2);
  background: var(--c-white);
}

/* Tiles paint into .map__viewport; until they do — or if WebGL or the tile
   host is unavailable — this stays visible, so the column is never a hole. */
.map__canvas {
  position: relative;
  flex: 1 1 auto;
  min-height: 300px;
  background: radial-gradient(120% 110% at 50% 0%, #F3F7FA 0%, #E5ECF3 58%, #DBE4ED 100%);
}
.map__canvas::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(27, 49, 72, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 49, 72, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  transition: opacity var(--dur-slow) var(--ease-out);
}
.map.is-ready .map__canvas::before { opacity: 0; }

/* Specificity here is deliberate. MapLibre's own stylesheet is injected at
   runtime, so it always lands after this file, and its
   `.maplibregl-map { position: relative }` ties on specificity and wins on
   order — which drops `inset: 0` on the floor and collapses the canvas to
   zero height. Two classes outrank it whatever the source order ends up. */
.map .map__viewport {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
}
.map.is-ready .map__viewport { opacity: 1; }

/* The map surface *is* the link. */
.map__surface {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
}
.map__surface::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(27, 49, 72, 0);
  transition: background-color var(--dur) var(--ease-out);
}
.map__surface:hover::after,
.map__surface:focus-visible::after { background: rgba(27, 49, 72, .12); }
.map__surface:focus-visible { outline: 3px solid var(--c-teal-deep); outline-offset: -3px; }

/* The marker sits dead centre of the canvas, and the canvas is centred on the
   geocoded address — so the tip lands on the building with no second source
   of truth to keep in sync. */
.map__pin {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 46px; height: 58px;
  transform: translateY(-29px);
  color: var(--c-navy);
  filter: drop-shadow(0 6px 12px rgba(20, 38, 58, .32));
  transition: transform var(--dur) var(--ease-out);
}
.map__surface:hover .map__pin,
.map__surface:focus-visible .map__pin { transform: translateY(-35px); }
.map__pin::before {
  content: ''; position: absolute; bottom: -7px; left: 50%;
  width: 22px; height: 8px; margin-left: -11px;
  border-radius: 50%;
  background: rgba(20, 38, 58, .22);
  animation: map-pin-pulse 2.6s var(--ease-out) infinite;
}
@keyframes map-pin-pulse {
  0%, 100% { transform: scale(1);   opacity: .55; }
  50%      { transform: scale(1.5); opacity: .15; }
}

/* Hover cue. Coarse pointers have no hover, so it is always on there. */
.map__cue {
  position: absolute; z-index: 1; left: 50%; bottom: var(--s-5);
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px var(--s-4);
  border-radius: var(--r-pill);
  background: var(--c-navy); color: #fff;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--e-3);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.map__surface:hover .map__cue,
.map__surface:focus-visible .map__cue { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (hover: none) {
  .map__cue { opacity: 1; transform: translateX(-50%); }
}

/* Sits above .map__surface so the ODbL credit stays readable *and* clickable. */
.map__attrib {
  position: absolute; z-index: 3; right: 0; bottom: 0;
  padding: 3px var(--s-2);
  border-top-left-radius: var(--r-xs);
  background: rgba(255, 255, 255, .84);
  font-size: 10px; line-height: 1.5; color: var(--c-body-faint);
}
.map__attrib a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.map__attrib a:hover { color: var(--c-navy); }

/* Footer panel — one row, three aligned slots: marker, address block, CTA. */
.map__panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  padding: var(--s-5) var(--s-6);
  border-top: 1px solid #E6EAF0;
  background: var(--c-white);
}
.map__panel-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-navy); color: #fff;
  display: grid; place-items: center;
}
.map__panel-title {
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  line-height: 1.3; color: var(--c-navy);
}
.map__panel-addr { margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--c-body-soft); }
.map__panel-meta { margin-top: 2px; font-size: 12px; line-height: 1.5; color: var(--c-body-faint); }
@media (max-width: 620px) {
  .map__panel { grid-template-columns: auto minmax(0, 1fr); }
  .map__panel-cta { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .map__pin::before { animation: none; }
  .map__surface:hover .map__pin,
  .map__surface:focus-visible .map__pin { transform: translateY(-29px); }
}

/* --- Figma illustrations -------------------------------------------------- */
.solution-card__illo {
  height: 150px; display: grid; place-items: center; margin-bottom: var(--s-5);
}
.solution-card__illo img { max-height: 150px; width: auto; }
.illo { width: 100%; height: auto; max-width: 372px; }
.split__media .illo { margin-inline: auto; }
.illo--not-just { margin-top: var(--s-8); max-width: 366px; }
@media (max-width: 900px) { .illo--not-just { margin-inline: auto; } }

/* --- Split rule under section headings (Figma: 40px + 296px, 3px, #00A383) - */
.rule-split {
  display: flex; justify-content: center; gap: 20px;
  margin-top: var(--s-5);
}
.rule-split::before, .rule-split::after {
  content: ''; height: 3px; background: #00A383; border-radius: 2px;
}
.rule-split::before { width: 40px; }
.rule-split::after  { width: 296px; }
@media (max-width: 560px) {
  .rule-split::after { width: 160px; }
}


/* Figma renders the contact cards 261px tall with 155px of clearance before
   the footer; the band needs that breathing room explicitly. */
/* Figma's contact band is 474px tall overall (58 pad + 261 card + 155 clear).
   The cards here carry opening hours and a call-to-action that the frame does
   not, so they run ~319px. The clearance is reduced to keep the SECTION at
   Figma's height rather than letting the extra content push the footer down. */
.contact-band { padding-bottom: 97px; }
/* The Get Started band is 800px tall in the frame — the map was over-driving it.
   (.map__frame went with the old raster iframe; the vector canvas is .map__canvas,
   which carries its own 300px floor, so only .map needs relaxing here.) */
.start-band .map { min-height: 300px; }

/* --- Marquee: paused state, driven by keyboard focus ------------------- */
.marquee[data-paused="true"] .marquee__row { animation-play-state: paused; }

/* --- Touch targets -------------------------------------------------------
   Inline links inside footers and card feet were 18-22px tall. Padding grows
   the hit area without changing how anything looks. */
.footer-col a, .footer-contact a, .site-footer__bar a {
  display: inline-block; padding-block: 7px;
}
.footer-col li + li { margin-top: 2px; }
.link-more, .review__more, .blog-card__more {
  padding-block: 8px;
}
.footer-socials a { width: 44px; height: 44px; margin-left: -6px; }
.footer-socials { gap: var(--s-2); }

/* ==========================================================================
   Reviews — rebuilt.

   The previous block clipped its cards, left the summary column looking
   unfinished, and pinned "Read more" to the card edge. This version gives the
   summary real presence (rating figure, stars, source), sets every card to the
   same height with the meta pinned to the foot, and keeps the whole thing on
   the site's card system rather than inventing a third surface treatment.
   ========================================================================== */
.reviews { display: grid; grid-template-columns: 296px 1fr; gap: var(--s-9); align-items: start; }
@media (max-width: 960px) { .reviews { grid-template-columns: 1fr; gap: var(--s-7); } }

.reviews__summary {
  background: #fff; border: 1px solid #E6EAF0; border-radius: var(--r-card);
  box-shadow: var(--e-1); padding: var(--s-8) var(--s-7);
  display: grid; gap: var(--s-4); justify-items: start;
}
.reviews__logo { width: 92px; height: auto; }
.reviews__score { display: flex; align-items: baseline; gap: var(--s-3); }
.reviews__score b {
  font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1;
  color: var(--c-navy); font-variant-numeric: tabular-nums;
}
.reviews__outof { font-size: 14px; color: var(--c-body-faint); }
.reviews__stars { display: flex; gap: 3px; color: #F6BB06; }
.reviews__source { display: flex; align-items: center; gap: var(--s-2); font-size: 14px; color: var(--c-body-soft); }
.reviews__source svg { flex: 0 0 auto; }
.reviews__cta {
  margin-top: var(--s-2); display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid #CFD7E0; border-radius: var(--r-pill);
  padding: 10px var(--s-5); font-size: 14px; font-weight: 600; color: var(--c-navy);
  background: #fff; transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.reviews__cta:hover { border-color: var(--c-navy); box-shadow: var(--e-1); }

.reviews__body { position: relative; }
.reviews__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  gap: var(--gap-card); overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; padding-block: 3px;
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track > * { scroll-snap-align: start; }
@media (prefers-reduced-motion: reduce) { .reviews__track { scroll-behavior: auto; } }
@media (max-width: 720px) { .reviews__track { grid-auto-columns: 86%; } }

.review {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #E6EAF0; border-radius: var(--r-card);
  box-shadow: var(--e-1); padding: var(--s-7);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--e-3); border-color: #D8DFE9; }
.review__top { display: flex; align-items: center; gap: var(--s-4); }
.review__avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
}
.review__who { min-width: 0; }
.review__name { font-size: 16px; font-weight: 600; color: var(--c-navy); }
.review__date { font-size: 13px; color: var(--c-body-faint); margin-top: 1px; }
.review__src { margin-left: auto; flex: 0 0 auto; width: 18px; height: 18px; opacity: .9; }
.review__stars { display: flex; gap: 2px; color: #F6BB06; margin-top: var(--s-5); }
.review__text {
  margin-top: var(--s-3); font-size: 15px; line-height: 1.75; color: var(--c-body);
  flex: 1;                       /* pushes the foot down so cards share a baseline */
}
.review__more {
  margin-top: var(--s-5); align-self: flex-start;
  font-size: 14px; font-weight: 600; color: var(--c-teal-deep);
  display: inline-flex; align-items: center; gap: 6px; padding-block: 6px;
}
.review__more::after { content: ''; width: 13px; height: 1.5px; background: currentColor;
  transition: width var(--dur) var(--ease-out); }
.review:hover .review__more::after { width: 22px; }

.reviews__nav { display: flex; gap: var(--s-3); justify-content: center; margin-top: var(--s-6); }
.reviews__nav[hidden] { display: none; }
.reviews__arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid #CFD7E0; background: #fff; color: var(--c-navy);
  display: grid; place-items: center;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.reviews__arrow:hover:not([disabled]) { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }
.reviews__arrow[disabled] { opacity: .35; cursor: default; }

/* --- Mobile action bar ---------------------------------------------------
   Home runs ~14,000px on a phone with a 3,700px stretch that offers nothing to
   act on, and the only header action is Apply Now — the highest-commitment
   step on the site. This gives a low-commitment alternative that is always
   reachable, on small screens only. */
.action-bar { display: none; }
@media (max-width: 767px) {
  .action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-header);
    display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--s-3);
    padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
    border-top: 1px solid #E1E6EC;
  }
  .action-bar a {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; border-radius: var(--r-pill);
    font-size: 15px; font-weight: 600; text-align: center;
  }
  .action-bar__call { border: 1px solid var(--c-navy); color: var(--c-navy); }
  .action-bar__book { background: var(--c-navy); color: #fff; }
  /* Keep the bar from covering the end of the page. */
  body { padding-bottom: 74px; }
}
@media (prefers-reduced-motion: reduce) { .action-bar { backdrop-filter: none; } }

/* --- Rates card action ---------------------------------------------------- */
.rate-stat__cta { margin-top: var(--s-5); }
