/* ==========================================================================
   QHP SERVICES PAGE - MOBILE-OPTIMIZED & PHOTO HERO STYLESHEET
   Quality Home Preservation - Enterprise Field Services & Property Preservation
   ========================================================================== */

:root {
  --qhp-navy: #071827;
  --qhp-slate: #344B61;
  --qhp-steel: #8FA1B3;
  --qhp-brass: #C89A3D;
  --qhp-brass-hover: #b0842e;
  --qhp-warm-white: #F7F5F0;
  --qhp-white: #FFFFFF;
  --qhp-dark-blue: #0B2033;
  --qhp-border-dark: rgba(255, 255, 255, 0.12);
  --qhp-border-light: rgba(7, 24, 39, 0.12);
  --qhp-shadow-sm: 0 2px 8px rgba(7, 24, 39, 0.05);
  --qhp-shadow-md: 0 8px 24px rgba(7, 24, 39, 0.1);
  --qhp-shadow-lg: 0 16px 36px rgba(7, 24, 39, 0.18);
  --qhp-radius: 8px;
  --qhp-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-page-wrapper {
  background-color: #F4F6F8;
  color: var(--qhp-navy);
  padding-bottom: 4rem;
}

/* --------------------------------------------------------------------------
   HEADER MOBILE FIXES
   -------------------------------------------------------------------------- */
#site-header .mobile-nav-toggle {
  color: var(--qhp-brass) !important;
  font-size: 1.75rem;
  padding: 0.5rem;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   1. DEDICATED SERVICES HERO SECTION
   -------------------------------------------------------------------------- */
.services-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background-color: var(--qhp-navy);
  background-image: linear-gradient(
      105deg,
      rgba(7, 24, 39, 0.96) 0%,
      rgba(7, 24, 39, 0.88) 50%,
      rgba(7, 24, 39, 0.55) 100%
    ),
    url('../img/qhp-services-hero.png');
  background-size: cover;
  background-position: center;
  color: var(--qhp-white);
  padding: 5rem 1.5rem 3.5rem;
  border-bottom: 3px solid var(--qhp-brass);
}

.services-hero-container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.services-hero-content {
  max-width: 760px;
}

.services-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(200, 154, 61, 0.15);
  border: 1px solid rgba(200, 154, 61, 0.4);
  color: var(--qhp-brass);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.services-hero h1 {
  color: var(--qhp-white);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.services-hero h1 span {
  color: var(--qhp-brass);
  display: block;
}

.services-hero-lead {
  color: var(--qhp-steel);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.services-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   2. STICKY SCOPE JUMP BAR (MOBILE OPTIMIZED)
   -------------------------------------------------------------------------- */
.scope-nav-bar {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: var(--qhp-navy);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--qhp-border-dark);
}

.scope-nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.scope-nav-container::-webkit-scrollbar {
  display: none;
}

.scope-tab {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 20px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.06);
  transition: var(--qhp-transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.scope-tab:hover, .scope-tab.active {
  background: var(--qhp-brass);
  color: var(--qhp-navy);
  font-weight: 700;
  border-color: var(--qhp-brass);
}

/* --------------------------------------------------------------------------
   3. SPECIFICATION CATEGORY BLOCK
   -------------------------------------------------------------------------- */
.svc-catalog-section {
  max-width: 1280px;
  margin: 2.5rem auto 0;
  padding: 0 1.25rem;
}

.spec-category-block {
  background: var(--qhp-white);
  border: 1px solid var(--qhp-border-light);
  border-radius: var(--qhp-radius);
  box-shadow: var(--qhp-shadow-sm);
  margin-bottom: 2rem;
  overflow: hidden;
}

.spec-category-header {
  background: #EEF2F6;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--qhp-border-light);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .spec-category-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.spec-category-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.category-code {
  background: var(--qhp-navy);
  color: var(--qhp-brass);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.spec-category-title h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 800;
  color: var(--qhp-navy);
  margin: 0;
}

.esther-spec-chip {
  background: rgba(7, 24, 39, 0.06);
  border: 1px solid rgba(7, 24, 39, 0.15);
  color: var(--qhp-slate);
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
}

.esther-spec-chip strong {
  color: var(--qhp-brass);
}

.spec-category-body {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .spec-category-body {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
  }
}

/* Category Photo Thumbnail Frame */
.spec-photo-frame {
  margin-bottom: 1.25rem;
  border-radius: var(--qhp-radius);
  overflow: hidden;
  max-height: 220px;
  border: 1px solid var(--qhp-border-light);
}

.spec-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spec-deliverables-col h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--qhp-navy);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--qhp-brass);
  padding-bottom: 0.35rem;
  display: inline-block;
}

.spec-deliverable-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
}

.spec-deliverable-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--qhp-slate);
  line-height: 1.5;
}

.spec-deliverable-list li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--qhp-brass);
  font-size: 1.1rem;
  line-height: 1;
}

/* Sidebar Parameters Box */
.spec-meta-sidebar {
  background: #FAFBFD;
  border: 1px solid var(--qhp-border-light);
  border-radius: var(--qhp-radius);
  padding: 1.25rem;
}

.spec-meta-item {
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--qhp-border-light);
}

.spec-meta-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.spec-meta-label {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--qhp-steel);
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
  display: block;
}

.spec-meta-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--qhp-navy);
  margin: 0;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   4. SLA & EVIDENCE SPECIFICATION TABLE (MOBILE SCROLLABLE)
   -------------------------------------------------------------------------- */
.svc-matrix-table-wrap {
  background: var(--qhp-white);
  border: 1px solid var(--qhp-border-light);
  border-radius: var(--qhp-radius);
  box-shadow: var(--qhp-shadow-sm);
  padding: 1.5rem;
  margin-top: 2.5rem;
}

.svc-matrix-table-wrap h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--qhp-navy);
  margin-bottom: 1rem;
}

.table-scroll-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 0.5rem;
}

.svc-spec-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.svc-spec-table th {
  background-color: var(--qhp-navy);
  color: var(--qhp-white);
  padding: 0.75rem 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.725rem;
  letter-spacing: 0.5px;
}

.svc-spec-table td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--qhp-border-light);
  color: var(--qhp-slate);
}

.svc-spec-table tr:hover {
  background-color: #F8FAFC;
}

.svc-spec-table td.fw-bold {
  font-weight: 700;
  color: var(--qhp-navy);
}

/* --------------------------------------------------------------------------
   5. CATALOG BOTTOM CTA
   -------------------------------------------------------------------------- */
.catalog-cta-banner {
  background-color: var(--qhp-navy);
  color: var(--qhp-white);
  border-radius: var(--qhp-radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin-top: 3rem;
  border-left: 4px solid var(--qhp-brass);
}

.catalog-cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--qhp-white);
  margin-bottom: 0.75rem;
}

.catalog-cta-banner p {
  color: var(--qhp-steel);
  font-size: 1rem;
  margin-bottom: 1.75rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.catalog-cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .services-hero {
    padding: 4rem 1rem 2.5rem;
    min-height: auto;
  }
  .services-hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .services-hero-actions .qhp-btn-primary,
  .services-hero-actions .qhp-btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .svc-catalog-section {
    padding: 0 0.85rem;
    margin-top: 1.5rem;
  }
  .spec-category-body {
    padding: 1.15rem;
  }
  .catalog-cta-actions .qhp-btn-primary,
  .catalog-cta-actions .qhp-btn-secondary {
    width: 100%;
  }
}
