/* Shared styles for sub-pages (services, portfolio, about, etc.)
   Works across all template types (starter, professional, operations).
   Loaded by all base templates so sub-pages render consistently. */

/* Variables that sub-page templates rely on (operations defines these,
   professional/starter may not) */
:root {
  --navy: var(--gray-900, #0F172A);
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section */
.section {
  padding: 4rem 0;
}
.section.bg-gray {
  background: var(--gray-50);
}

/* Page hero banner */
.storefront-hero {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  padding: 4rem 0 3rem;
  position: relative;
}
.professional-storefront:not(.has-pro-topbar) .storefront-hero {
  padding-top: 6.25rem;
}
.storefront-hero-title {
  color: white;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  max-width: 900px;
  margin: 0 auto;
  overflow-wrap: anywhere;
  text-align: center;
  text-wrap: balance;
}
.storefront-hero-subtitle {
  color: var(--gray-300);
  max-width: 600px;
  margin: 1rem auto 0;
  text-align: center;
}

/* Card */
.storefront-card {
  background: var(--white, #fff);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  border: 1px solid var(--gray-100);
}

/* Service listing */
.service-list-container {
  max-width: 960px;
}
.service-list-card {
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.service-list-card-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.service-list-card-media {
  width: 200px;
  height: 150px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}
.service-list-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-list-card-content {
  flex: 1;
  min-width: 0;
}
.service-list-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.service-list-card-name {
  color: var(--gray-900);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}
.service-list-card-name a {
  color: inherit;
  text-decoration: none;
}
.service-list-card-name a:hover {
  color: var(--teal, #0D9488);
}
.service-list-card-category {
  color: var(--gray-500);
  background: var(--gray-100);
  border-radius: 4px;
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
}
.service-list-card-price {
  flex-shrink: 0;
  text-align: right;
}
.service-list-card-price-label {
  color: var(--gray-400);
  font-size: 0.6875rem;
}
.service-list-card-price-value {
  color: var(--gray-900);
  font-size: 1.5rem;
  font-weight: 700;
}
.service-list-card-price-unit {
  color: var(--gray-500);
  font-size: 0.75rem;
}
.service-list-card-description {
  color: var(--gray-600);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0.75rem 0;
}
.service-list-card-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  color: var(--gray-400);
  font-size: 0.8125rem;
}
.service-list-card-turnaround {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.service-list-card-turnaround .material-symbols-outlined {
  font-size: 1rem;
}

@media (max-width: 700px) {
  .service-list-section {
    padding: 2rem 0;
  }
  .storefront-hero,
  .professional-storefront:not(.has-pro-topbar) .storefront-hero {
    padding-top: 6rem;
    padding-bottom: 2.5rem;
  }
  .professional-storefront.has-pro-topbar .storefront-hero {
    padding-top: 4rem;
  }
  .storefront-hero-title {
    font-size: clamp(1.625rem, 8vw, 2rem);
  }
  .service-list-card {
    padding: 1rem;
  }
  .service-list-card-layout {
    flex-direction: column;
    gap: 1rem;
  }
  .service-list-card-media {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .service-list-card-content {
    width: 100%;
  }
  .service-list-card-header {
    align-items: flex-start;
  }
  .service-list-card-name {
    font-size: 1.125rem;
  }
}

@media (max-width: 420px) {
  .service-list-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .service-list-card-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  .service-list-card-price {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    text-align: left;
  }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-500);
}
.empty-state-icon {
  margin-bottom: 1rem;
}
.empty-state-icon .material-symbols-outlined {
  font-size: 3rem;
  color: var(--gray-300);
}

/* Rich text content */
.rich-text-content p { margin-bottom: 0.75rem; }
.rich-text-content p:last-child { margin-bottom: 0; }

/* Buttons for sub-pages */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 150ms ease;
}
.btn-primary {
  background: var(--teal, #0D9488);
  color: white;
}
.btn-primary:hover {
  opacity: 0.9;
}
.btn-secondary {
  background: transparent;
  color: var(--teal, #0D9488);
  border: 1px solid currentColor;
}
.btn-secondary:hover {
  background: var(--gray-100, #F3F4F6);
}
.btn-sm {
  padding: 0.4375rem 0.875rem;
  font-size: 0.8125rem;
}
