﻿/*
 * File: styles/css/services-list.css
 * Project: avrora26
 * Role: Styles for public services listing page
 */

.services-list-page {
  background: #f6f7f8;
  min-height: 100vh;
}

.services-list-hero {
  padding: 4px 0 10px;
}

.services-list-hero .container {
  width: min(100%, var(--home-canvas-max));
  max-width: var(--home-canvas-max);
  background: linear-gradient(135deg, #00a88e 0%, #0f766e 58%, #ff7f6f 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  padding: clamp(18px, 3vw, 32px) 20px;
  text-align: center;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.services-list-title {
  margin: 0;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.12;
  color: #fff;
  text-align: center;
}

.services-list-subtitle {
  margin: 10px auto 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 16px;
  text-align: center;
  max-width: 760px;
}

.services-list-section {
  padding: 0 0 24px;
}

.services-list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.top-services-week {
  width: min(100%, var(--home-canvas-max));
  margin-left: auto;
  margin-right: auto;
  --top-houses-gap: 12px;
}

.top-services-week .top-houses-week__link {
  aspect-ratio: 16 / 10;
}

.services-badge {
  background: rgba(11, 87, 208, 0.42);
  border-color: rgba(255, 255, 255, 0.32);
}

.services-list-item small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 2.4em;
}

.services-scroll-sentinel {
  width: 100%;
  height: 1px;
  margin-top: 6px;
}

.services-list-empty {
  border: 1px dashed rgba(0, 0, 0, 0.25);
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: #475569;
}

@media (max-width: 1100px) {
  .services-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .services-list-hero {
    padding-top: 10px;
  }

  .services-list-grid {
    grid-template-columns: 1fr;
  }

  .top-services-week {
    --top-houses-gap: 8px;
  }

  .top-services-week .top-houses-week__link {
    aspect-ratio: 16 / 11;
  }

  .services-scroll-sentinel {
    margin-top: 4px;
  }
}
