/* ==========================================================================
   ALPHA DELVING — SERVICES PAGE STYLES (TOKEN 7)
   Lumina Light Design System
   ========================================================================== */

/* 1. Services Hero Banner */
.services-hero {
  padding: 8rem 0 4.5rem 0;
  background: linear-gradient(180deg, var(--color-surface-pure) 0%, var(--color-surface-container) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.services-hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.services-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 900;
  color: var(--color-brand-navy);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 1rem 0 1.25rem 0;
}

.services-hero p {
  font-size: 17px;
  color: var(--color-brand-neutral);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
}

/* Service Category Filter Pills */
.services-filter-bar {
  display: inline-flex;
  background: #ffffff;
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.service-filter-btn {
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-brand-neutral);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  outline: none;
}

.service-filter-btn:hover:not(.active) {
  color: var(--color-brand-navy);
  background: rgba(0, 160, 233, 0.06);
}

.service-filter-btn.active {
  background: var(--color-brand-navy);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* 2. Services Catalog Grid */
.services-catalog-section {
  padding: 5rem 0 7rem 0;
  background-color: var(--color-surface-pure);
  position: relative;
}

.services-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.service-detail-card {
  background: #ffffff;
  border: 1px solid var(--color-border-subtle);
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              opacity 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-detail-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 160, 233, 0.45);
  box-shadow: 0 20px 40px -10px rgba(0, 160, 233, 0.15);
}

.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.service-icon-box {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 160, 233, 0.08) 0%, rgba(248, 250, 252, 0.9) 100%);
  border: 1px solid rgba(0, 160, 233, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: transform var(--transition-base);
}

.service-detail-card:hover .service-icon-box {
  transform: scale(1.08) rotate(-2deg);
}

.service-icon-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.service-stat-badge {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-brand-cyan);
  background: rgba(0, 160, 233, 0.08);
  border: 1px solid rgba(0, 160, 233, 0.2);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.service-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-brand-navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-card-desc {
  font-size: 14.5px;
  color: var(--color-brand-neutral);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Key Deliverables List */
.service-deliverables {
  background: var(--color-surface-container);
  border: 1px solid var(--color-border-subtle);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.75rem;
}

.deliverables-title {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand-navy);
  margin-bottom: 0.75rem;
  display: block;
}

.deliverables-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.deliverables-list li {
  font-size: 13px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.deliverables-list svg {
  width: 14px;
  height: 14px;
  color: var(--color-brand-cyan);
  flex-shrink: 0;
}

/* Expandable Scope Accordion */
.service-expand-btn {
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-brand-cyan);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin-bottom: 1.5rem;
  outline: none;
  transition: color var(--transition-fast);
}

.service-expand-btn:hover {
  color: var(--color-brand-sky);
}

.service-expand-icon {
  font-size: 10px;
  transition: transform 0.25s ease;
}

.service-expand-btn.active .service-expand-icon {
  transform: rotate(180deg);
}

.service-expanded-content {
  display: none;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px dashed var(--color-border-subtle);
  margin-bottom: 1.5rem;
  font-size: 13.5px;
  color: var(--color-brand-neutral);
  line-height: 1.6;
}

.service-expanded-content.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.service-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-subtle);
}

.service-focus-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-brand-neutral);
}

.service-focus-tag strong {
  color: var(--color-brand-navy);
}

/* 3. Why Alpha Delving (4-Pillar Section) */
.why-section {
  padding: 6.5rem 0;
  background-color: var(--color-surface-container);
  position: relative;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.why-card {
  background: #ffffff;
  border: 1px solid var(--color-border-subtle);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: left;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -8px rgba(0, 160, 233, 0.12);
  border-color: rgba(0, 160, 233, 0.3);
}

.why-number {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--color-brand-cyan);
  margin-bottom: 1rem;
  display: block;
  letter-spacing: 0.04em;
}

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 160, 233, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-brand-cyan);
}

.why-icon svg {
  width: 24px;
  height: 24px;
}

.why-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-brand-navy);
  margin-bottom: 0.6rem;
}

.why-desc {
  font-size: 13.5px;
  color: var(--color-brand-neutral);
  line-height: 1.55;
}

/* 4. Responsive Media Queries */
@media (max-width: 1024px) {
  .services-hero {
    padding: 6.5rem 0 3.5rem 0;
  }

  .services-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .services-catalog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 767px) {
  .services-hero {
    padding: 5.5rem 0 2.5rem 0;
  }

  .services-hero h1 {
    font-size: clamp(1.65rem, 6vw, 2.25rem);
    line-height: 1.2;
    margin: 0.75rem 0 1rem 0;
  }

  .services-hero p {
    font-size: 14.5px;
    margin-bottom: 1.5rem;
  }

  .services-filter-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    justify-content: flex-start;
    padding: 4px;
    gap: 6px;
    scrollbar-width: none;
    border-radius: var(--radius-full);
  }

  .services-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .service-filter-btn {
    padding: 7px 15px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .services-catalog-section {
    padding: 3rem 0 4.5rem 0;
  }

  .services-catalog-grid {
    gap: 1.25rem;
  }

  .service-detail-card {
    padding: 1.35rem 1.15rem;
    border-radius: var(--radius-xl);
  }

  .service-card-top {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .service-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    padding: 10px;
  }

  .service-card-title {
    font-size: 19px;
    margin-bottom: 0.5rem;
  }

  .service-card-desc {
    font-size: 13.5px;
    margin-bottom: 1.15rem;
  }

  .service-deliverables {
    padding: 1rem;
    margin-bottom: 1.25rem;
    border-radius: 12px;
  }

  .service-expand-btn {
    margin-bottom: 1.25rem;
    font-size: 12px;
  }

  .service-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding-top: 1rem;
  }

  .service-card-footer .btn {
    width: 100%;
    justify-content: center;
  }

  .why-section {
    padding: 4rem 0;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }

  .why-card {
    padding: 1.35rem 1.15rem;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .service-card-top {
    flex-wrap: wrap;
  }
  
  .service-stat-badge {
    margin-top: 4px;
  }
}
