/* ==========================================================================
   Saif Modan — Services Page Stylesheet
   Inherits design system tokens from css/style.css
   Ultra-Smooth, Highly Accessible, Fluid & 100% Device Responsive
   ========================================================================== */

/* Main Services Content Container */
.services-main-content {
  padding-top: clamp(6.25rem, 12vh, 8.5rem);
  padding-bottom: clamp(3rem, 6vh, 5.5rem);
  min-height: 100vh;
}

/* Page Intro / Hero Header */
.services-hero-header {
  margin-bottom: clamp(2.5rem, 5vw, 4.25rem);
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--border-light);
}

.services-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 1.2vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #71717a;
  margin-bottom: 0.85rem;
}

.services-eyebrow::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald-pulse);
  flex-shrink: 0;
}

.services-hero-title {
  font-family: var(--font-primary);
  font-size: clamp(2.1rem, 5.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-main);
  max-width: 950px;
  margin: 0 0 1.25rem 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.services-hero-lead {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 1.75vw, 1.2rem);
  font-weight: 400;
  color: var(--text-body);
  max-width: 760px;
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

.services-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

@media (max-width: 520px) {
  .services-hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .btn-services-primary,
  .btn-services-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.95rem 1.5rem;
  }
}

.btn-services-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: var(--text-main);
  color: #ffffff;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid var(--text-main);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-services-primary:hover {
  background-color: #27272a;
  border-color: #27272a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  color: #ffffff;
}

.btn-services-primary:active {
  transform: scale(0.98);
}

.btn-services-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: var(--text-main);
  padding: 0.85rem 1.65rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-services-secondary:hover {
  background-color: var(--bg-card);
  border-color: var(--text-main);
  transform: translateY(-2px);
}

.btn-services-secondary:active {
  transform: scale(0.98);
}

.btn-icon-arrow {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.btn-services-primary:hover .btn-icon-arrow {
  transform: translateX(3px);
}

.btn-services-secondary:hover .btn-icon-arrow {
  transform: translateY(2px);
}

/* ==========================================================================
   Services Catalog Section
   ========================================================================== */
#services-grid {
  scroll-margin-top: clamp(4.5rem, 10vh, 6rem);
}

.services-section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .services-section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.5rem;
  }
}

.services-badge-counter {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  white-space: nowrap;
  display: inline-block;
  align-self: flex-start;
}

/* Responsive Grid — 3 desktop, 2 tablet, 1 mobile */
.services-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

@media (min-width: 640px) {
  .services-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Service Card Component */
.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: clamp(1.35rem, 3.2vw, 1.85rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth), background-color var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
  }
}

@media (hover: none) {
  .service-card:active {
    transform: scale(0.99);
  }
}

.service-card:focus-within {
  border-color: var(--text-main);
  outline: 2px solid var(--text-main);
  outline-offset: 2px;
}

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

.service-card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.service-card:hover .service-card-icon-wrap {
  background-color: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
}

.service-card-icon-wrap svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.service-card-number {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}

.service-card-title {
  font-family: var(--font-primary);
  font-size: clamp(1.15rem, 2vw, 1.28rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-main);
  margin: 0 0 0.65rem 0;
}

.service-card-desc {
  font-size: clamp(0.85rem, 1.4vw, 0.88rem);
  color: var(--text-body);
  line-height: 1.55;
  margin: 0 0 1.25rem 0;
}

/* Service What's Included Block */
.service-includes-block {
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-includes-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.75rem;
}

.service-includes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.service-includes-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.825rem;
  color: var(--text-main);
  line-height: 1.4;
}

.service-check-icon {
  width: 14px;
  height: 14px;
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Card CTA Action */
.service-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.8rem 1rem;
  min-height: 44px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.service-card:hover .service-card-action {
  background-color: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
}

.service-card-action:hover {
  background-color: var(--text-main) !important;
  color: #ffffff !important;
}

.service-action-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.service-card:hover .service-action-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   Project Process Section — "How I Work"
   ========================================================================== */
.services-process-section {
  margin-bottom: clamp(3.5rem, 7vw, 5.5rem);
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--border-light);
}

.process-header-block {
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.process-kicker {
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 1.2vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #71717a;
  display: block;
  margin-bottom: 0.45rem;
}

.process-title {
  font-family: var(--font-primary);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin: 0 0 0.85rem 0;
}

.process-subtitle {
  font-size: clamp(0.925rem, 1.5vw, 1rem);
  color: var(--text-body);
  line-height: 1.6;
  margin: 0;
}

.process-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

@media (min-width: 640px) {
  .process-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: clamp(1.35rem, 3vw, 1.75rem);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

@media (hover: hover) and (pointer: fine) {
  .process-step-card:hover {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  }
}

.process-step-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  display: inline-block;
}

.process-step-title {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0 0 0.5rem 0;
}

.process-step-desc {
  font-size: 0.84rem;
  color: var(--text-body);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Final Contact Banner Section
   ========================================================================== */
.services-cta-banner {
  background: linear-gradient(135deg, #09090b 0%, #121215 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: clamp(2.25rem, 5vw, 4rem) clamp(1.25rem, 4.5vw, 3.25rem);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  margin-bottom: clamp(3rem, 6vw, 5rem);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.services-cta-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.services-cta-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #a1a1aa;
  display: block;
  margin-bottom: 0.75rem;
}

.services-cta-title {
  font-family: var(--font-primary);
  font-size: clamp(1.85rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 1rem 0;
}

.services-cta-desc {
  font-size: clamp(0.925rem, 1.4vw, 1.125rem);
  color: #a1a1aa;
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

.services-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .services-cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .btn-cta-white {
    width: 100%;
    justify-content: center;
    padding: 0.95rem 1.5rem;
  }

  .cta-direct-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    margin-left: 0;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .cta-direct-links .cta-divider {
    display: none;
  }
}

.btn-cta-white {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: #ffffff;
  color: #09090b;
  padding: 0.9rem 1.85rem;
  border-radius: 9999px;
  font-size: 0.925rem;
  font-weight: 700;
  border: 1px solid #ffffff;
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-cta-white:hover {
  background-color: #f4f4f5;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
  color: #09090b;
}

.btn-cta-white:active {
  transform: scale(0.98);
}

.cta-direct-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: 0.5rem;
}

.cta-direct-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #a1a1aa;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cta-direct-link:hover {
  color: #ffffff;
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .service-card,
  .process-step-card,
  .btn-services-primary,
  .btn-services-secondary,
  .btn-cta-white,
  .service-card-action,
  .service-card-icon-wrap,
  .service-action-arrow {
    transition: none !important;
    transform: none !important;
  }
}
