/**
 * Local homepage UI/UX overrides.
 * Loaded after compiled Astro CSS + theme tokens. Isolated and reversible.
 * Does not replace brand assets or invent content.
 */

.home-skip {
  position: absolute;
  inset-inline-start: 0.75rem;
  top: 0.75rem;
  z-index: 200;
  padding: 0.55rem 0.85rem;
  border-radius: 0.65rem;
  background: var(--ud-brand, #7c3aed);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transform: translateY(-200%);
}
.home-skip:focus {
  transform: none;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.home-hero :is(a, button, input),
.home-section :is(a, button),
.home-footer :is(a, button),
header :is(a, button),
.sh-nav-drawer :is(a, button) {
  outline: none;
}
.home-hero :is(a, button, input):focus-visible,
.home-section :is(a, button):focus-visible,
.home-footer :is(a, button):focus-visible,
header :is(a, button):focus-visible,
.sh-nav-drawer :is(a, button):focus-visible {
  outline: 2px solid var(--ud-brand, #7c3aed);
  outline-offset: 2px;
}

header.sticky {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
header .bg-brand {
  min-height: 2.5rem;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--ud-brand, #7c3aed) 22%, transparent);
}

.home-hero {
  padding: 2rem 0 2.5rem;
}
@media (min-width: 640px) {
  .home-hero {
    padding: 3.25rem 0 3.75rem;
  }
}

.home-hero__eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0;
}
.home-hero__title {
  letter-spacing: 0;
  line-height: 1.25;
  max-width: 18ch;
}
.home-hero__lead {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 34rem;
}

.home-hero__panel {
  border-radius: 1.15rem;
  box-shadow:
    0 1px 2px rgb(15 23 42 / 0.04),
    0 14px 36px rgb(15 23 42 / 0.07);
}

.home-search {
  align-items: stretch;
  padding: 0.5rem;
  gap: 0.4rem;
}
.home-search__icon {
  width: 2.5rem;
}
.home-search input {
  min-height: 2.75rem;
  padding: 0.55rem 0.4rem;
  font-size: 1rem;
}
.home-search button {
  min-height: 2.75rem;
  min-width: 5.25rem;
  padding: 0.55rem 1.15rem;
  font-weight: 700;
}
@media (max-width: 420px) {
  .home-search {
    flex-wrap: wrap;
  }
  .home-search__icon {
    display: none;
  }
  .home-search input {
    flex: 1 1 100%;
  }
  .home-search button {
    width: 100%;
  }
}

.home-city-chips {
  padding: 0 0.85rem 0.95rem;
  gap: 0.45rem;
}
.home-city-chip {
  min-height: 2.15rem;
  align-items: center;
  padding: 0.35rem 0.85rem;
  font-weight: 600;
}

.home-hero__route-cta,
.home-hero__route-link {
  min-height: 2.25rem;
  align-items: center;
}

.home-trust {
  margin-top: 0.15rem;
  gap: 0.75rem 1.25rem;
}
.home-trust__item {
  font-size: 0.8125rem;
}

.home-hero__secondary {
  margin-top: 1.1rem;
  font-weight: 600;
}

@media (min-width: 1024px) {
  .home-hero__visual {
    display: flex;
  }
}

.home-mockup {
  border-radius: 1.15rem;
}

.home-section {
  padding: 2.75rem 0;
}
@media (min-width: 768px) {
  .home-section {
    padding: 3.5rem 0;
  }
}
.home-section__title,
.home-hero__title {
  letter-spacing: 0;
}
.home-section__head {
  margin-bottom: 1.5rem;
}
.home-coaches__head {
  align-items: flex-end;
  margin-bottom: 1.35rem;
}
.home-coaches__sub {
  line-height: 1.6;
}
.home-head__link {
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
}

.home-coaches-empty {
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  line-height: 1.7;
}

.home-carousel {
  gap: 0.9rem;
  padding: 0.25rem 0 0.85rem;
  scroll-padding-inline: 0.15rem;
}
@media (min-width: 768px) {
  .home-carousel {
    gap: 1.1rem;
    padding: 0.35rem 2.75rem 0.9rem;
  }
}

.home-carousel-nav {
  width: 2.5rem;
  height: 2.5rem;
  background: color-mix(in srgb, var(--ud-canvas, #fff) 92%, transparent);
}

.home-coach-card,
.home-coach-skeleton {
  flex-basis: min(16.5rem, 78vw);
  border-radius: 1.15rem;
}
.home-coach-card {
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}
.home-coach-card:hover,
.home-coach-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgb(15 23 42 / 0.08);
}
.home-coach-card:focus-visible {
  outline: 2px solid var(--ud-brand, #7c3aed);
  outline-offset: 2px;
}
.home-coach-card__media {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ud-brand, #7c3aed) 8%, transparent), transparent 42%),
    var(--ud-surface, #fafafb);
}
.home-coach-card__avatar {
  object-fit: cover;
  object-position: center top;
}
.home-coach-card__body {
  padding: 0.95rem 1rem 1rem;
  gap: 0.28rem;
}
.home-coach-card__name {
  font-size: 1.02rem;
  line-height: 1.45;
}
.home-coach-card__zone {
  font-size: 0.78rem;
  line-height: 1.5;
}
.home-coach-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ud-text, #0b1220);
}
.home-coach-card__rating-star {
  color: #d97706;
  font-size: 0.85rem;
  line-height: 1;
}
.home-coach-card__footer {
  padding-top: 0.7rem;
  margin-top: 0.55rem;
}
.home-coach-card__price {
  font-size: 0.92rem;
}
.home-coach-card__cta {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
}

.home-bento {
  gap: 0.85rem;
}
.home-bento__tile {
  min-height: 10rem;
  padding: 1.35rem 1.3rem;
  border-radius: 1.15rem;
}
.home-bento__tile h3 {
  letter-spacing: 0;
}
.home-bento__tile p {
  line-height: 1.7;
}
.home-bento__icon {
  width: 2.5rem;
  height: 2.5rem;
}

.home-split-cta {
  border-radius: 1.15rem;
}
.home-split-cta__half {
  padding: 1.75rem 1.35rem;
}
@media (min-width: 640px) {
  .home-split-cta__half {
    padding: 2.15rem 1.75rem;
  }
}
.home-split-cta__half h3 {
  letter-spacing: 0;
}
.home-split-cta__btns {
  justify-content: center;
}
.home-link-btn {
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
}
.home-split-cta__half:last-child .home-link-btn--outline {
  background: var(--ud-brand, #7c3aed);
  color: #fff;
  border-color: var(--ud-brand, #7c3aed);
}
.home-split-cta__half:last-child .home-link-btn--outline:hover {
  background: var(--ud-brand-hover, #6d28d9);
}

.home-request-banner {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: color-mix(in srgb, var(--ud-brand, #7c3aed) 12%, #fff);
  color: var(--ud-brand, #7c3aed);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.6;
}
.home-requests {
  display: grid;
  gap: 0.75rem;
}
.home-request-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--ud-border, #ececef);
  border-radius: 1rem;
  background: var(--ud-canvas, #fff);
}
.home-request-card__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--ud-brand, #7c3aed) 14%, #fff);
  color: var(--ud-brand, #7c3aed);
  font-weight: 800;
}
.home-request-card__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ud-text, #0b1220);
}
.home-request-card__message {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ud-text, #0b1220);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-request-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}
.home-request-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: var(--ud-surface, #f6f7fb);
  color: var(--ud-text-muted, #64748b);
  font-size: 0.75rem;
  font-weight: 700;
}
.home-request-card__meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0 0.8rem;
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--ud-brand, #7c3aed) 12%, #fff);
  color: var(--ud-brand, #7c3aed);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .home-request-card {
    grid-template-columns: auto 1fr;
  }
  .home-request-card__meta {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.home-footer {
  padding: 2.5rem 0 1.75rem;
}
.home-footer__phone {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.6;
}
.home-footer__phone a {
  color: var(--ud-brand, #7c3aed);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
}
.home-footer__phone a:hover { text-decoration: underline; }
.home-footer__links a {
  min-height: 1.75rem;
  display: inline-flex;
  align-items: center;
}

@media (prefers-reduced-motion: reduce) {
  .home-coach-card,
  .home-bento__tile,
  .home-search button,
  .home-hero__route-cta,
  .home-link-btn {
    transition: none;
  }
  .home-coach-card:hover,
  .home-bento__tile:hover {
    transform: none;
  }
}
