﻿/* Home Index V3 page styles (Bootstrap + tokens only) */

.app-home-hero-shell {
  position: relative;
  --app-home-scroll-progress: 0;
}

.app-home-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background-color: var(--app-color-neutral-950);
}

.app-home-hero .carousel-inner {
  position: relative;
  height: 100svh;
  min-height: 640px;
}

.app-home-hero .carousel-item {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  will-change: opacity;
  transition: opacity var(--app-motion-slow) var(--app-ease-standard);
}

.app-home-hero .carousel-item.active {
  opacity: 1;
  z-index: 1;
}

.app-home-hero__image {
  height: 100svh;
  min-height: 640px;
  object-fit: cover;
}

.app-home-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--app-hero-overlay-start), var(--app-hero-overlay-end));
  pointer-events: none;
}

.app-home-hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  --app-home-hero-text-shadow: var(--app-text-shadow-on-image-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--app-space-6) var(--app-space-4);
}

.app-home-hero .carousel-control-prev,
.app-home-hero .carousel-control-next {
  z-index: 3;
}

.app-home-hero__heading {
  color: var(--app-navbar-text);
  font-size: clamp(var(--app-font-size-600), 4vw, 3rem);
  text-shadow: var(--app-home-hero-text-shadow);
}

.app-home-hero__subheading {
  color: var(--app-navbar-text-muted);
  max-width: 760px;
  font-size: var(--app-font-size-500);
  font-weight: 500;
  line-height: var(--app-line-height-normal);
  text-shadow: var(--app-home-hero-text-shadow);
}

.app-home-shortcuts {
  position: relative;
  margin-top: var(--app-space-7);
  padding-top: var(--app-space-6);
}

.app-home-shortcuts-promo {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--app-space-2);
  max-width: calc(100% - var(--app-space-6));
  min-height: 2.5rem;
  padding: var(--app-space-2) var(--app-space-4);
  color: var(--app-color-on-accent);
  background-color: var(--app-color-primary);
  border: 1px solid color-mix(in srgb, var(--app-color-neutral-0) 30%, transparent);
  border-radius: 999px;
  box-shadow: var(--app-shadow-2);
  font-size: var(--app-font-size-400);
  font-weight: 500;
  line-height: var(--app-line-height-tight);
  text-shadow: none;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.app-home-section {
  padding-top: var(--app-space-8);
  padding-bottom: var(--app-space-8);
}

.app-home-step-section {
  --app-home-step-progress: 0;
  --app-home-step-hero-filter-shadow: var(--app-icon-shadow-on-image);
  --app-home-step-sticky-height: 7rem;
  --app-home-step-sticky-bottom: var(--app-space-1);
  --app-home-step-sticky-top: calc(100svh - var(--app-home-step-sticky-height) - var(--app-home-step-sticky-bottom));
  margin-top: calc((var(--app-home-step-sticky-height) + var(--app-home-step-sticky-bottom)) * -1);
  padding-top: 0;
}

.app-home-step-sticky-rail {
  height: calc(var(--app-home-step-sticky-height) + var(--app-space-8));
  min-height: 18rem;
  position: relative;
}

.app-home-step-sticky {
  position: sticky;
  top: var(--app-home-step-sticky-top);
  z-index: 5;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: min(92vw, 520px);
  min-height: var(--app-home-step-sticky-height);
  padding: var(--app-space-4) var(--app-space-5);
  color: var(--app-navbar-text);
  text-decoration: none;
  filter: var(--app-home-step-hero-filter-shadow);
  background-color: transparent;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: color var(--app-motion-normal) var(--app-ease-standard),
              filter var(--app-motion-normal) var(--app-ease-standard);
}

.app-home-step-sticky:hover,
.app-home-step-sticky:focus-visible {
  color: var(--app-navbar-text);
}

.app-home-step-sticky:focus-visible {
  box-shadow: var(--app-focus-ring);
  border-radius: var(--app-radius-md);
}

.app-home-step-section.is-on-surface .app-home-step-sticky {
  color: var(--app-color-text);
  filter: none;
}

.app-home-step-section.is-on-surface .app-home-step-sticky:hover,
.app-home-step-section.is-on-surface .app-home-step-sticky:focus-visible {
  color: var(--app-color-text);
}

.app-home-step-section.is-on-surface .app-home-step-sticky__kicker {
  margin-bottom: var(--app-space-2);
  color: var(--app-color-accent);
  font-size: var(--app-font-size-200);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-home-step-section.is-on-surface .app-home-step-sticky__intro,
.app-home-step-section.is-on-surface .app-home-step-sticky__title,
.app-home-step-section.is-on-surface .app-home-step-sticky__icon {
  color: var(--app-color-text);
}

.app-home-step-section.is-on-surface .app-home-step-sticky__title {
  font-size: var(--app-font-size-700);
}

.app-home-step-section.is-on-surface .app-home-step-sticky__icon {
  display: none;
}

.app-home-step-sticky__intro,
.app-home-step-sticky__kicker,
.app-home-step-sticky__title {
  display: block;
  transition: opacity var(--app-motion-normal) var(--app-ease-standard),
              transform var(--app-motion-normal) var(--app-ease-standard),
              max-height var(--app-motion-normal) var(--app-ease-standard);
}

.app-home-step-sticky__intro {
  max-height: 2rem;
  overflow: hidden;
  font-size: var(--app-font-size-400);
  font-weight: 800;
  opacity: calc(1 - var(--app-home-step-progress));
  transform: translateY(calc(var(--app-home-step-progress) * -10px));
}

.app-home-step-sticky__kicker {
  max-height: calc(var(--app-home-step-progress) * 2rem);
  overflow: hidden;
  color: var(--app-navbar-text-muted);
  opacity: var(--app-home-step-progress);
  transform: translateY(calc((1 - var(--app-home-step-progress)) * 10px));
}

.app-home-step-sticky__title {
  max-height: calc(var(--app-home-step-progress) * 4rem);
  overflow: hidden;
  font-size: var(--app-font-size-600);
  font-weight: 800;
  opacity: var(--app-home-step-progress);
  transform: translateY(calc((1 - var(--app-home-step-progress)) * 14px));
}

.app-home-step-sticky__icon {
  margin-top: var(--app-space-2);
  color: var(--app-navbar-text);
  font-size: 1.25rem;
  text-shadow: var(--app-text-shadow-on-image);
  animation: app-home-scroll-cue 1.4s var(--app-ease-standard) infinite;
}

.app-home-step-flow {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  scroll-margin-top: 12rem;
  padding: var(--app-space-6);
  text-align: center;
  border-radius: var(--app-radius-lg);
}

.app-home-step-flow .app-flow__item {
  justify-items: center;
  text-align: center;
}

.app-home-step-flow .app-flow__item:not(:last-child)::after {
  left: calc(50% + (var(--app-flow-marker-size) / 2) + var(--app-space-2));
  right: calc(-50% + (var(--app-flow-marker-size) / 2) + var(--app-space-2));
}

@keyframes app-home-scroll-cue {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

.app-home-popular-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--app-space-3);
  margin-bottom: var(--app-space-4);
}

.app-home-popular-header .app-section-heading {
  flex: 1 1 auto;
  min-width: 0;
}

.app-home-popular-header__cta {
  flex: 0 0 auto;
  white-space: nowrap;
}


.app-home-category-offcanvas {
  color: var(--app-color-text);
  background-color: var(--app-color-surface);
  border-left: 1px solid var(--app-color-border);
}

.app-home-category-offcanvas__header {
  align-items: flex-start;
  gap: var(--app-space-3);
  border-bottom: 1px solid var(--app-color-border);
  padding: var(--app-space-4);
}

.app-home-category-offcanvas__body {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: var(--app-space-3);
  padding: var(--app-space-4);
  background-color: color-mix(in srgb, var(--app-color-surface-alt) 40%, var(--app-color-surface));
}

.app-home-category-offcanvas__section {
  display: grid;
  gap: var(--app-space-2);
}

.app-home-category-offcanvas__section-title {
  margin: 0;
  color: var(--app-color-text-muted);
  font-size: var(--app-font-size-200);
  font-weight: 800;
  line-height: var(--app-line-height-tight);
}

@media (prefers-reduced-motion: reduce) {
  .app-home-hero-shell {
    --app-home-scroll-progress: 1;
  }

  .app-home-step-section {
    --app-home-step-progress: 1;
  }



  .app-home-step-sticky__intro {
    display: none;
  }
}

@media (max-width: 768px) {
  .app-home-hero__image {
    min-height: 560px;
  }



  .app-home-hero__subheading {
    max-width: 22rem;
    font-size: var(--app-font-size-200);
    line-height: var(--app-line-height-normal);
  }

  .app-home-shortcuts {
    margin-top: var(--app-space-6);
    padding-top: var(--app-space-6);
  }

  .app-home-shortcuts-promo {
    max-width: calc(100% - var(--app-space-4));
    min-height: 2.25rem;
    padding: var(--app-space-2) var(--app-space-3);
    font-size: var(--app-font-size-200);
  }

  .app-home-step-section {
    --app-home-step-sticky-height: 6rem;
    --app-home-step-sticky-bottom: var(--app-space-1);
  }

  .app-home-step-sticky {
    min-width: min(92vw, 420px);
    padding: var(--app-space-3) var(--app-space-4);
  }

  .app-home-step-sticky__intro {
    max-height: 1.75rem;
    font-size: var(--app-font-size-300);
  }

  .app-home-step-sticky__kicker {
    max-height: calc(var(--app-home-step-progress) * 1.75rem);
    font-size: var(--app-font-size-200);
  }

  .app-home-step-sticky__title {
    max-height: calc(var(--app-home-step-progress) * 3rem);
    font-size: var(--app-font-size-400);
  }

  .app-home-service-title {
    font-size: var(--app-font-size-400);
  }

  .app-home-step-sticky__icon {
    margin-top: var(--app-space-1);
    font-size: var(--app-font-size-300);
  }

  .app-home-step-sticky-rail {
    height: clamp(14rem, 30svh, 18rem);
    min-height: 15rem;
  }

  .app-home-step-flow .app-flow__item {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .app-home-step-flow .app-flow__item:not(:last-child)::after {
    top: calc(100% + var(--app-space-2));
    bottom: auto;
    left: 50%;
    right: auto;
    width: 2px;
    height: calc(var(--app-space-5) - var(--app-space-4));
    transform: translateX(-50%);
  }

  .app-home-popular-header__cta {
    margin-top: var(--app-space-1);
    padding-right: var(--app-space-3);
    padding-left: var(--app-space-3);
    font-size: var(--app-font-size-200);
  }

}
