/* ==========================================================================
   MAPS TOWING — HOMEPAGE STYLES
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 800px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.04) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin: auto 0;
  padding: 190px 24px;
  max-width: 800px;
}

/* Live pill */
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid #7d8797;
  border-radius: var(--r-16);
  background: rgba(15, 15, 19, 0.2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 14px;
  line-height: 19px;
  color: var(--graphite-150);
}

.live-dot {
  position: relative;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.live-dot img {
  position: absolute;
}

.live-dot__ring {
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  animation: livePulse 2s ease-in-out infinite;
}

.live-dot__core {
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
}

@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.45; }
}

/* Reviews */
.hero__reviews {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--graphite-150);
}

.hero__avatars {
  display: flex;
}

.hero__avatars img {
  width: 31px;
  height: 31px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex: 0 0 auto;
}

.hero__avatars img:not(:last-child) {
  margin-right: -8px;
}

/* Headline */
.hero__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero__title {
  font-size: 72px;
  font-weight: 700;
  line-height: 78px;
  color: var(--graphite-50);
  text-shadow: 0 4px 32px rgba(255, 56, 0, 0.12), 0 4px 40px rgba(0, 0, 0, 0.32);
  /* Keep each <br> segment on one line so the H1 stays exactly 2 rows. */
  white-space: nowrap;
}

.hero__title span {
  color: var(--primary-2);
}

.hero__sub {
  max-width: 650px;
  font-size: 16px;
  line-height: 22px;
  color: var(--graphite-150);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.hero__buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Stats bar */
.hero__stats {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: calc(100% - 48px);
  max-width: 1392px;
  padding: 24px 44px;
  border-radius: var(--r-16);
  background: rgba(9, 10, 13, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.stat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat__num {
  display: flex;
  align-items: center;
  height: 52px;
  font-family: 'Anton', var(--font);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.72px;
  color: var(--primary-2);
}

.stat__text {
  display: flex;
  flex-direction: column;
}

.stat__title {
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--graphite-50);
}

.stat__desc {
  font-size: 14px;
  line-height: 19px;
  color: var(--graphite-300);
}

.stat-divider {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1px;
  height: 51px;
}

.stat-divider img {
  width: 51px;
  min-width: 51px;
  height: 1px;
  transform: rotate(90deg);
}

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  height: 23px;
  margin-top: 44px;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: tickerScroll 45s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__group {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
}

.ticker__item {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 600;
  line-height: 23px;
  letter-spacing: 0.16px;
  text-transform: uppercase;
  color: var(--graphite-900);
}

.ticker__item img {
  width: 4px;
  height: 4px;
}

@keyframes tickerScroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .live-dot__ring { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1279.98px) {
  .hero__title {
    font-size: clamp(44px, 5vw, 72px);
    line-height: 1.084;
  }
}

@media (max-width: 1023.98px) {
  .hero {
    min-height: 0;
  }

  .hero__overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.19) 100%);
  }

  .hero__bg img {
    object-position: 59% top;
  }

  .hero__content {
    margin: 0;
    padding: 120px 16px 24px;
    max-width: none;
    width: 100%;
  }

  .hero__title {
    font-size: 44px;
    line-height: 48px;
    /* Allow wrapping again on small screens so long lines never overflow. */
    white-space: normal;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }

  .hero__buttons .btn {
    width: 100%;
    height: 48px;
    padding: 12px 20px;
  }

  .hero__stats {
    position: static;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    width: auto;
    max-width: none;
    margin: 0 16px 36px;
    padding: 24px;
  }

  .stat-divider {
    width: 100%;
    height: 1px;
  }

  .stat-divider img {
    width: 100%;
    min-width: 0;
    transform: none;
  }

  .ticker {
    margin-top: 24px;
  }

  .ticker__group {
    gap: 24px;
    padding-right: 24px;
  }

  .ticker__item {
    gap: 24px;
    font-size: 14px;
    letter-spacing: 0.14px;
  }
}

/* ---------- Services section ---------- */
.svc {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  padding: 0 var(--side-pad) 72px;
}

.svc__left {
  position: sticky;
  top: 0;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-top: 144px;
}

.svc__cards {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 144px;
}

.svc-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--graphite-50);
  border: 1px solid var(--graphite-150);
  border-radius: var(--r-16);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.svc-card:hover,
.svc-card:focus-visible {
  border-color: var(--primary-1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.svc-card:focus-visible {
  outline: 2px solid var(--primary-1);
  outline-offset: 3px;
}

.svc-card__img {
  position: relative;
  display: block;
  height: 210px;
}

.svc-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svc-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.32) 100%);
}

.svc-card__body {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 24px;
}

.svc-card__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.svc-card__title {
  font-size: 24px;
  font-weight: 600;
  line-height: 28px;
  color: var(--graphite-950);
}

.svc-card__desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 19px;
  color: var(--graphite-450);
}

.svc-card__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--primary-1);
  border-radius: var(--r-40);
  background: var(--grad-secondary);
  box-shadow: var(--shadow-btn-secondary);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.svc-card:hover .svc-card__btn,
.svc-card:focus-visible .svc-card__btn {
  background: var(--grad-secondary-hover);
  box-shadow: 0 6px 18px rgba(255, 56, 0, 0.14);
}

.svc-card__btn .icn {
  width: 10px;
  height: 10px;
}

.svc-card__btn .icn img {
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.svc-card:hover .svc-card__btn .icn img,
.svc-card:focus-visible .svc-card__btn .icn img {
  transform: rotate(0deg);
}

@media (max-width: 1023.98px) {
  .svc {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 144px var(--side-pad-mobile) 72px;
  }

  .svc__left {
    position: static;
    padding-top: 0;
  }

  .svc__cards {
    padding-top: 0;
  }

  .svc-card__img {
    height: 160px;
  }

  .svc-card__body {
    padding: 20px;
  }

  .svc-card__title {
    font-size: 20px;
    line-height: 24px;
  }

  .svc-card__btn {
    width: 40px;
    height: 40px;
  }

  .svc-card__btn .icn {
    width: 10px;
    height: 10px;
  }
}

/* ---------- Reviews slider (homepage) ---------- */
.rev__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.rev__viewport::-webkit-scrollbar {
  display: none;
}

.rev__viewport.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

.rev__track {
  display: flex;
  gap: 16px;
}

/* ---------- Blog section ---------- */
.blog {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 144px var(--side-pad);
}

.blog__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.blog__head .sec-head {
  max-width: 650px;
}

@media (max-width: 1023.98px) {
  .blog {
    gap: 24px;
    padding: 144px var(--side-pad-mobile);
  }

  .blog__head {
    flex-direction: column;
    align-items: stretch;
    gap: 36px;
  }
}
