.site-page {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 40%, #f8fafc 100%);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3rem;
}

.page-hero--compact {
  padding: 3.25rem 0 2rem;
}

.page-hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(79, 70, 229, 0.78)),
    url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-hero__title {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.page-hero__subtitle {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 42rem;
  margin: 0 auto;
}

.site-section {
  padding: 3.5rem 0;
}

.site-section--tight {
  padding-top: 0;
}

.site-surface {
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.home-directory {
  --home-radius: 24px;
  --home-ease: 0.3s ease-in-out;
  --home-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  --home-shadow-hover: 0 28px 60px rgba(15, 23, 42, 0.18);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 40%, #f8fafc 100%);
}

.home-directory * {
  transition: color var(--home-ease), background-color var(--home-ease), border-color var(--home-ease),
    box-shadow var(--home-ease), transform var(--home-ease), opacity var(--home-ease);
}

.home-hero {
  position: relative;
  min-height: clamp(520px, 78vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6rem 0 5rem;
}

.home-hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(79, 70, 229, 0.55)),
    url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  transform: scale(1.04);
}

.home-hero__glow {
  position: absolute;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
}

.home-hero__glow--left {
  top: -6rem;
  left: -4rem;
  background: #818cf8;
}

.home-hero__glow--right {
  right: -5rem;
  bottom: -8rem;
  background: #38bdf8;
}

.home-hero__content {
  position: relative;
  z-index: 2;
}

.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-hero__title {
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 1.25rem 0 1rem;
  text-shadow: 0 12px 40px rgba(15, 23, 42, 0.35);
}

.home-hero__subtitle {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.glass-search {
  max-width: 920px;
  margin: 0 auto;
  padding: 1rem;
  border-radius: var(--home-radius);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.glass-search:focus-within {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 24px 70px rgba(99, 102, 241, 0.35);
}

.glass-search__field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  min-height: 58px;
}

.glass-search__field i {
  color: #64748b;
}

.glass-search__field input,
.glass-search__field select {
  width: 100%;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-size: 1rem;
  outline: none;
}

.glass-search__field select {
  appearance: none;
}

.glass-search__submit {
  border: 0;
  border-radius: 18px;
  padding: 0.95rem 1.5rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 16px 30px rgba(79, 70, 229, 0.35);
}

.home-section,
.site-section--spacious {
  padding: 5rem 0;
}

.home-section__header,
.site-section__header {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.home-section__eyebrow,
.site-section__eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: #4f46e5;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-section__title,
.site-section__title {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.home-section__copy,
.site-section__copy {
  color: #64748b;
  font-size: 1.05rem;
  margin: 0;
}

.home-directory .category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.home-directory .category-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: var(--home-radius);
  text-decoration: none;
  color: #fff;
  box-shadow: var(--home-shadow);
}

.home-directory .category-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--home-shadow-hover);
}

.home-directory .category-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-directory .category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.78));
}

.home-directory .category-card__body {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.home-directory .category-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  margin-bottom: 0.85rem;
}

.home-directory .category-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.trending-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.business-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 0;
  border-radius: var(--home-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--home-shadow);
}

.business-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--home-shadow-hover);
}

.business-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e2e8f0;
}

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

.business-card__media:hover img {
  transform: scale(1.06);
}

.business-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 700;
}

.business-card__verified {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.92);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.business-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.35rem;
  flex: 1;
}

.business-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.business-card__meta,
.business-card__location {
  color: #64748b;
  font-size: 0.92rem;
  margin: 0;
}

.business-card__excerpt {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.business-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.business-card__rating {
  color: #f59e0b;
  font-size: 0.9rem;
  white-space: nowrap;
}

.business-card__quick {
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: #0f172a;
}

.business-card__quick:hover {
  color: #fff;
  background: #4f46e5;
}

.home-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.home-skeleton-card {
  border-radius: var(--home-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--home-shadow);
}

.home-skeleton-card__media,
.home-skeleton-card__line {
  background: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 50%, #e2e8f0 100%);
  background-size: 200% 100%;
  animation: home-shimmer 1.4s ease-in-out infinite;
}

.home-skeleton-card__media {
  aspect-ratio: 4 / 3;
}

.home-skeleton-card__body {
  padding: 1.25rem;
}

.home-skeleton-card__line {
  height: 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.home-skeleton-card__line--short {
  width: 55%;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

@keyframes home-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 991.98px) {
  .home-directory .category-grid,
  .trending-track,
  .home-skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .home-hero {
    min-height: auto;
    padding: 5rem 0 4rem;
  }

  .glass-search__field {
    min-height: 52px;
  }

  .home-directory .category-grid,
  .trending-track,
  .home-skeleton-grid {
    grid-template-columns: 1fr;
  }
}
