/* ============================================
   SERVICES PAGE — RCT-X DIRECTORY
   ============================================ */

/* 1. Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #00695C;
  --primary-soft: rgba(0, 105, 92, 0.1);
  --bg-light: #fafafa;
  --white: #ffffff;
  --text-main: #222222;
  --text-muted: #555555;
  --border: #e0e0e0;
  --shadow: 0 2px 6px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 20px rgba(0,0,0,0.12);
}

.services-page {
  background: var(--bg-light);
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  line-height: 1.5;
}

/* 2. Header (Sticky & Refined) */
.services-header {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  padding: 24px 16px;
  text-align: left;
  border-radius: 0 0 16px 16px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.services-header h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.services-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 3. Search Bar Area */
.services-search {
  padding: 20px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.services-search input {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--white);
  font-size: 1rem;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.services-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
  outline: none;
}

/* 4. Category Filters (Touch-Friendly) */
.services-filters {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 0 16px 24px;
  scrollbar-width: none; /* Firefox */
  max-width: 1200px;
  margin: 0 auto;
}

.services-filters::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.filter-chip {
  padding: 10px 18px;
  border-radius: 25px;
  border: 1px solid var(--primary);
  background: var(--white);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip.active,
.filter-chip:hover {
  background: var(--primary);
  color: var(--white);
}

/* 5. Service List (Grid for Desktop, Column for Mobile) */
.services-list {
  padding: 0 16px 60px;
  display: grid;
  grid-template-columns: 1fr; /* Default mobile */
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 6. Service Card Styling */
.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 18px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-soft);
}

.service-card__image {
  width: 85px;
  height: 85px;
  border-radius: 12px;
  background: #f0f0f0;
  object-fit: cover;
  flex-shrink: 0;
}

.service-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card__category {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
  line-height: 1.2;
}

.service-card__meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-card__cta {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
}

/* 7. Desktop Enhancements */
@media (min-width: 768px) {
  .services-list {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
  }
  
  .services-header {
    padding: 30px 40px;
    border-radius: 0;
  }
  
  .services-header h1 {
    font-size: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .services-list {
    grid-template-columns: repeat(3, 1fr); /* 3 columns for desktop */
  }
}

/* 8. Utility: Add icon spacing if using emojis */
.service-card__meta span::before {
  margin-right: 6px;
}
