/* ============================================
   SERVICES OVERVIEW V3
   Horizontal cards, image-driven, editorial
   ============================================ */

/* Services Section */
    .services-section {
      padding: 120px 24px;
      background: var(--white);
    }

    .services-container {
      max-width: 1200px;
      margin: 0 auto;
    }

    /* Section Header */
    .services-section .section-header {
      max-width: 800px;
      margin: 0 auto 80px;
    }

    .services-section .section-overline {
      font-size: 13px;
      font-weight: 600;
      color: var(--grey-600);
      text-transform: uppercase;
      letter-spacing: 0.15em;
      margin-bottom: 16px;
    }

    .services-section .section-title {
      font-size: clamp(36px, 5vw, 56px);
      font-weight: 700;
      color: var(--grey-900);
      line-height: 1.2;
      letter-spacing: -0.03em;
      margin-bottom: 24px;
    }

    .services-section .section-subtitle {
      font-size: clamp(16px, 2.5vw, 20px);
      color: var(--grey-600);
      line-height: 1.7;
    }

    /* Services Stack */
    .services-stack {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
    }

    /* Service Card - Horizontal */
    .service-card {
      display: grid;
      grid-template-columns: 180px 1fr;
      background: var(--white);
      border: 1px solid var(--grey-200);
      border-radius: 16px;
      overflow: hidden;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      position: relative;
      /* Ensure content doesn't overflow */
      min-width: 0;
    }

    .service-card:hover {
      transform: translateX(8px);
      border-color: var(--grey-300);
      box-shadow: 0 16px 48px rgba(23, 23, 23, 0.1);
    }

    /* Service Visual */
    .service-visual {
      position: relative;
      background: var(--grey-100);
      overflow: hidden;
    }

    .service-visual::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, var(--grey-900) 0%, var(--grey-600) 100%);
      opacity: 0.03;
    }

    /* Device Icon - Large */
    .service-device-icon {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 100px;
      height: 100px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .service-card:hover .service-device-icon {
      transform: translate(-50%, -50%) scale(1.08) rotate(2deg);
    }

    .service-device-icon svg {
      width: 100%;
      height: 100%;
      stroke: var(--grey-900);
      stroke-width: 1;
      fill: none;
      filter: drop-shadow(0 4px 16px rgba(23, 23, 23, 0.08));
    }

    /* Orange accent overlay */
    .service-visual::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, transparent 0%, rgba(255, 107, 74, 0.08) 100%);
      opacity: 0;
      transition: opacity 0.4s ease;
    }

    .service-card:hover .service-visual::after {
      opacity: 1;
    }

    /* Service Content */
    .service-content {
      padding: 32px 40px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      position: relative;
      /* Prevent content overflow */
      min-width: 0;
      overflow: hidden;
    }

    .service-number {
      position: absolute;
      top: 16px;
      right: 24px;
      font-size: 56px;
      font-weight: 700;
      color: var(--grey-100);
      line-height: 1;
      letter-spacing: -0.04em;
      pointer-events: none;
    }

    .service-label {
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--orange-500);
      margin-bottom: 12px;
    }

    .service-title {
      font-size: 24px;
      font-weight: 600;
      color: var(--grey-900);
      margin-bottom: 12px;
      letter-spacing: -0.02em;
      line-height: 1.2;
    }

    .service-description {
      font-size: 15px;
      color: var(--grey-600);
      line-height: 1.7;
      margin-bottom: 24px;
      /* Ensure proper text wrapping */
      word-wrap: break-word;
      overflow-wrap: break-word;
      hyphens: auto;
    }

    /* Service Stats */
    .service-stats {
      display: flex;
      flex-direction: column;
      gap: 16px;
      margin-bottom: 24px;
      padding-bottom: 24px;
      border-bottom: 1px solid var(--grey-200);
    }

    .service-stats .stat {
      display: flex;
      flex-direction: row;
      gap: 10px;
      align-items: baseline;
    }

    .service-stats .stat-value {
      font-size: 28px;
      font-weight: 600;
      color: var(--grey-600) !important;
      line-height: 1;
      letter-spacing: -0.02em;
    }

    .service-stats .stat-label {
      font-size: 14px;
      color: var(--grey-400) !important;
      font-weight: 500;
      letter-spacing: -0.01em;
    }

    /* Service Link */
    .service-link {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      color: var(--grey-900);
      text-decoration: none;
      font-size: 16px;
      font-weight: 600;
      transition: all 0.3s ease;
      align-self: flex-start;
      padding: 12px 24px 12px 0;
      /* Prevent link text overflow */
      max-width: 100%;
      word-wrap: break-word;
    }

    .service-link::before {
      content: '';
      width: 4px;
      height: 4px;
      background: var(--orange-500);
      border-radius: 50%;
      transition: all 0.3s ease;
    }

    .service-card:hover .service-link {
      color: var(--orange-500);
    }

    .service-card:hover .service-link::before {
      width: 32px;
      border-radius: 2px;
    }

    .service-link svg {
      width: 18px;
      height: 18px;
      transition: transform 0.3s ease;
    }

    .service-card:hover .service-link svg {
      transform: translateX(4px);
    }

    /* Responsive */
    @media (min-width: 1201px) and (max-width: 1400px) {
      /* Reduce padding on medium-large screens to prevent overflow */
      .service-content {
        padding: 28px 32px;
      }

      .service-title {
        font-size: 22px;
      }

      .service-description {
        font-size: 14px;
      }
    }

    @media (max-width: 1200px) {
      .services-stack {
        grid-template-columns: 1fr;
      }

      .service-card {
        grid-template-columns: 240px 1fr;
      }

      /* More breathing room when in single column */
      .service-content {
        padding: 32px 40px;
      }
    }

    @media (max-width: 768px) {
      .services-section {
        padding: 80px 20px;
      }

      .section-header {
        margin-bottom: 48px;
      }

      .service-card {
        grid-template-columns: 1fr;
      }

      .service-visual {
        height: 200px;
      }

      .service-content {
        padding: 32px 28px;
      }

      .service-number {
        font-size: 48px;
        top: 12px;
        right: 16px;
      }

      .service-title {
        font-size: 22px;
      }

      .service-stats {
        flex-wrap: wrap;
        gap: 16px;
      }
    }

    /* Demo Section */
    .demo-section {
      padding: 80px 24px;
      text-align: center;
      background: var(--grey-50);
    }

    .demo-title {
      font-size: 32px;
      font-weight: 600;
      color: var(--grey-900);
      margin-bottom: 16px;
      letter-spacing: -0.02em;
    }

    .demo-subtitle {
      font-size: 18px;
      color: var(--grey-600);
      line-height: 1.6;
      max-width: 700px;
      margin: 0 auto 48px;
    }

    .design-notes {
      max-width: 900px;
      margin: 0 auto;
      padding: 40px;
      background: var(--white);
      border-radius: 12px;
      border: 1px solid var(--grey-200);
      text-align: left;
    }

    .design-notes h3 {
      font-size: 20px;
      color: var(--grey-900);
      margin-bottom: 20px;
    }

    .design-notes ul {
      color: var(--grey-600);
      line-height: 1.9;
      padding-left: 24px;
    }

    .design-notes li {
      margin-bottom: 10px;
    }
