/* Shared presentation families for public frontend pages only.
   Loaded before page-specific styles, never by /rent or /car.
   Component CSS retains layout, color, responsive structure, and unique hover behavior. */

/* Homepage section-heading markup shares the global title utility's typography. */
.hc-section-heading h2 {
  font-size: var(--fs-h3);
  line-height: var(--line-height-tight);
  letter-spacing: -.055em;
}

.hc-front-section-subtitle,
.hc-section-heading p,
.hc-service-section-heading > p:last-child,
.hc-service-oem-copy > p:last-child {
  font-size: var(--fs-base);
  line-height: var(--line-height-body);
}

/* Common CTA typography and padding, without changing component-specific hover or icons. */
.hc-front-cta {
  padding: 6px 20px;
  font-size: var(--fs-sm);
}


/* Shared content hierarchy. Individual components own margins and colors. */
.hc-front-card-title,
.hc-video-feature-overlay h3,
.hc-knowledge-card-copy h3,
.hc-feature-carousel .hc-feature-rail-copy h3,
.hc-projects-mosaic-copy h3,
.hc-emobility-choice-title,
.hc-faq-question-copy,
.hc-service-news-copy h3,
.hc-news-card-copy h3 {
  font-size: var(--fs-xl);
}

.hc-feature-carousel .hc-feature-rail-copy p,
.hc-projects-mosaic-copy p,
.hc-emobility-panel > p,
.hc-rental-content > p,
.hc-company-about-subtitle,
.hc-company-about-copy > p,
.hc-company-mission p,
.hc-company-why-intro,
.hc-section-heading--center p,
.hc-video-feature-overlay p,
.hc-knowledge-feature-copy p,
.hc-faq-answer > p,
.hc-faq-contact p,
.hc-service-news-copy p,
.hc-about-tiktok-card-copy p,
.hc-news-card-copy > p {
  font-size: var(--fs-sm);
  line-height: var(--line-height-body);
}
.hc-company-about-subtitle { font-family: var(--font-inter-semi-bold); }

/* Metadata, section labels and compact item titles. */
.hc-front-meta,
.hc-knowledge-date,
.hc-video-list-item small,
.hc-rental-feature-stat small,
.hc-service-news-copy small { font-size: var(--fs-xs); }

.hc-front-eyebrow,
.hc-faq-kicker,
.hc-company-label { font-size: var(--fs-xs); }

.hc-front-item-title,
.hc-video-list-item strong,
.hc-company-mission strong {
  color: var(--color-text);
  font-size: var(--fs-sm);
}

/* Shared testimonials component: homepage and /service. */
/* Homepage and /service testimonials: one shared component and one set of styles. */
.hc-testimonials-section {
  background: var(--color-bg);
}

/* These headings and rail primitives also existed in home.css; scope the
   shared presentation here so the component is self-contained on /service. */
.hc-testimonials-section .hc-section-kicker {
  display: inline-flex;
  width: fit-content;
  min-height: 25px;
  align-items: center;
  padding: 3px 11px;
  border: 1px solid color-mix(in srgb, var(--color-primary) 89%, transparent);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-primary) 9%, transparent);
  color: color-mix(in srgb, var(--color-primary) 89%, transparent);
  font-size: var(--fs-micro);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.hc-testimonials-section .hc-section-heading {
  margin-bottom: clamp(42px, 6vw, 82px);
}

.hc-testimonials-section .hc-section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: end;
  gap: clamp(34px, 6vw, 110px);
}

.hc-testimonials-section .hc-section-heading h2 {
  margin: 14px 0 0;
  color: var(--color-text);
  font-family: var(--font-inherit);
  font-size: var(--fs-h3);
  line-height: var(--line-height-tight);
  letter-spacing: -.055em;
}

.hc-reviews-rail {
  overflow: hidden;
}

.hc-reviews-rail .hc-rail-track {
  display: flex;
  align-items: stretch;
  gap: var(--space-12);
  width: max-content;
}

.hc-reviews-rail .hc-rail-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  padding-block: 24px 40px;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  touch-action: pan-y;
  cursor: grab;
}

.hc-reviews-rail .hc-rail-viewport::-webkit-scrollbar { display: none; }
.hc-reviews-rail .hc-rail-viewport.is-dragging { cursor: grabbing; }

.hc-reviews-rail .hc-review-card { flex: 0 0 auto; }

.hc-review-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  width: clamp(330px, 38vw, 560px);
  min-height: 250px;
  padding: var(--container-gap);
  border: 1px solid var(--color-ink-12);
  border-radius: var(--radius-3xl);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
  transition: background 0.46s cubic-bezier(.22,.8,.24,1), color 0.46s cubic-bezier(.22,.8,.24,1), transform 0.46s cubic-bezier(.22,.8,.24,1), box-shadow 0.46s cubic-bezier(.22,.8,.24,1), border-color 0.46s cubic-bezier(.22,.8,.24,1);  will-change: transform;
}

.hc-review-card.is-active,
.hc-review-card:hover,
.hc-review-card:focus-within {
  border-color: var(--color-transparent);
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-ink));
  color: var(--color-white);
  transform: translateY(-16px);
  box-shadow: var(--shadow-strong);
}

.hc-reviews-rail:has(.hc-review-card:hover) .hc-review-card.is-active:not(:hover),
.hc-reviews-rail:has(.hc-review-card:focus-within) .hc-review-card.is-active:not(:focus-within) {
  border-color: var(--color-ink-12);
  background: var(--color-surface);
  color: var(--color-text);
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.hc-review-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.hc-review-top {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--space-14);
  padding-right: 52px;
}

.hc-review-avatar {
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-round);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--fs-sm);
}

.hc-review-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hc-review-top strong {
  font-size: var(--fs-lg);
}

.hc-review-stars {
  margin-top: 3px;
  color: var(--color-primary);
  font-size: var(--fs-sm);
  letter-spacing: 0.12em;
}

.hc-review-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin: 24px 0 0;
  color: var(--color-text-muted);
  font-size: var(--fs-base);
}

.hc-review-card.is-active p,
.hc-review-card:hover p,
.hc-review-card:focus-within p {
  color: var(--color-white-68);
}

.hc-reviews-rail:has(.hc-review-card:hover) .hc-review-card.is-active:not(:hover) p,
.hc-reviews-rail:has(.hc-review-card:focus-within) .hc-review-card.is-active:not(:focus-within) p {
  color: var(--color-text-muted);
}

.hc-review-view {
  align-self: flex-end;
  margin-top: auto;
  padding-top: 16px;
  color: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transform: translate(1em, 1.2em);
  opacity: .84;
}

.hc-review-view:hover,
.hc-review-view:focus-visible { opacity: 1; cursor: pointer; }

.hc-reviews-google-link { display: inline-flex; margin-top: 24px; align-items: center; color: var(--color-white); font-size: var(--fs-xs); text-decoration: underline; text-underline-offset: 4px; opacity: .78; transition: opacity .2s ease; }
.hc-reviews-google-link:hover { opacity: 1; }
.hc-review-stars span { color: color-mix(in srgb,var(--color-white) 35%,transparent); }

@media (max-width: 1120px) {
  .hc-testimonials-section .hc-section-heading--split { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hc-testimonials-section .hc-section-heading { margin-bottom: 38px; }
  .hc-review-card {
    width: min(84vw, 460px);
  }
}
