/* ---- Top trust strip ---- */
.home-trust {
  --trust-speed: 20s;
  background: var(--color-bg-subtle);
  border-bottom: 1px solid var(--color-border);
}

.home-trust.is-transparent {
  background: transparent;
  border-bottom: none;
}

.home-trust__list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  padding-block: var(--space-3);
}

.home-trust__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
}

.home-trust__item .icon {
  color: var(--color-brand);
}

/* ---- Trust bar effects (admin-selectable) ---- */

/* Scrolling marquee: one track holds two identical copies of the items and
   slides left by exactly half its width, so the loop is seamless. Spacing is
   per-item padding (not justify-content), so items never overlap when they
   overflow on small screens. */
.home-trust__viewport {
  overflow: hidden;
  width: 100%;
}

.home-trust__track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  animation: home-trust-marquee var(--trust-speed) linear infinite;
}

.home-trust__group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  margin: 0;
  padding: 0;
  padding-block: var(--space-3);
}

.home-trust__track .home-trust__item {
  flex: 0 0 auto;
  white-space: nowrap;
  padding-inline: clamp(18px, 4vw, 44px);
}

.home-trust--marquee-right .home-trust__track {
  animation-direction: reverse;
}

@keyframes home-trust-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Pause when the visitor hovers, so they can read a scrolling item. */
.home-trust--marquee-left:hover .home-trust__track,
.home-trust--marquee-right:hover .home-trust__track {
  animation-play-state: paused;
}

/* Gentle pulse: the whole row breathes softly. */
.home-trust--pulse .home-trust__list {
  animation: home-trust-pulse calc(var(--trust-speed) / 6) ease-in-out infinite;
}

@keyframes home-trust-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.75; transform: scale(0.99); }
}

/* Shimmer: a soft light sweep moves across the bar. */
.home-trust--shimmer {
  position: relative;
  overflow: hidden;
}

.home-trust--shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: home-trust-shimmer calc(var(--trust-speed) / 4) linear infinite;
  pointer-events: none;
}

@keyframes home-trust-shimmer {
  to { transform: translateX(100%); }
}

/* Respect visitors who prefer less motion. */
@media (prefers-reduced-motion: reduce) {
  .home-trust__track,
  .home-trust--pulse .home-trust__list,
  .home-trust--shimmer::after {
    animation: none;
  }
}

/* ---- Hero ---- */
.hero-wrap {
  padding-block: var(--space-4) var(--space-2);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: var(--space-4);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-4);
  min-height: 430px;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.85), transparent 45%),
    linear-gradient(120deg, var(--color-hero-from) 0%, var(--color-hero-to) 100%);
}

.hero__content .eyebrow {
  color: var(--color-brand);
  letter-spacing: 0.1em;
}

.hero__content h1 {
  color: var(--color-brand-dark);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  margin-block: var(--space-3) var(--space-4);
}

.hero__content p {
  color: var(--color-text);
  font-size: var(--font-size-md);
  max-width: 34ch;
  margin-bottom: var(--space-5);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero__actions .btn-outline {
  background: #fff;
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.hero__actions .btn-outline:hover {
  background: var(--color-brand-fill);
  color: #fff;
}

.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-5);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-muted);
}

.hero__features li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero__features .icon {
  color: var(--color-brand);
}

.hero__visual {
  position: relative;
  height: 100%;
  min-height: 340px;
}

.hero__photo {
  position: absolute;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.hero__photo--main {
  top: 0;
  right: 0;
  width: 68%;
  height: 92%;
}

.hero__photo--second {
  bottom: 0;
  left: 6%;
  width: 46%;
  height: 46%;
  border: 4px solid #fff;
}

.hero__chips {
  position: absolute;
  top: 8%;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  z-index: 2;
}

.hero__chip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: #fff;
  padding: 6px var(--space-3) 6px 6px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-brand-dark);
}

.hero__chip .icon {
  padding: 6px;
  box-sizing: content-box;
  border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-brand);
}

/* ---- B2B side cards ---- */
.hero__cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero-card {
  flex: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-1) var(--space-3);
  align-content: center;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

.hero-card .icon {
  grid-row: span 2;
  align-self: start;
}

.hero-card h3 {
  font-size: var(--font-size-base);
}

.hero-card p {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.hero-card .btn {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: var(--space-2);
  padding: var(--space-2) var(--space-4);
  color: #fff;
}

.hero-card .btn .icon {
  color: #fff;
}

.hero-card--blue {
  background: #e6f1fc;
  border-color: #cfe3f7;
}

.hero-card--blue .icon,
.hero-card--blue h3 {
  color: var(--color-brand);
}

.hero-card--blue .btn {
  background: var(--color-brand-fill);
}

.hero-card--green {
  background: #e7f6ee;
  border-color: #cdeadb;
}

.hero-card--green .icon,
.hero-card--green h3 {
  color: #1c7c4c;
}

.hero-card--green .btn {
  background: #1c7c4c;
}

.hero-card--orange {
  background: #fdeee6;
  border-color: #f8d7c5;
}

.hero-card--orange .icon,
.hero-card--orange h3 {
  color: var(--color-coral-dark);
}

.hero-card--orange .btn {
  background: var(--color-coral);
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero__cards {
    flex-direction: row;
  }
}

@media (max-width: 760px) {
  .hero__chips {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: var(--space-5);
    min-height: 0;
  }

  .hero__visual {
    min-height: 300px;
  }

  .hero__cards {
    flex-direction: column;
  }
}

/* ---- Full-width hero slider (edge to edge, up to 6 slides) ---- */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-brand-fill);
}

.hero-slider__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.hero-slider__track::-webkit-scrollbar {
  display: none;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-height: clamp(360px, 42vw, 500px);
  display: flex;
  align-items: center;
  color: var(--slide-text, #fff);
  background: var(--slide-bg);
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.14), transparent 45%),
    linear-gradient(120deg, var(--slide-bg) 0%, color-mix(in srgb, var(--slide-bg) 70%, #000) 100%);
  overflow: hidden;
}

/* Transparent background: no colour wash, just the image (and page) behind. */
.hero-slide--plain {
  background: none;
}

.hero-slide__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide--cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0) 100%);
}

.hero-slide__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: var(--space-6);
  padding-block: var(--space-8);
  width: 100%;
}

.hero-slide--cover .hero-slide__inner {
  grid-template-columns: minmax(0, 1fr);
}

/* A ready-made banner image: shown whole at its own shape, nothing cropped, no overlay. */
.hero-slide--banner {
  min-height: 0;
  display: block;
  color: inherit;
  background: none;
  overflow: visible;
}

.hero-slide--banner::after {
  display: none;
}

.hero-slide--banner .hero-slide__banner-link {
  display: block;
}

.hero-slide__banner {
  display: block;
  width: 100%;
  height: auto;
}

.hero-slide__text {
  max-width: 620px;
}

.hero-slide__eyebrow {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  margin-bottom: var(--space-4);
}

.hero-slide__title {
  color: var(--slide-text, #fff);
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.hero-slide__sub {
  color: var(--slide-text, #fff);
  opacity: 0.92;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  max-width: 540px;
}

.hero-slide__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.hero-slide__visual {
  display: flex;
  justify-content: center;
}

.hero-slide__visual img {
  width: min(100%, 420px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  border-radius: 28px;
  padding: var(--space-5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-brand);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
}

.hero-slider__arrow:hover {
  background: #fff;
}

.hero-slider__arrow--prev {
  left: 16px;
}

.hero-slider__arrow--next {
  right: 16px;
}

.hero-slider__controls {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

.hero-slider__dots {
  display: flex;
  gap: 8px;
}

.hero-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.25s var(--ease), background-color 0.25s var(--ease);
}

.hero-slider__dot.is-active {
  width: 28px;
  background: #fff;
}

@media (max-width: 800px) {
  .hero-slide {
    min-height: 0;
    align-items: stretch;
  }

  .hero-slide__inner {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding-block: var(--space-6) var(--space-8);
    text-align: left;
  }

  .hero-slide__inner {
    grid-template-columns: minmax(0, 1fr) 128px;
    align-items: center;
  }

  .hero-slide__title {
    font-size: 1.55rem;
    margin-bottom: var(--space-3);
  }

  .hero-slide__sub {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-4);
  }

  .hero-slide__eyebrow {
    margin-bottom: var(--space-3);
  }

  .hero-slide__visual img {
    width: 128px;
    border-radius: 16px;
    padding: var(--space-2);
  }

  /* Phones: smaller arrows at the bottom corners, level with the dots. */
  .hero-slider__arrow {
    top: auto;
    bottom: 12px;
    transform: none;
    width: 34px;
    height: 34px;
    font-size: 22px;
  }

  .hero-slider__arrow--prev {
    left: 12px;
  }

  .hero-slider__arrow--next {
    right: 12px;
  }

  .hero-slider__controls {
    bottom: 14px;
  }

  .hero-slide__inner {
    padding-bottom: calc(var(--space-8) + 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider__track {
    scroll-behavior: auto;
  }
}

/* ---- Bottom of homepage: business enquiries ---- */
.biz-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

@media (max-width: 800px) {
  .biz-cards {
    grid-template-columns: 1fr;
  }
}

/* Keep the text and image clear of the arrows on larger screens. */
@media (min-width: 801px) {
  .hero-slide__inner {
    padding-inline: max(var(--gutter), 84px);
  }
}

@media (max-width: 420px) {
  .hero-slide__inner {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: var(--space-3);
  }

  .hero-slide__visual img {
    width: 96px;
  }

  .hero-slide__title {
    font-size: 1.35rem;
  }
}
