/*
 * ECAR Services — an editorial numbered ledger, not an icon-card grid.
 * Hairline dividers, no boxes, no shadows.
 *
 * Composition note: this head deliberately runs title + count on one line
 * with the lede *underneath*, left-aligned. Service areas and reviews each
 * split their head across the full width instead. Three sections previously
 * used the identical "title left / description right-aligned" masthead, which
 * is what made the page read as one repeated template.
 */

/* border-top like every other band: this section used to follow one that
   shared its background, so a seam would have been a line drawn across a
   flat surface. It now follows the raised Why Choose Us band, so the step
   needs its hairline like the rest. */
.ecar-services {
  background-color: var(--ecar-bg);
  border-top: 1px solid var(--ecar-border);
  padding-block: var(--sp-section);
}

/* --- Head --- */
.ecar-services__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 34px;
}

.ecar-services__heading-group {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.ecar-services__title {
  font-size: var(--fs-h2);
  letter-spacing: -0.025em;
}

.ecar-services__count {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--ecar-accent-dim);
}

.ecar-services__description {
  font-family: var(--font-sans);
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--ecar-text-secondary);
  max-width: 52ch;
}

/* --- List ---
   Each row is a single link now: the whole row is the hit target, so the
   repeated "Book Service" label that appeared six times down the page could
   go. The trailing chevron carries the affordance instead, and a visually
   hidden label keeps the destination explicit for screen readers. */
.ecar-services__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ecar-border);
}

.ecar-services__item {
  display: grid;
  /* minmax(...,auto) on the icon column so a larger custom-uploaded icon grows
     its column instead of overflowing into the copy. */
  grid-template-columns: 52px minmax(40px, auto) 1fr 24px;
  align-items: center;
  column-gap: 28px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--ecar-hairline);
  transition: background-color var(--dur-slow) var(--ease);
}

.ecar-services__item:hover,
.ecar-services__item:focus-visible {
  background-color: var(--ecar-bg-secondary);
}

.ecar-services__index {
  font-family: var(--font-sans);
  font-size: 1.375rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ecar-numeral);
  transition: color var(--dur-slow) var(--ease);
}

.ecar-services__item:hover .ecar-services__index,
.ecar-services__item:focus-visible .ecar-services__index {
  color: var(--ecar-accent);
}

/* Gold at rest, brightening on hover. Grey-to-white was the safer choice
   while the accent was an undecided bone tint; with a defined brand gold the
   appliance marks are the one place a visitor scans for "which one is mine",
   so they get the colour rather than earning it on hover. */
.ecar-services__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: var(--ecar-gold);
  transition: color var(--dur-slow) var(--ease);
}

.ecar-services__icon svg,
.ecar-services__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ecar-services__item:hover .ecar-services__icon,
.ecar-services__item:focus-visible .ecar-services__icon {
  color: var(--ecar-gold-strong);
}

.ecar-services__body {
  min-width: 0;
}

/* The row is an <a>, so its inner blocks are spans that need block display. */
.ecar-services__body,
.ecar-services__desc {
  display: block;
}

.ecar-services__item-title {
  color: var(--ecar-text-primary);
}

.ecar-services__item-title {
  font-size: var(--fs-lg);
  margin-bottom: 4px;
  transition: color var(--dur) var(--ease);
}

.ecar-services__desc {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ecar-text-secondary);
  max-width: 62ch;
}

/* --- Row call to action ---
   A visible "learn more" affordance per row, because the row now links to
   that service's own landing page rather than to the booking anchor, and a
   bare chevron did not say where it went. Rendered as a span (the row is
   already an <a>; a nested anchor is invalid HTML5) styled as a quiet
   inline button, so it reads as a destination without turning the ledger
   back into six shouty buttons down the page. */
.ecar-services__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 6px 13px;
  border: 1px solid var(--ecar-gold-line);
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--ecar-gold);
  background-color: transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.ecar-services__cta-arrow {
  display: inline-flex;
  transition: transform var(--dur) var(--ease);
}

.ecar-services__cta-arrow svg {
  width: 14px;
  height: 14px;
}

.ecar-services__item:hover .ecar-services__cta,
.ecar-services__item:focus-visible .ecar-services__cta {
  background-color: var(--ecar-gold-quiet);
  border-color: var(--ecar-gold);
  color: var(--ecar-gold-strong);
}

.ecar-services__item:hover .ecar-services__cta-arrow,
.ecar-services__item:focus-visible .ecar-services__cta-arrow {
  transform: translateX(3px);
}

/* No fixed width: the chevron sits in a grid track that narrows to 16px on
   small screens, and a hard 24px box overflowed the row by 4px there. */
.ecar-services__chevron {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  color: var(--ecar-text-muted);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.ecar-services__chevron svg {
  width: 18px;
  height: 18px;
}

.ecar-services__item:hover .ecar-services__chevron,
.ecar-services__item:focus-visible .ecar-services__chevron {
  color: var(--ecar-accent);
  transform: translateX(4px);
}

/* --- Responsive --- */

@media (max-width: 1199px) {
  .ecar-services__item {
    grid-template-columns: 44px minmax(36px, auto) 1fr 24px;
    column-gap: 20px;
  }

  .ecar-services__icon {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 1023px) {
  .ecar-services__item {
    grid-template-columns: 40px minmax(32px, auto) 1fr 20px;
  }

  .ecar-services__icon {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 767px) {
  .ecar-services__head {
    padding-bottom: 26px;
  }

  .ecar-services__description {
    font-size: var(--fs-body);
  }

  /* Keep the ghost numeral rather than dropping it — it is the one signature
     element stopping this from reading as a generic list. */
  .ecar-services__item {
    grid-template-columns: 26px minmax(30px, auto) 1fr 16px;
    column-gap: 12px;
    padding: 20px 4px;
    align-items: start;
  }

  .ecar-services__index {
    font-size: 1rem;
    padding-top: 2px;
  }

  .ecar-services__icon {
    width: 42px;
    height: 42px;
  }

  .ecar-services__chevron {
    align-items: start;
    padding-top: 4px;
  }

  .ecar-services__chevron svg {
    width: 16px;
    height: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecar-services__item,
  .ecar-services__index,
  .ecar-services__icon,
  .ecar-services__chevron,
  .ecar-services__cta,
  .ecar-services__cta-arrow,
  .ecar-services__item-title {
    transition: none;
  }

  .ecar-services__item:hover .ecar-services__chevron,
  .ecar-services__item:focus-visible .ecar-services__chevron,
  .ecar-services__item:hover .ecar-services__cta-arrow,
  .ecar-services__item:focus-visible .ecar-services__cta-arrow {
    transform: none;
  }
}
